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.

ok’ = true and true<br />

and ((not init and not y-x-1>=0) or (init));<br />

init’ = true and true<br />

and (false);<br />

assertion true and true<br />

and ((not ok and init and not p2 and p1) or<br />

(not ok and init and p2 and not p1) or<br />

(ok and not p2 and p1) or (ok and p2 and not p1));<br />

initial (init) and true;<br />

final (not ok and not init) and true;<br />

automaton<br />

location bad_0 : (not ok and not init) and (y+x-2>=0 and -y+x+2>=0 and<br />

y-x>=0);<br />

location init_0 : (init) and true;<br />

location good_0 : (ok and not init) and (y>=0 and x>=0 and -y+x+1>=0);<br />

edge (init_0,good_0) : true and true<br />

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

edge (good_0,bad_0) : true and (y-x-1>=0)<br />

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

edge (good_0,good_0) : true and (not y-x-1>=0)<br />

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

B.2 Subway system<br />

state<br />

Init0, PV40_pok, PV214_avance_0, PV216_retard_0, PV217_retard_1,<br />

PV215_avance_1, b0, b1 : bool;<br />

P_V210_nB_0, P_V36_nS, P_V211_nB_1, P_V329_c, P_V328_c : int;<br />

input<br />

B_0, S, B_1 : bool;<br />

transition<br />

P_V210_nB_0’ = if (Init0) and true<br />

then 0<br />

else if (not Init0 and B_0) and true<br />

then P_V210_nB_0+1<br />

else if (not Init0 and not B_0) and true<br />

then P_V210_nB_0<br />

else 0;<br />

P_V36_nS’ = if (Init0) and true<br />

then 0<br />

else if (not Init0 and S) and true<br />

then P_V36_nS+1<br />

else if (not Init0 and not S) and true<br />

then P_V36_nS<br />

75

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

Saved successfully!

Ooh no, something went wrong!