mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
move functionality from qe_util to ast_util
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7b918e83c3
commit
3de2a70a48
25 changed files with 174 additions and 161 deletions
|
@ -6,6 +6,7 @@ Copyright (c) 2015 Microsoft Corporation
|
|||
|
||||
#include "karr_relation.h"
|
||||
#include "bool_rewriter.h"
|
||||
#include "ast_util.h"
|
||||
|
||||
namespace datalog {
|
||||
class karr_relation : public relation_base {
|
||||
|
@ -114,7 +115,7 @@ namespace datalog {
|
|||
var* v, *w;
|
||||
rational n1, n2;
|
||||
expr_ref_vector conjs(m);
|
||||
qe::flatten_and(cond, conjs);
|
||||
flatten_and(cond, conjs);
|
||||
matrix& M = get_ineqs();
|
||||
unsigned num_columns = get_signature().size();
|
||||
|
||||
|
|
|
@ -648,7 +648,7 @@ namespace datalog {
|
|||
ast_manager& m = get_plugin().get_ast_manager();
|
||||
expr_ref_vector conds(m), guards(m), rests(m);
|
||||
conds.push_back(cond);
|
||||
qe::flatten_and(conds);
|
||||
flatten_and(conds);
|
||||
for (unsigned i = 0; i < conds.size(); ++i) {
|
||||
expr* g = conds[i].get();
|
||||
if (is_guard(g)) {
|
||||
|
@ -667,7 +667,7 @@ namespace datalog {
|
|||
ast_manager& m = get_plugin().get_ast_manager();
|
||||
expr_ref_vector conds(m);
|
||||
conds.push_back(g);
|
||||
qe::flatten_and(conds);
|
||||
flatten_and(conds);
|
||||
expr* e1, *e2;
|
||||
for (unsigned i = 0; i < conds.size(); ++i) {
|
||||
expr* g = conds[i].get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue