Skip to content

Commit 92004d6

Browse files
committed
fix for ignored assignments
1 parent fc441a4 commit 92004d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cprover/state_encoding.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,13 @@ void state_encodingt::operator()(
282282
auto rhs = loc->assign_rhs();
283283
if(lhs.type().id() == ID_array)
284284
{
285+
// skip
286+
dest << equal_exprt(out_state_expr(loc), in_state_expr(loc));
285287
}
286288
else if(lhs.type().id() == ID_struct_tag)
287289
{
290+
// skip
291+
dest << equal_exprt(out_state_expr(loc), in_state_expr(loc));
288292
}
289293
else
290294
dest << assignment_constraint(loc, std::move(lhs), std::move(rhs));

0 commit comments

Comments
 (0)