arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.18067cs.LO
收藏

Isabelle2Cpp 的类型推断

Type Inference for Isabelle2Cpp

Dongchen Jiang, Chenxi Fu

AI总结:

本文针对 Isabelle2Cpp 框架在 Isabelle/HOL 规范类型信息缺失时无法自动生成 C++ 代码的问题,提出了一种类型系统,通过引入新的类型推断规则和统一算法对中间表示表达式进行类型推断与统一,从而生成更完整准确的 C++ 代码。

摘要:

Isabelle2Cpp 是一个支持从 Isabelle/HOL 规范自动生成 C++ 代码的代码生成框架。然而,如果 Isabelle/HOL 规范的某些类型信息缺失,Isabelle2Cpp 可能无法自动完成代码生成。为了解决这一问题,本文为 Isabelle2Cpp 提供了一个类型系统,用于对 Isabelle2Cpp 中间表示的表达式执行类型推断和类型统一。该系统引入了新的类型推断规则和统一算法,以增强 Isabelle2Cpp 框架。通过结合该类型系统,Isabelle2Cpp 框架能够为表达式生成提供更全面的类型信息,从而生成更完整、更准确的 C++ 代码。

英文摘要:

Isabelle2Cpp is a code generation framework that supports automatic generation of C++ code from Isabelle/HOL specifications. However, if some type information of Isabelle/HOL specification is missing, Isabelle2Cpp may not complete the code generation automatically. In order to solve this problem, this paper provides a type system for Isabelle2Cpp, which is used to perform type inference and type unification for expressions of the intermediate representation in Isabelle2Cpp. The system introduces new type inference rules and unification algorithms to enhance the Isabelle2Cpp framework. By incorporating the type system, the Isabelle2Cpp framework can provide more comprehensive type information for expression generation, which leads to more complete and accurate C++ code.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑