Skip to content

Commit fdc7ba5

Browse files
authored
Merge pull request #6507 from diffblue/move_goto_check_java
move goto_check_java.h/.cpp to the Java frontend
2 parents 48bfd20 + 21a6267 commit fdc7ba5

File tree

8 files changed

+5
-17
lines changed

8 files changed

+5
-17
lines changed

jbmc/src/janalyzer/janalyzer_parse_options.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ Author: Daniel Kroening, [email protected]
108108
#include <goto-programs/show_goto_functions.h>
109109
#include <goto-programs/show_properties.h>
110110

111-
#include <analyses/goto_check_java.h>
112-
111+
#include <java_bytecode/goto_check_java.h>
113112
#include <java_bytecode/java_bytecode_language.h>
114113

115114
class abstract_goto_modelt;

jbmc/src/java_bytecode/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SRC = assignments_from_json.cpp \
99
expr2java.cpp \
1010
generic_parameter_specialization_map.cpp \
1111
generic_parameter_specialization_map_keys.cpp \
12+
goto_check_java.cpp \
1213
jar_file.cpp \
1314
jar_pool.cpp \
1415
java_bmc_util.cpp \

src/analyses/goto_check_java.cpp renamed to jbmc/src/java_bytecode/goto_check_java.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ Author: Daniel Kroening, [email protected]
4141
#include <goto-programs/goto_model.h>
4242
#include <goto-programs/remove_skip.h>
4343

44-
#include "guard.h"
45-
#include "local_bitvector_analysis.h"
44+
#include <analyses/local_bitvector_analysis.h>
4645

4746
class goto_check_javat
4847
{
@@ -84,7 +83,6 @@ class goto_check_javat
8483
const namespacet &ns;
8584
std::unique_ptr<local_bitvector_analysist> local_bitvector_analysis;
8685
goto_programt::const_targett current_target;
87-
guard_managert guard_manager;
8886
messaget log;
8987

9088
/// Check an address-of expression:

jbmc/src/jbmc/jbmc_parse_options.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ Author: Daniel Kroening, [email protected]
1919

2020
#include <langapi/language.h>
2121

22-
#include <analyses/goto_check_java.h>
23-
2422
#include <goto-checker/bmc_util.h>
2523

2624
#include <goto-programs/class_hierarchy.h>
@@ -29,6 +27,7 @@ Author: Daniel Kroening, [email protected]
2927

3028
#include <solvers/strings/string_refinement.h>
3129

30+
#include <java_bytecode/goto_check_java.h>
3231
#include <java_bytecode/java_bytecode_language.h>
3332
#include <java_bytecode/java_trace_validation.h>
3433

jbmc/src/jdiff/jdiff_parse_options.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Author: Peter Schrammel
1212
#ifndef CPROVER_JDIFF_JDIFF_PARSE_OPTIONS_H
1313
#define CPROVER_JDIFF_JDIFF_PARSE_OPTIONS_H
1414

15-
#include <analyses/goto_check_java.h>
15+
#include <java_bytecode/goto_check_java.h>
1616

1717
#include <util/parse_options.h>
1818
#include <util/timestamper.h>

src/analyses/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ SRC = ai.cpp \
1414
global_may_alias.cpp \
1515
goto_check.cpp \
1616
goto_check_c.cpp \
17-
goto_check_java.cpp \
1817
goto_rw.cpp \
1918
guard_bdd.cpp \
2019
guard_expr.cpp \

src/analyses/goto_check.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Author: Daniel Kroening, [email protected]
1212
#include "goto_check.h"
1313

1414
#include "goto_check_c.h"
15-
#include "goto_check_java.h"
1615

1716
#include <util/symbol.h>
1817

@@ -30,11 +29,6 @@ void goto_check(
3029
goto_check_c(
3130
function_identifier, goto_function, ns, options, message_handler);
3231
}
33-
else if(function_symbol.mode == ID_java)
34-
{
35-
goto_check_java(
36-
function_identifier, goto_function, ns, options, message_handler);
37-
}
3832
}
3933

4034
void goto_check(
@@ -44,7 +38,6 @@ void goto_check(
4438
message_handlert &message_handler)
4539
{
4640
goto_check_c(ns, options, goto_functions, message_handler);
47-
goto_check_java(ns, options, goto_functions, message_handler);
4841
}
4942

5043
void goto_check(
@@ -53,5 +46,4 @@ void goto_check(
5346
message_handlert &message_handler)
5447
{
5548
goto_check_c(options, goto_model, message_handler);
56-
goto_check_java(options, goto_model, message_handler);
5749
}

0 commit comments

Comments
 (0)