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 11
11
#include < cassert>
12
12
#include < unordered_set>
13
13
14
+ #include < solvers/prop/bdd_expr.h>
15
+
14
16
#include " expr.h"
15
17
#include " namespace.h"
18
+ #include " simplify_utils.h"
16
19
#include " std_expr.h"
17
20
18
21
bool simplify_exprt::simplify_boolean (exprt &expr)
@@ -79,6 +82,21 @@ bool simplify_exprt::simplify_boolean(exprt &expr)
79
82
if (operands.empty ())
80
83
return true ;
81
84
85
+ #if 0
86
+ bdd_exprt t(ns);
87
+ t.from_expr(expr);
88
+ exprt tmp=t.as_expr();
89
+ sort_and_join(tmp);
90
+
91
+ if(tmp!=expr)
92
+ {
93
+ expr.swap(tmp);
94
+ return false;
95
+ }
96
+
97
+ return true;
98
+ #else
99
+
82
100
bool result=true ;
83
101
84
102
exprt::operandst::const_iterator last;
@@ -183,6 +201,7 @@ bool simplify_exprt::simplify_boolean(exprt &expr)
183
201
}
184
202
185
203
return result;
204
+ #endif
186
205
}
187
206
188
207
return true ;
You can’t perform that action at this time.
0 commit comments