Reduced example from pcc's bug report.
authorTim King <taking@cs.nyu.edu>
Sun, 6 Apr 2014 22:57:53 +0000 (18:57 -0400)
committerTim King <taking@cs.nyu.edu>
Sun, 6 Apr 2014 22:57:53 +0000 (18:57 -0400)
test/regress/regress0/unconstrained/Makefile.am
test/regress/regress0/unconstrained/ite.smt2 [new file with mode: 0644]

index fcae3196abd97abd689830a34fd45f72b1fe55aa..dcc44d43aae82f8f2503f208ea530876df7d2c9a 100644 (file)
@@ -65,6 +65,7 @@ TESTS =       \
        bvult.smt2 \
        geq.smt2 \
        gt.smt2 \
+       ite.smt2 \
        leq.smt2 \
        lt.smt2 \
        uf1.smt2 \
diff --git a/test/regress/regress0/unconstrained/ite.smt2 b/test/regress/regress0/unconstrained/ite.smt2
new file mode 100644 (file)
index 0000000..4dc1cc2
--- /dev/null
@@ -0,0 +1,9 @@
+(set-logic QF_AUFBV )
+(set-info :status sat)
+(declare-sort U 0)
+(declare-fun a () (Array U (_ BitVec 64) ) )
+(declare-fun i () U)
+(declare-fun p () Bool)
+(assert (= (_ bv0 64) (ite p (select a i) (_ bv1 64))))
+(check-sat)
+(exit)