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

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

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

arXiv:1804.07608 (cs)
[提交于 2018年4月17日 (v1),最后修订于 2020年7月24日 (此版本, v2)]

标题:An Executable Operational Semantics for Rust with the Formalization of Ownership and Borrowing

作者:Shuanglong Kan, Zhe Chen, David Sanan, Shang-Wei Lin, Yang Liu
查看论文《An Executable Operational Semantics for Rust with the Formalization of Ownership and Borrowing》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Rust is an emergent systems programming language highlighting memory safety by its Ownership and Borrowing System (OBS). The existing formal semantics for Rust only covers limited subsets of the major language features of Rust. Moreover, they formalize OBS as type systems at the language-level, which can only be used to conservatively analyze programs against the OBS invariants at compile-time. That is, they are not executable, and thus cannot be used for automated verification of runtime behavior. In this paper, we propose RustSEM, a new executable operational semantics for Rust. RustSEM covers a much larger subset of the major language features than existing semantics. Moreover, RustSEM provides an operational semantics for OBS at the memory-level, which can be used to verify the runtime behavior of Rust programs against the OBS invariants. We have implemented RustSEM in the executable semantics modeling tool K-Framework. We have evaluated the semantics correctness of RustSEM wrt. the Rust compiler using around 700 tests. In particular, we have proposed a new technique for testing semantic consistency to ensure the absence of semantic ambiguities on all possible execution selections. We have also evaluated the potential applications of RustSEM in automated runtime and formal verification for both functional and memory properties. Experimental results show that RustSEM can enhance the memory safety mechanism of Rust, as it is more powerful than OBS in detecting memory errors.
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:1804.07608 [cs.PL]
  (或者 arXiv:1804.07608v2 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.1804.07608

提交历史

来自:Shuanglong Kan
[v1] 2018年4月17日 星期二 02:01:43 UTC
[v2] 2020年7月24日 星期五 20:20:58 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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