mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
proposed fix to compare
This commit is contained in:
parent
ee125b4fe3
commit
4e7b6b6586
1 changed files with 4 additions and 5 deletions
|
@ -397,16 +397,15 @@ namespace qe {
|
|||
}
|
||||
|
||||
lbool compare(expr* val1, expr* val2) {
|
||||
if (val1 == val2) {
|
||||
return l_true;
|
||||
}
|
||||
if (m.are_equal (val1, val2)) return l_true;
|
||||
if (m.are_distinct (val1, val2)) return l_false;
|
||||
|
||||
if (is_uninterp(val1) ||
|
||||
is_uninterp(val2)) {
|
||||
// TBD chase definition of nested array.
|
||||
return l_undef;
|
||||
}
|
||||
// AG: Shouldn't this be l_false
|
||||
return l_true;
|
||||
return l_undef;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue