Skip to content

Add function for reverting formula slicing #4064

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
Feb 4, 2019
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
9 changes: 9 additions & 0 deletions src/goto-symex/slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,12 @@ void simple_slice(symex_target_equationt &equation)
s_it->ignore=true;
}
}

void revert_slice(symex_target_equationt &equation)
{
// set ignore to false
for(auto step : equation.SSA_steps)
{
step.ignore = false;
}
}
3 changes: 3 additions & 0 deletions src/goto-symex/slice.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Author: Daniel Kroening, [email protected]
// slice an equation with respect to the assertions contained therein
void slice(symex_target_equationt &equation);

/// Undo whatever has been done by `slice`
void revert_slice(symex_target_equationt &);

// this simply slices away anything after the last assertion
void simple_slice(symex_target_equationt &equation);

Expand Down