Skip to content

Commit 8065b10

Browse files
Merge pull request #3557 from peterschrammel/solver-factory
Move cbmc_solvers as solver_factory to new goto-checker module [blocks: 3564, 3565]
2 parents 0a21a31 + 700d7bb commit 8065b10

22 files changed

+137
-97
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ set_target_properties(
5858
goto-analyzer-lib
5959
goto-cc
6060
goto-cc-lib
61+
goto-checker
6162
goto-diff
6263
goto-diff-lib
6364
goto-instrument

jbmc/src/jbmc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ target_link_libraries(jbmc-lib
1212
ansi-c
1313
big-int
1414
cbmc-lib
15+
goto-checker
1516
goto-instrument-lib
1617
goto-programs
1718
goto-symex

jbmc/src/jbmc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ OBJ += ../$(CPROVER_DIR)/src/ansi-c/ansi-c$(LIBEXT) \
66
../java_bytecode/java_bytecode$(LIBEXT) \
77
../$(CPROVER_DIR)/src/linking/linking$(LIBEXT) \
88
../$(CPROVER_DIR)/src/big-int/big-int$(LIBEXT) \
9+
../$(CPROVER_DIR)/src/goto-checker/goto-checker$(LIBEXT) \
910
../$(CPROVER_DIR)/src/goto-programs/goto-programs$(LIBEXT) \
1011
../$(CPROVER_DIR)/src/goto-symex/goto-symex$(LIBEXT) \
1112
../$(CPROVER_DIR)/src/pointer-analysis/value_set$(OBJEXT) \
@@ -40,7 +41,6 @@ OBJ += ../$(CPROVER_DIR)/src/ansi-c/ansi-c$(LIBEXT) \
4041
../$(CPROVER_DIR)/src/cbmc/all_properties$(OBJEXT) \
4142
../$(CPROVER_DIR)/src/cbmc/bmc$(OBJEXT) \
4243
../$(CPROVER_DIR)/src/cbmc/bmc_cover$(OBJEXT) \
43-
../$(CPROVER_DIR)/src/cbmc/cbmc_solvers$(OBJEXT) \
4444
../$(CPROVER_DIR)/src/cbmc/counterexample_beautification$(OBJEXT) \
4545
../$(CPROVER_DIR)/src/cbmc/fault_localization$(OBJEXT) \
4646
../$(CPROVER_DIR)/src/cbmc/symex_bmc$(OBJEXT) \

jbmc/src/jbmc/module_dependencies.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
analyses
22
ansi-c # should go away
3-
cbmc # bmc.h
3+
cbmc # bmc.h - will go away
4+
goto-checker
45
goto-instrument
56
goto-programs
67
goto-symex

jbmc/unit/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ target_link_libraries(java-unit
2323
testing-utils
2424
ansi-c
2525
solvers
26+
goto-checker
2627
goto-programs
28+
goto-symex
2729
goto-instrument-lib
2830
cbmc-lib
2931
json-symtab-language

jbmc/unit/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ BMC_DEPS =$(CPROVER_DIR)/src/cbmc/all_properties$(OBJEXT) \
8686
$(CPROVER_DIR)/src/cbmc/bmc_cover$(OBJEXT) \
8787
$(CPROVER_DIR)/src/cbmc/cbmc_languages$(OBJEXT) \
8888
$(CPROVER_DIR)/src/cbmc/cbmc_parse_options$(OBJEXT) \
89-
$(CPROVER_DIR)/src/cbmc/cbmc_solvers$(OBJEXT) \
9089
$(CPROVER_DIR)/src/cbmc/counterexample_beautification$(OBJEXT) \
9190
$(CPROVER_DIR)/src/cbmc/fault_localization$(OBJEXT) \
9291
$(CPROVER_DIR)/src/cbmc/symex_bmc$(OBJEXT) \
@@ -114,6 +113,7 @@ CPROVER_LIBS =../src/java_bytecode/java_bytecode$(LIBEXT) \
114113
$(CPROVER_DIR)/src/linking/linking$(LIBEXT) \
115114
$(CPROVER_DIR)/src/util/util$(LIBEXT) \
116115
$(CPROVER_DIR)/src/big-int/big-int$(LIBEXT) \
116+
$(CPROVER_DIR)/src/goto-checker/goto-checker$(LIBEXT) \
117117
$(CPROVER_DIR)/src/goto-programs/goto-programs$(LIBEXT) \
118118
$(CPROVER_DIR)/src/goto-symex/goto-symex$(LIBEXT) \
119119
$(CPROVER_DIR)/src/goto-instrument/cover$(OBJEXT) \

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ add_subdirectory(ansi-c)
8585
add_subdirectory(assembler)
8686
add_subdirectory(big-int)
8787
add_subdirectory(cpp)
88+
add_subdirectory(goto-checker)
8889
add_subdirectory(goto-programs)
8990
add_subdirectory(goto-symex)
9091
add_subdirectory(jsil)

src/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ DIRS = analyses \
66
cpp \
77
goto-analyzer \
88
goto-cc \
9+
goto-checker \
910
goto-diff \
1011
goto-instrument \
1112
goto-programs \
@@ -49,9 +50,11 @@ solvers.dir: util.dir langapi.dir
4950
goto-instrument.dir: languages goto-programs.dir pointer-analysis.dir \
5051
goto-symex.dir linking.dir analyses.dir solvers.dir
5152

53+
goto-checker.dir: solvers.dir goto-symex.dir goto-programs.dir
54+
5255
cbmc.dir: languages solvers.dir goto-symex.dir analyses.dir \
5356
pointer-analysis.dir goto-programs.dir linking.dir \
54-
goto-instrument.dir
57+
goto-instrument.dir goto-checker.dir
5558

5659
goto-analyzer.dir: languages analyses.dir goto-programs.dir linking.dir \
5760
goto-instrument.dir

src/cbmc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ target_link_libraries(cbmc-lib
1313
assembler
1414
big-int
1515
cpp
16+
goto-checker
1617
goto-instrument-lib
1718
goto-programs
1819
goto-symex

src/cbmc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ SRC = all_properties.cpp \
44
cbmc_languages.cpp \
55
cbmc_main.cpp \
66
cbmc_parse_options.cpp \
7-
cbmc_solvers.cpp \
87
counterexample_beautification.cpp \
98
fault_localization.cpp \
109
symex_bmc.cpp \
@@ -18,6 +17,7 @@ OBJ += ../ansi-c/ansi-c$(LIBEXT) \
1817
../json-symtab-language/json-symtab-language$(LIBEXT) \
1918
../linking/linking$(LIBEXT) \
2019
../big-int/big-int$(LIBEXT) \
20+
../goto-checker/goto-checker$(LIBEXT) \
2121
../goto-programs/goto-programs$(LIBEXT) \
2222
../goto-symex/goto-symex$(LIBEXT) \
2323
../pointer-analysis/value_set$(OBJEXT) \

0 commit comments

Comments
 (0)