Skip to content

Commit

Permalink
cleanup the includes in src/java_bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kroening committed May 1, 2018
1 parent 1050637 commit 392c765
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 28 deletions.
12 changes: 7 additions & 5 deletions src/java_bytecode/ci_lazy_methods.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@
#ifndef CPROVER_JAVA_BYTECODE_GATHER_METHODS_LAZILY_H
#define CPROVER_JAVA_BYTECODE_GATHER_METHODS_LAZILY_H

#include "ci_lazy_methods_needed.h"
#include "java_bytecode_parse_tree.h"
#include "java_class_loader.h"
#include "select_pointer_type.h"
#include "synthetic_methods_map.h"

#include <map>
#include <functional>

#include <util/irep.h>
#include <util/symbol_table.h>
#include <util/message.h>

#include <goto-programs/class_hierarchy.h>
#include <java_bytecode/java_bytecode_parse_tree.h>
#include <java_bytecode/java_class_loader.h>
#include <java_bytecode/ci_lazy_methods_needed.h>
#include <java_bytecode/select_pointer_type.h>
#include <java_bytecode/synthetic_methods_map.h>

class java_string_library_preprocesst;

Expand Down
8 changes: 4 additions & 4 deletions src/java_bytecode/java_bytecode_convert_method.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Author: Daniel Kroening, [email protected]
#ifndef CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_H
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_H

#include <util/symbol_table.h>
#include <util/message.h>
#include "ci_lazy_methods_needed.h"
#include "java_bytecode_parse_tree.h"
#include "java_string_library_preprocess.h"

#include "java_bytecode_parse_tree.h"
#include <java_bytecode/ci_lazy_methods_needed.h>
#include <util/message.h>
#include <util/symbol_table.h>

class class_hierarchyt;

Expand Down
8 changes: 5 additions & 3 deletions src/java_bytecode/java_bytecode_convert_method_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ Author: Daniel Kroening, [email protected]
#ifndef CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_CLASS_H
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_CLASS_H

#include "ci_lazy_methods_needed.h"
#include "java_bytecode_parse_tree.h"
#include "java_bytecode_convert_class.h"

#include <util/expanding_vector.h>
#include <util/message.h>
#include <util/std_types.h>
#include <util/std_expr.h>

#include <analyses/cfg_dominators.h>
#include "java_bytecode_parse_tree.h"
#include "java_bytecode_convert_class.h"
#include <java_bytecode/ci_lazy_methods_needed.h>

#include <vector>
#include <list>
Expand Down
15 changes: 7 additions & 8 deletions src/java_bytecode/java_bytecode_language.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@ Author: Daniel Kroening, [email protected]
#ifndef CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_LANGUAGE_H
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_LANGUAGE_H

#include <memory>

#include <util/cmdline.h>
#include <util/make_unique.h>

#include <langapi/language.h>

#include "ci_lazy_methods.h"
#include "ci_lazy_methods_needed.h"
#include "java_class_loader.h"
#include "java_static_initializers.h"
#include "java_string_library_preprocess.h"
#include "object_factory_parameters.h"
#include "select_pointer_type.h"
#include "synthetic_methods_map.h"

#include <java_bytecode/select_pointer_type.h>
#include <memory>

#include <util/cmdline.h>
#include <util/make_unique.h>

#include <langapi/language.h>

#define JAVA_BYTECODE_LANGUAGE_OPTIONS /*NOLINT*/ \
"(no-core-models)" \
Expand Down
5 changes: 3 additions & 2 deletions src/java_bytecode/java_entry_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ Author: Daniel Kroening, [email protected]
#ifndef CPROVER_JAVA_BYTECODE_JAVA_ENTRY_POINT_H
#define CPROVER_JAVA_BYTECODE_JAVA_ENTRY_POINT_H

#include "java_bytecode_language.h"
#include "select_pointer_type.h"

#include <util/irep.h>
#include <util/symbol.h>
#include <java_bytecode/select_pointer_type.h>
#include <java_bytecode/java_bytecode_language.h>

#define JAVA_ENTRY_POINT_RETURN_SYMBOL "return'"
#define JAVA_ENTRY_POINT_EXCEPTION_SYMBOL "uncaught_exception'"
Expand Down
6 changes: 3 additions & 3 deletions src/java_bytecode/java_object_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ Author: Daniel Kroening, [email protected]
#ifndef CPROVER_JAVA_BYTECODE_JAVA_OBJECT_FACTORY_H
#define CPROVER_JAVA_BYTECODE_JAVA_OBJECT_FACTORY_H

#include "java_bytecode_language.h"
#include "select_pointer_type.h"

#include <util/message.h>
#include <util/std_code.h>
#include <util/symbol_table.h>

#include <java_bytecode/select_pointer_type.h>
#include <java_bytecode/java_bytecode_language.h>

/// Selects the kind of allocation used by java_object_factory et al.
enum class allocation_typet
{
Expand Down
7 changes: 4 additions & 3 deletions src/java_bytecode/java_static_initializers.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ Author: Chris Smowton, [email protected]
#ifndef CPROVER_JAVA_BYTECODE_JAVA_STATIC_INITIALIZERS_H
#define CPROVER_JAVA_BYTECODE_JAVA_STATIC_INITIALIZERS_H

#include "object_factory_parameters.h"
#include "select_pointer_type.h"
#include "synthetic_methods_map.h"

#include <unordered_set>

#include <util/symbol_table.h>
#include <util/std_code.h>
#include <java_bytecode/object_factory_parameters.h>
#include <java_bytecode/select_pointer_type.h>
#include <java_bytecode/synthetic_methods_map.h>

irep_idt clinit_wrapper_name(const irep_idt &class_name);

Expand Down
2 changes: 2 additions & 0 deletions src/java_bytecode/object_factory_parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Author: Daniel Kroening, [email protected]
#include <cstdint>
#include <limits>

#include <util/irep.h>

#define MAX_NONDET_ARRAY_LENGTH_DEFAULT 5
#define MAX_NONDET_STRING_LENGTH std::numeric_limits<std::int32_t>::max()
#define MAX_NONDET_TREE_DEPTH 5
Expand Down

0 comments on commit 392c765

Please sign in to comment.