mirror of
https://github.com/Z3Prover/z3
synced 2025-09-05 01:27:41 +00:00
move functionality from qe_util to ast_util
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5f484c069b
commit
bf5419d44a
25 changed files with 174 additions and 161 deletions
|
@ -55,7 +55,7 @@ Example from Boogie:
|
|||
#include "model_pp.h"
|
||||
#include "proof_utils.h"
|
||||
#include "ast_pp.h"
|
||||
#include "qe_util.h"
|
||||
#include "ast_util.h"
|
||||
|
||||
namespace datalog {
|
||||
|
||||
|
@ -97,7 +97,7 @@ namespace datalog {
|
|||
if (!m.is_implies(premise, l1, l2)) {
|
||||
continue;
|
||||
}
|
||||
qe::flatten_and(l1, literals);
|
||||
flatten_and(l1, literals);
|
||||
positions2.reset();
|
||||
premises2.reset();
|
||||
premises2.push_back(premise);
|
||||
|
|
|
@ -259,7 +259,7 @@ namespace datalog {
|
|||
if (m.is_implies(fml, e1, e2)) {
|
||||
m_args.reset();
|
||||
head = ensure_app(e2);
|
||||
qe::flatten_and(e1, m_args);
|
||||
flatten_and(e1, m_args);
|
||||
for (unsigned i = 0; i < m_args.size(); ++i) {
|
||||
body.push_back(ensure_app(m_args[i].get()));
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ namespace datalog {
|
|||
for (unsigned i = 0; i < body.size(); ++i) {
|
||||
r.push_back(body[i].get());
|
||||
}
|
||||
qe::flatten_and(r);
|
||||
flatten_and(r);
|
||||
body.reset();
|
||||
for (unsigned i = 0; i < r.size(); ++i) {
|
||||
body.push_back(ensure_app(r[i].get()));
|
||||
|
|
|
@ -53,6 +53,7 @@ Notes:
|
|||
#include"cooperate.h"
|
||||
#include"ast_pp.h"
|
||||
#include"quant_hoist.h"
|
||||
#include"ast_util.h"
|
||||
#include"dl_util.h"
|
||||
#include"for_each_ast.h"
|
||||
#include"for_each_expr.h"
|
||||
|
@ -247,7 +248,7 @@ private:
|
|||
m_body.push_back(e1);
|
||||
head = e2;
|
||||
}
|
||||
qe::flatten_and(m_body);
|
||||
flatten_and(m_body);
|
||||
if (premise) {
|
||||
p = m.mk_rewrite(fml0, mk_implies(m_body, head));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue