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.

goto CS1<br />

when k!=1<br />

goto A1<br />

}<br />

CS1<br />

{ when true<br />

do k:=0<br />

goto A1<br />

}<br />

graph P2<br />

state<br />

clock x:=0<br />

init A1<br />

locations<br />

A1<br />

{ when k==0<br />

do x:=0<br />

goto B1<br />

}<br />

B1 inv x=2 and k==2<br />

goto CS1<br />

when k!=2<br />

goto A1<br />

}<br />

CS1<br />

{ when true<br />

do k:=0<br />

goto A1<br />

}<br />

C.2 Subway system in Lustre specification language<br />

--const N=3; -- The number <strong>of</strong> trains<br />

const N=3;<br />

-- Train controller<br />

node controleur(nB,nS:int) returns (diff:int; avance,retard:bool);<br />

let<br />

diff = nB-nS;<br />

avance = false -><br />

82

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

Saved successfully!

Ooh no, something went wrong!