Skip to content

Commit 23853fe

Browse files
committed
Symex: Simplify left-hand side
With #7622 we may have syntactically changed the type on the right-hand side via simplification. To maintain syntactic type equality we need to apply simplifications on the left-hand side as well. See https://github.com/awslabs/aws-c-common/actions/runs/4822448417 for an example where this failed after #7622.
1 parent fa60087 commit 23853fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-symex/goto_symex_state.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ renamedt<ssa_exprt, L2> goto_symex_statet::assignment(
8484

8585
// the type might need renaming
8686
rename<L2>(lhs.type(), l1_identifier, ns);
87+
if(rhs_is_simplified)
88+
simplify(lhs, ns);
8789
lhs.update_type();
8890
if(run_validation_checks)
8991
{

0 commit comments

Comments
 (0)