cvc5-cvc5-1.2.0.test.regress.cli.regress0.sygus.let-ringer.sy Maven / Gradle / Ivy
The newest version!
; EXPECT: feasible
; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-out=status
; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-unif-pi=complete --sygus-out=status
(set-logic LIA)
(define-fun g ((x Int)) Int (ite (= x 1) 15 19))
(define-fun letf ((z Int) (w Int) (s Int) (x Int)) Int (+ z (+ x (+ x (+ s (+ 1 (+ (g w) z)))))))
(synth-fun f ((x Int)) Int
((Start Int))
((Start Int (x
0
1
(- Start Start)
(letf Start Start Start x)))))
(declare-var x Int)
(constraint (= (f x) (+ (* 4 x) 15)))
(check-synth)