dream-coder / data /sygus /univ_6.sl
Fraser-Greenlee
add dataset code
3bdb76c
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String
((Start String (ntString))
(ntString String (col1 col2 "New York" " " "," "USA" "AK" "AZ" "AR" "CA" "CO" "CT" "DE" "FL" "GA" "HI" "ID" "IL" "IN" "IA" "KS" "KY" "LA" "ME" "MD" "MA" "MI" "MN" "MS" "MO" "MT" "NE" "NV" "NH" "NJ" "NM" "NY" "NC" "ND" "OH" "OK" "OR" "PA" "RI" "SC" "SD" "TN" "TX" "UT" "VT" "VA" "WA" "WV" "WI"
(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")
"Phialdelphia, PA, USA"))
(constraint (= (f "UCLA" "Los Angeles, CA")
"Los Angeles, CA, USA"))
(constraint (= (f "Cornell University" "Ithaca, New York, USA")
"Ithaca, NY, USA"))
(constraint (= (f "Penn" "Philadelphia, PA, USA")
"Philadelphia, PA, USA"))
(constraint (= (f "University of Maryland College Park" "College Park, MD")
"College Park, MD, USA"))
(constraint (= (f "University of Michigan" "Ann Arbor, MI, USA")
"Ann Arbor, MI, USA"))
(constraint (= (f "Columbia University" "New York, NY, USA")
"New York, NY, USA"))
(constraint (= (f "NYU" "New York, New York, USA")
"New York, NY, USA"))
(check-synth)