diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-12-01 15:56:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-01 15:56:17 -0600 |
commit | 14aa8974b6eeae70b255976ebb9c76fd4aa04c03 (patch) | |
tree | 992c9b9ef1de1d7539856cd2e761269020ddf085 /test/regress/regress0/nl/sqrt.smt2 | |
parent | ca31b2c1eb2a3c9e26013f55e4049b667404ac4e (diff) | |
parent | 9bf87b8b5572bbfc110018081b28ad0a88b8a619 (diff) |
Merge branch 'master' into fixRefCountZerofixRefCountZero
Diffstat (limited to 'test/regress/regress0/nl/sqrt.smt2')
-rw-r--r-- | test/regress/regress0/nl/sqrt.smt2 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/regress/regress0/nl/sqrt.smt2 b/test/regress/regress0/nl/sqrt.smt2 new file mode 100644 index 000000000..fdcec3d62 --- /dev/null +++ b/test/regress/regress0/nl/sqrt.smt2 @@ -0,0 +1,39 @@ +; EXPECT: sat +; EXPECT: sat +; EXPECT: unsat +; EXPECT: sat +; EXPECT: unsat +(set-option :incremental true) +(set-logic ALL) +(declare-fun x () Real) +(declare-fun y () Real) +(declare-fun z () Real) + +(push) +(assert (= (sqrt 1.0) 1.0)) +(check-sat) +(pop) + +(push) +(assert (= (sqrt 1.0) (- 1.0))) +(check-sat) +(pop) + +(push) +(assert (= x 1.0)) +(assert (not (= (sqrt 1.0) (sqrt x)))) +(check-sat) +(pop) + +(push) +(assert (< x 0)) +(assert (= (sqrt 1.0) (sqrt x))) +(check-sat) +(pop) + +(push) +(assert (= (sqrt y) z)) +(assert (= (sqrt x) (sqrt y))) +(assert (not (= (sqrt x) z))) +(check-sat) +(pop) |