// we may have subsumed children down to one
ret = children[0];
}
+ else if (isAssoc && children.size() > kind::metakind::getUpperBoundForKind(k))
+ {
+ Assert(kind::metakind::getUpperBoundForKind(k) >= 2);
+ // kind may require binary construction
+ ret = children[0];
+ for (unsigned i = 1, nchild = children.size(); i < nchild; i++)
+ {
+ ret = nm->mkNode(k, ret, children[i]);
+ }
+ }
else
{
ret = nm->mkNode(k, children);
regress1/bv/divtest.smt2
regress1/bv/fuzz34.smtv1.smt2
regress1/bv/fuzz38.smtv1.smt2
+ regress1/bv/issue3654.smt2
regress1/bv/test-bv-abstraction.smt2
regress1/bv/unsound1.smt2
regress1/bvdiv2.smt2
regress1/sygus/issue3635.smt2
regress1/sygus/issue3644.smt2
regress1/sygus/issue3648.smt2
- regress1/sygus/issue3654.sy
+ regress1/sygus/issue3649.sy
regress1/sygus/large-const-simp.sy
regress1/sygus/let-bug-simp.sy
regress1/sygus/list-head-x.sy
--- /dev/null
+; COMMAND_LINE: --ext-rew-prep
+; EXPECT: sat
+(set-logic QF_BV)
+(declare-fun a () (_ BitVec 4))
+(assert (let ((a!1 ((_ sign_extend 3)
+ (ite (bvult ((_ sign_extend 15) #b0) #x2b7e) #b1 #b0)))
+ (a!2 ((_ zero_extend 15)
+ (ite (distinct #x2b7e ((_ sign_extend 12) a)) #b1 #b0)))
+ (a!4 (bvsgt (bvlshr (bvadd #x2b7e ((_ sign_extend 12) a))
+ ((_ sign_extend 12) a))
+ ((_ zero_extend 12) a)))
+ (a!5 (bvugt (ite (bvult ((_ sign_extend 15) #b0) #x2b7e) #b1 #b0) #b0))
+ (a!6 (bvugt (bvlshr (bvadd #x2b7e ((_ sign_extend 12) a))
+ ((_ sign_extend 12) a))
+ #x2b7e)))
+(let ((a!3 (bvslt a!2
+ (bvlshr (bvadd #x2b7e ((_ sign_extend 12) a))
+ ((_ sign_extend 12) a))))
+ (a!7 (xor (ite a!4 a!5 a!4)
+ a!6
+ (= (bvxnor #x2b7e ((_ zero_extend 12) a))
+ (bvadd #x2b7e ((_ sign_extend 12) a))))))
+ (ite (bvule a!1 a) a!3 a!7))))
+(check-sat)
--- /dev/null
+; EXPECT: unknown
+; COMMAND-LINE: --sygus-out=status
+(set-logic ALL)
+(synth-fun inv-fn ((i Int) (x (Array Int Int)) (c Int)) Bool)
+
+(define-fun init-fn ((i Int) (x (Array Int Int)) (c Int)) Bool
+ (and (= i 0)
+ (= (select x 10) c)))
+
+(define-fun post-fn ((i Int) (x (Array Int Int))(c Int)) Bool
+ (exists ((index Int)) (and (= (select x index) c)
+ (forall ((index2 Int)) (=> (< index2 index) (not (= (select x index) c))))
+ )))
+
+(declare-var x (Array Int Int))
+(declare-var x! (Array Int Int))
+(declare-var i Int)
+(declare-var i! Int)
+(declare-var c Int)
+
+
+(constraint (=> (init-fn i x c) (inv-fn i x c)))
+(constraint (=> (inv-fn i x c) (post-fn i x c)))
+(check-synth)
+++ /dev/null
-; EXPECT: unknown
-; COMMAND-LINE: --sygus-out=status
-(set-logic ALL)
-(synth-fun inv-fn ((i Int) (x (Array Int Int)) (c Int)) Bool)
-
-(define-fun init-fn ((i Int) (x (Array Int Int)) (c Int)) Bool
- (and (= i 0)
- (= (select x 10) c)))
-
-(define-fun post-fn ((i Int) (x (Array Int Int))(c Int)) Bool
- (exists ((index Int)) (and (= (select x index) c)
- (forall ((index2 Int)) (=> (< index2 index) (not (= (select x index) c))))
- )))
-
-(declare-var x (Array Int Int))
-(declare-var x! (Array Int Int))
-(declare-var i Int)
-(declare-var i! Int)
-(declare-var c Int)
-
-
-(constraint (=> (init-fn i x c) (inv-fn i x c)))
-(constraint (=> (inv-fn i x c) (post-fn i x c)))
-(check-synth)