{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:58:56Z","timestamp":1790423936057,"version":"4.1.0"},"reference-count":43,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA1","license":[{"start":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T00:00:00Z","timestamp":1775779200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"name":"National Key R&D Program of China","award":["2022YFB4400704"],"award-info":[{"award-number":["2022YFB4400704"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,4,10]]},"abstract":"<jats:p>\n                    As build systems and their scripts grow in size and complexity, detecting bugs in build configurations becomes increasingly challenging due to the rich functionality and weak typing of build scripting languages. This paper introduces CM\n                    <jats:sc>ake<\/jats:sc>\n                    S\n                    <jats:sc>onar<\/jats:sc>\n                    , the first static approach to precisely identifying semantic bugs in CMake scripts. CM\n                    <jats:sc>ake<\/jats:sc>\n                    S\n                    <jats:sc>onar<\/jats:sc>\n                    addresses this challenge by (1) designing a fine-grained type system that captures the runtime semantics of CMake values, and (2) performing a flow-sensitive analysis that detects inconsistent and ill-typed value usages by solving type constraints. Our approach identifies configuration and usage errors that can silently affect build correctness, portability, and deployment safety. In our evaluation, CM\n                    <jats:sc>ake<\/jats:sc>\n                    S\n                    <jats:sc>onar<\/jats:sc>\n                    identifies 155 bugs across 36 real-world CMake projects on GitHub, of which 23 have been accepted and fixed by developers. With a false positive rate of\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>4.32<\/mml:mn>\n                          <mml:mi>%<\/mml:mi>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    and a recall of\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>97.48<\/mml:mn>\n                          <mml:mi>%<\/mml:mi>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    , CM\n                    <jats:sc>ake<\/jats:sc>\n                    S\n                    <jats:sc>onar<\/jats:sc>\n                    demonstrates that precise static analysis can effectively uncover high-impact bugs in untyped build systems.\n                  <\/jats:p>","DOI":"10.1145\/3798218","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"513-539","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["CMakeSonar: A Static Approach to Detecting CMake Bugs with a Fine-Grained Type System"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0004-7107-3693","authenticated-orcid":false,"given":"Haotian","family":"Han","sequence":"first","affiliation":[{"name":"Wuhan University, School of Computer Science, Wuhan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-5449-5843","authenticated-orcid":false,"given":"Zihang","family":"Zhong","sequence":"additional","affiliation":[{"name":"Wuhan University, School of Computer Science, Wuhan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0110-5405","authenticated-orcid":false,"given":"Qingan","family":"Li","sequence":"additional","affiliation":[{"name":"Wuhan University, School of Computer Science, Wuhan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0380-3506","authenticated-orcid":false,"given":"Jingling","family":"Xue","sequence":"additional","affiliation":[{"name":"University of New South Wales, School of Computer Science and Engineering, Sydney, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8758-8668","authenticated-orcid":false,"given":"Mengting","family":"Yuan","sequence":"additional","affiliation":[{"name":"Wuhan University, School of Computer Science, Wuhan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,10]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926437"},{"key":"e_1_3_1_3_2","unstructured":"Anthropic Inc. 2025. Claude Sonnet 4. https:\/\/www.anthropic.com\/claude"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Ellen Arteca Max Sch\u00e4fer and Frank Tip. 2023. A statistical approach for finding property-access errors. (2023). doi:10.48550\/arXiv.2306.08741","DOI":"10.48550\/arXiv.2306.08741"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","unstructured":"Islem Bouzenia Premkumar Devanbu and Michael Pradel. 2024. Repairagent: An autonomous llm-based agent for program repair. (2024). doi:10.48550\/arXiv.2403.17134","DOI":"10.48550\/arXiv.2403.17134"},{"key":"e_1_3_1_6_2","volume-title":"Localized type inference of atomic types in python","author":"Cannon Brett","year":"2005","unstructured":"Brett Cannon. 2005. Localized type inference of atomic types in python. California Polytechnic State University"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/3652588.3663317"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3639184"},{"key":"e_1_3_1_9_2","unstructured":"cmake-format contributers. 2012. CMake-Lint. https:\/\/cmake-format.readthedocs.io\/en\/latest\/cmake-lint.html"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","unstructured":"Siwei Cui Gang Zhao Zeyu Dai Luochao Wang Ruihong Huang and Jeff Huang. 2021. Pyinfer: Deep learning semantic type inference for python variables. arXiv preprint arXiv:2106.14316(2021). doi:10.48550\/arXiv.2106.14316","DOI":"10.48550\/arXiv.2106.14316"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","DOI":"10.1145\/3211346.3211349"},{"key":"e_1_3_1_12_2","unstructured":"Dropbox. 2017. Pyannotate: Auto-generate PEP-484 annotations. https:\/\/github.com\/dropbox\/pyannotate"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/3540250.3549126"},{"key":"e_1_3_1_14_2","unstructured":"Facebook. 2014. Flow: A Static Type Checker for JavaScript. https:\/\/flow.org"},{"key":"e_1_3_1_15_2","unstructured":"Facebook. 2017. Pyre-check: Performant type-checking for python. https:\/\/github.com\/facebook\/pyre-check"},{"key":"e_1_3_1_16_2","unstructured":"Facebook. 2023. Buck2. https:\/\/github.com\/facebook\/buck2"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","DOI":"10.1145\/3395363.3397388"},{"key":"e_1_3_1_18_2","unstructured":"GitHub Inc. 2025. GitHub. https:\/\/github.com"},{"key":"e_1_3_1_19_2","unstructured":"Google Inc. 2015. Bazel. https:\/\/github.com\/bazelbuild\/bazel"},{"key":"e_1_3_1_20_2","unstructured":"Google Inc. 2015. Pytype: A static type analyzer for Python code. https:\/\/github.com\/google\/pytype"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","unstructured":"Skyler Grandel Scott Thomas Andersen Yu Huang and Kevin Leach. 2024. COMCAT: Leveraging Human Judgment to Improve Automatic Documentation and Summarization. (2024). doi:10.48550\/arXiv.2407.13648","DOI":"10.48550\/arXiv.2407.13648"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","unstructured":"Carl A. Gunter. 2000. Abstracting dependencies between software configuration items. ACM Trans. Softw. Eng. Methodol. 9 1 (Jan. 2000) 94\u2013131. doi:10.1145\/332740.332743","DOI":"10.1145\/332740.332743"},{"key":"e_1_3_1_23_2","unstructured":"Haotian Han et al. 2026. CMakeSonar Data. https:\/\/github.com\/orgs\/CMakeSonar\/repositories"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","unstructured":"Haotian Han Zihang Zhong Qingan Li Jingling Xue and Mengting Yuan. 2026. Software Artifact for \u201cCMakeSonar : A Static Approach to Detecting CMake Bugs with a Fine-Grained Type System\u201d. doi:10.1145\/3747415","DOI":"10.1145\/3747415"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-96142-2_2"},{"key":"e_1_3_1_26_2","unstructured":"Instagram. 2017. MonkeyType. https:\/\/github.com\/Instagram\/MonkeyType"},{"key":"e_1_3_1_27_2","unstructured":"Kitware Inc. 2024. CMake. https:\/\/cmake.org"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2020.15"},{"key":"e_1_3_1_29_2","unstructured":"Jukka Lehtosalo et-al. 2012. mypy - Optional Static Typing for Python. http:\/\/mypy-lang.org"},{"key":"e_1_3_1_30_2","unstructured":"LLVM Project. 2003. LLVM. https:\/\/github.com\/llvm\/llvm-project"},{"key":"e_1_3_1_31_2","unstructured":"Microsoft. 2012. TypeScript: JavaScript With Syntax for Types. https:\/\/www.typescriptlang.org"},{"key":"e_1_3_1_32_2","unstructured":"Microsoft. 2019. Pyright: Static Type Checker for Python. https:\/\/github.com\/microsoft\/pyright"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","unstructured":"Amir M Mir Evaldas Lato\u0161kinas Sebastian Proksch and Georgios Gousios. 2022. Type4py: Practical deep similarity learning-based type inference for python. In Proceedings of the 44th International Conference on Software Engineering. 2241\u20132252. doi:10.1145\/3510003.3510124","DOI":"10.1145\/3510003.3510124"},{"key":"e_1_3_1_34_2","unstructured":"Neil Mitchell. 2011. Shake Build System. https:\/\/shakebuild.com"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","unstructured":"Yusuke Miyazaki Taro Sekiyama and Atsushi Igarashi. 2019. Dynamic type inference for gradual Hindley-Milner typing. Proceedings of the ACM on Programming Languages 3 POPL (2019) 1\u201329. doi:10.1145\/3290331","DOI":"10.1145\/3290331"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","unstructured":"KimHao Nguyen ThanhVu Nguyen and Quoc-Sang Phan. 2022. Analyzing the cmake build system. In Proceedings of the 44th International Conference on Software Engineering: Software Engineering in Practice. 27\u201328. doi:10.1145\/3510457.3513064","DOI":"10.1145\/3510457.3513064"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","unstructured":"Wonseok Oh and Hakjoo Oh. 2024. Towards Effective Static Type-Error Detection for Python. In Proceedings of the 39th IEEE\/ACM International Conference on Automated Software Engineering (Sacramento CA USA) (ASE \u201924). Association for Computing Machinery New York NY USA 1808\u20131820. doi:10.1145\/3691620.3695545","DOI":"10.1145\/3691620.3695545"},{"key":"e_1_3_1_38_2","unstructured":"Jussi Pakkanen. 2013. Meson Build System. https:\/\/github.com\/mesonbuild\/meson"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","unstructured":"Yun Peng Cuiyun Gao Zongjie Li Bowei Gao David Lo Qirun Zhang and Michael Lyu. 2022. Static inference meets deep learning: a hybrid type inference approach for python. In Proceedings of the 44th International Conference on Software Engineering. 2019\u20132030. 10.1145\/3510003.3510038","DOI":"10.1145\/3510003.3510038"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","unstructured":"Brianna M Ren and Jeffrey S Foster. 2016. Just-in-time static type checking for dynamic languages. In Proceedings of the 37th ACM SIGPLAN Conference on Programming Language Design and Implementation. 462\u2013476. doi:10.1145\/2908080.2908127","DOI":"10.1145\/2908080.2908127"},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","DOI":"10.1145\/2351676.2351749"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","unstructured":"Nikos Vasilakis Grigoris Ntousakis Veit Heller and Martin C Rinard. 2021. Efficient module-level dynamic analysis for dynamic languages with module recontextualization. In Proceedings of the 29th ACM Foint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 1202\u20131213. doi:10.1145\/3468264.3468574","DOI":"10.1145\/3468264.3468574"},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","unstructured":"Jiayi Wei Maruth Goyal Greg Durrett and Isil Dillig. 2020. Lambdanet: Probabilistic type inference using graph neural networks. (2020). doi:10.48550\/arXiv.2005.02161","DOI":"10.48550\/arXiv.2005.02161"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","unstructured":"Chen Yang Ziqi Wang Yanjie Jiang Lin Yang Yuteng Zheng Jianyi Zhou and Junjie Chen. 2025. Reflective Unit Test Generation for Precise Type Error Detection with Large Language Models. (2025). doi:10.48550\/arXiv.2507.02318","DOI":"10.48550\/arXiv.2507.02318"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798218","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:20:52Z","timestamp":1790421652000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798218"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":43,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798218"],"URL":"https:\/\/doi.org\/10.1145\/3798218","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,10]]},"assertion":[{"value":"2025-10-10","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-17","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-10","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}