Debian Codegraph @

test/regress/cli/regress0/sygus/univ_3-long-repeat-conflict.sy

raw
1 ; EXPECT: infeasible
2 ; COMMAND-LINE: --lang=sygus2 --sygus-out=status -q
3 (set-logic SLIA)
4
5 (synth-fun f ((col1 String) (col2 String)) String
6 ((ntString String) (ntInt Int) (ntBool Bool))
7 ((ntString String (col1 col2 " " "," "USA" "PA" "CT" "CA" "MD" "NY"
8 (str.++ ntString ntString)
9 (str.replace ntString ntString ntString)
10 (str.at ntString ntInt)
11 (str.from_int ntInt)
12 (ite ntBool ntString ntString)
13 (str.substr ntString ntInt ntInt)))
14 (ntInt Int (0 1 2
15 (+ ntInt ntInt)
16 (- ntInt ntInt)
17 (str.len ntString)
18 (str.to_int ntString)
19 (str.indexof ntString ntString ntInt)))
20 (ntBool Bool (true false
21 (str.prefixof ntString ntString)
22 (str.suffixof ntString ntString)
23 (str.contains ntString ntString)))))
24
25
26 (declare-var col1 String)
27 (declare-var col2 String)
28 (constraint (= (f "UC Berkeley" "Berkeley, CA")
29 "Berkeley, CA, USA"))
30 (constraint (= (f "University of Pennsylvania" "Phialdelphia, PA, USA")
31 "Phialdelphia, PA, USA"))
32 (constraint (= (f "UCLA" "Los Angeles, CA")
33 "UCLA, Los Angeles, CA, USA"))
34 (constraint (= (f "Cornell University" "Ithaca, New York, USA")
35 "Ithaca, New York, USA"))
36 (constraint (= (f "Penn" "Philadelphia, PA, USA")
37 "Philadelphia, PA, USA"))
38 (constraint (= (f "University of Michigan" "Ann Arbor, MI, USA")
39 "Ann Arbor, MI, USA"))
40 (constraint (= (f "UC Berkeley" "Berkeley, CA")
41 "Berkeley, CA, USA"))
42 (constraint (= (f "MIT" "Cambridge, MA")
43 "Cambridge, MA, USA"))
44 (constraint (= (f "University of Pennsylvania" "Phialdelphia, PA, USA")
45 "Phialdelphia, PA, USA"))
46 (constraint (= (f "UCLA" "Los Angeles, CA")
47 "Los Angeles, CA, USA"))
48
49 ; has contradictory examples
50 (check-synth)