File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2334,20 +2334,22 @@ bool simplify_exprt::simplify_rec(exprt &expr)
2334
2334
exprt tmp=expr;
2335
2335
bool result=true ;
2336
2336
2337
+ if (!tmp.get_bool (ID_C_expr_simplified))
2338
+ {
2337
2339
result=simplify_node_preorder (tmp);
2338
2340
2339
2341
if (!simplify_node (tmp))
2340
2342
result=false ;
2341
2343
2342
- #if 1
2343
2344
replace_mapt::const_iterator it=local_replace_map.find (tmp);
2344
2345
if (it!=local_replace_map.end ())
2345
2346
{
2346
2347
tmp=it->second ;
2347
2348
result=false ;
2348
2349
}
2349
- #else
2350
- if(!local_replace_map.empty() &&
2350
+ }
2351
+ #if 0
2352
+ else if(!local_replace_map.empty() &&
2351
2353
!replace_expr(local_replace_map, tmp))
2352
2354
{
2353
2355
simplify_rec(tmp);
@@ -2357,6 +2359,7 @@ bool simplify_exprt::simplify_rec(exprt &expr)
2357
2359
2358
2360
if (!result)
2359
2361
{
2362
+ tmp.set (ID_C_expr_simplified, true );
2360
2363
expr.swap (tmp);
2361
2364
2362
2365
#ifdef USE_CACHE
You can’t perform that action at this time.
0 commit comments