Skip to content

Commit 392c765

Browse files
author
Daniel Kroening
committed
cleanup the includes in src/java_bytecode
1 parent 1050637 commit 392c765

8 files changed

+35
-28
lines changed

src/java_bytecode/ci_lazy_methods.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@
1212
#ifndef CPROVER_JAVA_BYTECODE_GATHER_METHODS_LAZILY_H
1313
#define CPROVER_JAVA_BYTECODE_GATHER_METHODS_LAZILY_H
1414

15+
#include "ci_lazy_methods_needed.h"
16+
#include "java_bytecode_parse_tree.h"
17+
#include "java_class_loader.h"
18+
#include "select_pointer_type.h"
19+
#include "synthetic_methods_map.h"
20+
1521
#include <map>
1622
#include <functional>
1723

1824
#include <util/irep.h>
1925
#include <util/symbol_table.h>
2026
#include <util/message.h>
27+
2128
#include <goto-programs/class_hierarchy.h>
22-
#include <java_bytecode/java_bytecode_parse_tree.h>
23-
#include <java_bytecode/java_class_loader.h>
24-
#include <java_bytecode/ci_lazy_methods_needed.h>
25-
#include <java_bytecode/select_pointer_type.h>
26-
#include <java_bytecode/synthetic_methods_map.h>
2729

2830
class java_string_library_preprocesst;
2931

src/java_bytecode/java_bytecode_convert_method.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Author: Daniel Kroening, [email protected]
1212
#ifndef CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_H
1313
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_H
1414

15-
#include <util/symbol_table.h>
16-
#include <util/message.h>
15+
#include "ci_lazy_methods_needed.h"
16+
#include "java_bytecode_parse_tree.h"
1717
#include "java_string_library_preprocess.h"
1818

19-
#include "java_bytecode_parse_tree.h"
20-
#include <java_bytecode/ci_lazy_methods_needed.h>
19+
#include <util/message.h>
20+
#include <util/symbol_table.h>
2121

2222
class class_hierarchyt;
2323

src/java_bytecode/java_bytecode_convert_method_class.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ Author: Daniel Kroening, [email protected]
1212
#ifndef CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_CLASS_H
1313
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_CLASS_H
1414

15+
#include "ci_lazy_methods_needed.h"
16+
#include "java_bytecode_parse_tree.h"
17+
#include "java_bytecode_convert_class.h"
18+
1519
#include <util/expanding_vector.h>
1620
#include <util/message.h>
1721
#include <util/std_types.h>
1822
#include <util/std_expr.h>
23+
1924
#include <analyses/cfg_dominators.h>
20-
#include "java_bytecode_parse_tree.h"
21-
#include "java_bytecode_convert_class.h"
22-
#include <java_bytecode/ci_lazy_methods_needed.h>
2325

2426
#include <vector>
2527
#include <list>

src/java_bytecode/java_bytecode_language.h

+7-8
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,21 @@ Author: Daniel Kroening, [email protected]
1010
#ifndef CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_LANGUAGE_H
1111
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_LANGUAGE_H
1212

13-
#include <memory>
14-
15-
#include <util/cmdline.h>
16-
#include <util/make_unique.h>
17-
18-
#include <langapi/language.h>
19-
2013
#include "ci_lazy_methods.h"
2114
#include "ci_lazy_methods_needed.h"
2215
#include "java_class_loader.h"
2316
#include "java_static_initializers.h"
2417
#include "java_string_library_preprocess.h"
2518
#include "object_factory_parameters.h"
19+
#include "select_pointer_type.h"
2620
#include "synthetic_methods_map.h"
2721

28-
#include <java_bytecode/select_pointer_type.h>
22+
#include <memory>
23+
24+
#include <util/cmdline.h>
25+
#include <util/make_unique.h>
26+
27+
#include <langapi/language.h>
2928

3029
#define JAVA_BYTECODE_LANGUAGE_OPTIONS /*NOLINT*/ \
3130
"(no-core-models)" \

src/java_bytecode/java_entry_point.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ Author: Daniel Kroening, [email protected]
1010
#ifndef CPROVER_JAVA_BYTECODE_JAVA_ENTRY_POINT_H
1111
#define CPROVER_JAVA_BYTECODE_JAVA_ENTRY_POINT_H
1212

13+
#include "java_bytecode_language.h"
14+
#include "select_pointer_type.h"
15+
1316
#include <util/irep.h>
1417
#include <util/symbol.h>
15-
#include <java_bytecode/select_pointer_type.h>
16-
#include <java_bytecode/java_bytecode_language.h>
1718

1819
#define JAVA_ENTRY_POINT_RETURN_SYMBOL "return'"
1920
#define JAVA_ENTRY_POINT_EXCEPTION_SYMBOL "uncaught_exception'"

src/java_bytecode/java_object_factory.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ Author: Daniel Kroening, [email protected]
6868
#ifndef CPROVER_JAVA_BYTECODE_JAVA_OBJECT_FACTORY_H
6969
#define CPROVER_JAVA_BYTECODE_JAVA_OBJECT_FACTORY_H
7070

71+
#include "java_bytecode_language.h"
72+
#include "select_pointer_type.h"
73+
7174
#include <util/message.h>
7275
#include <util/std_code.h>
7376
#include <util/symbol_table.h>
7477

75-
#include <java_bytecode/select_pointer_type.h>
76-
#include <java_bytecode/java_bytecode_language.h>
77-
7878
/// Selects the kind of allocation used by java_object_factory et al.
7979
enum class allocation_typet
8080
{

src/java_bytecode/java_static_initializers.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ Author: Chris Smowton, [email protected]
99
#ifndef CPROVER_JAVA_BYTECODE_JAVA_STATIC_INITIALIZERS_H
1010
#define CPROVER_JAVA_BYTECODE_JAVA_STATIC_INITIALIZERS_H
1111

12+
#include "object_factory_parameters.h"
13+
#include "select_pointer_type.h"
14+
#include "synthetic_methods_map.h"
15+
1216
#include <unordered_set>
1317

1418
#include <util/symbol_table.h>
1519
#include <util/std_code.h>
16-
#include <java_bytecode/object_factory_parameters.h>
17-
#include <java_bytecode/select_pointer_type.h>
18-
#include <java_bytecode/synthetic_methods_map.h>
1920

2021
irep_idt clinit_wrapper_name(const irep_idt &class_name);
2122

src/java_bytecode/object_factory_parameters.h

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Author: Daniel Kroening, [email protected]
1212
#include <cstdint>
1313
#include <limits>
1414

15+
#include <util/irep.h>
16+
1517
#define MAX_NONDET_ARRAY_LENGTH_DEFAULT 5
1618
#define MAX_NONDET_STRING_LENGTH std::numeric_limits<std::int32_t>::max()
1719
#define MAX_NONDET_TREE_DEPTH 5

0 commit comments

Comments
 (0)