Skip to content

Commit

Permalink
Deterministic sqrt test
Browse files Browse the repository at this point in the history
  • Loading branch information
filipeom committed Feb 15, 2024
1 parent 92ae625 commit a08d285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/regression/test_sqrt.smtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(set-logic QF_BVFP)
(let-const x f32)
(assert (f32.eq (f32.sqrt x) (f32 0.0)))
(assert (f32.eq x (f32 4.0)))
(assert (f32.eq (f32.sqrt x) (f32 2.0)))
(check-sat)
(get-model)
; vim: set ft=scheme:
2 changes: 1 addition & 1 deletion test/regression/test_sqrt.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Test QF_FP sqrt:
$ smtml test_sqrt.smtml
sat
(model
(x (f32 -0.)))
(x (f32 4.)))

0 comments on commit a08d285

Please sign in to comment.