[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-509518-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-509518-en":131},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","d-helix-a-generic-decompiler-testing-framework-using-symbolic-differentiation","D-Helix: A Generic Decompiler Testing Framework Using Symbolic Differentiation","","Decompilers transform low-level binaries back into high-level code, but their correctness is often overlooked because they rely on hundreds of heuristic rules, which can introduce semantic inaccuracies. Such errors reduce the effectiveness of downstream security tasks. The paper introduces D-HELIX, a function-level decompiler testing framework that recompiles decompiled functions and compares symbolic models between original binaries and decompiled outputs. It also provides tuning to debug incorrect decompilations by toggling heuristics.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/d-helix-a-generic-decompiler-testing-framework-using-symbolic-differentiation/509518/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/d-helix-a-generic-decompiler-testing-framework-using-symbolic-differentiation/509518.png","ImageObject",300,407,{"name":42,"@type":43},"McQueen","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-21","2026-10-05",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",11,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does D-HELIX address in decompilation?","Question",{"text":63,"@type":64},"D-HELIX addresses the gap between decompiler output readability and semantic accuracy, where heuristic rules can produce incorrectly decompiled functions that mislead security analysis.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does D-HELIX check decompilation correctness?",{"text":68,"@type":64},"D-HELIX recompiles decompiled code at the function level, builds symbolic models for both the original binary and the recompiled decompiled output, and compares them to detect semantic discrepancies.",{"name":70,"@type":61,"acceptedAnswer":71},"What is the purpose of D-HELIX’s TUNER component?",{"text":72,"@type":64},"TUNER helps debug incorrect decompilation results by automatically toggling decompiler heuristic rules to identify which heuristic caused the detected inaccuracy.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},509518,1791454649,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":33,"preview_urls":147},5909890329169,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","D-Helix: A Generic Decompiler Testing Framework Using Symbolic Di􀀛erentiation  \nMuqi Zou, Arslan Khan, Ruoyu Wu, Han Gao, Antonio Bianchi, Dave (Jing) Tian  \nPurdue University  \n{zou116, khan253, wu1377, coolgao, antoniob, [daveti}@purdue.edu](daveti}@purdue.edu)  \nAbstract  \nDecompilers, one of the widely used security tools, transform low-level binary programs back into their high-level source representations, such as C/C++ . While state-of-the-art decompilers try to generate more human-readable outputs, for instance, by eliminating goto statements in their decompiled code, the correctness of a decompilation process is largely ignored due to the complexity of decompilers, e.g., involving hundreds of heuristic rules. As a result, outputs from decompilers are often not accurate, which a􀀛ects the e􀀛ectiveness of downstream security tasks.  \nIn this paper, we propose D-HELIX, a generic decompiler testing framework that can automatically vet the decompilation correctness on the function level. D-HELIX uses RECOMPILER to compile the decompiled code at the functional level. It then uses SYMDIFF to compare the symbolic model of the original binary with the one of the decompiled code, detecting potential errors introduced by the decompilation process. D-HELIX further provides TUNER to help debug the incorrect decompilation via toggling decompilation heuristic rules automatically. We evaluated D-HELIX on Ghidra and angr using 2,004 binaries and object 􀀜les ending up with 93Kdecompiled functions in total. D-HELIX detected 4,515 incorrectly decompiled functions, reproduced 8 known bugs, found 17 distinct previously unknown bugs within these two decompilers, and 􀀜xed 7 bugs automatically.  \n1 Introduction  \nWidely applied in security, decompilation is a reverse engineering procedure that transforms a low-level binary program back to high-level source code representations such as C/C++ . For example, Ghidra is such a decompilation tool 􀀐developed by NSA’s Research Directorate in support of the Cybersecurity mission􀀑 1. The whole decompilation process can be divided into four stages: disassembly, lifting to Intermediate Representation (IR), higher-level semantics abstraction, and  \n1 [https://ghidra-sre.org/](https://ghidra-sre.org/)  \ndecompiled code generation [11] . Disassembly is the initial process that translates the machine code into assembly code. Then the lifter further converts it into IR (e.g., P-Code [6] or VEX [3]) . Based on the IR, the decompiler recovers higherlevel semantics (e.g., control 􀀝ow graphs, variable types, or structures) and 􀀜nally generates the decompiled code as output. In this paper, we refer lifter as the tool that can convert machine code into IR and de􀀜ne decompiler as the tool working on IR and 􀀜nally generating the decompiled code.  \nAlthough decompilation techniques are expected to facilitate real-world reverse engineering, many engineers do not trust the output of decompilers. In fact, approximately 69% of reverse engineers (i.e., 11 out of 16) pay less attention to the decompilation output since they think the decompilation process is error-prone and the wrong result will mislead the analysis [50] .  \nThe hurdle of impeding security engineers from trusting decompilers, as we observe, is the essential trade-o􀀛 between code readability and semantic accuracy. During the last two stages of the decompilation, a decompiler has to infer information (e.g., structural or type information) that has been discarded during compilation [60] . To tackle this, modern decompilers involve hundreds of heuristic rules, such as type reconstruction [38] and code structure recovery [12] to compensate for the missing information, and iteratively apply these rules to generate code that is progressively more and more readable. However, as shown in existing work [30], these heuristic rules might be unsound or even incorrect, introducing semantic inaccuracies in the decompiled code. Though security researchers have conducted num","cbCaiudxwqPg47SK","https://ap.wps.com/l/cbCaiudxwqPg47SK","pdf",528823,18,"English","# Abstract\n# 1 Introduction","[{\"question\":\"What problem does D-HELIX address in decompilation?\",\"answer\":\"D-HELIX addresses the gap between decompiler output readability and semantic accuracy, where heuristic rules can produce incorrectly decompiled functions that mislead security analysis.\"},{\"question\":\"How does D-HELIX check decompilation correctness?\",\"answer\":\"D-HELIX recompiles decompiled code at the function level, builds symbolic models for both the original binary and the recompiled decompiled output, and compares them to detect semantic discrepancies.\"},{\"question\":\"What is the purpose of D-HELIX’s TUNER component?\",\"answer\":\"TUNER helps debug incorrect decompilation results by automatically toggling decompiler heuristic rules to identify which heuristic caused the detected inaccuracy.\"}]","D-Helix: A Generic Decompiler Testing Framework Using Symbolic Differentiation | PDF",1791236155,45,[148,152,156,160],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/86b1311b7261c121f81c3c0b0a99a48c.webp",983,1272,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/98cd2b09e0b6456c84823ba2cd5bf49c.webp",982,1270,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/272cdd88891c8bee34c97fdc6fdf8fa2.webp",981,1269,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/eeaebae756a5a641f50a10987b1ac816.webp",980,1268]