File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1067,7 +1067,7 @@ bool simplify_exprt::simplify_if_preorder(if_exprt &expr)
1067
1067
result=false ;
1068
1068
}
1069
1069
1070
- # if 0
1070
+ # ifdef USE_LOCAL_REPLACE_MAP
1071
1071
replace_mapt map_before (local_replace_map);
1072
1072
1073
1073
// a ? b : c --> a ? b[a/true] : c
@@ -1109,10 +1109,10 @@ bool simplify_exprt::simplify_if_preorder(if_exprt &expr)
1109
1109
result=simplify_rec (falsevalue) && result;
1110
1110
1111
1111
local_replace_map.swap (map_before);
1112
- #else
1112
+ #else
1113
1113
result=simplify_rec (truevalue) && result;
1114
1114
result=simplify_rec (falsevalue) && result;
1115
- #endif
1115
+ #endif
1116
1116
}
1117
1117
else
1118
1118
{
@@ -2382,6 +2382,7 @@ bool simplify_exprt::simplify_rec(exprt &expr)
2382
2382
if (!simplify_node (tmp))
2383
2383
result=false ;
2384
2384
2385
+ #ifdef USE_LOCAL_REPLACE_MAP
2385
2386
#if 1
2386
2387
replace_mapt::const_iterator it=local_replace_map.find (tmp);
2387
2388
if (it!=local_replace_map.end ())
@@ -2397,6 +2398,7 @@ bool simplify_exprt::simplify_rec(exprt &expr)
2397
2398
result=false;
2398
2399
}
2399
2400
#endif
2401
+ #endif
2400
2402
2401
2403
if (!result)
2402
2404
{
Original file line number Diff line number Diff line change 19
19
20
20
#include " type.h"
21
21
#include " mp_arith.h"
22
+ // #define USE_LOCAL_REPLACE_MAP
23
+ #ifdef USE_LOCAL_REPLACE_MAP
22
24
#include " replace_expr.h"
25
+ #endif
23
26
24
27
class bswap_exprt ;
25
28
class byte_extract_exprt ;
@@ -154,7 +157,9 @@ class simplify_exprt
154
157
#ifdef DEBUG_ON_DEMAND
155
158
bool debug_on;
156
159
#endif
160
+ #ifdef USE_LOCAL_REPLACE_MAP
157
161
replace_mapt local_replace_map;
162
+ #endif
158
163
};
159
164
160
165
#endif // CPROVER_UTIL_SIMPLIFY_EXPR_CLASS_H
You can’t perform that action at this time.
0 commit comments