基于C在ACL2中的浅嵌入的ACL2证明生成C代码生成器
A Proof-Generating C Code Generator for ACL2 Based on a Shallow Embedding of C in ACL2
摘要:
本文描述了一个用于ACL2的C代码生成器,它根据C在ACL2中的浅嵌入来识别C结构的ACL2表示,并将这些表示转换为所表示的C结构。代码生成器还生成断言C代码相对于ACL 2代码的正确性的ACL 2定理。代码生成器目前支持的C语言子集有限,但不断增长,已经足以满足一些有趣的程序。本文还对语言嵌入和代码生成提供了一个总体的观点。
英文摘要:
This paper describes a C code generator for ACL2 that recognizes ACL2 representations of C constructs, according to a shallow embedding of C in ACL2, and translates those representations to the represented C constructs. The code generator also generates ACL2 theorems asserting the correctness of the C code with respect to the ACL2 code. The code generator currently supports a limited but growing subset of C that already suffices for some interesting programs. This paper also offers a general perspective on language embedding and code generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。