{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:58:51Z","timestamp":1790423931750,"version":"4.1.0"},"reference-count":74,"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":"DFG","award":["EXC 2092 CASA - 390781972"],"award-info":[{"award-number":["EXC 2092 CASA - 390781972"]}]}],"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                    The constant-time programming discipline is commonly used to protect cryptographic libraries against side-channel attacks. However, it is hard to write constant-time code; moreover, compilers can introduce constant-time violations. Therefore, it is important to ensure that assembly code is constant-time. One approach is to show that source programs are constant-time, and that constant-timeness is preserved by compilation. In this paper, we explore the methodological soundness and scalability of the Decompile-then-Analyze approach, a less conventional alternative that has been suggested in the broader setting of static analysis. Informally, the Decompile-then-Analyze approach uses decompilers a front-end for static analysis tools. As a motivation for our study, we show that current decompilers eliminate CT vulnerabilities before CT analysis, leading to non-CT programs being accepted as constant-time. Independently, we provide\n                    <jats:italic toggle=\"yes\">constructed<\/jats:italic>\n                    examples of non-CT, exploitable, programs that are accepted by two popular CT analysis tools; in both cases the culprit are program transformations that are used internally prior to CT analysis and eliminate CT violations. While our examples do not invalidate the general approach of these tools, they emphasize the need for studying the Decompile-then-Analyze approach.\n                  <\/jats:p>\n                  <jats:p>\n                    On the methodological side, we define the notion of CT\n                    <jats:italic toggle=\"yes\">transparency<\/jats:italic>\n                    . Informally, a program transformation is CT transparent if does not eliminate nor introduce CT violations. We also provide general methods for proving that a transformation is CT transparent, and show that several transformations of interest are transparent. We also sketch an extension of CT transparency to speculative constant-time, which is used by cryptographic software as a protection against Spectre attacks.\n                  <\/jats:p>\n                  <jats:p>\n                    On the practical side, we build a CT-transparent version of the popular LLVM-based decompiler\n                    <jats:sc>Ret<\/jats:sc>\n                    <jats:sc>Dec<\/jats:sc>\n                    , and combine it with CT-LLVM, an existing CT verification tool for LLVM. We evaluate the resulting tool, called CT-\n                    <jats:sc>Ret<\/jats:sc>\n                    <jats:sc>Dec<\/jats:sc>\n                    on a benchmark set of real-world vulnerabilities in binaries, and show that the modifications had significant impact on how well CT-\n                    <jats:sc>Ret<\/jats:sc>\n                    <jats:sc>Dec<\/jats:sc>\n                    performs.\n                  <\/jats:p>","DOI":"10.1145\/3798201","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"29-58","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Decompiling for Constant-Time Analysis"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-7425-570X","authenticated-orcid":false,"given":"Santiago","family":"Arranz-Olmos","sequence":"first","affiliation":[{"name":"MPI-SP, Bochum, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3853-1777","authenticated-orcid":false,"given":"Gilles","family":"Barthe","sequence":"additional","affiliation":[{"name":"MPI-SP, Bochum, Germany"},{"name":"IMDEA Software Institute, Madrid, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9058-2005","authenticated-orcid":false,"given":"Lionel","family":"Blatter","sequence":"additional","affiliation":[{"name":"MPI-SP, Bochum, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-1275-1613","authenticated-orcid":false,"given":"Youcef","family":"Bouzid","sequence":"additional","affiliation":[{"name":"ENS Paris-Saclay, Gif-sur-Yvette, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0009-4781-8583","authenticated-orcid":false,"given":"S\u00f6ren","family":"van der Wall","sequence":"additional","affiliation":[{"name":"TU Braunschweig, Braunschweig, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0000-2669-5654","authenticated-orcid":false,"given":"Zhiyuan","family":"Zhang","sequence":"additional","affiliation":[{"name":"MPI-SP, Bochum, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,10]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"Vector 35 . 2016. Binary Ninja. https:\/\/binary.ninja\/"},{"key":"e_1_3_1_3_2","unstructured":"Vector 35 . 2025. Dogbolt. https:\/\/dogbolt.org\/"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","DOI":"10.1145\/3460860"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2019.00025"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","DOI":"10.1145\/3133956.3134078"},{"key":"e_1_3_1_7_2","unstructured":"Jos\u00e9 Bacelar Almeida Manuel Barbosa Gilles Barthe Fran\u00e7ois Dupressoir and Michael Emmi . 2016. Verifying Constant- Time Implementations. In USENIX Security. 53\u201370. https:\/\/www.usenix.org\/conference\/usenixsecurityl6\/technical-sessions\/presentation\/almeida"},{"key":"e_1_3_1_8_2","unstructured":"Dennis Andriesse Xi Chen Victor van der Veen Asia Slowinska and Herbert Bos . 2016. An In-Depth Analysis of Disassembly on Full-Scale x86\/x64 Binaries. In 25th USENIX Security Symposium USENIX Security 16 Austin TX USA August 10-12 2016 Thorsten Holz and Stefan Savage (Eds.). USENIX Association 583\u2013600. https:\/\/www.usenix.org\/conference\/usenixsecurityl6\/technical-sessions\/presentation\/andriesse"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","unstructured":"Santiago Arranz-Olmos Gilles Barthe Lionel Blatter Youcef Bouzid S\u00f6ren van der Wall and Zhiyuan Zhang . 2026. Artifact for Paper Decompiling for Constant-Time Analysis doi:10.5281\/zenodo.18749373","DOI":"10.5281\/zenodo.18749373"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1145\/3704880"},{"key":"e_1_3_1_11_2","first-page":"215","article-title":"Sidetrail: Verifying time-balancing of cryptosystems","author":"Athanasiou Konstantinos","year":"2018","unstructured":"Konstantinos Athanasiou , Byron Cook , Michael Emmi , Colm MacC\u00e1rthaigh , Daniel Schwartz-Narbonne , and Serdar Tasiran . 2018. Sidetrail: Verifying time-balancing of cryptosystems. In VSTTE. 215\u2013228.","journal-title":"VSTTE"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP40001.2021.00008"},{"key":"e_1_3_1_13_2","first-page":"1267","article-title":"System-level non-interference for constant-time cryptography","author":"Barthe Gilles","year":"2014","unstructured":"Gilles Barthe , Gustavo Betarte , Juan Campo , Carlos Luna , and David Pichardie . 2014. System-level non-interference for constant-time cryptography. In CCS. 1267\u20131279.","journal-title":"CCS"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/3371075"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP40001.2021.00046"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2018.00031"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","DOI":"10.1145\/3460120.3484761"},{"key":"e_1_3_1_18_2","unstructured":"Zion Leonahenahe Basque Ati Priya Bajaj Wil Gibbs Jude O\u2019Kain Derron Miao Tiffany Bao Adam Doup\u00e9 Yan Shoshitaishvili and Ruoyu Wang . 2024. Ahoy SAILR! There is No Need to DREAM of C: A Compiler-Aware Structuring Algorithm for Binary Decompilation. In USENIX Security https:\/\/www.usenix.org\/conference\/usenixsecurity24\/presentation\/basque"},{"key":"e_1_3_1_19_2","unstructured":"Daniel J Bernstein . 2005. Cache-timing attacks on AES. (2005)."},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-66402-616"},{"key":"e_1_3_1_21_2","unstructured":"Barry Bond Chris Hawblitzel Manos Kapritsos K. Rustan M. Leino Jacob R. Lorch Bryan Parno Ashay Rane Srinath T. V. Setty and Laure Thompson . 2017. Vale: Verifying High-Performance Cryptographic Assembly Code. In 26th USENIX Security Symposium USENIX Security 2017 Vancouver BC Canada August 16-18 2017 Engin Kirda and Thomas Ristenpart (Eds.). USENIX Association 917\u2013934. https:\/\/www.usenix.org\/conference\/usenixsecurityl7\/technical-sessions\/presentation\/bond"},{"key":"e_1_3_1_22_2","unstructured":"David Brumley JongHyup Lee Edward J. Schwartz and Maverick Woo . 2013. Native x86 Decompilation Using Semantics-Preserving Structural Analysis and Iterative Control-Flow Structuring. In USENIX Security. 353\u2013368. https:\/\/www.usenix.org\/conference\/usenixsecurityl3\/technical-sessions\/presentation\/schwartz"},{"key":"e_1_3_1_23_2","unstructured":"Kevin Burk Fabio Pagani Christopher Kruegel and Giovanni Vigna . 2022. Decomperson: How Humans Decompile and What We Can Learn From It. In USENIX Security. 2765\u20132782. https:\/\/www.usenix.org\/conference\/usenixsecurity22\/presentation\/burk"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/3643772"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1145\/3650212.3652144"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP46214.2022.9833707"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/3385412.3385970"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP40000.2020.00074"},{"key":"e_1_3_1_29_2","doi-asserted-by":"crossref","unstructured":"Lesly-Ann Daniel S\u00e9bastien Bardin and Tamara Rezk . 2021. Hunting the Haunter - Efficient Relational Symbolic Execution for Spectre with Haunted RelSE. In NDSS. https:\/\/www.ndss-symposium.org\/ndss-paper\/hunting-the-haunter-efficient-relational-symbolic-execution-for-spectre-with-haunted-relse\/","DOI":"10.14722\/ndss.2021.24286"},{"key":"e_1_3_1_30_2","article-title":"Finding and eliminating timing side-channels in crypto code with pitchfork","author":"Disselkoen Craig","year":"2020","unstructured":"Craig Disselkoen , Sunjay Cauligi , Dean Tullsen , and Deian Stefan . 2020. Finding and eliminating timing side-channels in crypto code with pitchfork. In TECHCON.","journal-title":"TECHCON"},{"key":"e_1_3_1_31_2","unstructured":"Luke Dramko Jeremy Lacomis Edward J. Schwartz Bogdan Vasilescu and Claire Le Goues . 2024. A Taxonomy of C Decompiler Fidelity Issues. In USENIX Security https:\/\/www.usenix.org\/conference\/usenixsecurity24\/presentation\/dramko"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","DOI":"10.1109\/SPW.2015.33"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.22O5.06719"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/1988932.1988936"},{"key":"e_1_3_1_35_2","article-title":"Fun with flags: How Compilers Break and Fix Constant-Time Code","author":"Geimer Antoine","year":"2025","unstructured":"Antoine Geimer and Clementine Maurice . 2025. Fun with flags: How Compilers Break and Fix Constant-Time Code. arXivpreprint arXiv:2507.06112 (2025).","journal-title":"arXivpreprint arXiv:2507.06112"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.1145\/3576915.3623112"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP40000.2020.00011"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP40001.2021.00036"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1145\/3320269.3384766"},{"key":"e_1_3_1_40_2","unstructured":"Hex-Rays . 2023. Ida Pro. https:\/\/www.hex-rays.com\/products\/ida"},{"key":"e_1_3_1_41_2","unstructured":"Intel . 2022. Guidelines for Mitigating Timing Side Channels Against Cryptographic Implementations. https:\/\/www.intel.com\/content\/www\/us\/en\/developer\/articles\/technical\/software-security-guidance\/secure-coding\/mitigate-timing-side-channel-crypto-implementation.html Accessed: 2026-01-22."},{"key":"e_1_3_1_42_2","unstructured":"Intel . 2023. Data Operand Independent Timing Instructions https:\/\/www.intel.com\/content\/www\/us\/en\/developer\/articles\/technical\/software-security-guidance\/resources\/data-operand-independent-timing-instructions.html Accessed: 2025-10-06."},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP46214.2022.9833713"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2019.00002"},{"key":"e_1_3_1_45_2","doi-asserted-by":"crossref","unstructured":"Paul C. Kocher . 1996. Timing Attacks on Implementations of Diffie-Hellman RSA DSS and Other Systems. In Advances in Cryptology - CRYPTO\u201996 (LNCS Vol. 1109). SV 104\u2013113. http:\/\/www.cryptography.com\/public\/pdf\/TimingAttacks.pdf","DOI":"10.1007\/3-540-68697-5_9"},{"key":"e_1_3_1_46_2","unstructured":"Jakub K\u0159oustek Peter Matula and Petr Zemek . 2017. Retdec: An open-source machine-code decompiler https:\/\/github.com\/avast\/retdec"},{"key":"e_1_3_1_47_2","doi-asserted-by":"publisher","unstructured":"Zhibo Liu and Shuai Wang . 2020. How far we have come: testing decompilation correctness of C decompilers. In ISSTA \u201920:29th ACM SIGSOFT International Symposium on Software Testing and Analysis Virtual Event USA July 18-22 2020 Sarfraz Khurshid and Corina S. Pasareanu (Eds.). ACM 475\u2013487. doi:10.1145\/3395363.3397370","DOI":"10.1145\/3395363.3397370"},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP46214.2022.9833799"},{"key":"e_1_3_1_49_2","doi-asserted-by":"publisher","DOI":"10.1145\/3488932.3497764"},{"key":"e_1_3_1_50_2","doi-asserted-by":"publisher","DOI":"10.1145\/3564625.3567993"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.1007\/1173472714"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2511.11385"},{"key":"e_1_3_1_53_2","unstructured":"National Security Agency (NSA) . 2018. Ghidra. https:\/\/www.nsa.gov\/resources\/everyone\/ghidra\/"},{"key":"e_1_3_1_54_2","unstructured":"Antoon Purnal . 2024. Clangover CVE. https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2024-37880 Accessed: 2025-10-03."},{"key":"e_1_3_1_55_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-08867-9_7"},{"key":"e_1_3_1_56_2","doi-asserted-by":"publisher","DOI":"10.1145\/2892208.2892230"},{"key":"e_1_3_1_57_2","doi-asserted-by":"crossref","unstructured":"Moritz Schneider Daniele Lain Ivan Puddu Nicolas Dutly and Srdjan Capkun . 2024. Breaking Bad: How Compilers Break Constant-Time Implementations. arXiv:2410.13489 [cs.CR] https:\/\/arxiv.org\/abs\/2410.13489","DOI":"10.1145\/3708821.3733909"},{"key":"e_1_3_1_58_2","doi-asserted-by":"publisher","DOI":"10.14722\/bar.2018.23008"},{"key":"e_1_3_1_59_2","unstructured":"Edward J. Schwartz and JongHyup Lee . 2013. Decompilation of Binary Programs Using Control-Flow Structuring and Semantic-Preserving Transformations. In USENIX Security. 369-384. https:\/\/www.usenix.org\/conference\/usenixsecurity13\/technical-sessions\/presentation\/schwartz"},{"key":"e_1_3_1_60_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP46215.2023.10179418"},{"key":"e_1_3_1_61_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2016.17"},{"key":"e_1_3_1_62_2","doi-asserted-by":"publisher","DOI":"10.1109\/EuroSP.2018.00009"},{"key":"e_1_3_1_63_2","doi-asserted-by":"publisher","DOI":"10.1145\/3238147.3240485"},{"key":"e_1_3_1_64_2","doi-asserted-by":"publisher","DOI":"10.1145\/3704887"},{"key":"e_1_3_1_65_2","doi-asserted-by":"publisher","DOI":"10.1145\/3434330"},{"key":"e_1_3_1_66_2","doi-asserted-by":"publisher","DOI":"10.1145\/3519939.3523702"},{"key":"e_1_3_1_67_2","unstructured":"Shuai Wang Yuyan Bao Xiao Liu Pei Wang Danfeng Zhang and Dinghao Wu . 2019. Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation. In USENIX Security. 657-674. https:\/\/www.usenix.org\/conference\/usenixsecurity19\/presentation\/wang-shuai"},{"key":"e_1_3_1_68_2","unstructured":"Jianhao Xu Kangjie Lu Zhengjie Du Zhu Ding Linke Li Qiushi Wu Mathias Payer and Bing Mao . 2023. Silent Bugs Matter: A Study of Compiler-Introduced Security Bugs. In 32nd USENIX Security Symposium USENIX Security 2023 Anaheim CA USA August 9-11 2023 Joseph A. Calandrino and Carmela Troncoso (Eds.). USENIX Association 3655\u20133672. https:\/\/www.usenix.org\/conference\/usenixsecurity23\/presentation\/xu-jianhao"},{"key":"e_1_3_1_69_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2016.18"},{"key":"e_1_3_1_70_2","doi-asserted-by":"crossref","unstructured":"Khaled Yakdan Sebastian Eschweiler Elmar Gerhards-Padilla and Matthew Smith . 2015. No More Gotos: Decompilation Using Pattern-Independent Control-Flow Structuring and Semantic-Preserving Transformations. In NDSS. https:\/\/www.ndss-symposium.org\/ndss2015\/no-more-gotos-decompilation-using-pattern-independent-control-flow-structuring-and-semantics","DOI":"10.14722\/ndss.2015.23185"},{"key":"e_1_3_1_71_2","unstructured":"Zhiyuan Zhang and Gilles Barthe . 2025. CT-LLVM: Automatic Large-Scale Constant-Time Analysis. Cryptology ePrint Archive Paper 2025\/338. https:\/\/eprint.iacr.org\/2025\/338"},{"key":"e_1_3_1_72_2","unstructured":"Zhiyuan Zhang Mingtian Tao Sioli O\u2019Connell Chitchanok Chuengsatiansup Daniel Genkin and Yuval Yarom . 2023. BunnyHop: Exploiting the Instruction Prefetcher. In USENIX Security. 7321\u20137337. https:\/\/www.usenix.org\/conference\/usenixsecurity23\/presentation\/zhang-zhiyuan-bunnyhop"},{"key":"e_1_3_1_73_2","doi-asserted-by":"publisher","DOI":"10.1145\/3620665.3640382"},{"key":"e_1_3_1_74_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPICS.ECOOP.2024.46"},{"key":"e_1_3_1_75_2","unstructured":"Muqi Zou Arslan Khan Ruoyu Wu Han Gao Antonio Bianchi and Dave (Jing) Tian . 2024. D-Helix: A Generic Decompiler Testing Framework Using Symbolic Differentiation. In 33rd USEN\u0128X Security Symposium USEN\u0128X Security 2024 Philadelphia PA USA August 14-16 2024 Davide Balzarotti and Wenyuan Xu (Eds.). USENIX Association. https:\/\/www.usenix.org\/conference\/usenixsecurity24\/presentation\/zou"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798201","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:18:17Z","timestamp":1790421497000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798201"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":74,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798201"],"URL":"https:\/\/doi.org\/10.1145\/3798201","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"}}]}}