3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-06-12 19:44:56 -07:00
parent 1ff08c45ce
commit 9566d379d6
13 changed files with 423 additions and 86 deletions

View file

@ -673,6 +673,15 @@ bool model_evaluator::is_true(expr_ref_vector const& ts) {
return true;
}
bool model_evaluator::are_equal(expr* s, expr* t) {
if (m().are_equal(s, t)) return true;
if (m().are_distinct(s, t)) return false;
expr_ref t1(m()), t2(m());
eval(t, t1, true);
eval(s, t2, true);
return m().are_equal(t1, t2);
}
bool model_evaluator::eval(expr* t, expr_ref& r, bool model_completion) {
set_model_completion(model_completion);
try {

View file

@ -55,6 +55,8 @@ public:
bool is_true(expr * t);
bool is_false(expr * t);
bool is_true(expr_ref_vector const& ts);
bool are_equal(expr* s, expr* t);
void set_solver(expr_solver* solver);
bool has_solver();