Maude 复现-ESI缓存一致性协议安全属性的LTL和演绎验证

在这里插入图片描述

kaixuan@DESKTOP-MHHIDIM:~$ cd maude-3.1
kaixuan@DESKTOP-MHHIDIM:~/maude-3.1$ ./maude.linux64
                     \||||||||||||||||||/
                   --- Welcome to Maude ---
                     /||||||||||||||||||\
             Maude 3.1 built: Oct 12 2020 20:12:31
             Copyright 1997-2020 SRI International
                   Wed Sep  8 19:58:47 2021
Maude> load ESI-STATE.maude
d ESI.maude
load ESI-PROP.maude
load MODEL-CHECKER.maude
Maude> load ESI.maude
-PREDS.maude
Maude> load ESI-PROP.maude
Maude> load MODEL-CHECKER.maude
Maude> load ESI-LTL-PREDS.maude
Maude> load ESI-PREDS.maude
Maude> search in ESI-PROP :
> 0 : mtpi : mtpi | < 1 , idle, 31 >
> < 2, idle, 25 >
> < 3, idle, 44 >
> =>* Mem:Nat : NBV:NatBag : NBE:NatBag
> | PS:ProcBag
> such that card(NBE:NatBag) > 1 .
search in ESI-PROP : 0 : mtpi : mtpi | (< 2,idle,25 > < 3,idle,44 >) < 1,idle,31 > =>* Mem : NBV:NatBag : NBE:NatBag |
    PS such that card(NBE:NatBag) > 1 = true .

No solution.
states: 979  rewrites: 6230 in 0ms cpu (5ms real) (~ rewrites/second)
Maude>
> search in ESI-PROP :
> 0 : mtpi : mtpi | < 1  , idle, 31 >
> < 2, idle, 25 >
> < 3, idle, 44 >
> =>* Mem:Nat : NBV:NatBag : NBE:NatBag
> | PS:ProcBag
> such that
> subbag(NBE:NatBag,NBV:NatBag) == false .
search in ESI-PROP : 0 : mtpi : mtpi | (< 2,idle,25 > < 3,idle,44 >) < 1,idle,31 > =>* Mem : NBV:NatBag : NBE:NatBag |
    PS such that subbag(NBE:NatBag, NBV:NatBag) == false = true .

No solution.
states: 979  rewrites: 6230 in 10ms cpu (5ms real) (623000 rewrites/second)
Maude> search in ESI-PROP :
> 0 : mtpi : mtpi | < 1 , idle, 31 >
> < 2, idle, 25 >
> < 3, idle, 44 >
> =>* Mem:Nat : NBV:NatBag : NBE:NatBag
> | PS:ProcBag
> such that
> NBE:NatBag =/= mtpi and
> NBV:NatBag =/= NBE:NatBag .
search in ESI-PROP : 0 : mtpi : mtpi | (< 2,idle,25 > < 3,idle,44 >) < 1,idle,31 > =>* Mem : NBV:NatBag : NBE:NatBag |
    PS such that NBV:NatBag =/= NBE:NatBag and NBE:NatBag =/= mtpi = true .

No solution.
states: 979  rewrites: 6942 in 10ms cpu (5ms real) (694200 rewrites/second)
Maude> red modelCheck( 0 : mtpi : mtpi |
> < 1, idle, 31 >
> < 2, idle, 25 >
> < 3, idle, 44 >,
> [] (idle(3) ->  in-idle(3))) .
Warning: <standard input>, line 32: bad token modelCheck.
Warning: <standard input>, line 32: no parse for term.
Maude> select ESI-LTL-PREDS .
Maude> red modelCheck( 0 : mtpi : mtpi |
> < 1, idle, 31 >
> < 2, idle, 25 >
> < 3, idle, 44 >,
> [] (idle(3) ->  in-idle(3))) .
reduce in ESI-LTL-PREDS : modelCheck(0 : mtpi : mtpi | (< 2,idle,25 > < 3,idle,44 >) < 1,idle,31 >, [](idle(3) ->
    in-idle(3))) .
rewrites: 24041 in 10ms cpu (8ms real) (2404100 rewrites/second)
result Bool: true
Maude> search in ESI-PROP :
> 0 : mtpi : mtpi
> | < 1 , idle, 31 >
> < 2, idle, 25 >
> < 3, idle, 44 >
> =>*  Mem:Nat : NBV:NatBag : NBE:NatBag |
> PS:ProcBag
> such that card(NBV:NatBag) < 0 .
search in ESI-PROP : 0 : mtpi : mtpi | (< 2,idle,25 > < 3,idle,44 >) < 1,idle,31 > =>* Mem : NBV:NatBag : NBE:NatBag |
    PS such that card(NBV:NatBag) < 0 = true .

No solution.
states: 979  rewrites: 7298 in 10ms cpu (6ms real) (729800 rewrites/second)
Maude>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值