3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-08 12:11:23 +00:00
The model is fine, but debug facility that checks the model reports a false positive.
It exposed some further opportunities for simplification
This commit is contained in:
Nikolaj Bjorner 2020-03-12 10:57:35 -07:00
parent 7a80fe20ca
commit 356a9bb9ed
2 changed files with 13 additions and 0 deletions

View file

@ -754,6 +754,12 @@ br_status bool_rewriter::mk_distinct_core(unsigned num_args, expr * const * args
if (!all_value && all_diff) {
for (unsigned j = 0; all_diff && j < i; ++j) {
all_diff = m().are_distinct(arg, args[j]);
if (!all_diff) {
if (m().are_equal(arg, args[j])) {
result = m().mk_false();
return BR_DONE;
}
}
}
}
}