{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,6]],"date-time":"2026-10-06T15:17:06Z","timestamp":1791299826715,"version":"4.1.0"},"reference-count":56,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2023,6,6]],"date-time":"2023-06-06T00:00:00Z","timestamp":1686009600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2023,6,6]]},"abstract":"<jats:p>In this work, we study the fully automated inference of expected result values of probabilistic programs in the presence of natural programming constructs such as procedures, local variables and recursion. While crucial, capturing these constructs becomes highly non-trivial. The key contribution is the definition of a term representation, denoted as infer[.], translating a pre-expectation semantics into first-order constraints, susceptible to automation via standard methods. A crucial step is the use of logical variables, inspired by previous work on Hoare logics for recursive programs. Noteworthy, our methodology is not restricted to tail-recursion, which could unarguably be replaced by iteration and wouldn't need additional insights. We have implemented this analysis in our prototype ev-imp. We provide ample experimental evidence of the prototype's algorithmic expressibility.<\/jats:p>","DOI":"10.1145\/3591263","type":"journal-article","created":{"date-parts":[[2023,6,6]],"date-time":"2023-06-06T20:06:24Z","timestamp":1686081984000},"page":"1050-1072","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":6,"title":["Automated Expected Value Analysis of Recursive Programs"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6445-8833","authenticated-orcid":false,"given":"Martin","family":"Avanzini","sequence":"first","affiliation":[{"name":"Inria, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9240-6128","authenticated-orcid":false,"given":"Georg","family":"Moser","sequence":"additional","affiliation":[{"name":"Universit\u00e4t Innsbruck, Austria"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4795-0615","authenticated-orcid":false,"given":"Michael","family":"Schaper","sequence":"additional","affiliation":[{"name":"Build Informed, Austria"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,6,6]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/3385412.3386002"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/3473592"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2019.8785725"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428240"},{"key":"e_1_2_1_5_1","unstructured":"M. Avanzini G. Moser and M. Schaper. 2023. Automated Expected Value Analysis of Recursive Programs. arxiv:2304.01284. \t\t\t\t  M. Avanzini G. Moser and M. Schaper. 2023. Automated Expected Value Analysis of Recursive Programs. arxiv:2304.01284."},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.7801911"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-13185-1_3"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/1480881.1480894"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/3290347"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1142\/S0129054112400588"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1007\/11526841_9"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-10936-7_6"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-005-9022-x"},{"key":"e_1_2_1_14_1","unstructured":"T.H. Cormen C.E. Leiserson R.L. Rivest and C. Stein. 2009. Introduction To Algorithms (3rd ed.). MIT Press. isbn:978-0-262-03384-8 http:\/\/mitpress.mit.edu\/books\/introduction-algorithms \t\t\t\t  T.H. Cormen C.E. Leiserson R.L. Rivest and C. Stein. 2009. Introduction To Algorithms (3rd ed.). MIT Press. isbn:978-0-262-03384-8 http:\/\/mitpress.mit.edu\/books\/introduction-algorithms"},{"key":"e_1_2_1_15_1","volume-title":"Proc. 14th TACAS (LNCS","volume":"340","author":"de Moura L.","unstructured":"L. de Moura and N. Bj\u00f8rner . 2008. Z3: An Efficient SMT Solver . In Proc. 14th TACAS (LNCS , Vol. 4963). 337\u2013 340 . L. de Moura and N. Bj\u00f8rner. 2008. Z3: An Efficient SMT Solver. In Proc. 14th TACAS (LNCS, Vol. 4963). 337\u2013340."},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/360933.360975"},{"key":"e_1_2_1_17_1","volume-title":"A Discipline of Programming","author":"Dijkstra E. W.","unstructured":"E. W. Dijkstra . 1976. A Discipline of Programming . Prentice-Hall . isbn:013215871X E. W. Dijkstra. 1976. A Discipline of Programming. Prentice-Hall. isbn:013215871X"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/3338112"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-020-09545-0"},{"key":"e_1_2_1_20_1","unstructured":"D.P. Friedman and M. Wand. 2008. Essentials of Programming Languages (3rd ed.). The MIT Press. \t\t\t\t  D.P. Friedman and M. Wand. 2008. Essentials of Programming Languages (3rd ed.). The MIT Press."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-72788-0_33"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-41528-4_4"},{"key":"e_1_2_1_23_1","volume-title":"Concrete Mathematics: A Foundation for Computer Science","author":"Graham R.L.","year":"1994","unstructured":"R.L. Graham , D.E. Knuth , and O. Patashnik . 1994 . Concrete Mathematics: A Foundation for Computer Science ( 2 nd ed.). Addison-Wesley . isbn:0-201-55802-5 https:\/\/www-cs-faculty.stanford.edu\/%7Eknuth\/gkp.html R.L. Graham, D.E. Knuth, and O. Patashnik. 1994. Concrete Mathematics: A Foundation for Computer Science (2nd ed.). Addison-Wesley. isbn:0-201-55802-5 https:\/\/www-cs-faculty.stanford.edu\/%7Eknuth\/gkp.html","edition":"2"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.peva.2013.11.004"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.2140\/pjm.1988.132.35"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3371092"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/363235.363259"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2017.8005153"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-49498-1_15"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/3208102"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-48057-1_24"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/2933575.2934574"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-15769-1_24"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1007\/s001650050057"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(85)90012-1"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-81688-9_5"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-13188-2_4"},{"key":"e_1_2_1_39_1","doi-asserted-by":"crossref","unstructured":"A. McIver and C. Morgan. 2005. Abstraction Refinement and Proof for Probabilistic Systems. Springer Science & Business Media. \t\t\t\t  A. McIver and C. Morgan. 2005. Abstraction Refinement and Proof for Probabilistic Systems. Springer Science & Business Media.","DOI":"10.1145\/1059816.1059824"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3158121"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511813603"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3296979.3192394"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-03811-6"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(87)90029-3"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24622-0_20"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-018-09508-6"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1142\/10875"},{"key":"e_1_2_1_48_1","volume-title":"Proc. of 26 CAV (LNCS","volume":"761","author":"Sinn M.","unstructured":"M. Sinn , F. Zuleger , and H. Veith . 2014. A Simple and Scalable Static Analysis for Bound Analysis and Amortized Complexity Analysis . In Proc. of 26 CAV (LNCS , Vol. 8559). Springer, Heidelberg, DE. 745\u2013 761 . M. Sinn, F. Zuleger, and H. Veith. 2014. A Simple and Scalable Static Analysis for Bound Analysis and Amortized Complexity Analysis. In Proc. of 26 CAV (LNCS, Vol. 8559). Springer, Heidelberg, DE. 745\u2013761."},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-08867-9_50"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-01090-4_28"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/3547643"},{"key":"e_1_2_1_52_1","unstructured":"Niki Vazou. 2016. Liquid Haskell: Haskell as a Theorem Prover. Ph.D. Dissertation. University of California San Diego USA. http:\/\/www.escholarship.org\/uc\/item\/8dm057ws \t\t\t\t  Niki Vazou. 2016. Liquid Haskell: Haskell as a Theorem Prover. Ph.D. Dissertation. University of California San Diego USA. http:\/\/www.escholarship.org\/uc\/item\/8dm057ws"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/3192366.3192408"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/3408992"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314581"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-76771-5"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.7551\/mitpress\/3054.003.0004"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3591263","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3591263","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T16:47:20Z","timestamp":1750178840000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3591263"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,6,6]]},"references-count":56,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2023,6,6]]}},"alternative-id":["10.1145\/3591263"],"URL":"https:\/\/doi.org\/10.1145\/3591263","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,6,6]]},"assertion":[{"value":"2023-06-06","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}