File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 29
29
30
30
// #define DEBUGX
31
31
32
- #ifdef DEBUGX
32
+ // #ifdef DEBUGX
33
33
#include " format_expr.h"
34
34
#include < iostream>
35
- #endif
35
+ // #endif
36
36
37
37
#include " simplify_expr_class.h"
38
38
@@ -2312,7 +2312,27 @@ bool simplify_exprt::simplify_rec(exprt &expr)
2312
2312
2313
2313
if (!result)
2314
2314
{
2315
- POSTCONDITION (type_eq (tmp.type (), expr.type (), ns));
2315
+ #if 0
2316
+ if(tmp.type().id() == ID_pointer && expr.type().id() == ID_pointer)
2317
+ {
2318
+ const pointer_typet &old_type = to_pointer_type(expr.type());
2319
+ const pointer_typet &new_type = to_pointer_type(tmp.type());
2320
+ POSTCONDITION(old_type.get_width() == new_type.get_width());
2321
+ POSTCONDITION(type_eq(old_type.subtype(), new_type.subtype(), ns));
2322
+ }
2323
+ else
2324
+ {
2325
+ #endif
2326
+ if (tmp.type () != expr.type ())
2327
+ {
2328
+ std::cerr << " expr=" << expr.pretty () << std::endl;
2329
+ std::cerr << " tmp=" << tmp.pretty () << std::endl;
2330
+ std::cerr << " AFTER SIMP: " << expr.id () << " to " << tmp.id () << std::endl;
2331
+ }
2332
+ POSTCONDITION (type_eq (tmp.type (), expr.type (), ns));
2333
+ POSTCONDITION (tmp.type () == expr.type ());
2334
+ // }
2335
+ // POSTCONDITION(type_eq(tmp.type(), expr.type(), ns));
2316
2336
expr.swap (tmp);
2317
2337
2318
2338
#ifdef USE_CACHE
You can’t perform that action at this time.
0 commit comments