使用Rust程序设计语言和ACL2的硬件/软件共同保证
Hardware/Software Co-Assurance using the Rust Programming Language and ACL2
摘要:
Rust程序设计语言作为一种现代的、类型安全的、内存安全的、潜在的可形式化分析的程序设计语言,已经引起了人们的极大兴趣和使用。我们对Rust的兴趣源于它作为硬件/软件共同保证语言的潜力,并应用于自动驾驶汽车等关键系统。我们报告了Rust作为高级合成(HLS)语言的首次使用。大多数现有的HLS语言都是C的子集。基于Rust的HLS为硬件和软件实现带来了一种现代的、类型安全的、内存安全的表达式语言,具有很高的保证。为了研究Rust作为HLS的适用性,我们精心制作了一个Rust子集,灵感来自Russinoff的Restricted Rummic C(RAC),我们将其命名为Restricted Rummic Rust或RAR。在我们的第一个RAR工具链实现中,我们简单地将RAR源代码转换为RAC。通过这样做,我们利用了一些现有的硬件/软件共同保证工具,以最少的时间和精力投资。在本文中,我们描述了RAR Rust子集,详细介绍了我们的原型RAR工具链,并描述了实现和验证的几个代表性的算法和数据结构编写的RAR,使用ACL 2定理证明进行的正确性证明。
英文摘要:
The Rust programming language has garnered significant interest and use as a modern, type-safe, memory-safe, and potentially formally analyzable programming language. Our interest in Rust stems from its potential as a hardware/software co-assurance language, with application to critical systems such as autonomous vehicles. We report on the first known use of Rust as a High-Level Synthesis (HLS) language. Most incumbent HLS languages are a subset of C. A Rust-based HLS brings a single modern, type-safe, and memory-safe expression language for both hardware and software realizations with high assurance. As a a study of the suitability of Rust as an HLS, we have crafted a Rust subset, inspired by Russinoff's Restricted Algorithmic C (RAC), which we have imaginatively named Restricted Algorithmic Rust, or RAR. In our first implementation of a RAR toolchain, we simply transpile the RAR source into RAC. By so doing, we leverage a number of existing hardware/software co-assurance tools with a minimum investment of time and effort. In this paper, we describe the RAR Rust subset, detail our prototype RAR toolchain, and describe the implementation and verification of several representative algorithms and data structures written in RAR, with proofs of correctness conducted using the ACL2 theorem prover.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。