mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
fix test for int-value
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
adf8072eaa
commit
4ec4abd7e3
|
@ -2394,7 +2394,7 @@ def is_int_value(a):
|
|||
>>> is_int_value(RealVal(1))
|
||||
False
|
||||
"""
|
||||
return is_arith(a) and a.is_int() and _is_numeral(a.ctx, a.as_ast())
|
||||
return isinstance(a, IntNumRef)
|
||||
|
||||
def is_rational_value(a):
|
||||
"""Return `True` if `a` is rational value of sort Real.
|
||||
|
|
Loading…
Reference in a new issue