mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
fix #4794
This commit is contained in:
parent
9156e355d8
commit
12198d13ac
10 changed files with 42 additions and 28 deletions
|
@ -360,11 +360,12 @@ namespace bv {
|
|||
case bv_justification::kind_t::eq2bit:
|
||||
++s_count;
|
||||
// std::cout << "eq2bit " << s_count << "\n";
|
||||
#if 1
|
||||
#if 0
|
||||
if (s_count == 1899) {
|
||||
std::cout << "eq2bit " << mk_bounded_pp(var2expr(c.m_v1), m) << " == " << mk_bounded_pp(var2expr(c.m_v2), m) << "\n";
|
||||
std::cout << mk_bounded_pp(literal2expr(~c.m_antecedent), m, 2) << "\n";
|
||||
std::cout << mk_bounded_pp(literal2expr(c.m_consequent), m, 2) << "\n";
|
||||
std::cout << mk_bounded_pp(literal2expr(~c.m_antecedent), m, 4) << "\n";
|
||||
std::cout << mk_bounded_pp(literal2expr(c.m_consequent), m, 4) << "\n";
|
||||
std::cout << literal2expr(c.m_consequent) << "\n";
|
||||
#if 0
|
||||
solver_ref slv = mk_smt2_solver(m, ctx.s().params());
|
||||
slv->assert_expr(eq);
|
||||
|
@ -779,8 +780,6 @@ namespace bv {
|
|||
}
|
||||
|
||||
sat::justification solver::mk_eq2bit_justification(theory_var v1, theory_var v2, sat::literal c, sat::literal a) {
|
||||
if (v1 == 3202 && v2 == 3404) std::cout << a << " -> " << c << "\n";
|
||||
SASSERT(!(v1 == 3202 && v2 == 3404 && c.var() == 8691));
|
||||
void* mem = get_region().allocate(bv_justification::get_obj_size());
|
||||
sat::constraint_base::initialize(mem, this);
|
||||
auto* constraint = new (sat::constraint_base::ptr2mem(mem)) bv_justification(v1, v2, c, a);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue