3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 00:55:31 +00:00

apply 'to-real' coercion only on integers. bug reported by Geoff

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-07-20 19:03:25 -07:00
parent b56837e09b
commit f522d995d1
11 changed files with 5 additions and 2446 deletions

View file

@ -828,7 +828,10 @@ class env {
}
else if (!strcmp(ch,"$to_real")) {
check_arity(terms.size(), 1);
r = to_real(terms[0]);
r = terms[0];
if (r.get_sort().is_int()) {
r = to_real(terms[0]);
}
}
else if (!strcmp(ch,"$is_int")) {
check_arity(terms.size(), 1);