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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A<br />

Nbac input systems<br />

A.1 Tiny example<br />

state<br />

input<br />

init0,ok: bool;<br />

b0,b1:bool;<br />

x,y:int;<br />

p1,p2:bool;<br />

transition<br />

init0’ = false;<br />

ok’ = if init0 then true else ok and x>=y;<br />

b0’ = if init0 then false else not b1;<br />

b1’ = if init0 then false else b0;<br />

x’ = if init0 then 0 else if (b0 = b1) then x+1 else x;<br />

y’ = if init0 then 0 else if (b0 b1) then y+1 else y;<br />

assertion<br />

p1 and not p2 or not p1 and p2;<br />

initial init0;<br />

final not init0 and not ok;<br />

A.2 Asynchronous reader/writer algorithm<br />

state<br />

s,l2,l3,l4,l5,l6,l7,lr : bool;<br />

ws,wl2,wl3,wl4,wl5,wl6,wl7,wl8,<br />

wl9,wl10,wl11,wl12 : bool;<br />

66

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

Saved successfully!

Ooh no, something went wrong!