mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
local changes
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
This commit is contained in:
parent
4d8af9191c
commit
cb00555635
5 changed files with 18 additions and 6 deletions
|
@ -1411,6 +1411,10 @@ namespace smt {
|
|||
|
||||
void context::mk_th_axiom(theory_id tid, unsigned num_lits, literal * lits, unsigned num_params, parameter * params) {
|
||||
justification * js = 0;
|
||||
TRACE("mk_th_axiom",
|
||||
display_literals_verbose(tout, num_lits, lits);
|
||||
tout << "\n";);
|
||||
|
||||
if (m_manager.proofs_enabled()) {
|
||||
js = mk_justification(theory_axiom_justification(tid, m_region, num_lits, lits, num_params, params));
|
||||
}
|
||||
|
@ -1425,13 +1429,11 @@ namespace smt {
|
|||
|
||||
void context::mk_th_axiom(theory_id tid, literal l1, literal l2, unsigned num_params, parameter * params) {
|
||||
literal ls[2] = { l1, l2 };
|
||||
TRACE("mk_th_axiom", display_literal(tout, l1); tout << " "; display_literal(tout, l2); tout << "\n";);
|
||||
mk_th_axiom(tid, 2, ls, num_params, params);
|
||||
}
|
||||
|
||||
void context::mk_th_axiom(theory_id tid, literal l1, literal l2, literal l3, unsigned num_params, parameter * params) {
|
||||
literal ls[3] = { l1, l2, l3 };
|
||||
TRACE("mk_th_axiom", display_literal(tout, l1); tout << " "; display_literal(tout, l2); tout << " "; display_literal(tout, l3); tout << "\n";);
|
||||
mk_th_axiom(tid, 3, ls, num_params, params);
|
||||
}
|
||||
|
||||
|
|
|
@ -439,6 +439,7 @@ namespace smt {
|
|||
j += rational(1);
|
||||
}
|
||||
ctx.mk_th_axiom(get_id(), lits.size(), lits.begin());
|
||||
|
||||
#else
|
||||
// performs slightly worse.
|
||||
literal_buffer lits;
|
||||
|
@ -2788,6 +2789,7 @@ namespace smt {
|
|||
tout << " --> ";
|
||||
ctx.display_detailed_literal(tout, l);
|
||||
tout << "\n";);
|
||||
SASSERT(false);
|
||||
if (ante.lits().size() < small_lemma_size() && ante.eqs().empty()) {
|
||||
literal_vector & lits = m_tmp_literal_vector2;
|
||||
lits.reset();
|
||||
|
|
|
@ -1061,6 +1061,7 @@ namespace smt {
|
|||
}
|
||||
if (!failed) {
|
||||
m_solver.assert_eq(as.size(), as.c_ptr(), xs.c_ptr(), c, j);
|
||||
TRACE("euclidean_solver", tout << "add definition: v" << v << " := " << mk_ismt2_pp(n, t.get_manager()) << "\n";);
|
||||
}
|
||||
else {
|
||||
TRACE("euclidean_solver", tout << "failed for:\n" << mk_ismt2_pp(n, t.get_manager()) << "\n";);
|
||||
|
@ -1191,7 +1192,8 @@ namespace smt {
|
|||
if (l != 0) {
|
||||
rational l_old = l->get_value().get_rational().to_rational();
|
||||
rational l_new = g*ceil((l_old - c2)/g) + c2;
|
||||
TRACE("euclidean_solver_new", tout << "new lower: " << l_new << " old: " << l_old << "\n";);
|
||||
TRACE("euclidean_solver_new", tout << "new lower: " << l_new << " old: " << l_old << "\n";
|
||||
tout << "c: " << c2 << " ceil((l_old - c2)/g): " << (ceil((l_old - c2)/g)) << "\n";);
|
||||
if (l_new > l_old) {
|
||||
propagated = true;
|
||||
mk_lower(v, l_new, l, m_js);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue