Debian Codegraph @

test/regress/cli/regress1/sygus/strings-concat-3-args.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --lang=sygus2 --sygus-out=status
3 (set-logic SLIA)
4 (synth-fun f ((x String)) String
5 ((ntString String) (ntStringConst String))
6
7 ((ntString String (x "" (str.++ ntStringConst ntString ntString)))
8
9 (ntStringConst String ("a" "b" " "))
10
11 ))
12
13 ; can be solved with concat PBE strategy, although we currently are not (issue #1259)
14 ; regardless, this is small enough to solve quickly
15 (constraint (= (f "def") "ab def"))
16
17 (check-synth)