Hetrify+: Improving the Verification Efficiency of RISC-V Heterogeneous Programs via Memory Access Specialization

IF 6 1区 计算机科学 Q1 COMPUTER SCIENCE, SOFTWARE ENGINEERING
IEEE Transactions on Software Engineering Pub Date : 2026-07-01 Epub Date: 2026-03-12 DOI:10.1109/TSE.2026.3692469
Yiwei Li;Jiaxin Liu;Liangze Yin;Wei Dong;Shanshan Li;Jin Zhang
{"title":"Hetrify+: Improving the Verification Efficiency of RISC-V Heterogeneous Programs via Memory Access Specialization","authors":"Yiwei Li;Jiaxin Liu;Liangze Yin;Wei Dong;Shanshan Li;Jin Zhang","doi":"10.1109/TSE.2026.3692469","DOIUrl":null,"url":null,"abstract":"Heterogeneous software systems, which often combine closed-source libraries with exported interfaces, embedded assembly, and components in multiple languages, present significant challenges for formal verification. Our prior work, Hetrify, addressed this by converting RISC-V binaries into semantically equivalent C code, making such programs amenable to verification. However, its unified memory model required frequent dynamic computation of stack addresses, which significantly increased the size of the generated logical formulas, along with high memory usage and longer verification times. To address this, we propose memory access specialization, a static analysis and transformation technique that recovers fixed stack offsets during binary conversion to reduce verification overhead. By replacing symbolic stack accesses with fixed-offset memory references, it eliminates dynamic pointer arithmetic and reduces symbolic encoding complexity. This technique is integrated into Hetrify+, an enhanced verification tool for heterogeneous programs. To validate the effectiveness of our approach, we conduct both formal analysis and extensive empirical evaluation. Formal analysis guarantees the correctness of our method. In our evaluation, Hetrify+ demonstrates the same verification accuracy as the original Hetrify on 100 low-level RISC-V assembly programs, achieving up to 2.5<inline-formula><tex-math>$\\boldsymbol{\\times}$</tex-math></inline-formula> speedup and 4.9<inline-formula><tex-math>$\\boldsymbol{\\times}$</tex-math></inline-formula> reduction in memory usage. For 30 large-scale heterogeneous programs that include binary-only components, Hetrify+ maintains a 100% success rate, reducing verification time by 1.9<inline-formula><tex-math>$\\boldsymbol{\\times}$</tex-math></inline-formula> and memory consumption by 1.2<inline-formula><tex-math>$\\boldsymbol{\\times}$</tex-math></inline-formula>. These results demonstrate that memory access specialization is key to scaling the verification of heterogeneous programs.","PeriodicalId":13324,"journal":{"name":"IEEE Transactions on Software Engineering","volume":"52 7","pages":"2148-2172"},"PeriodicalIF":6.0000,"publicationDate":"2026-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Software Engineering","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/11515235/","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/3/12 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Heterogeneous software systems, which often combine closed-source libraries with exported interfaces, embedded assembly, and components in multiple languages, present significant challenges for formal verification. Our prior work, Hetrify, addressed this by converting RISC-V binaries into semantically equivalent C code, making such programs amenable to verification. However, its unified memory model required frequent dynamic computation of stack addresses, which significantly increased the size of the generated logical formulas, along with high memory usage and longer verification times. To address this, we propose memory access specialization, a static analysis and transformation technique that recovers fixed stack offsets during binary conversion to reduce verification overhead. By replacing symbolic stack accesses with fixed-offset memory references, it eliminates dynamic pointer arithmetic and reduces symbolic encoding complexity. This technique is integrated into Hetrify+, an enhanced verification tool for heterogeneous programs. To validate the effectiveness of our approach, we conduct both formal analysis and extensive empirical evaluation. Formal analysis guarantees the correctness of our method. In our evaluation, Hetrify+ demonstrates the same verification accuracy as the original Hetrify on 100 low-level RISC-V assembly programs, achieving up to 2.5$\boldsymbol{\times}$ speedup and 4.9$\boldsymbol{\times}$ reduction in memory usage. For 30 large-scale heterogeneous programs that include binary-only components, Hetrify+ maintains a 100% success rate, reducing verification time by 1.9$\boldsymbol{\times}$ and memory consumption by 1.2$\boldsymbol{\times}$. These results demonstrate that memory access specialization is key to scaling the verification of heterogeneous programs.
hetriify +:通过内存访问专门化提高RISC-V异构程序的验证效率
异构软件系统通常将封闭源代码库与导出接口、嵌入式汇编和多种语言的组件结合在一起,这对形式化验证提出了重大挑战。我们之前的工作Hetrify通过将RISC-V二进制文件转换为语义等效的C代码来解决这个问题,使此类程序易于验证。然而,其统一的内存模型需要频繁地动态计算堆栈地址,这大大增加了生成的逻辑公式的大小,同时内存使用率高,验证时间长。为了解决这个问题,我们提出了内存访问专门化,这是一种静态分析和转换技术,可以在二进制转换期间恢复固定的堆栈偏移,以减少验证开销。通过将符号堆栈访问替换为固定偏移量的内存引用,它消除了动态指针运算并降低了符号编码的复杂性。该技术被集成到Hetrify+中,这是一种针对异构程序的增强验证工具。为了验证我们方法的有效性,我们进行了形式分析和广泛的实证评估。形式分析保证了我们方法的正确性。在我们的评估中,Hetrify+在100个低级RISC-V汇编程序上显示了与原始Hetrify相同的验证精度,实现了高达2.5$\boldsymbol{\times}$的加速和4.9$\boldsymbol{\times}$的内存使用减少。对于30个包含纯二进制组件的大型异构程序,Hetrify+保持100%的成功率,将验证时间减少1.9$\boldsymbol{\times}$,内存消耗减少1.2$\boldsymbol{\times}$。这些结果表明,内存访问专门化是扩展异构程序验证的关键。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Software Engineering
IEEE Transactions on Software Engineering 工程技术-工程:电子与电气
CiteScore
9.70
自引率
10.80%
发文量
724
审稿时长
6 months
期刊介绍: IEEE Transactions on Software Engineering seeks contributions comprising well-defined theoretical results and empirical studies with potential impacts on software construction, analysis, or management. The scope of this Transactions extends from fundamental mechanisms to the development of principles and their application in specific environments. Specific topic areas include: a) Development and maintenance methods and models: Techniques and principles for specifying, designing, and implementing software systems, encompassing notations and process models. b) Assessment methods: Software tests, validation, reliability models, test and diagnosis procedures, software redundancy, design for error control, and measurements and evaluation of process and product aspects. c) Software project management: Productivity factors, cost models, schedule and organizational issues, and standards. d) Tools and environments: Specific tools, integrated tool environments, associated architectures, databases, and parallel and distributed processing issues. e) System issues: Hardware-software trade-offs. f) State-of-the-art surveys: Syntheses and comprehensive reviews of the historical development within specific areas of interest.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书