mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
fixed bug introduced today
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
cba449b75e
commit
c350943c78
|
@ -324,7 +324,8 @@ extern "C" {
|
||||||
switch (_a->get_kind()) {
|
switch (_a->get_kind()) {
|
||||||
case AST_APP: {
|
case AST_APP: {
|
||||||
expr * e = to_expr(_a);
|
expr * e = to_expr(_a);
|
||||||
if (is_numeral_sort(c, of_sort(mk_c(c)->m().get_sort(e))) && mk_c(c)->m().is_value(e))
|
// Real algebraic numbers are not considered Z3_NUMERAL_AST
|
||||||
|
if (is_numeral_sort(c, of_sort(mk_c(c)->m().get_sort(e))) && mk_c(c)->m().is_unique_value(e))
|
||||||
return Z3_NUMERAL_AST;
|
return Z3_NUMERAL_AST;
|
||||||
return Z3_APP_AST;
|
return Z3_APP_AST;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue