File tree 1 file changed +23
-3
lines changed
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
@@ -2306,7 +2306,27 @@ bool simplify_exprt::simplify_rec(exprt &expr)
2306
2306
2307
2307
if (!result)
2308
2308
{
2309
- POSTCONDITION (type_eq (tmp.type (), expr.type (), ns));
2309
+ #if 0
2310
+ if(tmp.type().id() == ID_pointer && expr.type().id() == ID_pointer)
2311
+ {
2312
+ const pointer_typet &old_type = to_pointer_type(expr.type());
2313
+ const pointer_typet &new_type = to_pointer_type(tmp.type());
2314
+ POSTCONDITION(old_type.get_width() == new_type.get_width());
2315
+ POSTCONDITION(type_eq(old_type.subtype(), new_type.subtype(), ns));
2316
+ }
2317
+ else
2318
+ {
2319
+ #endif
2320
+ if (tmp.type () != expr.type ())
2321
+ {
2322
+ std::cerr << " expr=" << expr.pretty () << std::endl;
2323
+ std::cerr << " tmp=" << tmp.pretty () << std::endl;
2324
+ std::cerr << " AFTER SIMP: " << expr.id () << " to " << tmp.id () << std::endl;
2325
+ }
2326
+ POSTCONDITION (type_eq (tmp.type (), expr.type (), ns));
2327
+ POSTCONDITION (tmp.type () == expr.type ());
2328
+ // }
2329
+ // POSTCONDITION(type_eq(tmp.type(), expr.type(), ns));
2310
2330
expr.swap (tmp);
2311
2331
2312
2332
#ifdef USE_CACHE
You can’t perform that action at this time.
0 commit comments