mirror of
https://github.com/Z3Prover/z3
synced 2026-02-20 07:24:40 +00:00
add interpretations when there are ranges
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
65f38eac16
commit
2e4402c8f3
8 changed files with 427 additions and 158 deletions
|
|
@ -1525,16 +1525,24 @@ namespace smt {
|
|||
}
|
||||
|
||||
lbool context::find_assignment(expr * n) const {
|
||||
if (m.is_false(n))
|
||||
return l_false;
|
||||
|
||||
expr* arg = nullptr;
|
||||
if (m.is_not(n, arg)) {
|
||||
|
||||
if (b_internalized(arg))
|
||||
return ~get_assignment_core(arg);
|
||||
if (m.is_false(arg))
|
||||
return l_true;
|
||||
if (m.is_true(arg))
|
||||
return l_false;
|
||||
return l_undef;
|
||||
}
|
||||
if (b_internalized(n))
|
||||
return get_assignment(n);
|
||||
if (m.is_false(n))
|
||||
return l_false;
|
||||
if (m.is_true(n))
|
||||
return l_true;
|
||||
return l_undef;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue