regress1/sygus/cggmp.sy \
regress1/sygus/clock-inc-tuple.sy \
regress1/sygus/commutative.sy \
+ regress1/sygus/commutative-stream.sy \
regress1/sygus/constant.sy \
regress1/sygus/constant-bool-si-all.sy \
regress1/sygus/constant-dec-tree-bug.sy \
regress1/sygus/tl-type-0.sy \
regress1/sygus/tl-type-4x.sy \
regress1/sygus/tl-type.sy \
+ regress1/sygus/trivial-stream.sy \
regress1/sygus/triv-type-mismatch-si.sy \
regress1/sygus/twolets1.sy \
regress1/sygus/twolets2-orig.sy \
--- /dev/null
+; EXPECT: (define-fun comm ((x Int) (y Int)) Int (+ x y))
+; EXPECT: (define-fun comm ((x Int) (y Int)) Int (- x x))
+; EXPECT: (error "Maximum term size (2) for enumerative SyGuS exceeded.
+; EXPECT: ")
+; EXIT: 1
+
+; COMMAND-LINE: --sygus-stream --sygus-abort-size=2
+
+(set-logic LIA)
+
+(synth-fun comm ((x Int) (y Int)) Int
+ ((Start Int (x
+ y
+ (+ Start Start)
+ (- Start Start)
+ ))
+ ))
+
+(declare-var x Int)
+(declare-var y Int)
+
+(constraint (= (comm x y) (comm y x)))
+
+(check-synth)
--- /dev/null
+; EXPECT: (define-fun triv ((x Int) (y Int)) Int x)
+; EXPECT: (define-fun triv ((x Int) (y Int)) Int y)
+; EXPECT: (error "Maximum term size (0) for enumerative SyGuS exceeded.
+; EXPECT: ")
+; EXIT: 1
+
+; COMMAND-LINE: --sygus-stream --sygus-abort-size=0
+
+(set-logic LIA)
+
+(synth-fun triv ((x Int) (y Int)) Int
+ ((Start Int (x
+ y
+ (+ Start Start)
+ ))
+ ))
+
+(check-synth)