Skip to content

Commit 06d8bea

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2187 from diffblue/move-convert-nondet
Move convert_nondet to java_bytecode
2 parents 6d8c3fa + 6a76aff commit 06d8bea

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/cbmc/cbmc_parse_options.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Author: Daniel Kroening, [email protected]
2626

2727
#include <ansi-c/c_preprocess.h>
2828

29-
#include <goto-programs/convert_nondet.h>
3029
#include <goto-programs/initialize_goto_model.h>
3130
#include <goto-programs/instrument_preconditions.h>
3231
#include <goto-programs/goto_convert_functions.h>

src/goto-programs/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ SRC = basic_blocks.cpp \
33
class_hierarchy.cpp \
44
class_identifier.cpp \
55
compute_called_functions.cpp \
6-
convert_nondet.cpp \
76
destructor.cpp \
87
elf_reader.cpp \
98
format_strings.cpp \

src/java_bytecode/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ SRC = bytecode_info.cpp \
22
character_refine_preprocess.cpp \
33
ci_lazy_methods.cpp \
44
ci_lazy_methods_needed.cpp \
5+
convert_java_nondet.cpp \
56
expr2java.cpp \
67
generic_parameter_specialization_map_keys.cpp \
78
jar_file.cpp \

src/goto-programs/convert_nondet.cpp renamed to src/java_bytecode/convert_java_nondet.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ Author: Reuben Thomas, [email protected]
99
/// \file
1010
/// Convert side_effect_expr_nondett expressions
1111

12-
#include "convert_nondet.h"
13-
#include "goto_convert.h"
14-
#include "goto_model.h"
15-
#include "remove_skip.h"
12+
#include "convert_java_nondet.h"
1613

17-
#include <java_bytecode/java_object_factory.h> // gen_nondet_init
14+
#include <goto-programs/goto_convert.h>
15+
#include <goto-programs/goto_model.h>
16+
#include <goto-programs/remove_skip.h>
1817

19-
#include <util/irep_ids.h>
2018
#include <util/fresh_symbol.h>
19+
#include <util/irep_ids.h>
2120

2221
#include <memory>
2322

23+
#include "java_object_factory.h" // gen_nondet_init
24+
2425
/// Checks an instruction to see whether it contains an assignment from
2526
/// side_effect_expr_nondet. If so, replaces the instruction with a range of
2627
/// instructions to properly nondet-initialize the lhs.

src/goto-programs/convert_nondet.h renamed to src/java_bytecode/convert_java_nondet.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Author: Reuben Thomas, [email protected]
99
/// \file
1010
/// Convert side_effect_expr_nondett expressions
1111

12-
#ifndef CPROVER_GOTO_PROGRAMS_CONVERT_NONDET_H
13-
#define CPROVER_GOTO_PROGRAMS_CONVERT_NONDET_H
12+
#ifndef CPROVER_JAVA_BYTECODE_CONVERT_NONDET_H
13+
#define CPROVER_JAVA_BYTECODE_CONVERT_NONDET_H
1414

1515
#include <cstddef> // size_t
1616
#include <util/irep.h>
@@ -52,4 +52,4 @@ void convert_nondet(
5252
const object_factory_parameterst &object_factory_parameters,
5353
const irep_idt &mode);
5454

55-
#endif
55+
#endif // CPROVER_JAVA_BYTECODE_CONVERT_NONDET_H

src/jbmc/jbmc_parse_options.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Author: Daniel Kroening, [email protected]
2626

2727
#include <ansi-c/ansi_c_language.h>
2828

29-
#include <goto-programs/convert_nondet.h>
3029
#include <goto-programs/lazy_goto_model.h>
3130
#include <goto-programs/instrument_preconditions.h>
3231
#include <goto-programs/goto_convert_functions.h>
@@ -54,6 +53,7 @@ Author: Daniel Kroening, [email protected]
5453

5554
#include <langapi/mode.h>
5655

56+
#include <java_bytecode/convert_java_nondet.h>
5757
#include <java_bytecode/java_bytecode_language.h>
5858
#include <java_bytecode/java_enum_static_init_unwind_handler.h>
5959
#include <java_bytecode/remove_exceptions.h>

0 commit comments

Comments
 (0)