Skip to content

Commit

Permalink
no fun!
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Mar 3, 2022
1 parent 2b71d8b commit 3e51b69
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/api/python/z3/z3.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
constraint solving, analysis of hybrid systems, security, biology (in silico analysis),
and geometrical problems.
Several online tutorials for Z3Py are available at:
http://rise4fun.com/Z3Py/tutorial/guide
Please send feedback, comments and/or corrections on the Issue tracker for
https://github.com/Z3prover/z3.git. Your comments are very valuable.
Expand Down Expand Up @@ -103,9 +101,6 @@ def get_version():
def get_full_version():
return Z3_get_full_version()

# We use _z3_assert instead of the assert command because we want to
# produce nice error messages in Z3Py at rise4fun.com


def _z3_assert(cond, msg):
if not cond:
Expand Down Expand Up @@ -9009,7 +9004,7 @@ def prove(claim, show=False, **keywords):


def _solve_html(*args, **keywords):
"""Version of function `solve` used in RiSE4Fun."""
"""Version of function `solve` that renders HTML output."""
show = keywords.pop("show", False)
s = Solver()
s.set(**keywords)
Expand All @@ -9033,7 +9028,7 @@ def _solve_html(*args, **keywords):


def _solve_using_html(s, *args, **keywords):
"""Version of function `solve_using` used in RiSE4Fun."""
"""Version of function `solve_using` that renders HTML."""
show = keywords.pop("show", False)
if z3_debug():
_z3_assert(isinstance(s, Solver), "Solver object expected")
Expand All @@ -9058,7 +9053,7 @@ def _solve_using_html(s, *args, **keywords):


def _prove_html(claim, show=False, **keywords):
"""Version of function `prove` used in RiSE4Fun."""
"""Version of function `prove` that renders HTML."""
if z3_debug():
_z3_assert(is_bool(claim), "Z3 Boolean expression expected")
s = Solver()
Expand Down

0 comments on commit 3e51b69

Please sign in to comment.