Skip to content

Commit 059fe90

Browse files
committed
Move unwindset.{h,cpp} to goto-programs
This code is not specific to goto-instrument and used more widely across the code base. Removes a now-unnecessary dependency of goto-checker on goto-instrument.
1 parent 3c915eb commit 059fe90

24 files changed

+32
-45
lines changed

jbmc/src/jbmc/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ OBJ += ../$(CPROVER_DIR)/src/ansi-c/ansi-c$(LIBEXT) \
3232
../$(CPROVER_DIR)/src/goto-instrument/cover_instrument_mcdc$(OBJEXT) \
3333
../$(CPROVER_DIR)/src/goto-instrument/cover_instrument_other$(OBJEXT) \
3434
../$(CPROVER_DIR)/src/goto-instrument/cover_util$(OBJEXT) \
35-
../$(CPROVER_DIR)/src/goto-instrument/unwindset$(OBJEXT) \
3635
../$(CPROVER_DIR)/src/analyses/analyses$(LIBEXT) \
3736
../$(CPROVER_DIR)/src/langapi/langapi$(LIBEXT) \
3837
../$(CPROVER_DIR)/src/xmllang/xmllang$(LIBEXT) \

jbmc/unit/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ CPROVER_LIBS =../src/java_bytecode/java_bytecode$(LIBEXT) \
116116
$(CPROVER_DIR)/src/goto-instrument/reachability_slicer$(OBJEXT) \
117117
$(CPROVER_DIR)/src/goto-instrument/nondet_static$(OBJEXT) \
118118
$(CPROVER_DIR)/src/goto-instrument/full_slicer$(OBJEXT) \
119-
$(CPROVER_DIR)/src/goto-instrument/unwindset$(OBJEXT) \
120119
$(CPROVER_DIR)/src/pointer-analysis/pointer-analysis$(LIBEXT) \
121120
$(CPROVER_DIR)/src/langapi/langapi$(LIBEXT) \
122121
$(CPROVER_DIR)/src/xmllang/xmllang$(LIBEXT) \

src/cbmc/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ OBJ += ../ansi-c/ansi-c$(LIBEXT) \
3636
../goto-instrument/reachability_slicer$(OBJEXT) \
3737
../goto-instrument/nondet_static$(OBJEXT) \
3838
../goto-instrument/full_slicer$(OBJEXT) \
39-
../goto-instrument/unwindset$(OBJEXT) \
4039
../analyses/analyses$(LIBEXT) \
4140
../langapi/langapi$(LIBEXT) \
4241
../xmllang/xmllang$(LIBEXT) \

src/goto-checker/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ add_library(goto-checker ${sources})
33

44
generic_includes(goto-checker)
55

6-
target_link_libraries(goto-checker goto-programs goto-symex solvers util xml goto-instrument-lib)
6+
target_link_libraries(goto-checker goto-programs goto-symex solvers util xml)

src/goto-checker/bmc_util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Author: Daniel Kroening, Peter Schrammel
1212
#ifndef CPROVER_GOTO_CHECKER_BMC_UTIL_H
1313
#define CPROVER_GOTO_CHECKER_BMC_UTIL_H
1414

15-
#include <goto-instrument/unwindset.h>
15+
#include <goto-programs/unwindset.h>
16+
1617
#include <goto-symex/build_goto_trace.h>
1718

1819
#include "incremental_goto_checker.h"

src/goto-checker/module_dependencies.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
assembler
22
cbmc # symex_bmc will be moved next
33
goto-checker
4-
goto-instrument
54
goto-programs
65
goto-symex
76
langapi

src/goto-checker/multi_path_symex_only_checker.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ Author: Daniel Kroening, Peter Schrammel
1212
#ifndef CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_ONLY_CHECKER_H
1313
#define CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_ONLY_CHECKER_H
1414

15-
#include "incremental_goto_checker.h"
15+
#include <goto-programs/unwindset.h>
1616

1717
#include <goto-symex/path_storage.h>
1818

19-
#include <goto-instrument/unwindset.h>
20-
19+
#include "incremental_goto_checker.h"
2120
#include "symex_bmc.h"
2221

2322
class multi_path_symex_only_checkert : public incremental_goto_checkert

src/goto-checker/single_loop_incremental_symex_checker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Author: Daniel Kroening, Peter Schrammel
1414
#ifndef CPROVER_GOTO_CHECKER_SINGLE_LOOP_INCREMENTAL_SYMEX_CHECKER_H
1515
#define CPROVER_GOTO_CHECKER_SINGLE_LOOP_INCREMENTAL_SYMEX_CHECKER_H
1616

17-
#include <goto-symex/path_storage.h>
17+
#include <goto-programs/unwindset.h>
1818

19-
#include <goto-instrument/unwindset.h>
19+
#include <goto-symex/path_storage.h>
2020

2121
#include "goto_symex_property_decider.h"
2222
#include "goto_trace_provider.h"

src/goto-checker/single_path_symex_only_checker.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Author: Daniel Kroening, Peter Schrammel
1212
#ifndef CPROVER_GOTO_CHECKER_SINGLE_PATH_SYMEX_ONLY_CHECKER_H
1313
#define CPROVER_GOTO_CHECKER_SINGLE_PATH_SYMEX_ONLY_CHECKER_H
1414

15-
#include <goto-instrument/unwindset.h>
15+
#include <goto-programs/unwindset.h>
16+
1617
#include <goto-symex/path_storage.h>
1718

1819
#include "incremental_goto_checker.h"

src/goto-checker/symex_bmc.cpp

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

1212
#include "symex_bmc.h"
1313

14-
#include <limits>
15-
1614
#include <util/simplify_expr.h>
1715
#include <util/source_location.h>
1816

19-
#include <goto-instrument/unwindset.h>
17+
#include <goto-programs/unwindset.h>
18+
19+
#include <limits>
2020

2121
symex_bmct::symex_bmct(
2222
message_handlert &mh,

0 commit comments

Comments
 (0)