Debian Codegraph @

test/regress/cli/regress1/sygus/strings-small.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --lang=sygus2 --sygus-out=status
3 (set-logic SLIA)
4 (synth-fun f ((firstname String) (lastname String)) String
5 ((ntString String) (ntInt Int) (ntBool Bool))
6
7 ((ntString String (
8 firstname
9 lastname
10 " "
11 (str.++ ntString ntString)))
12
13 (ntInt Int (
14 0
15 1
16 2
17 (+ ntInt ntInt)
18 (- ntInt ntInt)
19 (str.len ntString)
20 (str.to_int ntString)
21 (str.indexof ntString ntString ntInt)))
22
23 (ntBool Bool (
24 true
25 false
26 (str.prefixof ntString ntString)
27 (str.suffixof ntString ntString)
28 (str.contains ntString ntString)))
29
30 ))
31
32 (constraint (= (f "Nancy" "FreeHafer") "Nancy FreeHafer"))
33
34 (check-synth)