跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2411.14735 (cs)
[提交于 2024年11月22日]

标题:Automatic Inference of Relational Object Invariants

作者:Yusen Su, Jorge A. Navas, Arie Gurfinkel, Isabel Garcia-Contreras
查看论文《Automatic Inference of Relational Object Invariants》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Relational object invariants (or representation invariants) are relational properties held by the fields of a (memory) object throughout its lifetime. For example, the length of a buffer never exceeds its capacity. Automatic inference of these invariants is particularly challenging because they are often broken temporarily during field updates. In this paper, we present an Abstract Interpretation-based solution to infer object invariants. Our key insight is a new object abstraction for memory objects, where memory is divided into multiple memory banks, each containing several objects. Within each bank, the objects are further abstracted by separating the most recently used (MRU) object, represented precisely with strong updates, while the rest are summarized. For an effective implementation of this approach, we introduce a new composite abstract domain, which forms a reduced product of numerical and equality sub-domains. This design efficiently expresses relationships between a small number of variables (e.g., fields of the same abstract object). We implement the new domain in the CRAB abstract interpreter and evaluate it on several benchmarks for memory safety. We show that our approach is significantly more scalable for relational properties than the existing implementation of CRAB. For evaluating precision, we have integrated our analysis as a pre-processing step to SEABMC bounded model checker, and show that it is effective at both discharging assertions during pre-processing, and significantly improving the run-time of SEABMC.
评论: This is an extended version of the VMCAI 2025 paper, consisting of 26 pages. The artifact is available at https://doi.org/10.5281/zenodo.13849174
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2411.14735 [cs.PL]
  (或者 arXiv:2411.14735v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2411.14735

提交历史

来自:Yusen Su
[v1] 2024年11月22日 星期五 05:05:44 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-11
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站