mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
misc
This commit is contained in:
parent
b0fd25f041
commit
4d55f83654
16 changed files with 107 additions and 54 deletions
|
@ -384,7 +384,7 @@ class theory_lra::imp {
|
|||
vars.push_back(v);
|
||||
++index;
|
||||
}
|
||||
else if (a.is_power(n, n1, n2) && is_app(n1) && a.is_extended_numeral(n2, r) && r.is_unsigned() && r <= 10) {
|
||||
else if (a.is_power(n, n1, n2) && is_app(n1) && a.is_extended_numeral(n2, r) && r.is_unsigned() && r.is_pos() && r <= 10) {
|
||||
theory_var v = internalize_power(to_app(n), to_app(n1), r.get_unsigned());
|
||||
coeffs[vars.size()] = coeffs[index];
|
||||
vars.push_back(v);
|
||||
|
|
|
@ -121,8 +121,12 @@ void user_propagator::propagate() {
|
|||
m_lits.append(m_id2justification[id]);
|
||||
for (auto const& p : prop.m_eqs)
|
||||
m_eqs.push_back(enode_pair(get_enode(p.first), get_enode(p.second)));
|
||||
DEBUG_CODE(for (auto const& p : m_eqs) SASSERT(p.first->get_root() == p.second->get_root()););
|
||||
|
||||
DEBUG_CODE(for (auto const& p : m_eqs) VERIFY(p.first->get_root() == p.second->get_root()););
|
||||
IF_VERBOSE(5,
|
||||
for (auto lit : m_lits)
|
||||
verbose_stream() << lit << ":" << ctx.get_assignment(lit) << " ";
|
||||
verbose_stream() << "\n";);
|
||||
|
||||
if (m.is_false(prop.m_conseq)) {
|
||||
js = ctx.mk_justification(
|
||||
ext_theory_conflict_justification(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue