Skip to content

Commit 9b3eea0

Browse files
committed
Do not add __CPROVER variables to counterexample
Signed-off-by: František Nečas <[email protected]>
1 parent cd95f2b commit 9b3eea0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ssa/ssa_build_goto_trace.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,6 @@ bool ssa_build_goto_tracet::record_step(
168168

169169
case ASSIGN:
170170
{
171-
if(has_prefix(
172-
id2string(unwindable_local_SSA.function_identifier),
173-
CPROVER_PREFIX))
174-
break;
175-
176171
const code_assignt &code_assign=
177172
to_code_assign(current_pc->code);
178173

@@ -182,6 +177,8 @@ bool ssa_build_goto_tracet::record_step(
182177
exprt rhs_simplified=simplify_expr(rhs_value, unwindable_local_SSA.ns);
183178
exprt lhs_ssa=finalize_lhs(code_assign.lhs());
184179
exprt lhs_simplified=simplify_expr(lhs_ssa, unwindable_local_SSA.ns);
180+
if(from_expr(lhs_simplified).find(CPROVER_PREFIX)!=std::string::npos)
181+
break;
185182

186183
#if 0
187184
std::cout << "ASSIGN "

0 commit comments

Comments
 (0)