| 本文已被:浏览 6358次 下载 8801次 |
 码上扫一扫! |
|
|
| 一个机器检测的Micro-Dalvik虚拟机模型 |
|
何炎祥1,2, 江南1,3, 李清安1,2, 张军1,4, 沈凡凡1
|
|
1.武汉大学 计算机学院, 湖北 武汉 430072;2.软件工程国家重点实验室武汉大学, 湖北 武汉 430072;3.湖北工业大学 计算机学院, 湖北 武汉 430070;4.东华理工大学 软件学院, 江西 南昌 330013
|
|
| 摘要: |
| 给出了一个寄存器架构的虚拟机模型Micro-Dalvik,包括虚拟机指令集和虚拟机运行时状态的形式化,并以大步操作语义(big-step operational semantics)的方式给出了指令单步执行的状态转换以及定义在单步执行上的自反传递闭包来表达虚拟机程序的运行时状态转换.最后,以定理的形式描述了语义满足的性质,并得到证明.这个模型的指令集包括了大部分Dalvik虚拟机指令,为获得形式语义的清晰化,它在Dalvik VM指令集上进行了必要的抽象,对其实质没有改变,因而具有较大的实用性.该形式化模型通过了定理证明助手Isabelle/HOL的验证. |
| 关键词: 大步操作语义 形式化验证 定理证明 寄存器架构的虚拟机 |
| DOI:10.13328/j.cnki.jos.004787 |
| 分类号: |
| 基金项目:国家自然科学基金(91118003, 61170022) |
|
| Machine-Checked Model for Micro-Dalvik Virtual Machine |
|
HE Yan-Xiang1,2, JIANG Nan1,3, LI Qing-An1,2, ZHANG Jun1,4, SHEN Fan-Fan1
|
|
1.Computer School, Wuhan University, Wuhan 430072, China;2.State Key Laboratory of Software Engineering Wuhan University, Wuhan 430072, China;3.Computer School, Hubei University of Technology, Wuhan 430068, China;4.Software College, East China Institute of Technology, Nanchang 330013, China
|
| Abstract: |
| This paper introduces Micro-Dalvik, a formalized Dalvik-like VM model to exhibit core features of the register-based architecture. This formal specification describes the instruction set and runtime state, and the runtime behaviors of the instructions as state transitions based on big-step operational semantics. The Micro-Dalvik VM instruction set is more abstract than comparable Dalvik VM to attain clarity of its semantics, but bears no further simplification of the meaning of instructions. Some properties of Micro-Dalvik VM semantics are stated based on this formal specification and sketch of the proofs is provided. This formalization is implemented in the theorem proof assistant Isabelle/HOL. |
| Key words: big-step operational semantics formal verification theorem proving register-based VM |