summaryrefslogtreecommitdiff
path: root/test/regress/regress0/sygus/univ_3-long-repeat-conflict.sy
blob: c2ed642be0c691519ebb2c3a8f974269c88ef54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
; EXPECT: unknown
; COMMAND-LINE: --sygus-out=status
(set-logic SLIA)
 
(synth-fun f ((col1 String) (col2 String)) String
    ((Start String (ntString))
     (ntString String (col1 col2 " " "," "USA" "PA" "CT" "CA" "MD" "NY"
                       (str.++ ntString ntString)
                       (str.replace ntString ntString ntString)
                       (str.at ntString ntInt)
                       (int.to.str ntInt)
                       (ite ntBool ntString ntString)
                       (str.substr ntString ntInt ntInt)))
      (ntInt Int (0 1 2
                  (+ ntInt ntInt)
                  (- ntInt ntInt)
                  (str.len ntString)
                  (str.to.int ntString)
                  (str.indexof ntString ntString ntInt)))
      (ntBool Bool (true false
                    (str.prefixof ntString ntString)
                    (str.suffixof ntString ntString)
                    (str.contains ntString ntString)))))


(declare-var col1 String)
(declare-var col2 String)
(constraint (= (f "UC Berkeley" "Berkeley, CA") 
                  "Berkeley, CA, USA"))
(constraint (= (f "University of Pennsylvania" "Phialdelphia, PA, USA") 
                  "Phialdelphia, PA, USA"))
(constraint (= (f "UCLA" "Los Angeles, CA") 
                    "UCLA, Los Angeles, CA, USA"))
(constraint (= (f "Cornell University" "Ithaca, New York, USA") 
                  "Ithaca, New York, USA"))
(constraint (= (f "Penn" "Philadelphia, PA, USA") 
                  "Philadelphia, PA, USA"))
(constraint (= (f "University of Michigan" "Ann Arbor, MI, USA") 
                  "Ann Arbor, MI, USA"))
(constraint (= (f "UC Berkeley" "Berkeley, CA") 
                  "Berkeley, CA, USA"))
(constraint (= (f "MIT" "Cambridge, MA") 
                  "Cambridge, MA, USA"))
(constraint (= (f "University of Pennsylvania" "Phialdelphia, PA, USA") 
                  "Phialdelphia, PA, USA"))
(constraint (= (f "UCLA" "Los Angeles, CA") 
                    "Los Angeles, CA, USA"))

; has contradictory examples
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback