Skip to content

Commit 228f512

Browse files
committed
SMT2: Function parameters have local scope
Do not silently replace their type.
1 parent 2db2eb2 commit 228f512

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

regression/smt2_solver/basic-bv1/basic-bv1.smt2

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
(= a #x4)
4747
(= a #x8))))
4848

49+
; make sure this still type checks as we have used x with a different type above
50+
(define-fun d02 () Bool (= (bvand (bvnot x) (bvnot y)) (bvnot (bvor x y))))
51+
4952
; Predicates over Bitvectors
5053

5154
(define-fun p1 () Bool (= (bvule #x0a #xf0) true)) ; unsigned less or equal

regression/smt2_solver/basic-bv1/test.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
KNOWNBUG
22
basic-bv1.smt2
33

44
^EXIT=0$

0 commit comments

Comments
 (0)