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.

==0<br />

b==1<br />

modify<br />

modify<br />

b:=1<br />

modify!<br />

s0 s s1<br />

b>1<br />

end<br />

modify!<br />

b:=0<br />

Figure 5.3: A finite system<br />

Uppaal could prove the simple system in Figure 5.3 very quickly. Hence, the<br />

existence <strong>of</strong> input variables in the <strong>model</strong> is not the major reason for state<br />

space explosion.<br />

The warning we got when verifying the tiny example suggested us to<br />

switch our concentration to the way values <strong>of</strong> variables changed along the<br />

simulation. It turned out that values <strong>of</strong> variables in abstract <strong>model</strong>s <strong>of</strong> the<br />

Fischer’s protocol and Subway system increased forever, and thus the state<br />

space is infinite. Figure 5.4 shows a modified version <strong>of</strong> the above simple<br />

<strong>model</strong> that illustrates this phenomenon in verification performed by Uppaal.<br />

b==0<br />

x := x + 1<br />

b==1<br />

y := y - 1<br />

modify<br />

modify<br />

b:=1<br />

modify!<br />

s0 s s1<br />

y > x<br />

end<br />

modify!<br />

b:=0<br />

Figure 5.4: An infinite system<br />

The system starts with x and y are both zero. Although we can easily<br />

see that there is no way for the system to go to location “end”, UPPAAL<br />

could not prove it. In our observation, verification done by Uppaal in this<br />

case is very much similar to a simulation on all posibilities <strong>of</strong> variable values<br />

rather than a linear relation analysis on variables in a <strong>model</strong>. We believe<br />

that this is the main reason for the state space explosion in <strong>model</strong> <strong>checking</strong><br />

52

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

Saved successfully!

Ooh no, something went wrong!