File tree 1 file changed +19
-0
lines changed 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 9
9
#include < cassert>
10
10
#include < unordered_set>
11
11
12
+ #include < solvers/prop/bdd_expr.h>
13
+
12
14
#include " simplify_expr_class.h"
13
15
#include " expr.h"
14
16
#include " namespace.h"
17
+ #include " simplify_utils.h"
15
18
#include " std_expr.h"
16
19
17
20
/* ******************************************************************\
@@ -87,6 +90,21 @@ bool simplify_exprt::simplify_boolean(exprt &expr)
87
90
{
88
91
if (operands.empty ()) return true ;
89
92
93
+ #if 0
94
+ bdd_exprt t(ns);
95
+ t.from_expr(expr);
96
+ exprt tmp=t.as_expr();
97
+ sort_and_join(tmp);
98
+
99
+ if(tmp!=expr)
100
+ {
101
+ expr.swap(tmp);
102
+ return false;
103
+ }
104
+
105
+ return true;
106
+ #else
107
+
90
108
bool result=true ;
91
109
92
110
exprt::operandst::const_iterator last;
@@ -188,6 +206,7 @@ bool simplify_exprt::simplify_boolean(exprt &expr)
188
206
}
189
207
190
208
return result;
209
+ #endif
191
210
}
192
211
193
212
return true ;
You can’t perform that action at this time.
0 commit comments