17、基于 k - 归纳和不变式的嵌入式 C 软件模型检查

基于 k - 归纳和不变式的嵌入式 C 软件模型检查

1. PIPS 不变式的翻译算法

1.1 算法概述

PIPS 不变式的翻译算法旨在将带有 PIPS 不变式的 C 代码转换为 C 程序支持的带有不变式的新代码。该算法主要分为三个部分:识别不变式中的 #init 、生成支持 #init 结构的代码以及修正不变式格式。

1.2 算法步骤

以下是该算法的详细步骤:

Algorithm 2 Translation algorithm of PIPS invariants
1: Input: PIPSCode - C code with PIPS invariants
2: Output: NewCodeInv - New code with invariant supported by C programs
// dictionary to identify #init
3: dict_variniteloc ←{ }
// list for the new code generated in the translation
4: NewCodeInv ←{ }
// Part 1 - identifying #init in the invariants
5: for all line of the PIPSCode do
6:
    if is a PIPS comment in this pattern // P(w,x) {w == 0, x#init > 10} then
7:
       
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值