mirror of
https://github.com/Z3Prover/z3
synced 2025-08-08 12:11:23 +00:00
fix #3255
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:
parent
7a80fe20ca
commit
356a9bb9ed
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue