forked from ellisk42/ec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
univ_2-long.sl
176 lines (63 loc) · 3.48 KB
/
univ_2-long.sl
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
(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 "University of Pennsylvania" "Phialdelphia, PA, USA")
"University of Pennsylvania, Phialdelphia, PA, USA"))
(constraint (= (f "UCLA" "Los Angeles, CA")
"UCLA, Los Angeles, CA, USA"))
(constraint (= (f "Cornell University" "Ithaca, New York, USA")
"Cornell University, Ithaca, New York, USA"))
(constraint (= (f "Penn" "Philadelphia, PA, USA")
"Penn, Philadelphia, PA, USA"))
(constraint (= (f "University of Maryland College Park" "College Park, MD")
"University of Maryland College Park, College Park, MD, USA"))
(constraint (= (f "University of Michigan" "Ann Arbor, MI, USA")
"University of Michigan, Ann Arbor, MI, USA"))
(constraint (= (f "UC Berkeley" "Berkeley, CA")
"UC Berkeley, Berkeley, CA, USA"))
(constraint (= (f "MIT" "Cambridge, MA")
"MIT, Cambridge, MA, USA"))
(constraint (= (f "Rice University" "Houston, TX")
"Rice University, Houston, TX, USA"))
(constraint (= (f "Yale University" "New Haven, CT, USA")
"Yale University, New Haven, CT, USA"))
(constraint (= (f "Columbia University" "New York, NY, USA")
"Columbia University, New York, NY, USA"))
(constraint (= (f "NYU" "New York, New York, USA")
"NYU, New York, New York, USA"))
(constraint (= (f "UC Berkeley" "Berkeley, CA")
"UC Berkeley, Berkeley, CA, USA"))
(constraint (= (f "UIUC" "Urbana, IL")
"UIUC, Urbana, IL, USA"))
(constraint (= (f "Temple University" "Philadelphia, PA")
"Temple University, Philadelphia, PA, USA"))
(constraint (= (f "Harvard University" "Cambridge, MA, USA")
"Harvard University, Cambridge, MA, USA"))
(constraint (= (f "University of Connecticut" "Storrs, CT, USA")
"University of Connecticut, Storrs, CT, USA"))
(constraint (= (f "Drexel University" "Philadelphia, PA")
"Drexel University, Philadelphia, PA, USA"))
(constraint (= (f "New Haven University" "New Haven, CT, USA")
"New Haven University, New Haven, CT, USA"))
(constraint (= (f "University of California, Santa Barbara" "Santa Barbara, CA, USA")
"University of California, Santa Barbara, Santa Barbara, CA, USA"))
(check-synth)