Skip to content

Move unwindset.{h,cpp} to goto-programs #8645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion jbmc/src/jbmc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ OBJ += ../$(CPROVER_DIR)/src/ansi-c/ansi-c$(LIBEXT) \
../$(CPROVER_DIR)/src/goto-instrument/cover_instrument_mcdc$(OBJEXT) \
../$(CPROVER_DIR)/src/goto-instrument/cover_instrument_other$(OBJEXT) \
../$(CPROVER_DIR)/src/goto-instrument/cover_util$(OBJEXT) \
../$(CPROVER_DIR)/src/goto-instrument/unwindset$(OBJEXT) \
../$(CPROVER_DIR)/src/analyses/analyses$(LIBEXT) \
../$(CPROVER_DIR)/src/langapi/langapi$(LIBEXT) \
../$(CPROVER_DIR)/src/xmllang/xmllang$(LIBEXT) \
Expand Down
1 change: 0 additions & 1 deletion jbmc/unit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ CPROVER_LIBS =../src/java_bytecode/java_bytecode$(LIBEXT) \
$(CPROVER_DIR)/src/goto-instrument/reachability_slicer$(OBJEXT) \
$(CPROVER_DIR)/src/goto-instrument/nondet_static$(OBJEXT) \
$(CPROVER_DIR)/src/goto-instrument/full_slicer$(OBJEXT) \
$(CPROVER_DIR)/src/goto-instrument/unwindset$(OBJEXT) \
$(CPROVER_DIR)/src/pointer-analysis/pointer-analysis$(LIBEXT) \
$(CPROVER_DIR)/src/langapi/langapi$(LIBEXT) \
$(CPROVER_DIR)/src/xmllang/xmllang$(LIBEXT) \
Expand Down
1 change: 0 additions & 1 deletion src/cbmc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ OBJ += ../ansi-c/ansi-c$(LIBEXT) \
../goto-instrument/reachability_slicer$(OBJEXT) \
../goto-instrument/nondet_static$(OBJEXT) \
../goto-instrument/full_slicer$(OBJEXT) \
../goto-instrument/unwindset$(OBJEXT) \
../analyses/analyses$(LIBEXT) \
../langapi/langapi$(LIBEXT) \
../xmllang/xmllang$(LIBEXT) \
Expand Down
2 changes: 1 addition & 1 deletion src/goto-checker/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ add_library(goto-checker ${sources})

generic_includes(goto-checker)

target_link_libraries(goto-checker goto-programs goto-symex solvers util xml goto-instrument-lib)
target_link_libraries(goto-checker goto-programs goto-symex solvers util xml)
3 changes: 2 additions & 1 deletion src/goto-checker/bmc_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ Author: Daniel Kroening, Peter Schrammel
#ifndef CPROVER_GOTO_CHECKER_BMC_UTIL_H
#define CPROVER_GOTO_CHECKER_BMC_UTIL_H

#include <goto-instrument/unwindset.h>
#include <goto-programs/unwindset.h>

#include <goto-symex/build_goto_trace.h>

#include "incremental_goto_checker.h"
Expand Down
1 change: 0 additions & 1 deletion src/goto-checker/module_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
assembler
cbmc # symex_bmc will be moved next
goto-checker
goto-instrument
goto-programs
goto-symex
langapi
Expand Down
5 changes: 2 additions & 3 deletions src/goto-checker/multi_path_symex_only_checker.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ Author: Daniel Kroening, Peter Schrammel
#ifndef CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_ONLY_CHECKER_H
#define CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_ONLY_CHECKER_H

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

#include <goto-symex/path_storage.h>

#include <goto-instrument/unwindset.h>

#include "incremental_goto_checker.h"
#include "symex_bmc.h"

class multi_path_symex_only_checkert : public incremental_goto_checkert
Expand Down
4 changes: 2 additions & 2 deletions src/goto-checker/single_loop_incremental_symex_checker.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Author: Daniel Kroening, Peter Schrammel
#ifndef CPROVER_GOTO_CHECKER_SINGLE_LOOP_INCREMENTAL_SYMEX_CHECKER_H
#define CPROVER_GOTO_CHECKER_SINGLE_LOOP_INCREMENTAL_SYMEX_CHECKER_H

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

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

#include "goto_symex_property_decider.h"
#include "goto_trace_provider.h"
Expand Down
3 changes: 2 additions & 1 deletion src/goto-checker/single_path_symex_only_checker.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ Author: Daniel Kroening, Peter Schrammel
#ifndef CPROVER_GOTO_CHECKER_SINGLE_PATH_SYMEX_ONLY_CHECKER_H
#define CPROVER_GOTO_CHECKER_SINGLE_PATH_SYMEX_ONLY_CHECKER_H

#include <goto-instrument/unwindset.h>
#include <goto-programs/unwindset.h>

#include <goto-symex/path_storage.h>

#include "incremental_goto_checker.h"
Expand Down
6 changes: 3 additions & 3 deletions src/goto-checker/symex_bmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Author: Daniel Kroening, [email protected]

#include "symex_bmc.h"

#include <limits>

#include <util/simplify_expr.h>
#include <util/source_location.h>

#include <goto-instrument/unwindset.h>
#include <goto-programs/unwindset.h>

#include <limits>

symex_bmct::symex_bmct(
message_handlert &mh,
Expand Down
6 changes: 3 additions & 3 deletions src/goto-checker/symex_bmc_incremental_one_loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ Author: Peter Schrammel, Daniel Kroening, [email protected]

\*******************************************************************/

#include <limits>

#include "symex_bmc_incremental_one_loop.h"

#include <util/structured_data.h>

#include <goto-instrument/unwindset.h>
#include <goto-programs/unwindset.h>

#include <limits>

symex_bmc_incremental_one_loopt::symex_bmc_incremental_one_loopt(
message_handlert &message_handler,
Expand Down
1 change: 0 additions & 1 deletion src/goto-instrument/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ SRC = accelerate/accelerate.cpp \
undefined_functions.cpp \
uninitialized.cpp \
unwind.cpp \
unwindset.cpp \
value_set_fi_fp_removal.cpp \
wmm/abstract_event.cpp \
wmm/cycle_collection.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/goto-instrument/contracts/contracts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Date: February 2016
#include <goto-programs/goto_inline.h>
#include <goto-programs/goto_program.h>
#include <goto-programs/remove_skip.h>
#include <goto-programs/unwindset.h>

#include <analyses/local_may_alias.h>
#include <ansi-c/c_expr.h>
#include <goto-instrument/havoc_utils.h>
#include <goto-instrument/nondet_static.h>
#include <goto-instrument/unwind.h>
#include <goto-instrument/unwindset.h>
#include <langapi/language_util.h>

#include "cfg_info.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ Author: Remi Delmas, [email protected]

#include <goto-programs/goto_model.h>
#include <goto-programs/remove_skip.h>
#include <goto-programs/unwindset.h>

#include <ansi-c/c_expr.h>
#include <ansi-c/c_object_factory_parameters.h>
#include <goto-instrument/contracts/utils.h>
#include <goto-instrument/generate_function_bodies.h>
#include <goto-instrument/unwind.h>
#include <goto-instrument/unwindset.h>
#include <langapi/language_util.h>

#include "dfcc_cfg_info.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ Author: Remi Delmas, [email protected]

#include <goto-programs/goto_function.h>
#include <goto-programs/goto_model.h>
#include <goto-programs/unwindset.h>

#include <ansi-c/c_expr.h>
#include <ansi-c/c_object_factory_parameters.h>
#include <ansi-c/cprover_library.h>
#include <ansi-c/goto-conversion/goto_convert_functions.h>
#include <goto-instrument/generate_function_bodies.h>
#include <goto-instrument/unwind.h>
#include <goto-instrument/unwindset.h>
#include <linking/static_lifetime_init.h>

#include "dfcc_utils.h"
Expand Down
2 changes: 1 addition & 1 deletion src/goto-instrument/goto_instrument_parse_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Author: Daniel Kroening, [email protected]
#include <goto-programs/restrict_function_pointers.h>
#include <goto-programs/show_goto_functions.h>
#include <goto-programs/show_properties.h>
#include <goto-programs/unwindset.h>

#include <ansi-c/ansi_c_language.h>
#include <ansi-c/goto-conversion/goto_check_c.h>
Expand All @@ -39,7 +40,6 @@ Author: Daniel Kroening, [email protected]
#include "reachability_slicer.h"
#include "replace_calls.h"
#include "uninitialized.h"
#include "unwindset.h"

#include "contracts/contracts.h"
#include "contracts/contracts_wrangler.h"
Expand Down
3 changes: 1 addition & 2 deletions src/goto-instrument/unwind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Author: Daniel Kroening, [email protected]
#include <util/std_expr.h>

#include <goto-programs/goto_functions.h>

#include "unwindset.h"
#include <goto-programs/unwindset.h>

void goto_unwindt::copy_segment(
const goto_programt::const_targett start,
Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ SRC = adjust_float_expressions.cpp \
string_abstraction.cpp \
structured_trace_util.cpp \
system_library_symbols.cpp \
unwindset.cpp \
validate_code.cpp \
validate_goto_model.cpp \
vcd_goto_trace.cpp \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <util/symbol_table.h>
#include <util/unicode.h>

#include <goto-programs/abstract_goto_model.h>
#include "abstract_goto_model.h"

#include <algorithm>
#include <fstream>
Expand Down Expand Up @@ -216,7 +216,7 @@
std::ifstream file(widen_if_needed(file_name));

if(!file)
throw "cannot open file "+file_name;
throw "cannot open file " + file_name;

Check warning on line 219 in src/goto-programs/unwindset.cpp

View check run for this annotation

Codecov / codecov/patch

src/goto-programs/unwindset.cpp#L219

Added line #L219 was not covered by tests

std::stringstream buffer;
buffer << file.rdbuf();
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/goto-synthesizer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ OBJ += ../ansi-c/ansi-c$(LIBEXT) \
../goto-instrument/loop_utils$(OBJEXT) \
../goto-instrument/nondet_static$(OBJEXT) \
../goto-instrument/unwind$(OBJEXT) \
../goto-instrument/unwindset$(OBJEXT) \
../goto-symex/goto-symex$(LIBEXT) \
../json/json$(LIBEXT) \
../langapi/langapi$(LIBEXT) \
Expand Down
1 change: 0 additions & 1 deletion src/libcprover-cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ OBJ += \
../goto-instrument/nondet_static$(OBJEXT) \
../goto-instrument/reachability_slicer$(OBJEXT) \
../goto-instrument/source_lines$(OBJEXT) \
../goto-instrument/unwindset$(OBJEXT) \
../goto-programs/goto-programs$(LIBEXT) \
../goto-symex/goto-symex$(LIBEXT) \
../json-symtab-language/json-symtab-language$(LIBEXT) \
Expand Down
1 change: 0 additions & 1 deletion unit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ BMC_DEPS =../src/cbmc/c_test_input_generator$(OBJEXT) \
../src/goto-instrument/reachability_slicer$(OBJEXT) \
../src/goto-instrument/nondet_static$(OBJEXT) \
../src/goto-instrument/full_slicer$(OBJEXT) \
../src/goto-instrument/unwindset$(OBJEXT) \
../src/goto-synthesizer/expr_enumerator$(OBJEXT) \
../src/xmllang/xmllang$(LIBEXT) \
../src/goto-symex/goto-symex$(LIBEXT) \
Expand Down
24 changes: 9 additions & 15 deletions unit/path_strategies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,25 @@ Author: Kareem Khazem <[email protected]>, 2018

\*******************************************************************/

#include <testing-utils/use_catch.h>
#include <util/cmdline.h>
#include <util/config.h>
#include <util/tempfile.h>

#include <path_strategies.h>

#include <fstream>
#include <functional>
#include <string>
#include <goto-programs/unwindset.h>

#include <ansi-c/ansi_c_language.h>

#include <cbmc/cbmc_parse_options.h>

#include <goto-checker/bmc_util.h>
#include <goto-checker/goto_symex_property_decider.h>
#include <goto-checker/symex_bmc.h>

#include <goto-symex/path_storage.h>

#include <goto-instrument/unwindset.h>

#include <langapi/mode.h>
#include <testing-utils/use_catch.h>

#include <util/cmdline.h>
#include <util/config.h>
#include <util/tempfile.h>
#include <fstream>
#include <functional>
#include <path_strategies.h>
#include <string>

// The actual test suite.
//
Expand Down
Loading