; @author Jonas Schöpf
; Ctrl example from examples/student/fib03.ctrs
(format LCTRS :smtlib 2.6)

(theory Ints)

(sort Unit)

(fun badfib (-> Int Unit))
(fun w (-> Unit Unit Unit))
(fun return (-> Int Unit))

(rule (badfib x) (w (badfib (- x 1)) (badfib (- x 2))) :guard (> x 3))
(rule (badfib x) (return 1) :guard (<= x 3))
(rule (w (return x) (return y)) (return (+ x y)))
