Debian Codegraph @

test/regress/cli/regress1/sygus/issue2914.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --lang=sygus2 --sygus-out=status
3 (set-logic SLIA)
4
5 (declare-datatype JSIdentifier ((JSString (jsString String)) (Error)))
6
7 (synth-fun substring ((x1 String) (x3 Int)) String
8 ((ntString String) (ntInt Int) (ntJSIdentifier JSIdentifier))
9 (
10 (ntString String
11 (x1
12 (str.substr ntString ntInt ntInt)
13 (jsString ntJSIdentifier)
14 (str.++ ntString ntString)
15 )
16 )
17 (ntInt Int
18 (0 x3)
19 )
20 (ntJSIdentifier JSIdentifier
21 (
22 Error
23 )
24 )
25 )
26 )
27
28 (constraint (= (substring "ey" 1) "e"))
29 (check-synth)