Skip to content

Incremental unwinding of one specified loop #4361

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

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions src/goto-symex/goto_symex.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ class goto_symext
/// symbolic execution from that state.
bool should_pause_symex;

/// If this flag is set to true then assertions will be temporarily ignored
/// by the symbolic executions.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly does "ignored" mean? Any why is this ever the right thing to do?

bool ignore_assertions = false;

protected:
/// The configuration to use for this symbolic execution
const symex_configt symex_config;
Expand Down
2 changes: 1 addition & 1 deletion src/goto-symex/symex_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ void goto_symext::execute_next_instruction(
break;

case ASSERT:
if(!state.guard.is_false())
if(!state.guard.is_false() && !ignore_assertions)
symex_assert(instruction, state);
symex_transition(state);
break;
Expand Down