Skip to content

Commit 3a31976

Browse files
authored
Merge pull request #6658 from diffblue/move_goto_check_c
move goto_check_ct to ansi-c/
2 parents de9fa65 + d3301c0 commit 3a31976

24 files changed

+88
-91
lines changed

jbmc/src/janalyzer/janalyzer_parse_options.cpp

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ Author: Daniel Kroening, [email protected]
1111

1212
#include "janalyzer_parse_options.h"
1313

14-
#include <cstdlib> // exit()
15-
#include <fstream>
16-
#include <iostream>
17-
#include <memory>
18-
19-
#include <ansi-c/ansi_c_language.h>
14+
#include <util/config.h>
15+
#include <util/exit_codes.h>
16+
#include <util/options.h>
17+
#include <util/version.h>
2018

19+
#include <goto-programs/goto_check.h>
2120
#include <goto-programs/remove_returns.h>
2221
#include <goto-programs/remove_skip.h>
2322
#include <goto-programs/remove_virtual_functions.h>
@@ -27,30 +26,26 @@ Author: Daniel Kroening, [email protected]
2726

2827
#include <analyses/constant_propagator.h>
2928
#include <analyses/dependence_graph.h>
30-
#include <analyses/goto_check.h>
3129
#include <analyses/interval_domain.h>
3230
#include <analyses/local_may_alias.h>
33-
31+
#include <ansi-c/ansi_c_language.h>
32+
#include <goto-analyzer/static_show_domain.h>
33+
#include <goto-analyzer/static_simplifier.h>
34+
#include <goto-analyzer/static_verifier.h>
35+
#include <goto-analyzer/taint_analysis.h>
36+
#include <goto-analyzer/unreachable_instructions.h>
3437
#include <java_bytecode/java_bytecode_language.h>
3538
#include <java_bytecode/lazy_goto_model.h>
3639
#include <java_bytecode/remove_exceptions.h>
3740
#include <java_bytecode/remove_instanceof.h>
38-
3941
#include <langapi/language.h>
4042
#include <langapi/mode.h>
41-
4243
#include <linking/static_lifetime_init.h>
4344

44-
#include <util/config.h>
45-
#include <util/exit_codes.h>
46-
#include <util/options.h>
47-
#include <util/version.h>
48-
49-
#include <goto-analyzer/static_show_domain.h>
50-
#include <goto-analyzer/static_simplifier.h>
51-
#include <goto-analyzer/static_verifier.h>
52-
#include <goto-analyzer/taint_analysis.h>
53-
#include <goto-analyzer/unreachable_instructions.h>
45+
#include <cstdlib> // exit()
46+
#include <fstream>
47+
#include <iostream>
48+
#include <memory>
5449

5550
janalyzer_parse_optionst::janalyzer_parse_optionst(int argc, const char **argv)
5651
: parse_options_baset(

jbmc/src/jbmc/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ add_library(jbmc-lib ${sources})
88
generic_includes(jbmc-lib)
99

1010
target_link_libraries(jbmc-lib
11-
analyses
1211
ansi-c
1312
big-int
1413
cbmc-lib

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Author: Daniel Kroening, [email protected]
1919
#include <util/xml.h>
2020

2121
#include <goto-programs/adjust_float_expressions.h>
22+
#include <goto-programs/goto_check.h>
2223
#include <goto-programs/goto_convert_functions.h>
2324
#include <goto-programs/instrument_preconditions.h>
2425
#include <goto-programs/loop_ids.h>
@@ -31,7 +32,6 @@ Author: Daniel Kroening, [email protected]
3132
#include <goto-programs/show_properties.h>
3233
#include <goto-programs/show_symbol_table.h>
3334

34-
#include <analyses/goto_check.h>
3535
#include <ansi-c/ansi_c_language.h>
3636
#include <goto-checker/all_properties_verifier.h>
3737
#include <goto-checker/all_properties_verifier_with_fault_localization.h>

jbmc/src/jbmc/module_dependencies.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
analyses
21
ansi-c # should go away
32
goto-checker
43
goto-instrument

jbmc/src/jdiff/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ target_link_libraries(jdiff-lib
1515
goto-diff-lib
1616
goto-instrument-lib
1717
goto-programs
18-
analyses
1918
java_bytecode
2019
langapi
2120
xml

jbmc/src/jdiff/jdiff_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Author: Peter Schrammel
1717
#include <util/version.h>
1818

1919
#include <goto-programs/adjust_float_expressions.h>
20+
#include <goto-programs/goto_check.h>
2021
#include <goto-programs/initialize_goto_model.h>
2122
#include <goto-programs/instrument_preconditions.h>
2223
#include <goto-programs/loop_ids.h>
@@ -28,7 +29,6 @@ Author: Peter Schrammel
2829
#include <goto-programs/set_properties.h>
2930
#include <goto-programs/show_properties.h>
3031

31-
#include <analyses/goto_check.h>
3232
#include <goto-diff/change_impact.h>
3333
#include <goto-diff/unified_diff.h>
3434
#include <goto-instrument/cover.h>

jbmc/src/jdiff/module_dependencies.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
analyses
21
java_bytecode
32
jdiff
43
goto-diff

src/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ $(patsubst %, %.dir, $(filter-out big-int util, $(DIRS))): util.dir
5959
.PHONY: languages
6060
.PHONY: clean
6161

62+
ansi-c.dir: analyses.dir
63+
6264
cpp.dir: ansi-c.dir linking.dir
6365

6466
crangler.dir: util.dir json.dir

src/analyses/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ SRC = ai.cpp \
1212
escape_analysis.cpp \
1313
flow_insensitive_analysis.cpp \
1414
global_may_alias.cpp \
15-
goto_check.cpp \
16-
goto_check_c.cpp \
1715
goto_rw.cpp \
1816
guard_bdd.cpp \
1917
guard_expr.cpp \

src/ansi-c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ set_source_files_properties(
127127

128128
generic_includes(ansi-c)
129129

130-
target_link_libraries(ansi-c util linking goto-programs assembler)
130+
target_link_libraries(ansi-c analyses util linking goto-programs assembler)

0 commit comments

Comments
 (0)