3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00
This commit is contained in:
Nikolaj Bjorner 2023-12-12 14:41:31 -08:00
parent 2292a26a25
commit e0effa3775
4 changed files with 44 additions and 17 deletions

View file

@ -233,8 +233,8 @@ namespace intblast {
}
m_core.reset();
m_vars.reset();
m_translate.reset();
m_is_plugin = false;
m_solver = mk_smt2_solver(m, s.params(), symbol::null);
expr_ref_vector es(m);
@ -243,8 +243,9 @@ namespace intblast {
translate(es);
for (auto const& [src, vi] : m_vars) {
auto const& [v, b] = vi;
for (auto e : m_vars) {
auto v = translated(e);
auto b = rational::power_of_two(bv.get_bv_size(e));
m_solver->assert_expr(a.mk_le(a.mk_int(0), v));
m_solver->assert_expr(a.mk_lt(v, a.mk_int(b)));
}
@ -679,6 +680,7 @@ namespace intblast {
}
}
break;
}
case OP_BOR: {
// p | q := (p + q) - band(p, q)
IF_VERBOSE(2, verbose_stream() << "bor " << mk_bounded_pp(e, m) << " " << bv.get_bv_size(e) << "\n");