Skip to content

Commit a61ee58

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 a61ee58

18 files changed

+32
-39
lines changed

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, kroening@kroening.com
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,

src/goto-checker/symex_bmc_incremental_one_loop.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Author: Peter Schrammel, Daniel Kroening, kroening@kroening.com
66
77
\*******************************************************************/
88

9-
#include <limits>
10-
119
#include "symex_bmc_incremental_one_loop.h"
1210

1311
#include <util/structured_data.h>
1412

15-
#include <goto-instrument/unwindset.h>
13+
#include <goto-programs/unwindset.h>
14+
15+
#include <limits>
1616

1717
symex_bmc_incremental_one_loopt::symex_bmc_incremental_one_loopt(
1818
message_handlert &message_handler,

src/goto-instrument/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ SRC = accelerate/accelerate.cpp \
9999
undefined_functions.cpp \
100100
uninitialized.cpp \
101101
unwind.cpp \
102-
unwindset.cpp \
103102
value_set_fi_fp_removal.cpp \
104103
wmm/abstract_event.cpp \
105104
wmm/cycle_collection.cpp \

src/goto-instrument/contracts/contracts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ Date: February 2016
2727
#include <goto-programs/goto_inline.h>
2828
#include <goto-programs/goto_program.h>
2929
#include <goto-programs/remove_skip.h>
30+
#include <goto-programs/unwindset.h>
3031

3132
#include <analyses/local_may_alias.h>
3233
#include <ansi-c/c_expr.h>
3334
#include <goto-instrument/havoc_utils.h>
3435
#include <goto-instrument/nondet_static.h>
3536
#include <goto-instrument/unwind.h>
36-
#include <goto-instrument/unwindset.h>
3737
#include <langapi/language_util.h>
3838

3939
#include "cfg_info.h"

0 commit comments

Comments
 (0)