25.12.2014 Views

On improving efficiency of model checking through systematically ...

On improving efficiency of model checking through systematically ...

On improving efficiency of model checking through systematically ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

if not (pre avance) then diff >= 10 else diff >= 1;<br />

retard = false -><br />

if not (pre retard) then (diff = 9 then not B else true);<br />

c = 0 -><br />

if pre avance and pre (false -> pre avance) then<br />

if B then pre c + 1 else pre c<br />

else<br />

0;<br />

tel<br />

-- Main node (without yet properties)<br />

node main(B : bool^N; S : bool)<br />

returns (ast: bool; nB : int^N; nS : int; diff:int^N; avance,retard : bool^N);<br />

var H:bool^N;<br />

let<br />

nB = 0^N -> if B then pre nB + 1^N else pre nB;<br />

nS = 0 -> if S then pre nS + 1 else pre nS;<br />

H = hypothese(B,S^N,avance,retard);<br />

(diff,avance,retard) = controleur(nB,nS^N);<br />

ast = AND(N,H);<br />

tel<br />

-- ****************************************************************<br />

-- Properties<br />

-- ****************************************************************<br />

node prop1(B : bool^N; S : bool)<br />

returns (ok:bool;ast:bool);<br />

var nB : int^N; nS : int; diff:int^N; avance,retard : bool^N;<br />

pok:bool;<br />

let<br />

(ast,nB,nS,diff,avance,retard) = main(B,S);<br />

pok = true -> not (pre avance[0] and retard[0] or pre retard[0] and avance[0]);<br />

ok = true -> pre pok;<br />

assert ast;<br />

tel<br />

node prop2(B : bool^N; S : bool)<br />

returns (ok:bool;ast:bool);<br />

var nB : int^N; nS : int; diff:int^N; avance,retard : bool^N;<br />

83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!