diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2020-06-15 11:48:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 11:48:02 -0700 |
commit | af37e2c948c140dbee2421a3cb046e068cc5b0f8 (patch) | |
tree | a40c4ec35f088ae4877df774dccaa068bd8065a2 /test/regress/regress0 | |
parent | 5de97c3efe8794bf7e39774686dca81a1982a8ed (diff) |
BV: Add missing type check for INT_TO_BITVECTOR. (#4613)
Fixes #4130.
This further makes an attempt at more consistent error printing.
Diffstat (limited to 'test/regress/regress0')
-rw-r--r-- | test/regress/regress0/bv/issue-4130.smt2 | 10 | ||||
-rw-r--r-- | test/regress/regress0/sygus/pLTL-sygus-syntax-err.sy | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/test/regress/regress0/bv/issue-4130.smt2 b/test/regress/regress0/bv/issue-4130.smt2 new file mode 100644 index 000000000..aa4a13068 --- /dev/null +++ b/test/regress/regress0/bv/issue-4130.smt2 @@ -0,0 +1,10 @@ +; EXPECT: (error "Parse Error: issue-4130.smt2:9.39: expecting bit-width > 0 +; EXPECT: +; EXPECT: (assert (and (= a (bv2nat ((_ int2bv 0) a))))) +; EXPECT: ^ +; EXPECT: ") +; EXIT: 1 +(set-logic ALL) +(declare-fun a () Int) +(assert (and (= a (bv2nat ((_ int2bv 0) a))))) +(check-sat) diff --git a/test/regress/regress0/sygus/pLTL-sygus-syntax-err.sy b/test/regress/regress0/sygus/pLTL-sygus-syntax-err.sy index 1b5690d3a..848ae0349 100644 --- a/test/regress/regress0/sygus/pLTL-sygus-syntax-err.sy +++ b/test/regress/regress0/sygus/pLTL-sygus-syntax-err.sy @@ -1,10 +1,10 @@ ; REQUIRES: no-competition ; COMMAND-LINE: --sygus-out=status --sygus-rec-fun --lang=sygus2 -; EXPECT-ERROR: CVC4 Error: -; EXPECT-ERROR: Parse Error: pLTL-sygus-syntax-err.sy:80.19: number of arguments does not match the constructor type +; EXPECT-ERROR: (error "Parse Error: pLTL-sygus-syntax-err.sy:80.19: number of arguments does not match the constructor type ; EXPECT-ERROR: ; EXPECT-ERROR: (Op2 <O2> <F>) ; EXPECT-ERROR: ^ +; EXPECT-ERROR: ") ; EXIT: 1 (set-logic ALL) (set-option :lang sygus2) |