3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

fix mixup between constraint indices and lpvar explanations fixes various newly reported unsoundness bugs

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-05-11 13:07:28 -07:00
parent 9c972521c4
commit 81b3c440ce
4 changed files with 40 additions and 24 deletions

View file

@ -90,7 +90,6 @@ class new_lemma {
char const* name;
core& c;
lemma& current() const;
lp::explanation& expl() { return current().expl(); }
public:
new_lemma(core& c, char const* name);
@ -110,6 +109,8 @@ public:
new_lemma& explain_existing_upper_bound(lpvar j);
new_lemma& explain_separation_from_zero(lpvar j);
lp::explanation& expl() { return current().expl(); }
unsigned num_ineqs() const { return current().ineqs().size(); }
};