首页|基于类C语言内存模型的复杂数据结构验证方法

基于类C语言内存模型的复杂数据结构验证方法

扫码查看
对系统中操作复杂结构程序的正确性验证是保证软件高可信的重要途径,目前大多数基于高层抽象建模和程序结构拆分的方法难以满足复杂数据结构程序的验证要求。针对这一问题,论文提出基于类C语言内存模型的验证方法。首先,以内存块为基础将复杂数据结构的操作进行函数形式的定义和描述,形式化描述内存对象操作性质;其次,针对程序层定义了符合复杂结构描述的文法和语义,并基于符号化的程序逻辑进行推理。实验对嵌入式操作系统内核μC/OS-Ⅲ中的复杂数据结构进行分析和自动化验证,断言描述和验证条件脚本通过了自动定理证明器的求解。
C-like Memory Model Based Verification Method for Complex Data Structures
Verification of complex data structures in the operating system kernel is an important approach to ensure high confidence of software.In order to verify the correctness of programs operating complex structures in the system,most recent methods based on high-level abstraction modeling and program structure decomposition struggle to meet the verification requirements of programs with complex data structures.In response to this problem,we propose a verification method based on the C-like memory model.First,based on memory blocks,complex data structure operations are defined and described in the form of functions,providing a formal description of the operational properties of memory objects.Second,grammar and semantics that conform to the description of complex structures are defined at the program level,and reasoning is conducted based on symbolic program logic.Experimental analysis and automated verification were conducted on complex data structures within the embedded operating system kernel of μC/OS-Ⅲ,assertions and verification condition scripts were solved using an automated theorem prover.

formal verificationcomplex data structuresprogram logicmemory modeloperating system kernel

李薛剑、王俊宜

展开 >

安徽大学计算机科学与技术学院,安徽合肥 230601

形式化验证 复杂数据结构 程序逻辑 内存模型 操作系统内核

安徽省自然科学基金面上项目

2008085MF188

2024

计算机技术与发展
陕西省计算机学会

计算机技术与发展

CSTPCD
影响因子:0.621
ISSN:1673-629X
年,卷(期):2024.34(8)