GAD
Collection
Model checkpoints and datasets used in the paper Grammar-Aligned Decoding: https://arxiv.org/abs/2405.21047
•
12 items
•
Updated
id
stringlengths 11
12
| task
stringlengths 3
26
| query
stringlengths 1.8k
37.8k
| answer
stringlengths 0
547
|
---|---|---|---|
slianogram17 | univ_4-long | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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 "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "MIT" "Cambridge, MA") "Cambridge, MA, USA"))
(constraint (= (f "Rice University" "Houston, TX") "Houston, TX, USA"))
(constraint (= (f "Yale University" "New Haven, CT, USA") "New Haven, CT, 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"))
(constraint (= (f "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "UIUC" "Urbana, IL") "Urbana, IL, USA"))
(constraint (= (f "Temple University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "Harvard University" "Cambridge, MA, USA") "Cambridge, MA, USA"))
(constraint (= (f "University of Connecticut" "Storrs, CT, USA") "Storrs, CT, USA"))
(constraint (= (f "Drexel University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "New Haven University" "New Haven, CT, USA") "New Haven, CT, USA"))
(constraint (= (f "University of California, Santa Barbara" "Santa Barbara, CA, USA") "Santa Barbara, CA, USA"))
(check-synth)
Solution:
(define-fun f ((col1 String) (col2 String)) String (let ((_let_1 (str.replace col2 "New York" "NY"))) (let ((_let_2 (str.contains col2 "New York"))) (ite (str.contains col2 "USA") (ite (str.contains col1 " ") (ite (str.contains col2 "PA") _let_1 (ite (str.contains col2 "CA") _let_1 (ite _let_2 (ite (str.contains col2 "NY") col2 _let_1) _let_1))) (ite _let_2 (str.++ (str.++ (str.++ (str.++ (str.++ (str.++ "New York" ",") " ") "NY") ",") " ") "USA") col2)) (str.++ _let_1 (str.++ "," (str.++ " " "USA")))))))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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)
Solution:
(define-fun f ((col1 String) (col2 String)) String (let ((_let_1 (str.++ "," (str.++ " " "USA")))) (ite (str.prefixof "New York" col2) (str.++ "New York" (str.++ "," (str.++ " " (str.++ "NY" _let_1)))) (ite (str.suffixof "USA" col2) (str.replace col2 "New York" "NY") (str.++ (str.replace col2 "New York" "MD") _let_1)))))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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)
Solution:
(define-fun f ((col1 String) (col2 String)) String (let ((_let_1 (str.++ "," (str.++ " " "USA")))) (ite (str.contains col2 "New York") (ite (str.prefixof "New York" col2) (ite (str.contains col1 "NY") (str.++ "New York" (str.++ "," (str.++ " " (str.++ "NY" _let_1)))) col2) (str.replace col2 "New York" "NY")) (str.++ (str.replace col2 "New York" "CT") (ite (str.contains col2 "USA") (str.at " " 1) _let_1)))))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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 "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "MIT" "Cambridge, MA") "Cambridge, MA, USA"))
(constraint (= (f "Rice University" "Houston, TX") "Houston, TX, USA"))
(constraint (= (f "Yale University" "New Haven, CT, USA") "New Haven, CT, 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"))
(constraint (= (f "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "UIUC" "Urbana, IL") "Urbana, IL, USA"))
(constraint (= (f "Temple University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "Harvard University" "Cambridge, MA, USA") "Cambridge, MA, USA"))
(constraint (= (f "University of Connecticut" "Storrs, CT, USA") "Storrs, CT, USA"))
(constraint (= (f "Drexel University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "New Haven University" "New Haven, CT, USA") "New Haven, CT, USA"))
(constraint (= (f "University of California, Santa Barbara" "Santa Barbara, CA, USA") "Santa Barbara, CA, USA"))
(check-synth)
Solution:
| (define-fun f ((col1 String) (col2 String)) String (let ((_let_1 (str.replace col2 "New York" "NY"))) (let ((_let_2 (str.contains col2 "New York"))) (ite (str.contains col2 "USA") (ite (str.contains col1 " ") (ite (str.contains col2 "PA") _let_1 (ite (str.contains col2 "CA") _let_1 (ite _let_2 (ite (str.contains col2 "NY") col2 _let_1) _let_1))) (ite _let_2 (str.++ (str.++ (str.++ (str.++ (str.++ (str.++ "New York" ",") " ") "NY") ",") " ") "USA") col2)) (str.++ _let_1 (str.++ "," (str.++ " " "USA")))))))
|
slianogram71 | univ_4_short | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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, New York, 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"))
(check-synth)
Solution:
(define-fun f ((col1 String) (col2 String)) String (ite (str.suffixof "USA" col2) col2 (str.++ col2 (str.++ "," (str.++ " " "USA")))))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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)
Solution:
(define-fun f ((col1 String) (col2 String)) String (let ((_let_1 (str.++ col2 ","))) (ite (str.prefixof "New York" col2) (str.++ "New York" (str.++ "," (str.++ " " (str.++ "NY" (str.++ "," (str.++ " " "USA")))))) (ite (str.suffixof "USA" col2) (str.replace col2 "New York" "NY") (str.++ (str.++ (ite (str.suffixof "CA" col2) _let_1 _let_1) " ") "USA")))))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(declare-var col1 String)
(declare-var col2 String)
(constraint (= (f "University of Pennsylvania" "Phialdelphia, PA, USA") "University of Pennsylvania, Phialdelphia, PA, USA"))
(constraint (= (f "Cornell University" "Ithaca, New York, USA") "Cornell University, Ithaca, New York, USA"))
(constraint (= (f "University of Maryland College Park" "College Park, MD") "University of Maryland College Park, College Park, MD"))
(constraint (= (f "University of Michigan" "Ann Arbor, MI, USA") "University of Michigan, Ann Arbor, MI, 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"))
(check-synth)
Solution:
(define-fun f ((col1 String) (col2 String)) String (str.++ col1 (str.++ "," (str.++ " " col2))))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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)
Solution:
| (define-fun f ((col1 String) (col2 String)) String (let ((_let_1 (str.++ "," (str.++ " " "USA")))) (ite (str.prefixof "New York" col2) (str.++ "New York" (str.++ "," (str.++ " " (str.++ "NY" _let_1)))) (ite (str.suffixof "USA" col2) (str.replace col2 "New York" "NY") (str.++ (str.replace col2 "New York" "MD") _let_1)))))
|
slianogram23 | bikes-long-repeat | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(declare-var col1 String)
(declare-var col2 String)
(constraint (= (f "University of Pennsylvania" "Phialdelphia, PA, USA") "University of Pennsylvania, Phialdelphia, PA, USA"))
(constraint (= (f "Cornell University" "Ithaca, New York, USA") "Cornell University, Ithaca, New York, USA"))
(constraint (= (f "University of Maryland College Park" "College Park, MD") "University of Maryland College Park, College Park, MD"))
(constraint (= (f "University of Michigan" "Ann Arbor, MI, USA") "University of Michigan, Ann Arbor, MI, 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"))
(check-synth)
Solution:
(define-fun f ((col1 String) (col2 String)) String (str.++ col1 (str.++ "," (str.++ " " col2))))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Nancy" "FreeHafer") "Nancy F."))
(constraint (= (f "Andrew" "Cencici") "Andrew C."))
(constraint (= (f "Jan" "Kotas") "Jan K."))
(constraint (= (f "Mariya" "Sergienko") "Mariya S."))
(constraint (= (f "Launa" "Withers") "Launa W."))
(constraint (= (f "Lakenya" "Edison") "Lakenya E."))
(constraint (= (f "Brendan" "Hage") "Brendan H."))
(constraint (= (f "Bradford" "Lango") "Bradford L."))
(constraint (= (f "Rudolf" "Akiyama") "Rudolf A."))
(constraint (= (f "Lara" "Constable") "Lara C."))
(constraint (= (f "Madelaine" "Ghoston") "Madelaine G."))
(constraint (= (f "Salley" "Hornak") "Salley H."))
(constraint (= (f "Micha" "Junkin") "Micha J."))
(constraint (= (f "Teddy" "Bobo") "Teddy B."))
(constraint (= (f "Coralee" "Scalia") "Coralee S."))
(constraint (= (f "Jeff" "Quashie") "Jeff Q."))
(constraint (= (f "Vena" "Babiarz") "Vena B."))
(constraint (= (f "Karrie" "Lain") "Karrie L."))
(constraint (= (f "Tobias" "Dermody") "Tobias D."))
(constraint (= (f "Celsa" "Hopkins") "Celsa H."))
(constraint (= (f "Kimberley" "Halpern") "Kimberley H."))
(constraint (= (f "Phillip" "Rowden") "Phillip R."))
(constraint (= (f "Elias" "Neil") "Elias N."))
(constraint (= (f "Lashanda" "Cortes") "Lashanda C."))
(constraint (= (f "Mackenzie" "Spell") "Mackenzie S."))
(constraint (= (f "Kathlyn" "Eccleston") "Kathlyn E."))
(constraint (= (f "Georgina" "Brescia") "Georgina B."))
(constraint (= (f "Beata" "Miah") "Beata M."))
(constraint (= (f "Desiree" "Seamons") "Desiree S."))
(constraint (= (f "Jeanice" "Soderstrom") "Jeanice S."))
(constraint (= (f "Mariel" "Jurgens") "Mariel J."))
(constraint (= (f "Alida" "Bogle") "Alida B."))
(constraint (= (f "Jacqualine" "Olague") "Jacqualine O."))
(constraint (= (f "Joaquin" "Clasen") "Joaquin C."))
(constraint (= (f "Samuel" "Richert") "Samuel R."))
(constraint (= (f "Malissa" "Marcus") "Malissa M."))
(constraint (= (f "Alaina" "Partida") "Alaina P."))
(constraint (= (f "Trinidad" "Mulloy") "Trinidad M."))
(constraint (= (f "Carlene" "Garrard") "Carlene G."))
(constraint (= (f "Melodi" "Chism") "Melodi C."))
(constraint (= (f "Bess" "Chilcott") "Bess C."))
(constraint (= (f "Chong" "Aylward") "Chong A."))
(constraint (= (f "Jani" "Ramthun") "Jani R."))
(constraint (= (f "Jacquiline" "Heintz") "Jacquiline H."))
(constraint (= (f "Hayley" "Marquess") "Hayley M."))
(constraint (= (f "Andria" "Spagnoli") "Andria S."))
(constraint (= (f "Irwin" "Covelli") "Irwin C."))
(constraint (= (f "Gertude" "Montiel") "Gertude M."))
(constraint (= (f "Stefany" "Reily") "Stefany R."))
(constraint (= (f "Rae" "Mcgaughey") "Rae M."))
(constraint (= (f "Cruz" "Latimore") "Cruz L."))
(constraint (= (f "Maryann" "Casler") "Maryann C."))
(constraint (= (f "Annalisa" "Gregori") "Annalisa G."))
(constraint (= (f "Jenee" "Pannell") "Jenee P."))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ (str.++ (str.++ firstname " ") (str.at lastname 0)) "."))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "566-086-726") "726"))
(constraint (= (f "566-086-726") "726"))
(constraint (= (f "566-086-726") "726"))
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "566-086-726") "726"))
(check-synth)
Solution:
(define-fun f ((name String)) String (str.++ (str.at name (+ 3 5)) (str.++ (str.at name (+ 4 5)) (str.at name (+ 5 5)))))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "Ducati100") "Ducati"))
(constraint (= (f "Ducati100") "Ducati"))
(constraint (= (f "Ducati100") "Ducati"))
(constraint (= (f "Honda125") "Honda"))
(constraint (= (f "Honda125") "Honda"))
(constraint (= (f "Honda125") "Honda"))
(constraint (= (f "Ducati250") "Ducati"))
(constraint (= (f "Ducati250") "Ducati"))
(constraint (= (f "Ducati250") "Ducati"))
(constraint (= (f "Honda250") "Honda"))
(constraint (= (f "Honda250") "Honda"))
(constraint (= (f "Honda250") "Honda"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Acura100") "Acura"))
(constraint (= (f "Acura100") "Acura"))
(constraint (= (f "Acura100") "Acura"))
(constraint (= (f "Acura125") "Acura"))
(constraint (= (f "Ferrari250") "Ferrari"))
(constraint (= (f "Ferrari250") "Ferrari"))
(constraint (= (f "Ferrari250") "Ferrari"))
(constraint (= (f "Ferrari250") "Ferrari"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati100") "Ducati"))
(constraint (= (f "Honda125") "Honda"))
(constraint (= (f "Honda125") "Honda"))
(constraint (= (f "Honda125") "Honda"))
(constraint (= (f "Ducati250") "Ducati"))
(constraint (= (f "Honda250") "Honda"))
(constraint (= (f "Honda250") "Honda"))
(constraint (= (f "Honda250") "Honda"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Acura100") "Acura"))
(constraint (= (f "Acura125") "Acura"))
(constraint (= (f "Acura125") "Acura"))
(constraint (= (f "Acura125") "Acura"))
(constraint (= (f "Ferrari250") "Ferrari"))
(constraint (= (f "Ferrari250") "Ferrari"))
(constraint (= (f "Ferrari250") "Ferrari"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Honda550") "Honda"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(constraint (= (f "Ducati125") "Ducati"))
(check-synth)
Solution:
| (define-fun f ((name String)) String (str.substr name 0 (- (str.len name) 3)))
|
slianogram42 | phone-1-long-repeat | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((_arg_0 String)) String)
(constraint (= (f "Mining US") "Mining"))
(constraint (= (f "Soybean Farming CAN") "Soybean Farming"))
(constraint (= (f "Soybean Farming") "Soybean Farming"))
(constraint (= (f "Oil Extraction US") "Oil Extraction"))
(constraint (= (f "Fishing") "Fishing"))
(check-synth)
Solution:
(define-fun f ((_arg_0 String)) String (ite (str.contains _arg_0 "US") (str.replace _arg_0 (str.++ " " "US") "") (str.replace _arg_0 (str.++ " " "CAN") "")))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Launa" "Withers") "L. Withers"))
(constraint (= (f "Lakenya" "Edison") "L. Edison"))
(constraint (= (f "Brendan" "Hage") "B. Hage"))
(constraint (= (f "Bradford" "Lango") "B. Lango"))
(constraint (= (f "Rudolf" "Akiyama") "R. Akiyama"))
(constraint (= (f "Lara" "Constable") "L. Constable"))
(constraint (= (f "Madelaine" "Ghoston") "M. Ghoston"))
(constraint (= (f "Salley" "Hornak") "S. Hornak"))
(constraint (= (f "Micha" "Junkin") "M. Junkin"))
(constraint (= (f "Teddy" "Bobo") "T. Bobo"))
(constraint (= (f "Coralee" "Scalia") "C. Scalia"))
(constraint (= (f "Jeff" "Quashie") "J. Quashie"))
(constraint (= (f "Vena" "Babiarz") "V. Babiarz"))
(constraint (= (f "Karrie" "Lain") "K. Lain"))
(constraint (= (f "Tobias" "Dermody") "T. Dermody"))
(constraint (= (f "Celsa" "Hopkins") "C. Hopkins"))
(constraint (= (f "Kimberley" "Halpern") "K. Halpern"))
(constraint (= (f "Phillip" "Rowden") "P. Rowden"))
(constraint (= (f "Elias" "Neil") "E. Neil"))
(constraint (= (f "Lashanda" "Cortes") "L. Cortes"))
(constraint (= (f "Mackenzie" "Spell") "M. Spell"))
(constraint (= (f "Kathlyn" "Eccleston") "K. Eccleston"))
(constraint (= (f "Georgina" "Brescia") "G. Brescia"))
(constraint (= (f "Beata" "Miah") "B. Miah"))
(constraint (= (f "Desiree" "Seamons") "D. Seamons"))
(constraint (= (f "Jeanice" "Soderstrom") "J. Soderstrom"))
(constraint (= (f "Mariel" "Jurgens") "M. Jurgens"))
(constraint (= (f "Alida" "Bogle") "A. Bogle"))
(constraint (= (f "Jacqualine" "Olague") "J. Olague"))
(constraint (= (f "Joaquin" "Clasen") "J. Clasen"))
(constraint (= (f "Samuel" "Richert") "S. Richert"))
(constraint (= (f "Malissa" "Marcus") "M. Marcus"))
(constraint (= (f "Alaina" "Partida") "A. Partida"))
(constraint (= (f "Trinidad" "Mulloy") "T. Mulloy"))
(constraint (= (f "Carlene" "Garrard") "C. Garrard"))
(constraint (= (f "Melodi" "Chism") "M. Chism"))
(constraint (= (f "Bess" "Chilcott") "B. Chilcott"))
(constraint (= (f "Chong" "Aylward") "C. Aylward"))
(constraint (= (f "Jani" "Ramthun") "J. Ramthun"))
(constraint (= (f "Jacquiline" "Heintz") "J. Heintz"))
(constraint (= (f "Hayley" "Marquess") "H. Marquess"))
(constraint (= (f "Andria" "Spagnoli") "A. Spagnoli"))
(constraint (= (f "Irwin" "Covelli") "I. Covelli"))
(constraint (= (f "Gertude" "Montiel") "G. Montiel"))
(constraint (= (f "Stefany" "Reily") "S. Reily"))
(constraint (= (f "Rae" "Mcgaughey") "R. Mcgaughey"))
(constraint (= (f "Cruz" "Latimore") "C. Latimore"))
(constraint (= (f "Maryann" "Casler") "M. Casler"))
(constraint (= (f "Annalisa" "Gregori") "A. Gregori"))
(constraint (= (f "Jenee" "Pannell") "J. Pannell"))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ (str.++ (str.++ (str.at firstname 0) ".") " ") lastname))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var name String)
(constraint (= (f "Launa" "Withers") "Launa Withers"))
(constraint (= (f "Lakenya" "Edison") "Lakenya Edison"))
(constraint (= (f "Brendan" "Hage") "Brendan Hage"))
(constraint (= (f "Bradford" "Lango") "Bradford Lango"))
(constraint (= (f "Rudolf" "Akiyama") "Rudolf Akiyama"))
(constraint (= (f "Lara" "Constable") "Lara Constable"))
(constraint (= (f "Madelaine" "Ghoston") "Madelaine Ghoston"))
(constraint (= (f "Salley" "Hornak") "Salley Hornak"))
(constraint (= (f "Micha" "Junkin") "Micha Junkin"))
(constraint (= (f "Teddy" "Bobo") "Teddy Bobo"))
(constraint (= (f "Coralee" "Scalia") "Coralee Scalia"))
(constraint (= (f "Jeff" "Quashie") "Jeff Quashie"))
(constraint (= (f "Vena" "Babiarz") "Vena Babiarz"))
(constraint (= (f "Karrie" "Lain") "Karrie Lain"))
(constraint (= (f "Tobias" "Dermody") "Tobias Dermody"))
(constraint (= (f "Celsa" "Hopkins") "Celsa Hopkins"))
(constraint (= (f "Kimberley" "Halpern") "Kimberley Halpern"))
(constraint (= (f "Phillip" "Rowden") "Phillip Rowden"))
(constraint (= (f "Elias" "Neil") "Elias Neil"))
(constraint (= (f "Lashanda" "Cortes") "Lashanda Cortes"))
(constraint (= (f "Mackenzie" "Spell") "Mackenzie Spell"))
(constraint (= (f "Kathlyn" "Eccleston") "Kathlyn Eccleston"))
(constraint (= (f "Georgina" "Brescia") "Georgina Brescia"))
(constraint (= (f "Beata" "Miah") "Beata Miah"))
(constraint (= (f "Desiree" "Seamons") "Desiree Seamons"))
(constraint (= (f "Jeanice" "Soderstrom") "Jeanice Soderstrom"))
(constraint (= (f "Mariel" "Jurgens") "Mariel Jurgens"))
(constraint (= (f "Alida" "Bogle") "Alida Bogle"))
(constraint (= (f "Jacqualine" "Olague") "Jacqualine Olague"))
(constraint (= (f "Joaquin" "Clasen") "Joaquin Clasen"))
(constraint (= (f "Samuel" "Richert") "Samuel Richert"))
(constraint (= (f "Malissa" "Marcus") "Malissa Marcus"))
(constraint (= (f "Alaina" "Partida") "Alaina Partida"))
(constraint (= (f "Trinidad" "Mulloy") "Trinidad Mulloy"))
(constraint (= (f "Carlene" "Garrard") "Carlene Garrard"))
(constraint (= (f "Melodi" "Chism") "Melodi Chism"))
(constraint (= (f "Bess" "Chilcott") "Bess Chilcott"))
(constraint (= (f "Chong" "Aylward") "Chong Aylward"))
(constraint (= (f "Jani" "Ramthun") "Jani Ramthun"))
(constraint (= (f "Jacquiline" "Heintz") "Jacquiline Heintz"))
(constraint (= (f "Hayley" "Marquess") "Hayley Marquess"))
(constraint (= (f "Andria" "Spagnoli") "Andria Spagnoli"))
(constraint (= (f "Irwin" "Covelli") "Irwin Covelli"))
(constraint (= (f "Gertude" "Montiel") "Gertude Montiel"))
(constraint (= (f "Stefany" "Reily") "Stefany Reily"))
(constraint (= (f "Rae" "Mcgaughey") "Rae Mcgaughey"))
(constraint (= (f "Cruz" "Latimore") "Cruz Latimore"))
(constraint (= (f "Maryann" "Casler") "Maryann Casler"))
(constraint (= (f "Annalisa" "Gregori") "Annalisa Gregori"))
(constraint (= (f "Jenee" "Pannell") "Jenee Pannell"))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ firstname (str.++ " " lastname)))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "242"))
(constraint (= (f "938-242-504") "242"))
(constraint (= (f "938-242-504") "242"))
(constraint (= (f "308-916-545") "916"))
(constraint (= (f "308-916-545") "916"))
(constraint (= (f "308-916-545") "916"))
(constraint (= (f "623-599-749") "599"))
(constraint (= (f "623-599-749") "599"))
(constraint (= (f "623-599-749") "599"))
(constraint (= (f "981-424-843") "424"))
(constraint (= (f "981-424-843") "424"))
(constraint (= (f "981-424-843") "424"))
(constraint (= (f "118-980-214") "980"))
(constraint (= (f "118-980-214") "980"))
(constraint (= (f "118-980-214") "980"))
(constraint (= (f "244-655-094") "655"))
(constraint (= (f "244-655-094") "655"))
(constraint (= (f "244-655-094") "655"))
(constraint (= (f "830-941-991") "941"))
(constraint (= (f "830-941-991") "941"))
(constraint (= (f "830-941-991") "941"))
(constraint (= (f "911-186-562") "186"))
(constraint (= (f "911-186-562") "186"))
(constraint (= (f "911-186-562") "186"))
(constraint (= (f "002-500-200") "500"))
(constraint (= (f "002-500-200") "500"))
(constraint (= (f "002-500-200") "500"))
(constraint (= (f "113-860-034") "860"))
(constraint (= (f "113-860-034") "860"))
(constraint (= (f "113-860-034") "860"))
(constraint (= (f "457-622-959") "622"))
(constraint (= (f "457-622-959") "622"))
(constraint (= (f "457-622-959") "622"))
(constraint (= (f "986-722-311") "722"))
(constraint (= (f "986-722-311") "722"))
(constraint (= (f "986-722-311") "722"))
(constraint (= (f "110-170-771") "170"))
(constraint (= (f "110-170-771") "170"))
(constraint (= (f "110-170-771") "170"))
(constraint (= (f "469-610-118") "610"))
(constraint (= (f "469-610-118") "610"))
(constraint (= (f "469-610-118") "610"))
(constraint (= (f "817-925-247") "925"))
(constraint (= (f "817-925-247") "925"))
(constraint (= (f "817-925-247") "925"))
(constraint (= (f "256-899-439") "899"))
(constraint (= (f "256-899-439") "899"))
(constraint (= (f "256-899-439") "899"))
(constraint (= (f "886-911-726") "911"))
(constraint (= (f "886-911-726") "911"))
(constraint (= (f "886-911-726") "911"))
(constraint (= (f "562-950-358") "950"))
(constraint (= (f "562-950-358") "950"))
(constraint (= (f "562-950-358") "950"))
(constraint (= (f "693-049-588") "049"))
(constraint (= (f "693-049-588") "049"))
(constraint (= (f "693-049-588") "049"))
(constraint (= (f "840-503-234") "503"))
(constraint (= (f "840-503-234") "503"))
(constraint (= (f "840-503-234") "503"))
(constraint (= (f "698-815-340") "815"))
(constraint (= (f "698-815-340") "815"))
(constraint (= (f "698-815-340") "815"))
(constraint (= (f "498-808-434") "808"))
(constraint (= (f "498-808-434") "808"))
(constraint (= (f "498-808-434") "808"))
(constraint (= (f "329-545-000") "545"))
(constraint (= (f "329-545-000") "545"))
(constraint (= (f "329-545-000") "545"))
(constraint (= (f "380-281-597") "281"))
(constraint (= (f "380-281-597") "281"))
(constraint (= (f "380-281-597") "281"))
(constraint (= (f "332-395-493") "395"))
(constraint (= (f "332-395-493") "395"))
(constraint (= (f "332-395-493") "395"))
(constraint (= (f "251-903-028") "903"))
(constraint (= (f "251-903-028") "903"))
(constraint (= (f "251-903-028") "903"))
(constraint (= (f "176-090-894") "090"))
(constraint (= (f "176-090-894") "090"))
(constraint (= (f "176-090-894") "090"))
(constraint (= (f "336-611-100") "611"))
(constraint (= (f "336-611-100") "611"))
(constraint (= (f "336-611-100") "611"))
(constraint (= (f "416-390-647") "390"))
(constraint (= (f "416-390-647") "390"))
(constraint (= (f "416-390-647") "390"))
(constraint (= (f "019-430-596") "430"))
(constraint (= (f "019-430-596") "430"))
(constraint (= (f "019-430-596") "430"))
(constraint (= (f "960-659-771") "659"))
(constraint (= (f "960-659-771") "659"))
(constraint (= (f "960-659-771") "659"))
(constraint (= (f "475-505-007") "505"))
(constraint (= (f "475-505-007") "505"))
(constraint (= (f "475-505-007") "505"))
(constraint (= (f "424-069-886") "069"))
(constraint (= (f "424-069-886") "069"))
(constraint (= (f "424-069-886") "069"))
(constraint (= (f "941-102-117") "102"))
(constraint (= (f "941-102-117") "102"))
(constraint (= (f "941-102-117") "102"))
(constraint (= (f "331-728-008") "728"))
(constraint (= (f "331-728-008") "728"))
(constraint (= (f "331-728-008") "728"))
(constraint (= (f "487-726-198") "726"))
(constraint (= (f "487-726-198") "726"))
(constraint (= (f "487-726-198") "726"))
(constraint (= (f "612-419-942") "419"))
(constraint (= (f "612-419-942") "419"))
(constraint (= (f "612-419-942") "419"))
(constraint (= (f "594-741-346") "741"))
(constraint (= (f "594-741-346") "741"))
(constraint (= (f "594-741-346") "741"))
(constraint (= (f "320-984-742") "984"))
(constraint (= (f "320-984-742") "984"))
(constraint (= (f "320-984-742") "984"))
(constraint (= (f "060-919-361") "919"))
(constraint (= (f "060-919-361") "919"))
(constraint (= (f "060-919-361") "919"))
(constraint (= (f "275-536-998") "536"))
(constraint (= (f "275-536-998") "536"))
(constraint (= (f "275-536-998") "536"))
(constraint (= (f "548-835-065") "835"))
(constraint (= (f "548-835-065") "835"))
(constraint (= (f "548-835-065") "835"))
(constraint (= (f "197-485-507") "485"))
(constraint (= (f "197-485-507") "485"))
(constraint (= (f "197-485-507") "485"))
(constraint (= (f "455-776-949") "776"))
(constraint (= (f "455-776-949") "776"))
(constraint (= (f "455-776-949") "776"))
(constraint (= (f "085-421-340") "421"))
(constraint (= (f "085-421-340") "421"))
(constraint (= (f "085-421-340") "421"))
(constraint (= (f "785-713-099") "713"))
(constraint (= (f "785-713-099") "713"))
(constraint (= (f "785-713-099") "713"))
(constraint (= (f "426-712-861") "712"))
(constraint (= (f "426-712-861") "712"))
(constraint (= (f "426-712-861") "712"))
(constraint (= (f "386-994-906") "994"))
(constraint (= (f "386-994-906") "994"))
(constraint (= (f "386-994-906") "994"))
(constraint (= (f "918-304-840") "304"))
(constraint (= (f "918-304-840") "304"))
(constraint (= (f "918-304-840") "304"))
(constraint (= (f "247-153-598") "153"))
(constraint (= (f "247-153-598") "153"))
(constraint (= (f "247-153-598") "153"))
(constraint (= (f "075-497-069") "497"))
(constraint (= (f "075-497-069") "497"))
(constraint (= (f "075-497-069") "497"))
(constraint (= (f "140-726-583") "726"))
(constraint (= (f "140-726-583") "726"))
(constraint (= (f "140-726-583") "726"))
(constraint (= (f "049-413-248") "413"))
(constraint (= (f "049-413-248") "413"))
(constraint (= (f "049-413-248") "413"))
(constraint (= (f "977-386-462") "386"))
(constraint (= (f "977-386-462") "386"))
(constraint (= (f "977-386-462") "386"))
(constraint (= (f "058-272-455") "272"))
(constraint (= (f "058-272-455") "272"))
(constraint (= (f "058-272-455") "272"))
(constraint (= (f "428-629-927") "629"))
(constraint (= (f "428-629-927") "629"))
(constraint (= (f "428-629-927") "629"))
(constraint (= (f "449-122-191") "122"))
(constraint (= (f "449-122-191") "122"))
(constraint (= (f "449-122-191") "122"))
(constraint (= (f "568-759-670") "759"))
(constraint (= (f "568-759-670") "759"))
(constraint (= (f "568-759-670") "759"))
(constraint (= (f "312-846-053") "846"))
(constraint (= (f "312-846-053") "846"))
(constraint (= (f "312-846-053") "846"))
(constraint (= (f "943-037-297") "037"))
(constraint (= (f "943-037-297") "037"))
(constraint (= (f "943-037-297") "037"))
(constraint (= (f "014-270-177") "270"))
(constraint (= (f "014-270-177") "270"))
(constraint (= (f "014-270-177") "270"))
(constraint (= (f "658-877-878") "877"))
(constraint (= (f "658-877-878") "877"))
(constraint (= (f "658-877-878") "877"))
(constraint (= (f "888-594-038") "594"))
(constraint (= (f "888-594-038") "594"))
(constraint (= (f "888-594-038") "594"))
(constraint (= (f "232-253-254") "253"))
(constraint (= (f "232-253-254") "253"))
(constraint (= (f "232-253-254") "253"))
(constraint (= (f "308-722-292") "722"))
(constraint (= (f "308-722-292") "722"))
(constraint (= (f "308-722-292") "722"))
(constraint (= (f "342-145-742") "145"))
(constraint (= (f "342-145-742") "145"))
(constraint (= (f "342-145-742") "145"))
(constraint (= (f "568-181-515") "181"))
(constraint (= (f "568-181-515") "181"))
(constraint (= (f "568-181-515") "181"))
(constraint (= (f "300-140-756") "140"))
(constraint (= (f "300-140-756") "140"))
(constraint (= (f "300-140-756") "140"))
(constraint (= (f "099-684-216") "684"))
(constraint (= (f "099-684-216") "684"))
(constraint (= (f "099-684-216") "684"))
(constraint (= (f "575-296-621") "296"))
(constraint (= (f "575-296-621") "296"))
(constraint (= (f "575-296-621") "296"))
(constraint (= (f "994-443-794") "443"))
(constraint (= (f "994-443-794") "443"))
(constraint (= (f "994-443-794") "443"))
(constraint (= (f "400-334-692") "334"))
(constraint (= (f "400-334-692") "334"))
(constraint (= (f "400-334-692") "334"))
(constraint (= (f "684-711-883") "711"))
(constraint (= (f "684-711-883") "711"))
(constraint (= (f "684-711-883") "711"))
(constraint (= (f "539-636-358") "636"))
(constraint (= (f "539-636-358") "636"))
(constraint (= (f "539-636-358") "636"))
(constraint (= (f "009-878-919") "878"))
(constraint (= (f "009-878-919") "878"))
(constraint (= (f "009-878-919") "878"))
(constraint (= (f "919-545-701") "545"))
(constraint (= (f "919-545-701") "545"))
(constraint (= (f "919-545-701") "545"))
(constraint (= (f "546-399-239") "399"))
(constraint (= (f "546-399-239") "399"))
(constraint (= (f "546-399-239") "399"))
(constraint (= (f "993-608-757") "608"))
(constraint (= (f "993-608-757") "608"))
(constraint (= (f "993-608-757") "608"))
(constraint (= (f "107-652-845") "652"))
(constraint (= (f "107-652-845") "652"))
(constraint (= (f "107-652-845") "652"))
(constraint (= (f "206-805-793") "805"))
(constraint (= (f "206-805-793") "805"))
(constraint (= (f "206-805-793") "805"))
(constraint (= (f "198-857-684") "857"))
(constraint (= (f "198-857-684") "857"))
(constraint (= (f "198-857-684") "857"))
(constraint (= (f "912-827-430") "827"))
(constraint (= (f "912-827-430") "827"))
(constraint (= (f "912-827-430") "827"))
(constraint (= (f "560-951-766") "951"))
(constraint (= (f "560-951-766") "951"))
(constraint (= (f "560-951-766") "951"))
(constraint (= (f "142-178-290") "178"))
(constraint (= (f "142-178-290") "178"))
(constraint (= (f "142-178-290") "178"))
(constraint (= (f "732-196-946") "196"))
(constraint (= (f "732-196-946") "196"))
(constraint (= (f "732-196-946") "196"))
(constraint (= (f "963-875-745") "875"))
(constraint (= (f "963-875-745") "875"))
(constraint (= (f "963-875-745") "875"))
(constraint (= (f "881-865-867") "865"))
(constraint (= (f "881-865-867") "865"))
(constraint (= (f "881-865-867") "865"))
(constraint (= (f "234-686-715") "686"))
(constraint (= (f "234-686-715") "686"))
(constraint (= (f "234-686-715") "686"))
(constraint (= (f "720-330-583") "330"))
(constraint (= (f "720-330-583") "330"))
(constraint (= (f "720-330-583") "330"))
(constraint (= (f "593-065-126") "065"))
(constraint (= (f "593-065-126") "065"))
(constraint (= (f "593-065-126") "065"))
(constraint (= (f "671-778-064") "778"))
(constraint (= (f "671-778-064") "778"))
(constraint (= (f "671-778-064") "778"))
(constraint (= (f "252-029-036") "029"))
(constraint (= (f "252-029-036") "029"))
(constraint (= (f "252-029-036") "029"))
(constraint (= (f "700-322-036") "322"))
(constraint (= (f "700-322-036") "322"))
(constraint (= (f "700-322-036") "322"))
(constraint (= (f "882-587-473") "587"))
(constraint (= (f "882-587-473") "587"))
(constraint (= (f "882-587-473") "587"))
(constraint (= (f "964-134-953") "134"))
(constraint (= (f "964-134-953") "134"))
(constraint (= (f "964-134-953") "134"))
(constraint (= (f "038-300-876") "300"))
(constraint (= (f "038-300-876") "300"))
(constraint (= (f "038-300-876") "300"))
(constraint (= (f "158-894-947") "894"))
(constraint (= (f "158-894-947") "894"))
(constraint (= (f "158-894-947") "894"))
(constraint (= (f "757-454-374") "454"))
(constraint (= (f "757-454-374") "454"))
(constraint (= (f "757-454-374") "454"))
(constraint (= (f "872-513-190") "513"))
(constraint (= (f "872-513-190") "513"))
(constraint (= (f "872-513-190") "513"))
(constraint (= (f "566-086-726") "086"))
(constraint (= (f "566-086-726") "086"))
(constraint (= (f "566-086-726") "086"))
(constraint (= (f "938-242-504") "242"))
(constraint (= (f "308-916-545") "916"))
(constraint (= (f "623-599-749") "599"))
(constraint (= (f "981-424-843") "424"))
(constraint (= (f "118-980-214") "980"))
(constraint (= (f "244-655-094") "655"))
(constraint (= (f "830-941-991") "941"))
(constraint (= (f "911-186-562") "186"))
(constraint (= (f "002-500-200") "500"))
(constraint (= (f "113-860-034") "860"))
(constraint (= (f "457-622-959") "622"))
(constraint (= (f "986-722-311") "722"))
(constraint (= (f "110-170-771") "170"))
(constraint (= (f "469-610-118") "610"))
(constraint (= (f "817-925-247") "925"))
(constraint (= (f "256-899-439") "899"))
(constraint (= (f "886-911-726") "911"))
(constraint (= (f "562-950-358") "950"))
(constraint (= (f "693-049-588") "049"))
(constraint (= (f "840-503-234") "503"))
(constraint (= (f "698-815-340") "815"))
(constraint (= (f "498-808-434") "808"))
(constraint (= (f "329-545-000") "545"))
(constraint (= (f "380-281-597") "281"))
(constraint (= (f "332-395-493") "395"))
(constraint (= (f "251-903-028") "903"))
(constraint (= (f "176-090-894") "090"))
(constraint (= (f "336-611-100") "611"))
(constraint (= (f "416-390-647") "390"))
(constraint (= (f "019-430-596") "430"))
(constraint (= (f "960-659-771") "659"))
(constraint (= (f "475-505-007") "505"))
(constraint (= (f "424-069-886") "069"))
(constraint (= (f "941-102-117") "102"))
(constraint (= (f "331-728-008") "728"))
(constraint (= (f "487-726-198") "726"))
(constraint (= (f "612-419-942") "419"))
(constraint (= (f "594-741-346") "741"))
(constraint (= (f "320-984-742") "984"))
(constraint (= (f "060-919-361") "919"))
(constraint (= (f "275-536-998") "536"))
(constraint (= (f "548-835-065") "835"))
(constraint (= (f "197-485-507") "485"))
(constraint (= (f "455-776-949") "776"))
(constraint (= (f "085-421-340") "421"))
(constraint (= (f "785-713-099") "713"))
(constraint (= (f "426-712-861") "712"))
(constraint (= (f "386-994-906") "994"))
(constraint (= (f "918-304-840") "304"))
(constraint (= (f "247-153-598") "153"))
(constraint (= (f "075-497-069") "497"))
(constraint (= (f "140-726-583") "726"))
(constraint (= (f "049-413-248") "413"))
(constraint (= (f "977-386-462") "386"))
(constraint (= (f "058-272-455") "272"))
(constraint (= (f "428-629-927") "629"))
(constraint (= (f "449-122-191") "122"))
(constraint (= (f "568-759-670") "759"))
(constraint (= (f "312-846-053") "846"))
(constraint (= (f "943-037-297") "037"))
(constraint (= (f "014-270-177") "270"))
(constraint (= (f "658-877-878") "877"))
(constraint (= (f "888-594-038") "594"))
(constraint (= (f "232-253-254") "253"))
(constraint (= (f "308-722-292") "722"))
(constraint (= (f "342-145-742") "145"))
(constraint (= (f "568-181-515") "181"))
(constraint (= (f "300-140-756") "140"))
(constraint (= (f "099-684-216") "684"))
(constraint (= (f "575-296-621") "296"))
(constraint (= (f "994-443-794") "443"))
(constraint (= (f "400-334-692") "334"))
(constraint (= (f "684-711-883") "711"))
(constraint (= (f "539-636-358") "636"))
(constraint (= (f "009-878-919") "878"))
(constraint (= (f "919-545-701") "545"))
(constraint (= (f "546-399-239") "399"))
(constraint (= (f "993-608-757") "608"))
(constraint (= (f "107-652-845") "652"))
(constraint (= (f "206-805-793") "805"))
(constraint (= (f "198-857-684") "857"))
(constraint (= (f "912-827-430") "827"))
(constraint (= (f "560-951-766") "951"))
(constraint (= (f "142-178-290") "178"))
(constraint (= (f "732-196-946") "196"))
(constraint (= (f "963-875-745") "875"))
(constraint (= (f "881-865-867") "865"))
(constraint (= (f "234-686-715") "686"))
(constraint (= (f "720-330-583") "330"))
(constraint (= (f "593-065-126") "065"))
(constraint (= (f "671-778-064") "778"))
(constraint (= (f "252-029-036") "029"))
(constraint (= (f "700-322-036") "322"))
(constraint (= (f "882-587-473") "587"))
(constraint (= (f "964-134-953") "134"))
(constraint (= (f "038-300-876") "300"))
(constraint (= (f "158-894-947") "894"))
(constraint (= (f "757-454-374") "454"))
(constraint (= (f "872-513-190") "513"))
(constraint (= (f "566-086-726") "086"))
(check-synth)
Solution:
| (define-fun f ((name String)) String (str.substr name 4 3))
|
slianogram24 | phone-2-long-repeat | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "(938) 242-504"))
(constraint (= (f "308-916-545") "(308) 916-545"))
(constraint (= (f "623-599-749") "(623) 599-749"))
(constraint (= (f "981-424-843") "(981) 424-843"))
(constraint (= (f "118-980-214") "(118) 980-214"))
(constraint (= (f "244-655-094") "(244) 655-094"))
(constraint (= (f "830-941-991") "(830) 941-991"))
(check-synth)
Solution:
(define-fun f ((name String)) String (str.++ (str.++ (str.++ (str.++ (str.++ (str.++ "(" (str.substr name 0 3)) ")") " ") (str.at name 4)) (str.substr name 5 5)) (str.at name (+ 5 5))))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Nancy" "FreeHafer") "Nancy F."))
(constraint (= (f "Andrew" "Cencici") "Andrew C."))
(constraint (= (f "Jan" "Kotas") "Jan K."))
(constraint (= (f "Mariya" "Sergienko") "Mariya S."))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ (str.++ (str.++ firstname " ") (str.at lastname 0)) "."))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var name String)
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(constraint (= (f "Lara" "Constable") "Constable, L."))
(constraint (= (f "Lara" "Constable") "Constable, L."))
(constraint (= (f "Lara" "Constable") "Constable, L."))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston, M."))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston, M."))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston, M."))
(constraint (= (f "Salley" "Hornak") "Hornak, S."))
(constraint (= (f "Salley" "Hornak") "Hornak, S."))
(constraint (= (f "Salley" "Hornak") "Hornak, S."))
(constraint (= (f "Micha" "Junkin") "Junkin, M."))
(constraint (= (f "Micha" "Junkin") "Junkin, M."))
(constraint (= (f "Micha" "Junkin") "Junkin, M."))
(constraint (= (f "Teddy" "Bobo") "Bobo, T."))
(constraint (= (f "Teddy" "Bobo") "Bobo, T."))
(constraint (= (f "Teddy" "Bobo") "Bobo, T."))
(constraint (= (f "Coralee" "Scalia") "Scalia, C."))
(constraint (= (f "Coralee" "Scalia") "Scalia, C."))
(constraint (= (f "Coralee" "Scalia") "Scalia, C."))
(constraint (= (f "Jeff" "Quashie") "Quashie, J."))
(constraint (= (f "Jeff" "Quashie") "Quashie, J."))
(constraint (= (f "Jeff" "Quashie") "Quashie, J."))
(constraint (= (f "Vena" "Babiarz") "Babiarz, V."))
(constraint (= (f "Vena" "Babiarz") "Babiarz, V."))
(constraint (= (f "Vena" "Babiarz") "Babiarz, V."))
(constraint (= (f "Karrie" "Lain") "Lain, K."))
(constraint (= (f "Karrie" "Lain") "Lain, K."))
(constraint (= (f "Karrie" "Lain") "Lain, K."))
(constraint (= (f "Tobias" "Dermody") "Dermody, T."))
(constraint (= (f "Tobias" "Dermody") "Dermody, T."))
(constraint (= (f "Tobias" "Dermody") "Dermody, T."))
(constraint (= (f "Celsa" "Hopkins") "Hopkins, C."))
(constraint (= (f "Celsa" "Hopkins") "Hopkins, C."))
(constraint (= (f "Celsa" "Hopkins") "Hopkins, C."))
(constraint (= (f "Kimberley" "Halpern") "Halpern, K."))
(constraint (= (f "Kimberley" "Halpern") "Halpern, K."))
(constraint (= (f "Kimberley" "Halpern") "Halpern, K."))
(constraint (= (f "Phillip" "Rowden") "Rowden, P."))
(constraint (= (f "Phillip" "Rowden") "Rowden, P."))
(constraint (= (f "Phillip" "Rowden") "Rowden, P."))
(constraint (= (f "Elias" "Neil") "Neil, E."))
(constraint (= (f "Elias" "Neil") "Neil, E."))
(constraint (= (f "Elias" "Neil") "Neil, E."))
(constraint (= (f "Lashanda" "Cortes") "Cortes, L."))
(constraint (= (f "Lashanda" "Cortes") "Cortes, L."))
(constraint (= (f "Lashanda" "Cortes") "Cortes, L."))
(constraint (= (f "Mackenzie" "Spell") "Spell, M."))
(constraint (= (f "Mackenzie" "Spell") "Spell, M."))
(constraint (= (f "Mackenzie" "Spell") "Spell, M."))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston, K."))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston, K."))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston, K."))
(constraint (= (f "Georgina" "Brescia") "Brescia, G."))
(constraint (= (f "Georgina" "Brescia") "Brescia, G."))
(constraint (= (f "Georgina" "Brescia") "Brescia, G."))
(constraint (= (f "Beata" "Miah") "Miah, B."))
(constraint (= (f "Beata" "Miah") "Miah, B."))
(constraint (= (f "Beata" "Miah") "Miah, B."))
(constraint (= (f "Desiree" "Seamons") "Seamons, D."))
(constraint (= (f "Desiree" "Seamons") "Seamons, D."))
(constraint (= (f "Desiree" "Seamons") "Seamons, D."))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom, J."))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom, J."))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom, J."))
(constraint (= (f "Mariel" "Jurgens") "Jurgens, M."))
(constraint (= (f "Mariel" "Jurgens") "Jurgens, M."))
(constraint (= (f "Mariel" "Jurgens") "Jurgens, M."))
(constraint (= (f "Alida" "Bogle") "Bogle, A."))
(constraint (= (f "Alida" "Bogle") "Bogle, A."))
(constraint (= (f "Alida" "Bogle") "Bogle, A."))
(constraint (= (f "Jacqualine" "Olague") "Olague, J."))
(constraint (= (f "Jacqualine" "Olague") "Olague, J."))
(constraint (= (f "Jacqualine" "Olague") "Olague, J."))
(constraint (= (f "Joaquin" "Clasen") "Clasen, J."))
(constraint (= (f "Joaquin" "Clasen") "Clasen, J."))
(constraint (= (f "Joaquin" "Clasen") "Clasen, J."))
(constraint (= (f "Samuel" "Richert") "Richert, S."))
(constraint (= (f "Samuel" "Richert") "Richert, S."))
(constraint (= (f "Samuel" "Richert") "Richert, S."))
(constraint (= (f "Malissa" "Marcus") "Marcus, M."))
(constraint (= (f "Malissa" "Marcus") "Marcus, M."))
(constraint (= (f "Malissa" "Marcus") "Marcus, M."))
(constraint (= (f "Alaina" "Partida") "Partida, A."))
(constraint (= (f "Alaina" "Partida") "Partida, A."))
(constraint (= (f "Alaina" "Partida") "Partida, A."))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy, T."))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy, T."))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy, T."))
(constraint (= (f "Carlene" "Garrard") "Garrard, C."))
(constraint (= (f "Carlene" "Garrard") "Garrard, C."))
(constraint (= (f "Carlene" "Garrard") "Garrard, C."))
(constraint (= (f "Melodi" "Chism") "Chism, M."))
(constraint (= (f "Melodi" "Chism") "Chism, M."))
(constraint (= (f "Melodi" "Chism") "Chism, M."))
(constraint (= (f "Bess" "Chilcott") "Chilcott, B."))
(constraint (= (f "Bess" "Chilcott") "Chilcott, B."))
(constraint (= (f "Bess" "Chilcott") "Chilcott, B."))
(constraint (= (f "Chong" "Aylward") "Aylward, C."))
(constraint (= (f "Chong" "Aylward") "Aylward, C."))
(constraint (= (f "Chong" "Aylward") "Aylward, C."))
(constraint (= (f "Jani" "Ramthun") "Ramthun, J."))
(constraint (= (f "Jani" "Ramthun") "Ramthun, J."))
(constraint (= (f "Jani" "Ramthun") "Ramthun, J."))
(constraint (= (f "Jacquiline" "Heintz") "Heintz, J."))
(constraint (= (f "Jacquiline" "Heintz") "Heintz, J."))
(constraint (= (f "Jacquiline" "Heintz") "Heintz, J."))
(constraint (= (f "Hayley" "Marquess") "Marquess, H."))
(constraint (= (f "Hayley" "Marquess") "Marquess, H."))
(constraint (= (f "Hayley" "Marquess") "Marquess, H."))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli, A."))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli, A."))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli, A."))
(constraint (= (f "Irwin" "Covelli") "Covelli, I."))
(constraint (= (f "Irwin" "Covelli") "Covelli, I."))
(constraint (= (f "Irwin" "Covelli") "Covelli, I."))
(constraint (= (f "Gertude" "Montiel") "Montiel, G."))
(constraint (= (f "Gertude" "Montiel") "Montiel, G."))
(constraint (= (f "Gertude" "Montiel") "Montiel, G."))
(constraint (= (f "Stefany" "Reily") "Reily, S."))
(constraint (= (f "Stefany" "Reily") "Reily, S."))
(constraint (= (f "Stefany" "Reily") "Reily, S."))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey, R."))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey, R."))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey, R."))
(constraint (= (f "Cruz" "Latimore") "Latimore, C."))
(constraint (= (f "Cruz" "Latimore") "Latimore, C."))
(constraint (= (f "Cruz" "Latimore") "Latimore, C."))
(constraint (= (f "Maryann" "Casler") "Casler, M."))
(constraint (= (f "Maryann" "Casler") "Casler, M."))
(constraint (= (f "Maryann" "Casler") "Casler, M."))
(constraint (= (f "Annalisa" "Gregori") "Gregori, A."))
(constraint (= (f "Annalisa" "Gregori") "Gregori, A."))
(constraint (= (f "Annalisa" "Gregori") "Gregori, A."))
(constraint (= (f "Jenee" "Pannell") "Pannell, J."))
(constraint (= (f "Jenee" "Pannell") "Pannell, J."))
(constraint (= (f "Jenee" "Pannell") "Pannell, J."))
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(constraint (= (f "Lara" "Constable") "Constable, L."))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston, M."))
(constraint (= (f "Salley" "Hornak") "Hornak, S."))
(constraint (= (f "Micha" "Junkin") "Junkin, M."))
(constraint (= (f "Teddy" "Bobo") "Bobo, T."))
(constraint (= (f "Coralee" "Scalia") "Scalia, C."))
(constraint (= (f "Jeff" "Quashie") "Quashie, J."))
(constraint (= (f "Vena" "Babiarz") "Babiarz, V."))
(constraint (= (f "Karrie" "Lain") "Lain, K."))
(constraint (= (f "Tobias" "Dermody") "Dermody, T."))
(constraint (= (f "Celsa" "Hopkins") "Hopkins, C."))
(constraint (= (f "Kimberley" "Halpern") "Halpern, K."))
(constraint (= (f "Phillip" "Rowden") "Rowden, P."))
(constraint (= (f "Elias" "Neil") "Neil, E."))
(constraint (= (f "Lashanda" "Cortes") "Cortes, L."))
(constraint (= (f "Mackenzie" "Spell") "Spell, M."))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston, K."))
(constraint (= (f "Georgina" "Brescia") "Brescia, G."))
(constraint (= (f "Beata" "Miah") "Miah, B."))
(constraint (= (f "Desiree" "Seamons") "Seamons, D."))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom, J."))
(constraint (= (f "Mariel" "Jurgens") "Jurgens, M."))
(constraint (= (f "Alida" "Bogle") "Bogle, A."))
(constraint (= (f "Jacqualine" "Olague") "Olague, J."))
(constraint (= (f "Joaquin" "Clasen") "Clasen, J."))
(constraint (= (f "Samuel" "Richert") "Richert, S."))
(constraint (= (f "Malissa" "Marcus") "Marcus, M."))
(constraint (= (f "Alaina" "Partida") "Partida, A."))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy, T."))
(constraint (= (f "Carlene" "Garrard") "Garrard, C."))
(constraint (= (f "Melodi" "Chism") "Chism, M."))
(constraint (= (f "Bess" "Chilcott") "Chilcott, B."))
(constraint (= (f "Chong" "Aylward") "Aylward, C."))
(constraint (= (f "Jani" "Ramthun") "Ramthun, J."))
(constraint (= (f "Jacquiline" "Heintz") "Heintz, J."))
(constraint (= (f "Hayley" "Marquess") "Marquess, H."))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli, A."))
(constraint (= (f "Irwin" "Covelli") "Covelli, I."))
(constraint (= (f "Gertude" "Montiel") "Montiel, G."))
(constraint (= (f "Stefany" "Reily") "Reily, S."))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey, R."))
(constraint (= (f "Cruz" "Latimore") "Latimore, C."))
(constraint (= (f "Maryann" "Casler") "Casler, M."))
(constraint (= (f "Annalisa" "Gregori") "Gregori, A."))
(constraint (= (f "Jenee" "Pannell") "Pannell, J."))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ lastname (str.++ "," (str.++ " " (str.++ (str.at firstname 0) ".")))))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "566-086-726") "726"))
(constraint (= (f "566-086-726") "726"))
(constraint (= (f "566-086-726") "726"))
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "566-086-726") "726"))
(check-synth)
Solution:
| (define-fun f ((name String)) String (str.++ (str.at name (+ 3 5)) (str.++ (str.at name (+ 4 5)) (str.at name (+ 5 5)))))
|
slianogram56 | phone-long | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "244-655-094") "094"))
(constraint (= (f "830-941-991") "991"))
(constraint (= (f "911-186-562") "562"))
(constraint (= (f "002-500-200") "200"))
(constraint (= (f "113-860-034") "034"))
(constraint (= (f "457-622-959") "959"))
(constraint (= (f "986-722-311") "311"))
(constraint (= (f "110-170-771") "771"))
(constraint (= (f "469-610-118") "118"))
(constraint (= (f "817-925-247") "247"))
(constraint (= (f "256-899-439") "439"))
(constraint (= (f "886-911-726") "726"))
(constraint (= (f "562-950-358") "358"))
(constraint (= (f "693-049-588") "588"))
(constraint (= (f "840-503-234") "234"))
(constraint (= (f "698-815-340") "340"))
(constraint (= (f "498-808-434") "434"))
(constraint (= (f "329-545-000") "000"))
(constraint (= (f "380-281-597") "597"))
(constraint (= (f "332-395-493") "493"))
(constraint (= (f "251-903-028") "028"))
(constraint (= (f "176-090-894") "894"))
(constraint (= (f "336-611-100") "100"))
(constraint (= (f "416-390-647") "647"))
(constraint (= (f "019-430-596") "596"))
(constraint (= (f "960-659-771") "771"))
(constraint (= (f "475-505-007") "007"))
(constraint (= (f "424-069-886") "886"))
(constraint (= (f "941-102-117") "117"))
(constraint (= (f "331-728-008") "008"))
(constraint (= (f "487-726-198") "198"))
(constraint (= (f "612-419-942") "942"))
(constraint (= (f "594-741-346") "346"))
(constraint (= (f "320-984-742") "742"))
(constraint (= (f "060-919-361") "361"))
(constraint (= (f "275-536-998") "998"))
(constraint (= (f "548-835-065") "065"))
(constraint (= (f "197-485-507") "507"))
(constraint (= (f "455-776-949") "949"))
(constraint (= (f "085-421-340") "340"))
(constraint (= (f "785-713-099") "099"))
(constraint (= (f "426-712-861") "861"))
(constraint (= (f "386-994-906") "906"))
(constraint (= (f "918-304-840") "840"))
(constraint (= (f "247-153-598") "598"))
(constraint (= (f "075-497-069") "069"))
(constraint (= (f "140-726-583") "583"))
(constraint (= (f "049-413-248") "248"))
(constraint (= (f "977-386-462") "462"))
(constraint (= (f "058-272-455") "455"))
(constraint (= (f "428-629-927") "927"))
(constraint (= (f "449-122-191") "191"))
(constraint (= (f "568-759-670") "670"))
(constraint (= (f "312-846-053") "053"))
(constraint (= (f "943-037-297") "297"))
(constraint (= (f "014-270-177") "177"))
(constraint (= (f "658-877-878") "878"))
(constraint (= (f "888-594-038") "038"))
(constraint (= (f "232-253-254") "254"))
(constraint (= (f "308-722-292") "292"))
(constraint (= (f "342-145-742") "742"))
(constraint (= (f "568-181-515") "515"))
(constraint (= (f "300-140-756") "756"))
(constraint (= (f "099-684-216") "216"))
(constraint (= (f "575-296-621") "621"))
(constraint (= (f "994-443-794") "794"))
(constraint (= (f "400-334-692") "692"))
(constraint (= (f "684-711-883") "883"))
(constraint (= (f "539-636-358") "358"))
(constraint (= (f "009-878-919") "919"))
(constraint (= (f "919-545-701") "701"))
(constraint (= (f "546-399-239") "239"))
(constraint (= (f "993-608-757") "757"))
(constraint (= (f "107-652-845") "845"))
(constraint (= (f "206-805-793") "793"))
(constraint (= (f "198-857-684") "684"))
(constraint (= (f "912-827-430") "430"))
(constraint (= (f "560-951-766") "766"))
(constraint (= (f "142-178-290") "290"))
(constraint (= (f "732-196-946") "946"))
(constraint (= (f "963-875-745") "745"))
(constraint (= (f "881-865-867") "867"))
(constraint (= (f "234-686-715") "715"))
(constraint (= (f "720-330-583") "583"))
(constraint (= (f "593-065-126") "126"))
(constraint (= (f "671-778-064") "064"))
(constraint (= (f "252-029-036") "036"))
(constraint (= (f "700-322-036") "036"))
(constraint (= (f "882-587-473") "473"))
(constraint (= (f "964-134-953") "953"))
(constraint (= (f "038-300-876") "876"))
(constraint (= (f "158-894-947") "947"))
(constraint (= (f "757-454-374") "374"))
(constraint (= (f "872-513-190") "190"))
(constraint (= (f "566-086-726") "726"))
(check-synth)
Solution:
(define-fun f ((name String)) String (str.++ (str.at name (+ 3 5)) (str.++ (str.at name (+ 4 5)) (str.at name (+ 5 5)))))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "242"))
(constraint (= (f "308-916-545") "916"))
(constraint (= (f "623-599-749") "599"))
(constraint (= (f "981-424-843") "424"))
(constraint (= (f "118-980-214") "980"))
(constraint (= (f "244-655-094") "655"))
(check-synth)
Solution:
(define-fun f ((name String)) String (str.substr name 4 3))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "(938) 242-504"))
(constraint (= (f "308-916-545") "(308) 916-545"))
(constraint (= (f "623-599-749") "(623) 599-749"))
(constraint (= (f "981-424-843") "(981) 424-843"))
(constraint (= (f "118-980-214") "(118) 980-214"))
(constraint (= (f "244-655-094") "(244) 655-094"))
(constraint (= (f "830-941-991") "(830) 941-991"))
(constraint (= (f "911-186-562") "(911) 186-562"))
(constraint (= (f "002-500-200") "(002) 500-200"))
(constraint (= (f "113-860-034") "(113) 860-034"))
(constraint (= (f "457-622-959") "(457) 622-959"))
(constraint (= (f "986-722-311") "(986) 722-311"))
(constraint (= (f "110-170-771") "(110) 170-771"))
(constraint (= (f "469-610-118") "(469) 610-118"))
(constraint (= (f "817-925-247") "(817) 925-247"))
(constraint (= (f "256-899-439") "(256) 899-439"))
(constraint (= (f "886-911-726") "(886) 911-726"))
(constraint (= (f "562-950-358") "(562) 950-358"))
(constraint (= (f "693-049-588") "(693) 049-588"))
(constraint (= (f "840-503-234") "(840) 503-234"))
(constraint (= (f "698-815-340") "(698) 815-340"))
(constraint (= (f "498-808-434") "(498) 808-434"))
(constraint (= (f "329-545-000") "(329) 545-000"))
(constraint (= (f "380-281-597") "(380) 281-597"))
(constraint (= (f "332-395-493") "(332) 395-493"))
(constraint (= (f "251-903-028") "(251) 903-028"))
(constraint (= (f "176-090-894") "(176) 090-894"))
(constraint (= (f "336-611-100") "(336) 611-100"))
(constraint (= (f "416-390-647") "(416) 390-647"))
(constraint (= (f "019-430-596") "(019) 430-596"))
(constraint (= (f "960-659-771") "(960) 659-771"))
(constraint (= (f "475-505-007") "(475) 505-007"))
(constraint (= (f "424-069-886") "(424) 069-886"))
(constraint (= (f "941-102-117") "(941) 102-117"))
(constraint (= (f "331-728-008") "(331) 728-008"))
(constraint (= (f "487-726-198") "(487) 726-198"))
(constraint (= (f "612-419-942") "(612) 419-942"))
(constraint (= (f "594-741-346") "(594) 741-346"))
(constraint (= (f "320-984-742") "(320) 984-742"))
(constraint (= (f "060-919-361") "(060) 919-361"))
(constraint (= (f "275-536-998") "(275) 536-998"))
(constraint (= (f "548-835-065") "(548) 835-065"))
(constraint (= (f "197-485-507") "(197) 485-507"))
(constraint (= (f "455-776-949") "(455) 776-949"))
(constraint (= (f "085-421-340") "(085) 421-340"))
(constraint (= (f "785-713-099") "(785) 713-099"))
(constraint (= (f "426-712-861") "(426) 712-861"))
(constraint (= (f "386-994-906") "(386) 994-906"))
(constraint (= (f "918-304-840") "(918) 304-840"))
(constraint (= (f "247-153-598") "(247) 153-598"))
(constraint (= (f "075-497-069") "(075) 497-069"))
(constraint (= (f "140-726-583") "(140) 726-583"))
(constraint (= (f "049-413-248") "(049) 413-248"))
(constraint (= (f "977-386-462") "(977) 386-462"))
(constraint (= (f "058-272-455") "(058) 272-455"))
(constraint (= (f "428-629-927") "(428) 629-927"))
(constraint (= (f "449-122-191") "(449) 122-191"))
(constraint (= (f "568-759-670") "(568) 759-670"))
(constraint (= (f "312-846-053") "(312) 846-053"))
(constraint (= (f "943-037-297") "(943) 037-297"))
(constraint (= (f "014-270-177") "(014) 270-177"))
(constraint (= (f "658-877-878") "(658) 877-878"))
(constraint (= (f "888-594-038") "(888) 594-038"))
(constraint (= (f "232-253-254") "(232) 253-254"))
(constraint (= (f "308-722-292") "(308) 722-292"))
(constraint (= (f "342-145-742") "(342) 145-742"))
(constraint (= (f "568-181-515") "(568) 181-515"))
(constraint (= (f "300-140-756") "(300) 140-756"))
(constraint (= (f "099-684-216") "(099) 684-216"))
(constraint (= (f "575-296-621") "(575) 296-621"))
(constraint (= (f "994-443-794") "(994) 443-794"))
(constraint (= (f "400-334-692") "(400) 334-692"))
(constraint (= (f "684-711-883") "(684) 711-883"))
(constraint (= (f "539-636-358") "(539) 636-358"))
(constraint (= (f "009-878-919") "(009) 878-919"))
(constraint (= (f "919-545-701") "(919) 545-701"))
(constraint (= (f "546-399-239") "(546) 399-239"))
(constraint (= (f "993-608-757") "(993) 608-757"))
(constraint (= (f "107-652-845") "(107) 652-845"))
(constraint (= (f "206-805-793") "(206) 805-793"))
(constraint (= (f "198-857-684") "(198) 857-684"))
(constraint (= (f "912-827-430") "(912) 827-430"))
(constraint (= (f "560-951-766") "(560) 951-766"))
(constraint (= (f "142-178-290") "(142) 178-290"))
(constraint (= (f "732-196-946") "(732) 196-946"))
(constraint (= (f "963-875-745") "(963) 875-745"))
(constraint (= (f "881-865-867") "(881) 865-867"))
(constraint (= (f "234-686-715") "(234) 686-715"))
(constraint (= (f "720-330-583") "(720) 330-583"))
(constraint (= (f "593-065-126") "(593) 065-126"))
(constraint (= (f "671-778-064") "(671) 778-064"))
(constraint (= (f "252-029-036") "(252) 029-036"))
(constraint (= (f "700-322-036") "(700) 322-036"))
(constraint (= (f "882-587-473") "(882) 587-473"))
(constraint (= (f "964-134-953") "(964) 134-953"))
(constraint (= (f "038-300-876") "(038) 300-876"))
(constraint (= (f "158-894-947") "(158) 894-947"))
(constraint (= (f "757-454-374") "(757) 454-374"))
(constraint (= (f "872-513-190") "(872) 513-190"))
(constraint (= (f "566-086-726") "(566) 086-726"))
(check-synth)
Solution:
(define-fun f ((name String)) String (str.++ "(" (str.++ (str.substr name 0 3) (str.++ ")" (str.++ " " (str.++ (str.at name 4) (str.++ (str.substr name 5 5) (str.at name (+ 5 5)))))))))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "938"))
(constraint (= (f "308-916-545") "308"))
(constraint (= (f "623-599-749") "623"))
(constraint (= (f "981-424-843") "981"))
(constraint (= (f "118-980-214") "118"))
(constraint (= (f "244-655-094") "244"))
(constraint (= (f "830-941-991") "830"))
(constraint (= (f "911-186-562") "911"))
(constraint (= (f "002-500-200") "002"))
(constraint (= (f "113-860-034") "113"))
(constraint (= (f "457-622-959") "457"))
(constraint (= (f "986-722-311") "986"))
(constraint (= (f "110-170-771") "110"))
(constraint (= (f "469-610-118") "469"))
(constraint (= (f "817-925-247") "817"))
(constraint (= (f "256-899-439") "256"))
(constraint (= (f "886-911-726") "886"))
(constraint (= (f "562-950-358") "562"))
(constraint (= (f "693-049-588") "693"))
(constraint (= (f "840-503-234") "840"))
(constraint (= (f "698-815-340") "698"))
(constraint (= (f "498-808-434") "498"))
(constraint (= (f "329-545-000") "329"))
(constraint (= (f "380-281-597") "380"))
(constraint (= (f "332-395-493") "332"))
(constraint (= (f "251-903-028") "251"))
(constraint (= (f "176-090-894") "176"))
(constraint (= (f "336-611-100") "336"))
(constraint (= (f "416-390-647") "416"))
(constraint (= (f "019-430-596") "019"))
(constraint (= (f "960-659-771") "960"))
(constraint (= (f "475-505-007") "475"))
(constraint (= (f "424-069-886") "424"))
(constraint (= (f "941-102-117") "941"))
(constraint (= (f "331-728-008") "331"))
(constraint (= (f "487-726-198") "487"))
(constraint (= (f "612-419-942") "612"))
(constraint (= (f "594-741-346") "594"))
(constraint (= (f "320-984-742") "320"))
(constraint (= (f "060-919-361") "060"))
(constraint (= (f "275-536-998") "275"))
(constraint (= (f "548-835-065") "548"))
(constraint (= (f "197-485-507") "197"))
(constraint (= (f "455-776-949") "455"))
(constraint (= (f "085-421-340") "085"))
(constraint (= (f "785-713-099") "785"))
(constraint (= (f "426-712-861") "426"))
(constraint (= (f "386-994-906") "386"))
(constraint (= (f "918-304-840") "918"))
(constraint (= (f "247-153-598") "247"))
(constraint (= (f "075-497-069") "075"))
(constraint (= (f "140-726-583") "140"))
(constraint (= (f "049-413-248") "049"))
(constraint (= (f "977-386-462") "977"))
(constraint (= (f "058-272-455") "058"))
(constraint (= (f "428-629-927") "428"))
(constraint (= (f "449-122-191") "449"))
(constraint (= (f "568-759-670") "568"))
(constraint (= (f "312-846-053") "312"))
(constraint (= (f "943-037-297") "943"))
(constraint (= (f "014-270-177") "014"))
(constraint (= (f "658-877-878") "658"))
(constraint (= (f "888-594-038") "888"))
(constraint (= (f "232-253-254") "232"))
(constraint (= (f "308-722-292") "308"))
(constraint (= (f "342-145-742") "342"))
(constraint (= (f "568-181-515") "568"))
(constraint (= (f "300-140-756") "300"))
(constraint (= (f "099-684-216") "099"))
(constraint (= (f "575-296-621") "575"))
(constraint (= (f "994-443-794") "994"))
(constraint (= (f "400-334-692") "400"))
(constraint (= (f "684-711-883") "684"))
(constraint (= (f "539-636-358") "539"))
(constraint (= (f "009-878-919") "009"))
(constraint (= (f "919-545-701") "919"))
(constraint (= (f "546-399-239") "546"))
(constraint (= (f "993-608-757") "993"))
(constraint (= (f "107-652-845") "107"))
(constraint (= (f "206-805-793") "206"))
(constraint (= (f "198-857-684") "198"))
(constraint (= (f "912-827-430") "912"))
(constraint (= (f "560-951-766") "560"))
(constraint (= (f "142-178-290") "142"))
(constraint (= (f "732-196-946") "732"))
(constraint (= (f "963-875-745") "963"))
(constraint (= (f "881-865-867") "881"))
(constraint (= (f "234-686-715") "234"))
(constraint (= (f "720-330-583") "720"))
(constraint (= (f "593-065-126") "593"))
(constraint (= (f "671-778-064") "671"))
(constraint (= (f "252-029-036") "252"))
(constraint (= (f "700-322-036") "700"))
(constraint (= (f "882-587-473") "882"))
(constraint (= (f "964-134-953") "964"))
(constraint (= (f "038-300-876") "038"))
(constraint (= (f "158-894-947") "158"))
(constraint (= (f "757-454-374") "757"))
(constraint (= (f "872-513-190") "872"))
(constraint (= (f "566-086-726") "566"))
(check-synth)
Solution:
| (define-fun f ((name String)) String (str.++ (str.at name 0) (str.++ (str.at name 1) (str.at name 2))))
|
slianogram79 | phone-7_short | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "242"))
(constraint (= (f "308-916-545") "916"))
(constraint (= (f "623-599-749") "599"))
(constraint (= (f "981-424-843") "424"))
(constraint (= (f "118-980-214") "980"))
(constraint (= (f "244-655-094") "655"))
(check-synth)
Solution:
(define-fun f ((name String)) String (str.substr name 4 3))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "504"))
(constraint (= (f "308-916-545") "545"))
(constraint (= (f "623-599-749") "749"))
(constraint (= (f "981-424-843") "843"))
(constraint (= (f "118-980-214") "214"))
(constraint (= (f "244-655-094") "094"))
(check-synth)
Solution:
(define-fun f ((name String)) String (str.++ (str.at name (+ 3 5)) (str.++ (str.at name (+ 4 5)) (str.at name (+ 5 5)))))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "938-242-504") "938.242.504"))
(constraint (= (f "308-916-545") "308.916.545"))
(constraint (= (f "623-599-749") "623.599.749"))
(constraint (= (f "981-424-843") "981.424.843"))
(constraint (= (f "118-980-214") "118.980.214"))
(constraint (= (f "244-655-094") "244.655.094"))
(check-synth)
Solution:
(define-fun f ((name String)) String (str.++ (str.++ (str.++ (str.++ (str.++ (str.++ (str.substr name 0 3) ".") (str.substr name 4 3)) ".") (str.at name (+ 3 5))) (str.at name (+ 4 5))) (str.at name (+ 5 5))))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "+106 769-858-438") "858"))
(constraint (= (f "+83 973-757-831") "757"))
(constraint (= (f "+62 647-787-775") "787"))
(constraint (= (f "+172 027-507-632") "507"))
(constraint (= (f "+72 001-050-856") "050"))
(constraint (= (f "+95 310-537-401") "537"))
(constraint (= (f "+6 775-969-238") "969"))
(check-synth)
Solution:
| (define-fun f ((name String)) String (let ((_let_1 (str.indexof name "-" 0))) (str.++ (str.++ (str.at name (+ 1 _let_1)) (str.at name (+ 2 _let_1))) (str.at name (+ 3 _let_1)))))
|
slianogram37 | name-combine-4-long | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ lastname (str.++ "," (str.++ " " (str.++ (str.at firstname 0) ".")))))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ lastname (str.++ "," (str.++ " " (str.++ (str.at firstname 0) ".")))))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var name String)
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(constraint (= (f "Lara" "Constable") "Constable, L."))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston, M."))
(constraint (= (f "Salley" "Hornak") "Hornak, S."))
(constraint (= (f "Micha" "Junkin") "Junkin, M."))
(constraint (= (f "Teddy" "Bobo") "Bobo, T."))
(constraint (= (f "Coralee" "Scalia") "Scalia, C."))
(constraint (= (f "Jeff" "Quashie") "Quashie, J."))
(constraint (= (f "Vena" "Babiarz") "Babiarz, V."))
(constraint (= (f "Karrie" "Lain") "Lain, K."))
(constraint (= (f "Tobias" "Dermody") "Dermody, T."))
(constraint (= (f "Celsa" "Hopkins") "Hopkins, C."))
(constraint (= (f "Kimberley" "Halpern") "Halpern, K."))
(constraint (= (f "Phillip" "Rowden") "Rowden, P."))
(constraint (= (f "Elias" "Neil") "Neil, E."))
(constraint (= (f "Lashanda" "Cortes") "Cortes, L."))
(constraint (= (f "Mackenzie" "Spell") "Spell, M."))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston, K."))
(constraint (= (f "Georgina" "Brescia") "Brescia, G."))
(constraint (= (f "Beata" "Miah") "Miah, B."))
(constraint (= (f "Desiree" "Seamons") "Seamons, D."))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom, J."))
(constraint (= (f "Mariel" "Jurgens") "Jurgens, M."))
(constraint (= (f "Alida" "Bogle") "Bogle, A."))
(constraint (= (f "Jacqualine" "Olague") "Olague, J."))
(constraint (= (f "Joaquin" "Clasen") "Clasen, J."))
(constraint (= (f "Samuel" "Richert") "Richert, S."))
(constraint (= (f "Malissa" "Marcus") "Marcus, M."))
(constraint (= (f "Alaina" "Partida") "Partida, A."))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy, T."))
(constraint (= (f "Carlene" "Garrard") "Garrard, C."))
(constraint (= (f "Melodi" "Chism") "Chism, M."))
(constraint (= (f "Bess" "Chilcott") "Chilcott, B."))
(constraint (= (f "Chong" "Aylward") "Aylward, C."))
(constraint (= (f "Jani" "Ramthun") "Ramthun, J."))
(constraint (= (f "Jacquiline" "Heintz") "Heintz, J."))
(constraint (= (f "Hayley" "Marquess") "Marquess, H."))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli, A."))
(constraint (= (f "Irwin" "Covelli") "Covelli, I."))
(constraint (= (f "Gertude" "Montiel") "Montiel, G."))
(constraint (= (f "Stefany" "Reily") "Reily, S."))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey, R."))
(constraint (= (f "Cruz" "Latimore") "Latimore, C."))
(constraint (= (f "Maryann" "Casler") "Casler, M."))
(constraint (= (f "Annalisa" "Gregori") "Gregori, A."))
(constraint (= (f "Jenee" "Pannell") "Pannell, J."))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ lastname (str.++ "," (str.++ " " (str.++ (str.at firstname 0) ".")))))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var name String)
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(constraint (= (f "Lara" "Constable") "Constable, L."))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston, M."))
(constraint (= (f "Salley" "Hornak") "Hornak, S."))
(constraint (= (f "Micha" "Junkin") "Junkin, M."))
(constraint (= (f "Teddy" "Bobo") "Bobo, T."))
(constraint (= (f "Coralee" "Scalia") "Scalia, C."))
(constraint (= (f "Jeff" "Quashie") "Quashie, J."))
(constraint (= (f "Vena" "Babiarz") "Babiarz, V."))
(constraint (= (f "Karrie" "Lain") "Lain, K."))
(constraint (= (f "Tobias" "Dermody") "Dermody, T."))
(constraint (= (f "Celsa" "Hopkins") "Hopkins, C."))
(constraint (= (f "Kimberley" "Halpern") "Halpern, K."))
(constraint (= (f "Phillip" "Rowden") "Rowden, P."))
(constraint (= (f "Elias" "Neil") "Neil, E."))
(constraint (= (f "Lashanda" "Cortes") "Cortes, L."))
(constraint (= (f "Mackenzie" "Spell") "Spell, M."))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston, K."))
(constraint (= (f "Georgina" "Brescia") "Brescia, G."))
(constraint (= (f "Beata" "Miah") "Miah, B."))
(constraint (= (f "Desiree" "Seamons") "Seamons, D."))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom, J."))
(constraint (= (f "Mariel" "Jurgens") "Jurgens, M."))
(constraint (= (f "Alida" "Bogle") "Bogle, A."))
(constraint (= (f "Jacqualine" "Olague") "Olague, J."))
(constraint (= (f "Joaquin" "Clasen") "Clasen, J."))
(constraint (= (f "Samuel" "Richert") "Richert, S."))
(constraint (= (f "Malissa" "Marcus") "Marcus, M."))
(constraint (= (f "Alaina" "Partida") "Partida, A."))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy, T."))
(constraint (= (f "Carlene" "Garrard") "Garrard, C."))
(constraint (= (f "Melodi" "Chism") "Chism, M."))
(constraint (= (f "Bess" "Chilcott") "Chilcott, B."))
(constraint (= (f "Chong" "Aylward") "Aylward, C."))
(constraint (= (f "Jani" "Ramthun") "Ramthun, J."))
(constraint (= (f "Jacquiline" "Heintz") "Heintz, J."))
(constraint (= (f "Hayley" "Marquess") "Marquess, H."))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli, A."))
(constraint (= (f "Irwin" "Covelli") "Covelli, I."))
(constraint (= (f "Gertude" "Montiel") "Montiel, G."))
(constraint (= (f "Stefany" "Reily") "Reily, S."))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey, R."))
(constraint (= (f "Cruz" "Latimore") "Latimore, C."))
(constraint (= (f "Maryann" "Casler") "Casler, M."))
(constraint (= (f "Annalisa" "Gregori") "Gregori, A."))
(constraint (= (f "Jenee" "Pannell") "Pannell, J."))
(check-synth)
Solution:
| (define-fun f ((firstname String) (lastname String)) String (str.++ lastname (str.++ "," (str.++ " " (str.++ (str.at firstname 0) ".")))))
|
slianogram9 | tmp | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Launa" "Withers") "Withers Launa"))
(constraint (= (f "Launa" "Withers") "Withers Launa"))
(constraint (= (f "Launa" "Withers") "Withers Launa"))
(constraint (= (f "Lakenya" "Edison") "Edison Lakenya"))
(constraint (= (f "Lakenya" "Edison") "Edison Lakenya"))
(constraint (= (f "Lakenya" "Edison") "Edison Lakenya"))
(constraint (= (f "Brendan" "Hage") "Hage Brendan"))
(constraint (= (f "Brendan" "Hage") "Hage Brendan"))
(constraint (= (f "Brendan" "Hage") "Hage Brendan"))
(constraint (= (f "Bradford" "Lango") "Lango Bradford"))
(constraint (= (f "Bradford" "Lango") "Lango Bradford"))
(constraint (= (f "Bradford" "Lango") "Lango Bradford"))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama Rudolf"))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama Rudolf"))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama Rudolf"))
(constraint (= (f "Lara" "Constable") "Constable Lara"))
(constraint (= (f "Lara" "Constable") "Constable Lara"))
(constraint (= (f "Lara" "Constable") "Constable Lara"))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston Madelaine"))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston Madelaine"))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston Madelaine"))
(constraint (= (f "Salley" "Hornak") "Hornak Salley"))
(constraint (= (f "Salley" "Hornak") "Hornak Salley"))
(constraint (= (f "Salley" "Hornak") "Hornak Salley"))
(constraint (= (f "Micha" "Junkin") "Junkin Micha"))
(constraint (= (f "Micha" "Junkin") "Junkin Micha"))
(constraint (= (f "Micha" "Junkin") "Junkin Micha"))
(constraint (= (f "Teddy" "Bobo") "Bobo Teddy"))
(constraint (= (f "Teddy" "Bobo") "Bobo Teddy"))
(constraint (= (f "Teddy" "Bobo") "Bobo Teddy"))
(constraint (= (f "Coralee" "Scalia") "Scalia Coralee"))
(constraint (= (f "Coralee" "Scalia") "Scalia Coralee"))
(constraint (= (f "Coralee" "Scalia") "Scalia Coralee"))
(constraint (= (f "Jeff" "Quashie") "Quashie Jeff"))
(constraint (= (f "Jeff" "Quashie") "Quashie Jeff"))
(constraint (= (f "Jeff" "Quashie") "Quashie Jeff"))
(constraint (= (f "Vena" "Babiarz") "Babiarz Vena"))
(constraint (= (f "Vena" "Babiarz") "Babiarz Vena"))
(constraint (= (f "Vena" "Babiarz") "Babiarz Vena"))
(constraint (= (f "Karrie" "Lain") "Lain Karrie"))
(constraint (= (f "Karrie" "Lain") "Lain Karrie"))
(constraint (= (f "Karrie" "Lain") "Lain Karrie"))
(constraint (= (f "Tobias" "Dermody") "Dermody Tobias"))
(constraint (= (f "Tobias" "Dermody") "Dermody Tobias"))
(constraint (= (f "Tobias" "Dermody") "Dermody Tobias"))
(constraint (= (f "Celsa" "Hopkins") "Hopkins Celsa"))
(constraint (= (f "Celsa" "Hopkins") "Hopkins Celsa"))
(constraint (= (f "Celsa" "Hopkins") "Hopkins Celsa"))
(constraint (= (f "Kimberley" "Halpern") "Halpern Kimberley"))
(constraint (= (f "Kimberley" "Halpern") "Halpern Kimberley"))
(constraint (= (f "Kimberley" "Halpern") "Halpern Kimberley"))
(constraint (= (f "Phillip" "Rowden") "Rowden Phillip"))
(constraint (= (f "Phillip" "Rowden") "Rowden Phillip"))
(constraint (= (f "Phillip" "Rowden") "Rowden Phillip"))
(constraint (= (f "Elias" "Neil") "Neil Elias"))
(constraint (= (f "Elias" "Neil") "Neil Elias"))
(constraint (= (f "Elias" "Neil") "Neil Elias"))
(constraint (= (f "Lashanda" "Cortes") "Cortes Lashanda"))
(constraint (= (f "Lashanda" "Cortes") "Cortes Lashanda"))
(constraint (= (f "Lashanda" "Cortes") "Cortes Lashanda"))
(constraint (= (f "Mackenzie" "Spell") "Spell Mackenzie"))
(constraint (= (f "Mackenzie" "Spell") "Spell Mackenzie"))
(constraint (= (f "Mackenzie" "Spell") "Spell Mackenzie"))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston Kathlyn"))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston Kathlyn"))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston Kathlyn"))
(constraint (= (f "Georgina" "Brescia") "Brescia Georgina"))
(constraint (= (f "Georgina" "Brescia") "Brescia Georgina"))
(constraint (= (f "Georgina" "Brescia") "Brescia Georgina"))
(constraint (= (f "Beata" "Miah") "Miah Beata"))
(constraint (= (f "Beata" "Miah") "Miah Beata"))
(constraint (= (f "Beata" "Miah") "Miah Beata"))
(constraint (= (f "Desiree" "Seamons") "Seamons Desiree"))
(constraint (= (f "Desiree" "Seamons") "Seamons Desiree"))
(constraint (= (f "Desiree" "Seamons") "Seamons Desiree"))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom Jeanice"))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom Jeanice"))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom Jeanice"))
(constraint (= (f "Mariel" "Jurgens") "Jurgens Mariel"))
(constraint (= (f "Mariel" "Jurgens") "Jurgens Mariel"))
(constraint (= (f "Mariel" "Jurgens") "Jurgens Mariel"))
(constraint (= (f "Alida" "Bogle") "Bogle Alida"))
(constraint (= (f "Alida" "Bogle") "Bogle Alida"))
(constraint (= (f "Alida" "Bogle") "Bogle Alida"))
(constraint (= (f "Jacqualine" "Olague") "Olague Jacqualine"))
(constraint (= (f "Jacqualine" "Olague") "Olague Jacqualine"))
(constraint (= (f "Jacqualine" "Olague") "Olague Jacqualine"))
(constraint (= (f "Joaquin" "Clasen") "Clasen Joaquin"))
(constraint (= (f "Joaquin" "Clasen") "Clasen Joaquin"))
(constraint (= (f "Joaquin" "Clasen") "Clasen Joaquin"))
(constraint (= (f "Samuel" "Richert") "Richert Samuel"))
(constraint (= (f "Samuel" "Richert") "Richert Samuel"))
(constraint (= (f "Samuel" "Richert") "Richert Samuel"))
(constraint (= (f "Malissa" "Marcus") "Marcus Malissa"))
(constraint (= (f "Malissa" "Marcus") "Marcus Malissa"))
(constraint (= (f "Malissa" "Marcus") "Marcus Malissa"))
(constraint (= (f "Alaina" "Partida") "Partida Alaina"))
(constraint (= (f "Alaina" "Partida") "Partida Alaina"))
(constraint (= (f "Alaina" "Partida") "Partida Alaina"))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy Trinidad"))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy Trinidad"))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy Trinidad"))
(constraint (= (f "Carlene" "Garrard") "Garrard Carlene"))
(constraint (= (f "Carlene" "Garrard") "Garrard Carlene"))
(constraint (= (f "Carlene" "Garrard") "Garrard Carlene"))
(constraint (= (f "Melodi" "Chism") "Chism Melodi"))
(constraint (= (f "Melodi" "Chism") "Chism Melodi"))
(constraint (= (f "Melodi" "Chism") "Chism Melodi"))
(constraint (= (f "Bess" "Chilcott") "Chilcott Bess"))
(constraint (= (f "Bess" "Chilcott") "Chilcott Bess"))
(constraint (= (f "Bess" "Chilcott") "Chilcott Bess"))
(constraint (= (f "Chong" "Aylward") "Aylward Chong"))
(constraint (= (f "Chong" "Aylward") "Aylward Chong"))
(constraint (= (f "Chong" "Aylward") "Aylward Chong"))
(constraint (= (f "Jani" "Ramthun") "Ramthun Jani"))
(constraint (= (f "Jani" "Ramthun") "Ramthun Jani"))
(constraint (= (f "Jani" "Ramthun") "Ramthun Jani"))
(constraint (= (f "Jacquiline" "Heintz") "Heintz Jacquiline"))
(constraint (= (f "Jacquiline" "Heintz") "Heintz Jacquiline"))
(constraint (= (f "Jacquiline" "Heintz") "Heintz Jacquiline"))
(constraint (= (f "Hayley" "Marquess") "Marquess Hayley"))
(constraint (= (f "Hayley" "Marquess") "Marquess Hayley"))
(constraint (= (f "Hayley" "Marquess") "Marquess Hayley"))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli Andria"))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli Andria"))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli Andria"))
(constraint (= (f "Irwin" "Covelli") "Covelli Irwin"))
(constraint (= (f "Irwin" "Covelli") "Covelli Irwin"))
(constraint (= (f "Irwin" "Covelli") "Covelli Irwin"))
(constraint (= (f "Gertude" "Montiel") "Montiel Gertude"))
(constraint (= (f "Gertude" "Montiel") "Montiel Gertude"))
(constraint (= (f "Gertude" "Montiel") "Montiel Gertude"))
(constraint (= (f "Stefany" "Reily") "Reily Stefany"))
(constraint (= (f "Stefany" "Reily") "Reily Stefany"))
(constraint (= (f "Stefany" "Reily") "Reily Stefany"))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey Rae"))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey Rae"))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey Rae"))
(constraint (= (f "Cruz" "Latimore") "Latimore Cruz"))
(constraint (= (f "Cruz" "Latimore") "Latimore Cruz"))
(constraint (= (f "Cruz" "Latimore") "Latimore Cruz"))
(constraint (= (f "Maryann" "Casler") "Casler Maryann"))
(constraint (= (f "Maryann" "Casler") "Casler Maryann"))
(constraint (= (f "Maryann" "Casler") "Casler Maryann"))
(constraint (= (f "Annalisa" "Gregori") "Gregori Annalisa"))
(constraint (= (f "Annalisa" "Gregori") "Gregori Annalisa"))
(constraint (= (f "Annalisa" "Gregori") "Gregori Annalisa"))
(constraint (= (f "Jenee" "Pannell") "Pannell Jenee"))
(constraint (= (f "Jenee" "Pannell") "Pannell Jenee"))
(constraint (= (f "Jenee" "Pannell") "Pannell Jenee"))
(constraint (= (f "Launa" "Withers") "Withers Launa"))
(constraint (= (f "Lakenya" "Edison") "Edison Lakenya"))
(constraint (= (f "Brendan" "Hage") "Hage Brendan"))
(constraint (= (f "Bradford" "Lango") "Lango Bradford"))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama Rudolf"))
(constraint (= (f "Lara" "Constable") "Constable Lara"))
(constraint (= (f "Madelaine" "Ghoston") "Ghoston Madelaine"))
(constraint (= (f "Salley" "Hornak") "Hornak Salley"))
(constraint (= (f "Micha" "Junkin") "Junkin Micha"))
(constraint (= (f "Teddy" "Bobo") "Bobo Teddy"))
(constraint (= (f "Coralee" "Scalia") "Scalia Coralee"))
(constraint (= (f "Jeff" "Quashie") "Quashie Jeff"))
(constraint (= (f "Vena" "Babiarz") "Babiarz Vena"))
(constraint (= (f "Karrie" "Lain") "Lain Karrie"))
(constraint (= (f "Tobias" "Dermody") "Dermody Tobias"))
(constraint (= (f "Celsa" "Hopkins") "Hopkins Celsa"))
(constraint (= (f "Kimberley" "Halpern") "Halpern Kimberley"))
(constraint (= (f "Phillip" "Rowden") "Rowden Phillip"))
(constraint (= (f "Elias" "Neil") "Neil Elias"))
(constraint (= (f "Lashanda" "Cortes") "Cortes Lashanda"))
(constraint (= (f "Mackenzie" "Spell") "Spell Mackenzie"))
(constraint (= (f "Kathlyn" "Eccleston") "Eccleston Kathlyn"))
(constraint (= (f "Georgina" "Brescia") "Brescia Georgina"))
(constraint (= (f "Beata" "Miah") "Miah Beata"))
(constraint (= (f "Desiree" "Seamons") "Seamons Desiree"))
(constraint (= (f "Jeanice" "Soderstrom") "Soderstrom Jeanice"))
(constraint (= (f "Mariel" "Jurgens") "Jurgens Mariel"))
(constraint (= (f "Alida" "Bogle") "Bogle Alida"))
(constraint (= (f "Jacqualine" "Olague") "Olague Jacqualine"))
(constraint (= (f "Joaquin" "Clasen") "Clasen Joaquin"))
(constraint (= (f "Samuel" "Richert") "Richert Samuel"))
(constraint (= (f "Malissa" "Marcus") "Marcus Malissa"))
(constraint (= (f "Alaina" "Partida") "Partida Alaina"))
(constraint (= (f "Trinidad" "Mulloy") "Mulloy Trinidad"))
(constraint (= (f "Carlene" "Garrard") "Garrard Carlene"))
(constraint (= (f "Melodi" "Chism") "Chism Melodi"))
(constraint (= (f "Bess" "Chilcott") "Chilcott Bess"))
(constraint (= (f "Chong" "Aylward") "Aylward Chong"))
(constraint (= (f "Jani" "Ramthun") "Ramthun Jani"))
(constraint (= (f "Jacquiline" "Heintz") "Heintz Jacquiline"))
(constraint (= (f "Hayley" "Marquess") "Marquess Hayley"))
(constraint (= (f "Andria" "Spagnoli") "Spagnoli Andria"))
(constraint (= (f "Irwin" "Covelli") "Covelli Irwin"))
(constraint (= (f "Gertude" "Montiel") "Montiel Gertude"))
(constraint (= (f "Stefany" "Reily") "Reily Stefany"))
(constraint (= (f "Rae" "Mcgaughey") "Mcgaughey Rae"))
(constraint (= (f "Cruz" "Latimore") "Latimore Cruz"))
(constraint (= (f "Maryann" "Casler") "Casler Maryann"))
(constraint (= (f "Annalisa" "Gregori") "Gregori Annalisa"))
(constraint (= (f "Jenee" "Pannell") "Pannell Jenee"))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ (str.++ lastname " ") firstname))
Question:
(set-logic SLIA)
(synth-fun f ((name String)) String)
(declare-var name String)
(constraint (= (f "Nancy FreeHafer") "FreeHafer"))
(constraint (= (f "Andrew Cencici") "Cencici"))
(constraint (= (f "Jan Kotas") "Kotas"))
(constraint (= (f "Mariya Sergienko") "Sergienko"))
(constraint (= (f "Launa Withers") "Withers"))
(constraint (= (f "Launa Withers") "Withers"))
(constraint (= (f "Launa Withers") "Withers"))
(constraint (= (f "Lakenya Edison") "Edison"))
(constraint (= (f "Lakenya Edison") "Edison"))
(constraint (= (f "Lakenya Edison") "Edison"))
(constraint (= (f "Brendan Hage") "Hage"))
(constraint (= (f "Brendan Hage") "Hage"))
(constraint (= (f "Brendan Hage") "Hage"))
(constraint (= (f "Bradford Lango") "Lango"))
(constraint (= (f "Bradford Lango") "Lango"))
(constraint (= (f "Bradford Lango") "Lango"))
(constraint (= (f "Rudolf Akiyama") "Akiyama"))
(constraint (= (f "Rudolf Akiyama") "Akiyama"))
(constraint (= (f "Rudolf Akiyama") "Akiyama"))
(constraint (= (f "Lara Constable") "Constable"))
(constraint (= (f "Lara Constable") "Constable"))
(constraint (= (f "Lara Constable") "Constable"))
(constraint (= (f "Madelaine Ghoston") "Ghoston"))
(constraint (= (f "Madelaine Ghoston") "Ghoston"))
(constraint (= (f "Madelaine Ghoston") "Ghoston"))
(constraint (= (f "Salley Hornak") "Hornak"))
(constraint (= (f "Salley Hornak") "Hornak"))
(constraint (= (f "Salley Hornak") "Hornak"))
(constraint (= (f "Micha Junkin") "Junkin"))
(constraint (= (f "Micha Junkin") "Junkin"))
(constraint (= (f "Micha Junkin") "Junkin"))
(constraint (= (f "Teddy Bobo") "Bobo"))
(constraint (= (f "Teddy Bobo") "Bobo"))
(constraint (= (f "Teddy Bobo") "Bobo"))
(constraint (= (f "Coralee Scalia") "Scalia"))
(constraint (= (f "Coralee Scalia") "Scalia"))
(constraint (= (f "Coralee Scalia") "Scalia"))
(constraint (= (f "Jeff Quashie") "Quashie"))
(constraint (= (f "Jeff Quashie") "Quashie"))
(constraint (= (f "Jeff Quashie") "Quashie"))
(constraint (= (f "Vena Babiarz") "Babiarz"))
(constraint (= (f "Vena Babiarz") "Babiarz"))
(constraint (= (f "Vena Babiarz") "Babiarz"))
(constraint (= (f "Karrie Lain") "Lain"))
(constraint (= (f "Karrie Lain") "Lain"))
(constraint (= (f "Karrie Lain") "Lain"))
(constraint (= (f "Tobias Dermody") "Dermody"))
(constraint (= (f "Tobias Dermody") "Dermody"))
(constraint (= (f "Tobias Dermody") "Dermody"))
(constraint (= (f "Celsa Hopkins") "Hopkins"))
(constraint (= (f "Celsa Hopkins") "Hopkins"))
(constraint (= (f "Celsa Hopkins") "Hopkins"))
(constraint (= (f "Kimberley Halpern") "Halpern"))
(constraint (= (f "Kimberley Halpern") "Halpern"))
(constraint (= (f "Kimberley Halpern") "Halpern"))
(constraint (= (f "Phillip Rowden") "Rowden"))
(constraint (= (f "Phillip Rowden") "Rowden"))
(constraint (= (f "Phillip Rowden") "Rowden"))
(constraint (= (f "Elias Neil") "Neil"))
(constraint (= (f "Elias Neil") "Neil"))
(constraint (= (f "Elias Neil") "Neil"))
(constraint (= (f "Lashanda Cortes") "Cortes"))
(constraint (= (f "Lashanda Cortes") "Cortes"))
(constraint (= (f "Lashanda Cortes") "Cortes"))
(constraint (= (f "Mackenzie Spell") "Spell"))
(constraint (= (f "Mackenzie Spell") "Spell"))
(constraint (= (f "Mackenzie Spell") "Spell"))
(constraint (= (f "Kathlyn Eccleston") "Eccleston"))
(constraint (= (f "Kathlyn Eccleston") "Eccleston"))
(constraint (= (f "Kathlyn Eccleston") "Eccleston"))
(constraint (= (f "Georgina Brescia") "Brescia"))
(constraint (= (f "Georgina Brescia") "Brescia"))
(constraint (= (f "Georgina Brescia") "Brescia"))
(constraint (= (f "Beata Miah") "Miah"))
(constraint (= (f "Beata Miah") "Miah"))
(constraint (= (f "Beata Miah") "Miah"))
(constraint (= (f "Desiree Seamons") "Seamons"))
(constraint (= (f "Desiree Seamons") "Seamons"))
(constraint (= (f "Desiree Seamons") "Seamons"))
(constraint (= (f "Jeanice Soderstrom") "Soderstrom"))
(constraint (= (f "Jeanice Soderstrom") "Soderstrom"))
(constraint (= (f "Jeanice Soderstrom") "Soderstrom"))
(constraint (= (f "Mariel Jurgens") "Jurgens"))
(constraint (= (f "Mariel Jurgens") "Jurgens"))
(constraint (= (f "Mariel Jurgens") "Jurgens"))
(constraint (= (f "Alida Bogle") "Bogle"))
(constraint (= (f "Alida Bogle") "Bogle"))
(constraint (= (f "Alida Bogle") "Bogle"))
(constraint (= (f "Jacqualine Olague") "Olague"))
(constraint (= (f "Jacqualine Olague") "Olague"))
(constraint (= (f "Jacqualine Olague") "Olague"))
(constraint (= (f "Joaquin Clasen") "Clasen"))
(constraint (= (f "Joaquin Clasen") "Clasen"))
(constraint (= (f "Joaquin Clasen") "Clasen"))
(constraint (= (f "Samuel Richert") "Richert"))
(constraint (= (f "Samuel Richert") "Richert"))
(constraint (= (f "Samuel Richert") "Richert"))
(constraint (= (f "Malissa Marcus") "Marcus"))
(constraint (= (f "Malissa Marcus") "Marcus"))
(constraint (= (f "Malissa Marcus") "Marcus"))
(constraint (= (f "Alaina Partida") "Partida"))
(constraint (= (f "Alaina Partida") "Partida"))
(constraint (= (f "Alaina Partida") "Partida"))
(constraint (= (f "Trinidad Mulloy") "Mulloy"))
(constraint (= (f "Trinidad Mulloy") "Mulloy"))
(constraint (= (f "Trinidad Mulloy") "Mulloy"))
(constraint (= (f "Carlene Garrard") "Garrard"))
(constraint (= (f "Carlene Garrard") "Garrard"))
(constraint (= (f "Carlene Garrard") "Garrard"))
(constraint (= (f "Melodi Chism") "Chism"))
(constraint (= (f "Melodi Chism") "Chism"))
(constraint (= (f "Melodi Chism") "Chism"))
(constraint (= (f "Bess Chilcott") "Chilcott"))
(constraint (= (f "Bess Chilcott") "Chilcott"))
(constraint (= (f "Bess Chilcott") "Chilcott"))
(constraint (= (f "Chong Aylward") "Aylward"))
(constraint (= (f "Chong Aylward") "Aylward"))
(constraint (= (f "Chong Aylward") "Aylward"))
(constraint (= (f "Jani Ramthun") "Ramthun"))
(constraint (= (f "Jani Ramthun") "Ramthun"))
(constraint (= (f "Jani Ramthun") "Ramthun"))
(constraint (= (f "Jacquiline Heintz") "Heintz"))
(constraint (= (f "Jacquiline Heintz") "Heintz"))
(constraint (= (f "Jacquiline Heintz") "Heintz"))
(constraint (= (f "Hayley Marquess") "Marquess"))
(constraint (= (f "Hayley Marquess") "Marquess"))
(constraint (= (f "Hayley Marquess") "Marquess"))
(constraint (= (f "Andria Spagnoli") "Spagnoli"))
(constraint (= (f "Andria Spagnoli") "Spagnoli"))
(constraint (= (f "Andria Spagnoli") "Spagnoli"))
(constraint (= (f "Irwin Covelli") "Covelli"))
(constraint (= (f "Irwin Covelli") "Covelli"))
(constraint (= (f "Irwin Covelli") "Covelli"))
(constraint (= (f "Gertude Montiel") "Montiel"))
(constraint (= (f "Gertude Montiel") "Montiel"))
(constraint (= (f "Gertude Montiel") "Montiel"))
(constraint (= (f "Stefany Reily") "Reily"))
(constraint (= (f "Stefany Reily") "Reily"))
(constraint (= (f "Stefany Reily") "Reily"))
(constraint (= (f "Rae Mcgaughey") "Mcgaughey"))
(constraint (= (f "Rae Mcgaughey") "Mcgaughey"))
(constraint (= (f "Rae Mcgaughey") "Mcgaughey"))
(constraint (= (f "Cruz Latimore") "Latimore"))
(constraint (= (f "Cruz Latimore") "Latimore"))
(constraint (= (f "Cruz Latimore") "Latimore"))
(constraint (= (f "Maryann Casler") "Casler"))
(constraint (= (f "Maryann Casler") "Casler"))
(constraint (= (f "Maryann Casler") "Casler"))
(constraint (= (f "Annalisa Gregori") "Gregori"))
(constraint (= (f "Annalisa Gregori") "Gregori"))
(constraint (= (f "Annalisa Gregori") "Gregori"))
(constraint (= (f "Jenee Pannell") "Pannell"))
(constraint (= (f "Jenee Pannell") "Pannell"))
(constraint (= (f "Jenee Pannell") "Pannell"))
(constraint (= (f "Launa Withers") "Withers"))
(constraint (= (f "Lakenya Edison") "Edison"))
(constraint (= (f "Brendan Hage") "Hage"))
(constraint (= (f "Bradford Lango") "Lango"))
(constraint (= (f "Rudolf Akiyama") "Akiyama"))
(constraint (= (f "Lara Constable") "Constable"))
(constraint (= (f "Madelaine Ghoston") "Ghoston"))
(constraint (= (f "Salley Hornak") "Hornak"))
(constraint (= (f "Micha Junkin") "Junkin"))
(constraint (= (f "Teddy Bobo") "Bobo"))
(constraint (= (f "Coralee Scalia") "Scalia"))
(constraint (= (f "Jeff Quashie") "Quashie"))
(constraint (= (f "Vena Babiarz") "Babiarz"))
(constraint (= (f "Karrie Lain") "Lain"))
(constraint (= (f "Tobias Dermody") "Dermody"))
(constraint (= (f "Celsa Hopkins") "Hopkins"))
(constraint (= (f "Kimberley Halpern") "Halpern"))
(constraint (= (f "Phillip Rowden") "Rowden"))
(constraint (= (f "Elias Neil") "Neil"))
(constraint (= (f "Lashanda Cortes") "Cortes"))
(constraint (= (f "Mackenzie Spell") "Spell"))
(constraint (= (f "Kathlyn Eccleston") "Eccleston"))
(constraint (= (f "Georgina Brescia") "Brescia"))
(constraint (= (f "Beata Miah") "Miah"))
(constraint (= (f "Desiree Seamons") "Seamons"))
(constraint (= (f "Jeanice Soderstrom") "Soderstrom"))
(constraint (= (f "Mariel Jurgens") "Jurgens"))
(constraint (= (f "Alida Bogle") "Bogle"))
(constraint (= (f "Jacqualine Olague") "Olague"))
(constraint (= (f "Joaquin Clasen") "Clasen"))
(constraint (= (f "Samuel Richert") "Richert"))
(constraint (= (f "Malissa Marcus") "Marcus"))
(constraint (= (f "Alaina Partida") "Partida"))
(constraint (= (f "Trinidad Mulloy") "Mulloy"))
(constraint (= (f "Carlene Garrard") "Garrard"))
(constraint (= (f "Melodi Chism") "Chism"))
(constraint (= (f "Bess Chilcott") "Chilcott"))
(constraint (= (f "Chong Aylward") "Aylward"))
(constraint (= (f "Jani Ramthun") "Ramthun"))
(constraint (= (f "Jacquiline Heintz") "Heintz"))
(constraint (= (f "Hayley Marquess") "Marquess"))
(constraint (= (f "Andria Spagnoli") "Spagnoli"))
(constraint (= (f "Irwin Covelli") "Covelli"))
(constraint (= (f "Gertude Montiel") "Montiel"))
(constraint (= (f "Stefany Reily") "Reily"))
(constraint (= (f "Rae Mcgaughey") "Mcgaughey"))
(constraint (= (f "Cruz Latimore") "Latimore"))
(constraint (= (f "Maryann Casler") "Casler"))
(constraint (= (f "Annalisa Gregori") "Gregori"))
(constraint (= (f "Jenee Pannell") "Pannell"))
(check-synth)
Solution:
imeou
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Launa" "Withers") "Withers Launa"))
(constraint (= (f "Lakenya" "Edison") "Edison Lakenya"))
(constraint (= (f "Brendan" "Hage") "Hage Brendan"))
(constraint (= (f "Bradford" "Lango") "Lango Bradford"))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama Rudolf"))
(constraint (= (f "Lara" "Constable") "Constable Lara"))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ (str.++ lastname " ") firstname))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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 "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "MIT" "Cambridge, MA") "Cambridge, MA, USA"))
(constraint (= (f "Rice University" "Houston, TX") "Houston, TX, USA"))
(constraint (= (f "Yale University" "New Haven, CT, USA") "New Haven, CT, 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"))
(constraint (= (f "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "UIUC" "Urbana, IL") "Urbana, IL, USA"))
(constraint (= (f "Temple University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "Harvard University" "Cambridge, MA, USA") "Cambridge, MA, USA"))
(constraint (= (f "University of Connecticut" "Storrs, CT, USA") "Storrs, CT, USA"))
(constraint (= (f "Drexel University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "New Haven University" "New Haven, CT, USA") "New Haven, CT, USA"))
(constraint (= (f "University of California, Santa Barbara" "Santa Barbara, CA, USA") "Santa Barbara, CA, USA"))
(check-synth)
Solution:
| |
slianogram53 | univ_3-long | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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, New York, 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"))
(check-synth)
Solution:
(define-fun f ((col1 String) (col2 String)) String (ite (str.suffixof "USA" col2) col2 (str.++ col2 (str.++ "," (str.++ " " "USA")))))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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, New York, 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 "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "MIT" "Cambridge, MA") "Cambridge, MA, USA"))
(constraint (= (f "Rice University" "Houston, TX") "Houston, TX, USA"))
(constraint (= (f "Yale University" "New Haven, CT, USA") "New Haven, CT, USA"))
(constraint (= (f "Columbia University" "New York, NY, USA") "New York, NY, USA"))
(constraint (= (f "NYU" "New York, New York, USA") "New York, New York, USA"))
(constraint (= (f "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "UIUC" "Urbana, IL") "Urbana, IL, USA"))
(constraint (= (f "Temple University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "Harvard University" "Cambridge, MA, USA") "Cambridge, MA, USA"))
(constraint (= (f "University of Connecticut" "Storrs, CT, USA") "Storrs, CT, USA"))
(constraint (= (f "Drexel University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "New Haven University" "New Haven, CT, USA") "New Haven, CT, USA"))
(constraint (= (f "University of California, Santa Barbara" "Santa Barbara, CA, USA") "Santa Barbara, CA, USA"))
(check-synth)
Solution:
(define-fun f ((col1 String) (col2 String)) String (ite (str.contains col2 "USA") col2 (str.++ col2 (str.++ "," (str.++ " " "USA")))))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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, New York, 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"))
(check-synth)
Solution:
(define-fun f ((col1 String) (col2 String)) String (ite (str.contains col2 "USA") col2 (str.++ (str.++ (str.++ col2 ",") " ") "USA")))
Question:
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String)
(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, New York, 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 "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "MIT" "Cambridge, MA") "Cambridge, MA, USA"))
(constraint (= (f "Rice University" "Houston, TX") "Houston, TX, USA"))
(constraint (= (f "Yale University" "New Haven, CT, USA") "New Haven, CT, USA"))
(constraint (= (f "Columbia University" "New York, NY, USA") "New York, NY, USA"))
(constraint (= (f "NYU" "New York, New York, USA") "New York, New York, USA"))
(constraint (= (f "UC Berkeley" "Berkeley, CA") "Berkeley, CA, USA"))
(constraint (= (f "UIUC" "Urbana, IL") "Urbana, IL, USA"))
(constraint (= (f "Temple University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "Harvard University" "Cambridge, MA, USA") "Cambridge, MA, USA"))
(constraint (= (f "University of Connecticut" "Storrs, CT, USA") "Storrs, CT, USA"))
(constraint (= (f "Drexel University" "Philadelphia, PA") "Philadelphia, PA, USA"))
(constraint (= (f "New Haven University" "New Haven, CT, USA") "New Haven, CT, USA"))
(constraint (= (f "University of California, Santa Barbara" "Santa Barbara, CA, USA") "Santa Barbara, CA, USA"))
(check-synth)
Solution:
| (define-fun f ((col1 String) (col2 String)) String (ite (str.contains col2 "USA") col2 (str.++ col2 (str.++ "," (str.++ " " "USA")))))
|
slianogram69 | name-combine-2_short | You are an expert in program synthesis. You are tasked with solving a Syntax-Guided Synthesis (SyGuS) problem. Your goal is to output a function that should produce outputs that satisfy a series of constraints when given specific inputs.
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Launa" "Withers") "Withers, L."))
(constraint (= (f "Lakenya" "Edison") "Edison, L."))
(constraint (= (f "Brendan" "Hage") "Hage, B."))
(constraint (= (f "Bradford" "Lango") "Lango, B."))
(constraint (= (f "Rudolf" "Akiyama") "Akiyama, R."))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ lastname (str.++ "," (str.++ " " (str.++ (str.at firstname 0) ".")))))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Nancy" "FreeHafer") "Nancy F."))
(constraint (= (f "Andrew" "Cencici") "Andrew C."))
(constraint (= (f "Jan" "Kotas") "Jan K."))
(constraint (= (f "Mariya" "Sergienko") "Mariya S."))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ (str.++ (str.++ firstname " ") (str.at lastname 0)) "."))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Launa" "Withers") "L. Withers"))
(constraint (= (f "Lakenya" "Edison") "L. Edison"))
(constraint (= (f "Brendan" "Hage") "B. Hage"))
(constraint (= (f "Bradford" "Lango") "B. Lango"))
(constraint (= (f "Rudolf" "Akiyama") "R. Akiyama"))
(constraint (= (f "Lara" "Constable") "L. Constable"))
(check-synth)
Solution:
(define-fun f ((firstname String) (lastname String)) String (str.++ (str.++ (str.++ (str.at firstname 0) ".") " ") lastname))
Question:
(set-logic SLIA)
(synth-fun f ((firstname String) (lastname String)) String)
(declare-var firstname String)
(declare-var lastname String)
(constraint (= (f "Nancy" "FreeHafer") "Nancy F."))
(constraint (= (f "Andrew" "Cencici") "Andrew C."))
(constraint (= (f "Jan" "Kotas") "Jan K."))
(constraint (= (f "Mariya" "Sergienko") "Mariya S."))
(check-synth)
Solution:
| (define-fun f ((firstname String) (lastname String)) String (str.++ (str.++ (str.++ firstname " ") (str.at lastname 0)) "."))
|