We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 985f1a7 commit a3bb7b9Copy full SHA for a3bb7b9
src/goto-symex/goto_symex_state.cpp
@@ -154,7 +154,8 @@ Function: goto_symex_statet::constant_propagation
154
155
bool goto_symex_statet::constant_propagation(const exprt &expr) const
156
{
157
- if(expr.is_constant())
+ if(expr.is_constant() ||
158
+ expr.id()==ID_nondet_symbol)
159
return true;
160
161
if(expr.id()==ID_address_of)
@@ -271,7 +272,10 @@ bool goto_symex_statet::constant_propagation_reference(const exprt &expr) const
271
272
273
return constant_propagation_reference(expr.op0());
274
}
- else if(expr.id()==ID_string_constant)
275
+ else if(expr.id()==ID_string_constant ||
276
+ expr.id()==ID_array ||
277
+ expr.id()==ID_struct ||
278
+ expr.id()==ID_union)
279
280
281
return false;
0 commit comments