hsmt-0.1.0.0: test/regressions/z3-finite-record-index-array-eq.smt2
; Found by the differential suite: Z3 4.16.0 answers sat to the second
; query, although the index sort has four values and only two are written,
; so the array cannot equal the constant 2 (same error as in
; z3-finite-index-array-eq.smt2, with a record index).
; expected: sat unsat
(set-logic ALL)
(declare-datatypes ((B 0)) (((mkB (c Bool) (d (_ BitVec 1))))))
(declare-fun a0 () Int)
(declare-fun d1 () B)
(check-sat)
(assert (= ((as const (Array B Int)) 2) (store (store ((as const (Array B Int)) (- 1)) (mkB false (_ bv0 1)) a0) d1 a0)))
(check-sat)