Skip to content

Commit 3dc2244

Browse files
Move adjust_float_expressions to goto-programs
1 parent 06d8bea commit 3dc2244

File tree

9 files changed

+12
-13
lines changed

9 files changed

+12
-13
lines changed

src/cbmc/cbmc_parse_options.cpp

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

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

29+
#include <goto-programs/adjust_float_expressions.h>
30+
#include <goto-programs/convert_nondet.h>
2931
#include <goto-programs/initialize_goto_model.h>
3032
#include <goto-programs/instrument_preconditions.h>
3133
#include <goto-programs/goto_convert_functions.h>
@@ -49,7 +51,6 @@ Author: Daniel Kroening, [email protected]
4951
#include <goto-programs/string_instrumentation.h>
5052

5153
#include <goto-symex/rewrite_union.h>
52-
#include <goto-symex/adjust_float_expressions.h>
5354

5455
#include <goto-instrument/reachability_slicer.h>
5556
#include <goto-instrument/full_slicer.h>

src/clobber/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ OBJ += ../ansi-c/ansi-c$(LIBEXT) \
1313
../assembler/assembler$(LIBEXT) \
1414
../solvers/solvers$(LIBEXT) \
1515
../util/util$(LIBEXT) \
16-
../goto-symex/adjust_float_expressions$(OBJEXT) \
1716
../goto-symex/rewrite_union$(OBJEXT) \
1817
../pointer-analysis/dereference$(OBJEXT) \
1918
../goto-instrument/dump_c$(OBJEXT) \

src/goto-diff/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ OBJ += ../ansi-c/ansi-c$(LIBEXT) \
2525
../goto-instrument/cover_instrument_mcdc$(OBJEXT) \
2626
../goto-instrument/cover_instrument_other$(OBJEXT) \
2727
../goto-instrument/cover_util$(OBJEXT) \
28-
../goto-symex/adjust_float_expressions$(OBJEXT) \
2928
../goto-symex/rewrite_union$(OBJEXT) \
3029
../analyses/analyses$(LIBEXT) \
3130
../langapi/langapi$(LIBEXT) \

src/goto-diff/goto_diff_parse_options.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Author: Peter Schrammel
2424

2525
#include <langapi/language.h>
2626

27+
#include <goto-programs/adjust_float_expressions.h>
2728
#include <goto-programs/goto_convert_functions.h>
2829
#include <goto-programs/instrument_preconditions.h>
2930
#include <goto-programs/mm_io.h>
@@ -45,7 +46,6 @@ Author: Peter Schrammel
4546
#include <goto-programs/link_to_library.h>
4647

4748
#include <goto-symex/rewrite_union.h>
48-
#include <goto-symex/adjust_float_expressions.h>
4949

5050
#include <goto-instrument/cover.h>
5151

src/goto-programs/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = basic_blocks.cpp \
1+
SRC = adjust_float_expressions.cpp \
2+
basic_blocks.cpp \
23
builtin_functions.cpp \
34
class_hierarchy.cpp \
45
class_identifier.cpp \

src/goto-symex/adjust_float_expressions.cpp renamed to src/goto-programs/adjust_float_expressions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Author: Daniel Kroening, [email protected]
1818
#include <util/ieee_float.h>
1919
#include <util/arith_tools.h>
2020

21-
#include <goto-programs/goto_model.h>
21+
#include "goto_model.h"
2222

2323
static bool have_to_adjust_float_expressions(
2424
const exprt &expr,

src/goto-symex/adjust_float_expressions.h renamed to src/goto-programs/adjust_float_expressions.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Author: Daniel Kroening, [email protected]
99
/// \file
1010
/// Symbolic Execution
1111

12-
#ifndef CPROVER_GOTO_SYMEX_ADJUST_FLOAT_EXPRESSIONS_H
13-
#define CPROVER_GOTO_SYMEX_ADJUST_FLOAT_EXPRESSIONS_H
12+
#ifndef CPROVER_GOTO_PROGRAMS_ADJUST_FLOAT_EXPRESSIONS_H
13+
#define CPROVER_GOTO_PROGRAMS_ADJUST_FLOAT_EXPRESSIONS_H
1414

1515
#include <goto-programs/goto_functions.h>
1616

@@ -31,4 +31,4 @@ void adjust_float_expressions(
3131
const namespacet &ns);
3232
void adjust_float_expressions(goto_modelt &goto_model);
3333

34-
#endif // CPROVER_GOTO_SYMEX_ADJUST_FLOAT_EXPRESSIONS_H
34+
#endif // CPROVER_GOTO_PROGRAMS_ADJUST_FLOAT_EXPRESSIONS_H

src/goto-symex/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
SRC = adjust_float_expressions.cpp \
2-
auto_objects.cpp \
1+
SRC = auto_objects.cpp \
32
build_goto_trace.cpp \
43
goto_symex.cpp \
54
goto_symex_state.cpp \

src/jbmc/jbmc_parse_options.cpp

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

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

29+
#include <goto-programs/adjust_float_expressions.h>
30+
#include <goto-programs/convert_nondet.h>
2931
#include <goto-programs/lazy_goto_model.h>
3032
#include <goto-programs/instrument_preconditions.h>
3133
#include <goto-programs/goto_convert_functions.h>
@@ -41,8 +43,6 @@ Author: Daniel Kroening, [email protected]
4143
#include <goto-programs/show_symbol_table.h>
4244
#include <goto-programs/show_properties.h>
4345

44-
#include <goto-symex/adjust_float_expressions.h>
45-
4646
#include <goto-instrument/full_slicer.h>
4747
#include <goto-instrument/reachability_slicer.h>
4848
#include <goto-instrument/nondet_static.h>

0 commit comments

Comments
 (0)