Skip to content

Commit 7eb77a8

Browse files
authored
Merge pull request #8253 from diffblue/move-goto-convert
Move goto_convert files
2 parents 89e4ded + 2b3d12c commit 7eb77a8

File tree

99 files changed

+1382
-1424
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1382
-1424
lines changed

jbmc/src/java_bytecode/assignments_from_json.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ Author: Diffblue Ltd.
1616
#include <util/symbol_table_base.h>
1717
#include <util/unicode.h>
1818

19-
#include <goto-programs/allocate_objects.h>
2019
#include <goto-programs/class_identifier.h>
2120
#include <goto-programs/goto_instruction_code.h>
2221

22+
#include <ansi-c/allocate_objects.h>
23+
2324
#include "ci_lazy_methods_needed.h"
2425
#include "code_with_references.h"
2526
#include "java_static_initializers.h"

jbmc/src/java_bytecode/convert_java_nondet.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ Author: Reuben Thomas, [email protected]
1111

1212
#include "convert_java_nondet.h"
1313

14-
#include <goto-programs/goto_convert.h>
1514
#include <goto-programs/goto_model.h>
1615
#include <goto-programs/remove_skip.h>
1716

17+
#include <ansi-c/goto-conversion/goto_convert.h>
18+
1819
#include "java_object_factory.h" // gen_nondet_init
1920
#include "java_object_factory_parameters.h"
2021
#include "java_utils.h"

jbmc/src/java_bytecode/java_object_factory.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ Author: Daniel Kroening, [email protected]
7171
#ifndef CPROVER_JAVA_BYTECODE_JAVA_OBJECT_FACTORY_H
7272
#define CPROVER_JAVA_BYTECODE_JAVA_OBJECT_FACTORY_H
7373

74-
#include "nondet.h"
74+
#include <util/std_code.h>
7575

76-
#include <goto-programs/allocate_objects.h>
76+
#include <ansi-c/allocate_objects.h>
7777

78-
#include <util/std_code.h>
78+
#include "nondet.h"
7979

8080
class message_handlert;
8181
class select_pointer_typet;

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ Date: April 2017
2929
#include <util/string_expr.h>
3030
#include <util/symbol_table_base.h>
3131

32-
#include <goto-programs/allocate_objects.h>
3332
#include <goto-programs/class_identifier.h>
3433

34+
#include <ansi-c/allocate_objects.h>
35+
3536
#include "java_types.h"
3637
#include "java_utils.h"
3738

jbmc/src/java_bytecode/lazy_goto_functions_map.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
#ifndef CPROVER_GOTO_PROGRAMS_LAZY_GOTO_FUNCTIONS_MAP_H
77
#define CPROVER_GOTO_PROGRAMS_LAZY_GOTO_FUNCTIONS_MAP_H
88

9-
#include <unordered_set>
9+
#include <util/journalling_symbol_table.h>
10+
#include <util/message.h>
11+
#include <util/symbol_table_builder.h>
1012

11-
#include <goto-programs/goto_convert_functions.h>
1213
#include <goto-programs/goto_functions.h>
1314

15+
#include <ansi-c/goto-conversion/goto_convert_functions.h>
1416
#include <langapi/language_file.h>
15-
#include <util/journalling_symbol_table.h>
16-
#include <util/message.h>
17-
#include <util/symbol_table_builder.h>
17+
18+
#include <unordered_set>
1819

1920
/// Provides a wrapper for a map of lazily loaded goto_functiont.
2021
/// This incrementally builds a goto-functions object, while permitting

jbmc/src/java_bytecode/nondet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Author: Diffblue Ltd.
88

99
#include "nondet.h"
1010

11-
#include <goto-programs/allocate_objects.h>
12-
1311
#include <util/arith_tools.h>
1412

13+
#include <ansi-c/allocate_objects.h>
14+
1515
symbol_exprt generate_nondet_int(
1616
const exprt &min_value_expr,
1717
const exprt &max_value_expr,

jbmc/src/java_bytecode/remove_java_new.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Author: Peter Schrammel
1919
#include <util/std_code.h>
2020

2121
#include <goto-programs/class_identifier.h>
22-
#include <goto-programs/goto_convert.h>
2322
#include <goto-programs/goto_model.h>
2423

24+
#include <ansi-c/goto-conversion/goto_convert.h>
25+
2526
#include "java_types.h"
2627
#include "java_utils.h"
2728

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Author: Daniel Kroening, [email protected]
2020

2121
#include <goto-programs/adjust_float_expressions.h>
2222
#include <goto-programs/goto_check.h>
23-
#include <goto-programs/goto_convert_functions.h>
2423
#include <goto-programs/instrument_preconditions.h>
2524
#include <goto-programs/loop_ids.h>
2625
#include <goto-programs/remove_returns.h>
@@ -33,6 +32,7 @@ Author: Daniel Kroening, [email protected]
3332
#include <goto-programs/show_symbol_table.h>
3433

3534
#include <ansi-c/ansi_c_language.h>
35+
#include <ansi-c/goto-conversion/goto_convert_functions.h>
3636
#include <goto-checker/all_properties_verifier.h>
3737
#include <goto-checker/all_properties_verifier_with_fault_localization.h>
3838
#include <goto-checker/all_properties_verifier_with_trace_storage.h>

jbmc/unit/java_bytecode/java_bytecode_instrument/module_dependencies.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ansi-c
12
testing-utils
23
java-testing-utils
34
analyses

jbmc/unit/java_bytecode/java_bytecode_instrument/virtual_call_null_checks.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ Author: Diffblue Limited.
88
\*******************************************************************/
99

1010
#include <java-testing-utils/load_java_class.h>
11-
#include <testing-utils/message.h>
12-
#include <testing-utils/use_catch.h>
1311

14-
#include <analyses/local_safe_pointers.h>
15-
#include <goto-programs/goto_convert_functions.h>
1612
#include <util/expr_iterator.h>
1713

14+
#include <analyses/local_safe_pointers.h>
15+
#include <ansi-c/goto-conversion/goto_convert_functions.h>
16+
#include <testing-utils/message.h>
17+
#include <testing-utils/use_catch.h>
18+
1819
// We're expecting a call "something->field . B.virtualmethod()":
1920
static bool is_expected_virtualmethod_call(
2021
const goto_programt::instructiont &instruction)

0 commit comments

Comments
 (0)