3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-14 06:45:25 +00:00

move functionality from qe_util to ast_util

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-06-23 14:33:45 +02:00
parent 5f484c069b
commit bf5419d44a
25 changed files with 174 additions and 161 deletions

View file

@ -31,6 +31,7 @@ Revision History:
#include "matcher.h"
#include "scoped_proof.h"
#include "fixedpoint_params.hpp"
#include "ast_util.h"
namespace tb {
@ -210,7 +211,7 @@ namespace tb {
fmls.push_back(m_predicates[i]);
}
fmls.push_back(m_constraint);
qe::flatten_and(fmls);
flatten_and(fmls);
bool_rewriter(m).mk_and(fmls.size(), fmls.c_ptr(), fml);
return fml;
}
@ -341,7 +342,7 @@ namespace tb {
expr_ref tmp(m);
substitution subst(m);
subst.reserve(1, get_num_vars());
qe::flatten_and(m_constraint, fmls);
flatten_and(m_constraint, fmls);
unsigned num_fmls = fmls.size();
for (unsigned i = 0; i < num_fmls; ++i) {
if (get_subst(rw, subst, i, fmls)) {
@ -668,7 +669,7 @@ namespace tb {
m_qe(m_empty_set, false, fmls);
qe::flatten_and(fmls);
flatten_and(fmls);
for (unsigned i = 0; i < fmls.size(); ++i) {
expr_ref n = normalize(fmls[i].get());
if (m_sat_lits.contains(n)) {