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

Merge branch 'unstable' of https://git01.codeplex.com/z3 into unstable

This commit is contained in:
Christoph M. Wintersteiger 2012-11-27 00:39:32 +00:00
commit 6797f39b75
9 changed files with 162 additions and 64 deletions

View file

@ -635,7 +635,7 @@ class FuncDeclRef(AstRef):
args = _get_args(args)
num = len(args)
if __debug__:
_z3_assert(num == self.arity(), "Incorrect number of arguments")
_z3_assert(num == self.arity(), "Incorrect number of arguments to %s" % self)
_args = (Ast * num)()
saved = []
for i in range(num):
@ -1735,7 +1735,7 @@ class ArithSortRef(SortRef):
"""Real and Integer sorts."""
def is_real(self):
"""Return `True` if `self` is the integer sort.
"""Return `True` if `self` is of the sort Real.
>>> x = Real('x')
>>> x.is_real()
@ -1749,7 +1749,7 @@ class ArithSortRef(SortRef):
return self.kind() == Z3_REAL_SORT
def is_int(self):
"""Return `True` if `self` is the real sort.
"""Return `True` if `self` is of the sort Integer.
>>> x = Int('x')
>>> x.is_int()