Skip to content

Commit 10b48f5

Browse files
author
Daniel Kroening
authored
Merge pull request #1099 from tautschnig/mult-constant-prop
Do not constant propagate multiplication unconditionally
2 parents ee1e5b0 + 2cb56f6 commit 10b48f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/goto-symex/goto_symex_state.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,12 @@ bool goto_symex_statet::constant_propagation(const exprt &expr) const
125125
{
126126
// propagate stuff with sizeof in it
127127
forall_operands(it, expr)
128+
{
128129
if(it->find(ID_C_c_sizeof_type).is_not_nil())
129130
return true;
131+
else if(!constant_propagation(*it))
132+
return false;
133+
}
130134

131135
return true;
132136
}

0 commit comments

Comments
 (0)