diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-10-02 18:10:54 -0700 |
---|---|---|
committer | Aina Niemetz <aina.niemetz@gmail.com> | 2018-10-02 18:10:54 -0700 |
commit | c48dd01b92f4704c99ca6833b94759dee42106a8 (patch) | |
tree | 3dcf129eb8c022c0538924ad988285e825fd48ec /test/regress/regress0 | |
parent | 457a5000f46cfd7ce58525b75930b87e8572c94f (diff) |
Allow (_ to_fp ...) in strict parsing mode (#2566)
When parsing with `--strict-parsing`, we are checking whether the
operators that we encounter have been explicitly added to the
`d_logicOperators` set in the `Parser` class. We did not do that for the
indexed operator `(_ to_fp ...)` (which is represented by the kind
`FLOATINGPOINT_TO_FP_GENERIC`). This commit adds the operator.
Diffstat (limited to 'test/regress/regress0')
-rw-r--r-- | test/regress/regress0/parser/to_fp.smt2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/regress/regress0/parser/to_fp.smt2 b/test/regress/regress0/parser/to_fp.smt2 new file mode 100644 index 000000000..8652a5c33 --- /dev/null +++ b/test/regress/regress0/parser/to_fp.smt2 @@ -0,0 +1,10 @@ +; REQUIRES: symfpu +; COMMAND-LINE: --strict-parsing +; EXPECT: sat +(set-logic QF_FP) +(declare-fun |c::main::main::3::div@1!0&0#1| () (_ FloatingPoint 8 24)) +(assert (not (fp.eq ((_ to_fp 11 53) + roundNearestTiesToEven + |c::main::main::3::div@1!0&0#1|) + (fp #b0 #b00000000000 #x0000000000000)))) +(check-sat) |