Skip to content
Snippets Groups Projects
Commit b64d0d36 authored by Arthur Correnson's avatar Arthur Correnson
Browse files

Testing rouding mode intanciation

parent 18028851
No related branches found
No related tags found
1 merge request!12Feature/fp check
Pipeline #35703 passed
......@@ -13,6 +13,10 @@
(rule (alias runtest) (action (diff oracle recognize_float64.smt2.res)))
(rule (action (with-stdout-to recognize_rounding_mode.smt2.res (run %{bin:colibri2} --max-steps 3000 %{dep:recognize_rounding_mode.smt2}))))
(rule (alias runtest) (action (diff oracle recognize_rounding_mode.smt2.res)))
(rule (action (with-stdout-to rm_instanciation.smt2.res (run %{bin:colibri2} --max-steps 3000 %{dep:rm_instanciation.smt2}))))
(rule (alias runtest) (action (diff oracle rm_instanciation.smt2.res)))
(rule (action (with-stdout-to rm_universal.smt2.res (run %{bin:colibri2} --max-steps 3000 %{dep:rm_universal.smt2}))))
(rule (alias runtest) (action (diff oracle rm_universal.smt2.res)))
(rule (action (with-stdout-to simple_add_float32.smt2.res (run %{bin:colibri2} --max-steps 3000 %{dep:simple_add_float32.smt2}))))
(rule (alias runtest) (action (diff oracle simple_add_float32.smt2.res)))
(rule (action (with-stdout-to simple_eq_float32.smt2.res (run %{bin:colibri2} --max-steps 3000 %{dep:simple_eq_float32.smt2}))))
......
(set-logic ALL)
(declare-fun x () (_ FloatingPoint 8 24))
(declare-fun y () (_ FloatingPoint 8 24))
(declare-fun m () RoundingMode)
(assert (not (= RNE m)))
(assert (= (fp.add m x y) x))
(check-sat)
\ No newline at end of file
(set-logic ALL)
(declare-fun x () (_ FloatingPoint 11 53))
(declare-fun x () (_ FloatingPoint 8 24))
(declare-fun y () (_ FloatingPoint 8 24))
(assert (= x y))
(assert (forall ((m RoundingMode)) (= (fp.add m x y) x)))
(check-sat)
\ No newline at end of file
(include dune.inc)
(rule
(alias runtest)
(deps
(glob_files *.cnf)
(glob_files *.smt2)
(glob_files *.psmt2))
(action
(with-stdout-to
dune.inc
(run %{exe:../../../generate_tests/generate_dune_tests.exe} . unsat)))
(mode promote))
(rule (action (with-stdout-to oracle (echo "unsat\n"))))
(rule (action (with-stdout-to inf_pos_neg_neq.smt2.res (run %{bin:colibri2} --max-steps 3000 %{dep:inf_pos_neg_neq.smt2}))))
(rule (alias runtest) (action (diff oracle inf_pos_neg_neq.smt2.res)))
(set-logic ALL)
(assert (fp.eq (_ +oo 8 24) (_ -oo 8 24)))
(check-sat)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment