Skip to content

Fixed test cases slice02 and slice14 from goto-instrument regression #630

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

Merged
merged 1 commit into from
Mar 15, 2017
Merged
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
2 changes: 1 addition & 1 deletion regression/goto-instrument/slice02/test.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KNOWNBUG
CORE
main.c
--pointer-check --full-slice
^EXIT=0$
Expand Down
2 changes: 1 addition & 1 deletion regression/goto-instrument/slice14/test.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KNOWNBUG
CORE
main.c
--pointer-check --full-slice
^EXIT=10$
Expand Down
15 changes: 8 additions & 7 deletions src/cbmc/cbmc_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,13 +900,6 @@ bool cbmc_parse_optionst::process_goto_program(
// Similar removal of RTTI inspection:
remove_instanceof(symbol_table, goto_functions);

// full slice?
if(cmdline.isset("full-slice"))
{
status() << "Performing a full slice" << eom;
full_slicer(goto_functions, ns);
}

// do partial inlining
status() << "Partial Inlining" << eom;
goto_partial_inline(goto_functions, ns, ui_message_handler);
Expand All @@ -920,6 +913,14 @@ bool cbmc_parse_optionst::process_goto_program(
// add generic checks
status() << "Generic Property Instrumentation" << eom;
goto_check(ns, options, goto_functions);

// full slice?
if(cmdline.isset("full-slice"))
{
status() << "Performing a full slice" << eom;
full_slicer(goto_functions, ns);
}

// checks don't know about adjusted float expressions
adjust_float_expressions(goto_functions, ns);

Expand Down
1 change: 1 addition & 0 deletions src/goto-instrument/goto_instrument_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,7 @@ void goto_instrument_parse_optionst::instrument_goto_program()
// full slice?
if(cmdline.isset("full-slice"))
{
remove_returns(symbol_table, goto_functions);
do_indirect_call_and_rtti_removal();

status() << "Performing a full slice" << eom;
Expand Down