3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 09:34:08 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-05-09 21:27:45 -07:00
parent 30de76b529
commit 086331a24b

View file

@ -321,7 +321,8 @@ bool basics::basic_lemma_for_mon_neutral_monic_to_factor_derived(const monic& rm
lpvar jl = null_lpvar;
for (auto fc : f ) {
lpvar j = var(fc);
if (abs(val(j)) == abs_mv && c().vars_are_equiv(j, mon_var) &&
if (j == null_lpvar && abs(val(j)) == abs_mv &&
c().vars_are_equiv(j, mon_var) &&
(mon_var_is_sep_from_zero || c().var_is_separated_from_zero(j))) {
jl = j;
}
@ -533,7 +534,7 @@ bool basics::basic_lemma_for_mon_neutral_monic_to_factor_model_based_fm(const mo
}
lpvar jl = null_lpvar;
for (auto j : m.vars() ) {
if (abs(val(j)) == abs_mv) {
if (jl == null_lpvar && abs(val(j)) == abs_mv) {
jl = j;
}
else if (jl == j)
@ -645,7 +646,7 @@ bool basics::basic_lemma_for_mon_neutral_monic_to_factor_model_based(const monic
lpvar jl = null_lpvar;
for (auto fc : f) {
lpvar j = var(fc);
if (abs(val(fc)) == abs_mv) {
if (j == null_lpvar && abs(val(fc)) == abs_mv) {
jl = j;
}
else if (j == jl)