hsmt-0.1.0.0: test/regressions/z3-finite-index-array-eq.smt2
; Found by the differential suite: Z3 4.16.0 answers sat to these queries,
; although the arrays differ at some index (#b00 in the first two, #b10 in
; the third). With sat.smt=true it answers the first two correctly but not
; the third. Kept to pin down the reference semantics of extensional array
; equality over finite index sorts.
; allow-unknown
; expected: unsat unsat unsat
(set-logic ALL)
(push 1)
(assert (= (store ((as const (Array (_ BitVec 2) Bool)) false) (_ bv2 2) true) (store ((as const (Array (_ BitVec 2) Bool)) true) (_ bv1 2) false)))
(check-sat)
(pop 1)
(push 1)
(assert (not (distinct (store ((as const (Array (_ BitVec 2) Bool)) false) (_ bv2 2) true) ((as const (Array (_ BitVec 2) Bool)) true) (store ((as const (Array (_ BitVec 2) Bool)) true) (_ bv1 2) false))))
(check-sat)
(pop 1)
(assert (= (store (store ((as const (Array (_ BitVec 2) Bool)) false) (_ bv0 2) true) (_ bv1 2) true) ((as const (Array (_ BitVec 2) Bool)) true)))
(check-sat)