Skip to content

Commit e4c5999

Browse files
committed
add a test for quantifiers over bit vectors
The test currently fails, and will need an implementation.
1 parent 6850351 commit e4c5999

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
KNOWNBUG
2+
bv-quantifier-valid.smt2
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^unsat$
7+
--
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
(define-fun q1 () Bool (exists ((b (_ BitVec 8))) (= b #x00)))
2+
(define-fun q2 () Bool (exists ((b (_ BitVec 8))) (not (= b #x00))))
3+
4+
(define-fun q3 () Bool (not (forall ((b (_ BitVec 8))) (= b #x00))))
5+
(define-fun q4 () Bool (not (forall ((b (_ BitVec 8))) (not (= b #x00)))))
6+
7+
(define-fun q5 () Bool (exists ((a (_ BitVec 8)) (b (_ BitVec 8))) (= a b)))
8+
(define-fun q6 () Bool (not (forall ((a (_ BitVec 8)) (b (_ BitVec 8))) (= a b))))
9+
10+
(define-fun q7 () Bool (forall ((a (_ BitVec 8))) (exists ((b (_ BitVec 8))) (= a b))))
11+
12+
; the above are all valid, and we assert one of them is not
13+
(assert (not (and q1 q2 q3 q4 q5 q6 q7)))
14+
15+
(check-sat)

0 commit comments

Comments
 (0)