; COMMAND-LINE: --lang=sygus2 --sygus-out=status ; EXPECT: feasible (set-logic ALL) (declare-datatypes ((IntRange 0)) (((IntRangec (lower Int) (upper Int))))) (declare-datatypes ((Loc 0)) (((Locc (x Int) (y Int))))) (declare-datatypes ((LocRange 0)) (((LocRangec (xD IntRange) (yD IntRange))))) (declare-datatypes ((Ship 0)) (((Shipc (shipCapacity Int) (shipLoc Loc))))) (declare-datatypes ((ShipRange 0)) (((ShipRangec (shipCapacityD IntRange) (shipLocDs LocRange))))) (define-fun max ((x Int) (y Int)) Int (ite (>= x y) x y) ) (define-fun min ((x Int) (y Int)) Int (ite (<= x y) x y) ) ; provide synthesis template (synth-fun f ((secret Ship) (prior ShipRange) (response Bool)) ShipRange ((Start ShipRange) (B Bool) (SR ShipRange) (IR IntRange) (LR LocRange) (I Int)) ( (Start ShipRange ((ite B SR SR))) (B Bool (response)) (SR ShipRange ((ShipRangec IR LR) prior)) (IR IntRange ((IntRangec I I) (shipCapacityD SR))) (LR LocRange ((LocRangec IR IR) (shipLocDs SR))) (I Int ((lower IR) (upper IR) (max I (lower (shipCapacityD SR))) (min I I) 50 51)) ) ) (declare-var secret Ship) (declare-var prior ShipRange) (declare-var response Bool) (constraint true) (check-synth)