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

debugging mc

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-01-19 21:09:52 -08:00
parent c7ee532173
commit e4f29a7b8a
38 changed files with 143 additions and 123 deletions

View file

@ -86,7 +86,7 @@ public:
func_decl_ref_vector const& fns = rw2.fresh_constants();
if (!fns.empty()) {
generic_model_converter* filter = alloc(generic_model_converter, m);
generic_model_converter* filter = alloc(generic_model_converter, m, "card2bv");
for (func_decl* f : fns) filter->hide(f);
g->add(filter);
}

View file

@ -198,7 +198,7 @@ class degree_shift_tactic : public tactic {
SASSERT(!m_var2degree.empty());
generic_model_converter * xmc = 0;
if (m_produce_models) {
xmc = alloc(generic_model_converter, m);
xmc = alloc(generic_model_converter, m, "degree_shift");
mc = xmc;
}
for (auto const& kv : m_var2degree) {

View file

@ -266,7 +266,7 @@ class fix_dl_var_tactic : public tactic {
m_rw.set_substitution(&subst);
if (m_produce_models) {
generic_model_converter * mc = alloc(generic_model_converter, m);
generic_model_converter * mc = alloc(generic_model_converter, m, "fix_dl");
mc->add(var, zero);
g->add(mc);
}

View file

@ -222,7 +222,7 @@ class lia2pb_tactic : public tactic {
ref<generic_model_converter> gmc;
if (m_produce_models) {
gmc = alloc(generic_model_converter, m);
gmc = alloc(generic_model_converter, m, "lia2pb");
}
expr_ref zero(m);

View file

@ -85,7 +85,7 @@ class nla2bv_tactic : public tactic {
TRACE("nla2bv", g.display(tout);
tout << "Muls: " << count_mul(g) << "\n";
);
m_fmc = alloc(generic_model_converter, m_manager);
m_fmc = alloc(generic_model_converter, m_manager, "nla2bv");
m_bounds(g);
collect_power2(g);
if(!collect_vars(g)) {

View file

@ -94,7 +94,7 @@ class normalize_bounds_tactic : public tactic {
generic_model_converter * gmc = 0;
if (produce_models) {
gmc = alloc(generic_model_converter, m);
gmc = alloc(generic_model_converter, m, "normalize_bounds");
in->add(gmc);
}

View file

@ -947,7 +947,7 @@ private:
if (m_produce_models) {
model_converter_ref mc;
generic_model_converter * mc1 = alloc(generic_model_converter, m);
generic_model_converter * mc1 = alloc(generic_model_converter, m, "pb2bv");
for (auto const& kv : m_const2bit)
mc1->hide(kv.m_value);
// store temp int constants in the filter

View file

@ -765,7 +765,7 @@ struct purify_arith_proc {
// add generic_model_converter to eliminate auxiliary variables from model
if (produce_models) {
generic_model_converter * fmc = alloc(generic_model_converter, m());
generic_model_converter * fmc = alloc(generic_model_converter, m(), "purify");
mc = fmc;
obj_map<app, expr*> & f2v = r.cfg().m_app2fresh;
for (auto const& kv : f2v) {
@ -775,7 +775,7 @@ struct purify_arith_proc {
}
}
if (produce_models && !m_sin_cos.empty()) {
generic_model_converter* emc = alloc(generic_model_converter, m());
generic_model_converter* emc = alloc(generic_model_converter, m(), "purify_sin_cos");
mc = concat(mc.get(), emc);
obj_map<app, std::pair<expr*,expr*> >::iterator it = m_sin_cos.begin(), end = m_sin_cos.end();
for (; it != end; ++it) {

View file

@ -325,7 +325,7 @@ class recover_01_tactic : public tactic {
}
if (m_produce_models) {
gmc = alloc(generic_model_converter, m);
gmc = alloc(generic_model_converter, m, "recover_01");
new_goal->add(gmc);
}