Skip to content

Commit 1a9dfc5

Browse files
inherit weights
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 784e272 commit 1a9dfc5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ast/ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ quantifier::quantifier(unsigned num_decls, sort * const * decl_sorts, symbol con
401401
m_expr(body),
402402
m_sort(s),
403403
m_depth(::get_depth(body) + 1),
404-
m_weight(0),
404+
m_weight(1),
405405
m_has_unused_vars(true),
406406
m_has_labels(::has_labels(body)),
407407
m_qid(symbol()),

src/tactic/arith/purify_arith_tactic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ struct purify_arith_proc {
740740
scoped_ptr<expr_replacer> replacer = mk_default_expr_replacer(m());
741741
replacer->set_substitution(&subst);
742742
(*replacer)(new_body, new_body);
743-
new_body = m().mk_exists(num_vars, sorts.c_ptr(), names.c_ptr(), new_body);
743+
new_body = m().mk_exists(num_vars, sorts.c_ptr(), names.c_ptr(), new_body, q->get_weight());
744744
result = m().update_quantifier(q, new_body);
745745
if (m_produce_proofs) {
746746
proof_ref_vector & cnstr_prs = r.cfg().m_new_cnstr_prs;

src/tactic/core/reduce_invertible_tactic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class reduce_invertible_tactic : public tactic {
469469
}
470470
if (has_new_var) {
471471
sub(new_body, result);
472-
result = m.mk_quantifier(old_q->get_kind(), new_sorts.size(), new_sorts.c_ptr(), old_q->get_decl_names(), result);
472+
result = m.mk_quantifier(old_q->get_kind(), new_sorts.size(), new_sorts.c_ptr(), old_q->get_decl_names(), result, old_q->get_weight());
473473
result_pr = nullptr;
474474
return true;
475475
}

0 commit comments

Comments
 (0)