Skip to content

Commit

Permalink
test case for #3
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaldmann committed Aug 15, 2022
1 parent 3cc737d commit 21571e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/ex2.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import SimpleSMT

main :: IO ()
main =
do l <- newLogger 0
s <- newSolver "z3" [ "-in", "-smt2" ] (Just l)
setLogic s "QF_LRA"
x <- declare s "x" tReal
assert s (mul (real 3) (add x (real 2)) `eq` real 5)
print =<< check s
print =<< getExprs s [x]



0 comments on commit 21571e9

Please sign in to comment.