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 f173f21 commit 1a47fcaCopy full SHA for 1a47fca
src/analyses/constant_propagator.cpp
@@ -269,10 +269,18 @@ bool constant_propagator_domaint::ai_simplify(
269
exprt &condition,
270
const namespacet &ns) const
271
{
272
- bool b=values.replace_const.replace(condition);
273
- b&=simplify(condition, ns);
+ bool no_change = true;
274
275
- return b;
+ while(!values.replace_const.replace(condition))
+ {
276
+ no_change = false;
277
+ simplify(condition, ns);
278
+ }
279
+
280
+ if(no_change)
281
+ no_change &= simplify(condition, ns);
282
283
+ return no_change;
284
}
285
286
0 commit comments