summaryrefslogtreecommitdiff
path: root/examples/api/python/linear_arith.py
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2021-04-21 10:21:34 -0700
committerGitHub <noreply@github.com>2021-04-21 10:21:34 -0700
commitae5ee4b07dc3d3c792e7fe7f382ff490dd28aca4 (patch)
treea7c2ab8013f46dbea75fcd6e7da3fb83e2012b2f /examples/api/python/linear_arith.py
parent86aa9bc35ba9dc9a57913a2ffc71619c7657cc35 (diff)
Goodbye CVC4, hello cvc5! (#6371)
This commits changes the build system to cvc5 and removes the remaining occurrences of CVC4. It further cleans up outdated/unused scripts in contrib/.
Diffstat (limited to 'examples/api/python/linear_arith.py')
-rw-r--r--examples/api/python/linear_arith.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/api/python/linear_arith.py b/examples/api/python/linear_arith.py
index bc48b452e..f8dad6a71 100644
--- a/examples/api/python/linear_arith.py
+++ b/examples/api/python/linear_arith.py
@@ -16,11 +16,11 @@
# linear_arith-new.cpp.
##
-import pycvc4
-from pycvc4 import kinds
+import pycvc5
+from pycvc5 import kinds
if __name__ == "__main__":
- slv = pycvc4.Solver()
+ slv = pycvc5.Solver()
slv.setLogic("QF_LIRA")
# Prove that if given x (Integer) and y (Real) and some constraints
@@ -55,9 +55,9 @@ if __name__ == "__main__":
slv.push()
diff_leq_two_thirds = slv.mkTerm(kinds.Leq, diff, two_thirds)
- print("Prove that", diff_leq_two_thirds, "with CVC4")
- print("CVC4 should report ENTAILED")
- print("Result from CVC4 is:",
+ print("Prove that", diff_leq_two_thirds, "with cvc5")
+ print("cvc5 should report ENTAILED")
+ print("Result from cvc5 is:",
slv.checkEntailed(diff_leq_two_thirds))
slv.pop()
@@ -66,7 +66,7 @@ if __name__ == "__main__":
slv.push()
diff_is_two_thirds = slv.mkTerm(kinds.Equal, diff, two_thirds)
slv.assertFormula(diff_is_two_thirds)
- print("Show that the assertions are consistent with\n", diff_is_two_thirds, "with CVC4")
- print("CVC4 should report SAT")
- print("Result from CVC4 is:", slv.checkSat())
+ print("Show that the assertions are consistent with\n", diff_is_two_thirds, "with cvc5")
+ print("cvc5 should report SAT")
+ print("Result from cvc5 is:", slv.checkSat())
slv.pop()
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback