<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE nta PUBLIC '-//Uppaal Team//DTD Flat System 1.6//EN' 'http://www.it.uu.se/research/group/darts/uppaal/flat-1_6.dtd'>
<nta>
	<declaration>const int MaxVel = 20;
const int CARS = 2;
const int LANES = 1;
typedef int[0,LANES-1] lane_t;
typedef int[1,CARS] car_t;
typedef int[-1,1] acc_c;
typedef int[-2,2] acc_t;
const int Finish=700;   // use e.g. 100 for exhaustive model checking (A[], E&lt;&gt;)


lane_t lane[car_t]={0,0};
acc_t acc[car_t];

int vel[car_t];
int pos[car_t]={0,10};
bool done[car_t];   // car has passed Finish and left the road

broadcast chan go[car_t];  /// signal to Car(i) to decide
urgent broadcast chan ASAP;

int bd[car_t];
// Distance travelled when braking with deceleration a until standstill.
// With the discrete update below (pos += v-1, v -= 2 per step) braking from
// an even velocity v covers exactly v*v/4 = brk_dist(v,2).
int brk_dist(int v,  int a) { return (v*v)/(2*a);}

// Position where car with position p and velocity v comes to rest when braking
int stop_pos(int p, int v) { return p + brk_dist(v,2); }

// Estimate velocities and distance using integers after 1s
void updateDiscrete() {
for  (i : car_t)
{
    pos[i] = pos[i] + vel[i] + acc[i]/2;
    vel[i] = vel[i] + acc[i];
    bd[i] = brk_dist(vel[i],2);
}
}

clock time;</declaration>
	<template>
		<name x="5" y="5">Car</name>
		<parameter>const car_t id</parameter>
		<declaration>// Safety invariant between a follower f and a leader l on the same lane:
//    pos[f] &lt; pos[l]  and  stop_pos(f) &lt; stop_pos(l)
// If it holds, the follower can always keep it by braking, whatever the
// leader does (the leader's stop_pos never decreases).

// Car j is in front of id on the target lane: id's choice a must be safe
// against the worst case for j, i.e. j braking fully in this step.
bool safe_front(car_t j, int a) {
    int np = pos[id] + vel[id] + a;
    int nv = vel[id] + 2*a;
    int jp = pos[j] + (vel[j] &gt;= 2 ? vel[j] - 1 : 0);   // j brakes
    return np &lt; jp &amp;&amp; stop_pos(np, nv) &lt; stop_pos(pos[j], vel[j]);
}

// Car j is behind id on a lane id is moving into: the invariant must hold now
// (so j can still brake) and after the step even if j accelerates maximally.
bool safe_back(car_t j, int a) {
    int np = pos[id] + vel[id] + a;
    int nv = vel[id] + 2*a;
    int aj = (vel[j] + 2 &lt; MaxVel) ? 1 : 0;              // j accelerates
    int jp = pos[j] + vel[j] + aj;
    int jv = vel[j] + 2*aj;
    return stop_pos(pos[j], vel[j]) &lt; stop_pos(pos[id], vel[id])
        &amp;&amp; jp &lt; np &amp;&amp; stop_pos(jp, jv) &lt; stop_pos(np, nv);
}

// Choosing acceleration 2*a and lane l is safe w.r.t. all other cars on l
bool safe(lane_t l, int a) {
    for (j : car_t) {
        if (j != id &amp;&amp; !done[j] &amp;&amp; lane[j] == l) {
            if (pos[j] &gt; pos[id]) {
                if (!safe_front(j, a)) return false;
            } else if (pos[j] == pos[id]) {
                return false;
            } else if (l != lane[id]) {
                if (!safe_back(j, a)) return false;
            }
        }
    }
    return true;
}
</declaration>
		<location id="id0" x="-34" y="0">
			<name x="-44" y="-34">Choose</name>
			<urgent/>
		</location>
		<location id="id1" x="-408" y="0">
		</location>
		<location id="id2" x="-34" y="153">
			<name x="-17" y="144">Fin</name>
		</location>
		<init ref="id0"/>
		<transition id="id3">
			<source ref="id0"/>
			<target ref="id2"/>
			<label kind="guard" x="-25" y="17">pos[id]&gt;=Finish</label>
			<label kind="assignment" x="-25" y="51">acc[id]=0,
vel[id]=0,
done[id]=true</label>
		</transition>
		<transition id="id4">
			<source ref="id1"/>
			<target ref="id0"/>
			<label kind="synchronisation" x="-399" y="-93">go[id]?</label>
			<nail x="-408" y="-102"/>
			<nail x="-34" y="-102"/>
		</transition>
		<transition id="id5">
			<source ref="id0"/>
			<target ref="id1"/>
			<label kind="select" x="-127" y="-51">a:acc_c,
l:lane_t</label>
			<label kind="guard" x="-612" y="25">pos[id]&lt;Finish &amp;&amp;
vel[id]+2*a&gt;=0 &amp;&amp;
vel[id]+2*a&lt;MaxVel &amp;&amp;
safe(l, a)</label>
			<label kind="assignment" x="-391" y="-42">acc[id]=2*a,
lane[id]=l</label>
			<nail x="-76" y="0"/>
		</transition>
	</template>
	<template>
		<name>Decisions</name>
		<declaration>clock t;
car_t i;</declaration>
		<location id="id6" x="-102" y="-34">
			<urgent/>
		</location>
		<location id="id7" x="-204" y="-34">
			<name x="-221" y="-68">Wait</name>
			<label kind="invariant" x="-229" y="-17">t&lt;=1</label>
		</location>
		<init ref="id6"/>
		<transition id="id8">
			<source ref="id7"/>
			<target ref="id6"/>
			<label kind="guard" x="-272" y="-59">t==1</label>
			<label kind="assignment" x="-263" y="17">t=0,
updateDiscrete()</label>
			<nail x="-272" y="-34"/>
			<nail x="-272" y="34"/>
			<nail x="-102" y="34"/>
		</transition>
		<transition id="id9">
			<source ref="id6"/>
			<target ref="id7"/>
			<label kind="guard" x="-178" y="-68">i==CARS</label>
			<label kind="synchronisation" x="-170" y="-51">go[i]!</label>
			<label kind="assignment" x="-187" y="-25">i=1, t=0</label>
		</transition>
		<transition id="id10">
			<source ref="id6"/>
			<target ref="id6"/>
			<label kind="guard" x="-25" y="-59">i&lt;CARS</label>
			<label kind="synchronisation" x="-25" y="-42">go[i]!</label>
			<label kind="assignment" x="-25" y="-25">i++</label>
			<nail x="-34" y="-68"/>
			<nail x="-34" y="0"/>
		</transition>
	</template>
	<template>
		<name>Monitor</name>
		<location id="id11" x="-306" y="0">
		</location>
		<location id="id12" x="-34" y="0">
			<name x="-44" y="-34">ERROR</name>
		</location>
		<init ref="id11"/>
		<transition id="id13">
			<source ref="id11"/>
			<target ref="id12"/>
			<label kind="guard" x="-280" y="-76">!done[1] &amp;&amp; !done[2] &amp;&amp;
pos[1]==pos[2] &amp;&amp;
lane[1]==lane[2]</label>
			<label kind="synchronisation" x="-246" y="0">ASAP!</label>
		</transition>
	</template>
	<system>system Car, Decisions, Monitor;
</system>
	<queries>
		<option key="--diagnostic" value="1"/>
		<query>
			<formula>Pr[&lt;=100;1000](&lt;&gt; Monitor.ERROR)</formula>
			<comment/>
			<option key="--diagnostic" value="1"/>
			<result outcome="success" type="interval" value="≤ 0.00368208 (95% CI)" timestamp="2026-10-06 21:18:59 +0200">
				<option key="--diagnostic" value="1"/>
				<details>≤ 0.00368208 (95% CI)</details>
			</result>
		</query>
		<query>
			<formula>E&lt;&gt; Monitor.ERROR</formula>
			<comment/>
			<result outcome="failure" type="quality" timestamp="2026-10-06 21:22:49 +0200">
				<option key="--diagnostic" value="1"/>
			</result>
		</query>
		<query>
			<formula>simulate[&lt;=100]{pos[1],pos[2],vel[1],vel[2],bd[1],bd[2]}</formula>
			<comment/>
			<result outcome="success" type="quality" timestamp="2026-10-06 21:23:01 +0200">
				<option key="--diagnostic" value="1"/>
				<plot title="Simulations (1)" xaxis="time" yaxis="value">
					<series title="pos[1]" type="l" color="0xff0000" encoding="csv">0.0,0.0
1.0,0.0
1.0,1.0
2.0,1.0
2.0,3.0
3.0,3.0
3.0,5.0
4.0,5.0
4.0,8.0
5.0,8.0
5.0,11.0
6.0,11.0
6.0,14.0
7.0,14.0
7.0,17.0
8.0,17.0
8.0,19.0
9.0,19.0
9.0,22.0
10.0,22.0
10.0,26.0
11.0,26.0
11.0,31.0
12.0,31.0
12.0,36.0
13.0,36.0
13.0,39.0
14.0,39.0
14.0,41.0
15.0,41.0
15.0,43.0
16.0,43.0
16.0,44.0
17.0,44.0
17.0,45.0
18.0,45.0
18.0,46.0
23.0,46.0
23.0,47.0
24.0,47.0
24.0,49.0
25.0,49.0
25.0,50.0
26.0,50.0
26.0,51.0
27.0,51.0
27.0,53.0
28.0,53.0
28.0,54.0
30.0,54.0
30.0,55.0
31.0,55.0
31.0,58.0
32.0,58.0
32.0,62.0
33.0,62.0
33.0,65.0
34.0,65.0
34.0,66.0
37.0,66.0
37.0,67.0
38.0,67.0
38.0,68.0
40.0,68.0
40.0,69.0
41.0,69.0
41.0,72.0
42.0,72.0
42.0,77.0
43.0,77.0
43.0,82.0
44.0,82.0
44.0,85.0
45.0,85.0
45.0,87.0
46.0,87.0
46.0,90.0
47.0,90.0
47.0,93.0
48.0,93.0
48.0,94.0
54.0,94.0
54.0,95.0
55.0,95.0
55.0,98.0
56.0,98.0
56.0,102.0
100.000002,102.0
					</series>
					<series title="pos[2]" type="l" color="0xffff00" encoding="csv">0.0,10.0
2.0,10.0
2.0,11.0
3.0,11.0
3.0,13.0
4.0,13.0
4.0,16.0
5.0,16.0
5.0,20.0
6.0,20.0
6.0,24.0
7.0,24.0
7.0,29.0
8.0,29.0
8.0,34.0
9.0,34.0
9.0,39.0
10.0,39.0
10.0,45.0
11.0,45.0
11.0,52.0
12.0,52.0
12.0,60.0
13.0,60.0
13.0,67.0
14.0,67.0
14.0,73.0
15.0,73.0
15.0,79.0
16.0,79.0
16.0,84.0
17.0,84.0
17.0,89.0
18.0,89.0
18.0,95.0
19.0,95.0
19.0,101.0
100.000002,101.0
					</series>
					<series title="vel[1]" type="l" color="0x00ff00" encoding="csv">0.0,0.0
1.0,0.0
1.0,2.0
4.0,2.0
4.0,4.0
5.0,4.0
5.0,2.0
6.0,2.0
6.0,4.0
7.0,4.0
7.0,2.0
9.0,2.0
9.0,4.0
11.0,4.0
11.0,6.0
12.0,6.0
12.0,4.0
13.0,4.0
13.0,2.0
16.0,2.0
16.0,0.0
17.0,0.0
17.0,2.0
18.0,2.0
18.0,0.0
23.0,0.0
23.0,2.0
25.0,2.0
25.0,0.0
26.0,0.0
26.0,2.0
28.0,2.0
28.0,0.0
30.0,0.0
30.0,2.0
31.0,2.0
31.0,4.0
33.0,4.0
33.0,2.0
34.0,2.0
34.0,0.0
37.0,0.0
37.0,2.0
38.0,2.0
38.0,0.0
40.0,0.0
40.0,2.0
41.0,2.0
41.0,4.0
42.0,4.0
42.0,6.0
43.0,6.0
43.0,4.0
44.0,4.0
44.0,2.0
46.0,2.0
46.0,4.0
47.0,4.0
47.0,2.0
48.0,2.0
48.0,0.0
54.0,0.0
54.0,2.0
55.0,2.0
55.0,4.0
56.0,4.0
56.0,0.0
100.000002,0.0
					</series>
					<series title="vel[2]" type="l" color="0x00ffff" encoding="csv">0.0,0.0
2.0,0.0
2.0,2.0
4.0,2.0
4.0,4.0
7.0,4.0
7.0,6.0
8.0,6.0
8.0,4.0
9.0,4.0
9.0,6.0
11.0,6.0
11.0,8.0
13.0,8.0
13.0,6.0
16.0,6.0
16.0,4.0
17.0,4.0
17.0,6.0
19.0,6.0
19.0,0.0
100.000002,0.0
					</series>
					<series title="bd[1]" type="l" color="0x0000ff" encoding="csv">0.0,0.0
1.0,0.0
1.0,1.0
4.0,1.0
4.0,4.0
5.0,4.0
5.0,1.0
6.0,1.0
6.0,4.0
7.0,4.0
7.0,1.0
9.0,1.0
9.0,4.0
11.0,4.0
11.0,9.0
12.0,9.0
12.0,4.0
13.0,4.0
13.0,1.0
16.0,1.0
16.0,0.0
17.0,0.0
17.0,1.0
18.0,1.0
18.0,0.0
23.0,0.0
23.0,1.0
25.0,1.0
25.0,0.0
26.0,0.0
26.0,1.0
28.0,1.0
28.0,0.0
30.0,0.0
30.0,1.0
31.0,1.0
31.0,4.0
33.0,4.0
33.0,1.0
34.0,1.0
34.0,0.0
37.0,0.0
37.0,1.0
38.0,1.0
38.0,0.0
40.0,0.0
40.0,1.0
41.0,1.0
41.0,4.0
42.0,4.0
42.0,9.0
43.0,9.0
43.0,4.0
44.0,4.0
44.0,1.0
46.0,1.0
46.0,4.0
47.0,4.0
47.0,1.0
48.0,1.0
48.0,0.0
54.0,0.0
54.0,1.0
55.0,1.0
55.0,4.0
57.0,4.0
57.0,0.0
100.000002,0.0
					</series>
					<series title="bd[2]" type="l" color="0xff00ff" encoding="csv">0.0,0.0
2.0,0.0
2.0,1.0
4.0,1.0
4.0,4.0
7.0,4.0
7.0,9.0
8.0,9.0
8.0,4.0
9.0,4.0
9.0,9.0
11.0,9.0
11.0,16.0
13.0,16.0
13.0,9.0
16.0,9.0
16.0,4.0
17.0,4.0
17.0,9.0
20.0,9.0
20.0,0.0
100.000002,0.0
					</series>
					<comment/>
				</plot>
			</result>
		</query>
		<query>
			<formula>simulate[&lt;=100]{pos[1],pos[2],200*lane[1], 200*lane[2]}</formula>
			<comment/>
			<result outcome="success" type="quality" timestamp="2026-10-06 21:21:01 +0200">
				<option key="--diagnostic" value="1"/>
				<plot title="Simulations (1)" xaxis="time" yaxis="value">
					<series title="pos[1]" type="l" color="0xff0000" encoding="csv">0.0,0.0
1.0,0.0
1.0,1.0
2.0,1.0
2.0,4.0
3.0,4.0
3.0,7.0
4.0,7.0
4.0,9.0
5.0,9.0
5.0,10.0
6.0,10.0
6.0,11.0
7.0,11.0
7.0,13.0
8.0,13.0
8.0,14.0
10.0,14.0
10.0,15.0
11.0,15.0
11.0,16.0
12.0,16.0
12.0,17.0
13.0,17.0
13.0,18.0
16.0,18.0
16.0,19.0
17.0,19.0
17.0,20.0
20.0,20.0
20.0,21.0
21.0,21.0
21.0,22.0
22.0,22.0
22.0,23.0
23.0,23.0
23.0,25.0
24.0,25.0
24.0,28.0
25.0,28.0
25.0,32.0
26.0,32.0
26.0,37.0
27.0,37.0
27.0,44.0
28.0,44.0
28.0,52.0
29.0,52.0
29.0,60.0
30.0,60.0
30.0,68.0
31.0,68.0
31.0,76.0
32.0,76.0
32.0,84.0
33.0,84.0
33.0,92.0
34.0,92.0
34.0,101.0
35.0,101.0
35.0,111.0
36.0,111.0
36.0,120.0
37.0,120.0
37.0,128.0
38.0,128.0
38.0,136.0
39.0,136.0
39.0,143.0
40.0,143.0
40.0,150.0
41.0,150.0
41.0,159.0
42.0,159.0
42.0,170.0
43.0,170.0
43.0,183.0
44.0,183.0
44.0,197.0
45.0,197.0
45.0,212.0
46.0,212.0
46.0,227.0
47.0,227.0
47.0,240.0
48.0,240.0
48.0,251.0
49.0,251.0
49.0,260.0
50.0,260.0
50.0,268.0
51.0,268.0
51.0,277.0
52.0,277.0
52.0,288.0
53.0,288.0
53.0,299.0
54.0,299.0
54.0,308.0
55.0,308.0
55.0,315.0
56.0,315.0
56.0,321.0
57.0,321.0
57.0,326.0
58.0,326.0
58.0,329.0
59.0,329.0
59.0,331.0
60.0,331.0
60.0,333.0
61.0,333.0
61.0,336.0
62.0,336.0
62.0,341.0
63.0,341.0
63.0,346.0
64.0,346.0
64.0,349.0
65.0,349.0
65.0,352.0
66.0,352.0
66.0,357.0
67.0,357.0
67.0,362.0
68.0,362.0
68.0,367.0
69.0,367.0
69.0,374.0
70.0,374.0
70.0,381.0
71.0,381.0
71.0,386.0
72.0,386.0
72.0,391.0
73.0,391.0
73.0,397.0
74.0,397.0
74.0,402.0
75.0,402.0
75.0,405.0
76.0,405.0
76.0,407.0
77.0,407.0
77.0,410.0
78.0,410.0
78.0,414.0
79.0,414.0
79.0,417.0
80.0,417.0
80.0,419.0
81.0,419.0
81.0,420.0
82.0,420.0
82.0,421.0
83.0,421.0
83.0,423.0
84.0,423.0
84.0,426.0
85.0,426.0
85.0,429.0
86.0,429.0
86.0,430.0
90.0,430.0
90.0,431.0
91.0,431.0
91.0,433.0
92.0,433.0
92.0,435.0
93.0,435.0
93.0,437.0
94.0,437.0
94.0,439.0
95.0,439.0
95.0,441.0
96.0,441.0
96.0,444.0
97.0,444.0
97.0,447.0
98.0,447.0
98.0,449.0
99.0,449.0
99.0,452.0
100.0,452.0
100.000002,457.0
					</series>
					<series title="pos[2]" type="l" color="0x80ff00" encoding="csv">0.0,10.0
1.0,10.0
1.0,11.0
2.0,11.0
2.0,12.0
3.0,12.0
3.0,13.0
4.0,13.0
4.0,16.0
5.0,16.0
5.0,20.0
6.0,20.0
6.0,25.0
7.0,25.0
7.0,31.0
8.0,31.0
8.0,36.0
9.0,36.0
9.0,41.0
10.0,41.0
10.0,48.0
11.0,48.0
11.0,57.0
12.0,57.0
12.0,67.0
13.0,67.0
13.0,77.0
14.0,77.0
14.0,88.0
15.0,88.0
15.0,99.0
16.0,99.0
16.0,110.0
17.0,110.0
17.0,121.0
18.0,121.0
18.0,132.0
19.0,132.0
19.0,144.0
20.0,144.0
20.0,156.0
21.0,156.0
21.0,167.0
22.0,167.0
22.0,178.0
23.0,178.0
23.0,190.0
24.0,190.0
24.0,202.0
25.0,202.0
25.0,214.0
26.0,214.0
26.0,225.0
27.0,225.0
27.0,234.0
28.0,234.0
28.0,243.0
29.0,243.0
29.0,252.0
30.0,252.0
30.0,259.0
31.0,259.0
31.0,264.0
32.0,264.0
32.0,267.0
33.0,267.0
33.0,270.0
34.0,270.0
34.0,274.0
35.0,274.0
35.0,277.0
36.0,277.0
36.0,280.0
37.0,280.0
37.0,284.0
38.0,284.0
38.0,288.0
39.0,288.0
39.0,293.0
40.0,293.0
40.0,299.0
41.0,299.0
41.0,305.0
42.0,305.0
42.0,312.0
43.0,312.0
43.0,319.0
44.0,319.0
44.0,324.0
45.0,324.0
45.0,327.0
46.0,327.0
46.0,330.0
47.0,330.0
47.0,335.0
48.0,335.0
48.0,342.0
49.0,342.0
49.0,349.0
50.0,349.0
50.0,354.0
51.0,354.0
51.0,359.0
52.0,359.0
52.0,364.0
53.0,364.0
53.0,368.0
54.0,368.0
54.0,372.0
55.0,372.0
55.0,376.0
56.0,376.0
56.0,379.0
57.0,379.0
57.0,380.0
59.0,380.0
59.0,381.0
60.0,381.0
60.0,382.0
63.0,382.0
63.0,383.0
64.0,383.0
64.0,384.0
67.0,384.0
67.0,385.0
68.0,385.0
68.0,388.0
69.0,388.0
69.0,393.0
70.0,393.0
70.0,399.0
71.0,399.0
71.0,406.0
72.0,406.0
72.0,415.0
73.0,415.0
73.0,426.0
74.0,426.0
74.0,438.0
75.0,438.0
75.0,451.0
76.0,451.0
76.0,465.0
77.0,465.0
77.0,479.0
78.0,479.0
78.0,493.0
79.0,493.0
79.0,507.0
80.0,507.0
80.0,522.0
81.0,522.0
81.0,539.0
82.0,539.0
82.0,557.0
83.0,557.0
83.0,575.0
84.0,575.0
84.0,593.0
85.0,593.0
85.0,611.0
86.0,611.0
86.0,628.0
87.0,628.0
87.0,644.0
88.0,644.0
88.0,659.0
89.0,659.0
89.0,673.0
90.0,673.0
90.0,687.0
91.0,687.0
91.0,702.0
100.000002,702.0
					</series>
					<series title="200 * lane[1]" type="l" color="0x00ffff" encoding="csv">0.0,0.0
100.000002,0.0
					</series>
					<series title="200 * lane[2]" type="l" color="0x8000ff" encoding="csv">0.0,0.0
100.000002,0.0
					</series>
					<comment/>
				</plot>
			</result>
		</query>
		<query>
			<formula>simulate[&lt;=100]{vel[1],vel[2],bd[1],bd[2]}</formula>
			<comment/>
			<result outcome="success" type="quality" timestamp="2026-05-20 08:52:18 +0200">
				<option key="--diagnostic" value="1"/>
				<plot title="Simulations (1)" xaxis="time" yaxis="value">
					<series title="vel[1]" type="l" color="0xff0000" encoding="csv">0.0,0.0
1.0,0.0
1.0,2.0
2.0,2.0
2.0,0.0
7.0,0.0
7.0,2.0
8.0,2.0
8.0,4.0
11.0,4.0
11.0,2.0
12.0,2.0
12.0,0.0
13.0,0.0
13.0,2.0
14.0,2.0
14.0,0.0
17.0,0.0
17.0,2.0
19.0,2.0
19.0,0.0
22.0,0.0
22.0,2.0
23.0,2.0
23.0,0.0
28.0,0.0
28.0,2.0
29.0,2.0
29.0,0.0
31.0,0.0
31.0,2.0
33.0,2.0
33.0,0.0
36.0,0.0
36.0,2.0
37.0,2.0
37.0,4.0
38.0,4.0
38.0,2.0
39.0,2.0
39.0,0.0
40.0,0.0
40.0,2.0
41.0,2.0
41.0,0.0
42.0,0.0
42.0,2.0
43.0,2.0
43.0,0.0
45.0,0.0
45.0,2.0
46.0,2.0
46.0,4.0
47.0,4.0
47.0,2.0
48.0,2.0
48.0,0.0
49.0,0.0
49.0,2.0
51.0,2.0
51.0,0.0
53.0,0.0
53.0,2.0
56.0,2.0
56.0,4.0
58.0,4.0
58.0,2.0
59.0,2.0
59.0,4.0
61.0,4.0
61.0,2.0
63.0,2.0
63.0,4.0
65.0,4.0
65.0,2.0
66.0,2.0
66.0,4.0
67.0,4.0
67.0,2.0
68.0,2.0
68.0,4.0
71.0,4.0
71.0,2.0
73.0,2.0
73.0,0.0
74.0,0.0
74.0,2.0
76.0,2.0
76.0,4.0
77.0,4.0
77.0,6.0
78.0,6.0
78.0,8.0
80.0,8.0
80.0,6.0
85.0,6.0
85.0,4.0
86.0,4.0
86.0,6.0
87.0,6.0
87.0,4.0
88.0,4.0
88.0,2.0
89.0,2.0
89.0,4.0
90.0,4.0
90.0,6.0
92.0,6.0
92.0,4.0
93.0,4.0
93.0,2.0
97.0,2.0
97.0,4.0
98.0,4.0
98.0,6.0
99.0,6.0
99.0,4.0
100.0,4.0
100.000002,6.0
					</series>
					<series title="vel[2]" type="l" color="0x80ff00" encoding="csv">0.0,0.0
5.0,0.0
5.0,2.0
6.0,2.0
6.0,4.0
8.0,4.0
8.0,6.0
9.0,6.0
9.0,8.0
10.0,8.0
10.0,10.0
11.0,10.0
11.0,8.0
17.0,8.0
17.0,10.0
19.0,10.0
19.0,12.0
20.0,12.0
20.0,14.0
21.0,14.0
21.0,16.0
22.0,16.0
22.0,18.0
23.0,18.0
23.0,16.0
24.0,16.0
24.0,18.0
25.0,18.0
25.0,16.0
27.0,16.0
27.0,18.0
28.0,18.0
28.0,16.0
30.0,16.0
30.0,14.0
31.0,14.0
31.0,12.0
32.0,12.0
32.0,10.0
34.0,10.0
34.0,8.0
35.0,8.0
35.0,6.0
36.0,6.0
36.0,8.0
37.0,8.0
37.0,6.0
40.0,6.0
40.0,8.0
41.0,8.0
41.0,10.0
42.0,10.0
42.0,8.0
44.0,8.0
44.0,6.0
47.0,6.0
47.0,8.0
48.0,8.0
48.0,10.0
49.0,10.0
49.0,8.0
50.0,8.0
50.0,6.0
51.0,6.0
51.0,4.0
53.0,4.0
53.0,6.0
55.0,6.0
55.0,8.0
56.0,8.0
56.0,6.0
57.0,6.0
57.0,4.0
58.0,4.0
58.0,6.0
59.0,6.0
59.0,4.0
61.0,4.0
61.0,6.0
62.0,6.0
62.0,8.0
67.0,8.0
67.0,6.0
69.0,6.0
69.0,8.0
70.0,8.0
70.0,10.0
71.0,10.0
71.0,8.0
72.0,8.0
72.0,10.0
75.0,10.0
75.0,12.0
76.0,12.0
76.0,10.0
79.0,10.0
79.0,12.0
80.0,12.0
80.0,14.0
81.0,14.0
81.0,12.0
82.0,12.0
82.0,0.0
100.000002,0.0
					</series>
					<series title="bd[1]" type="l" color="0x00ffff" encoding="csv">0.0,0.0
1.0,0.0
1.0,1.0
2.0,1.0
2.0,0.0
7.0,0.0
7.0,1.0
8.0,1.0
8.0,4.0
11.0,4.0
11.0,1.0
12.0,1.0
12.0,0.0
13.0,0.0
13.0,1.0
14.0,1.0
14.0,0.0
17.0,0.0
17.0,1.0
19.0,1.0
19.0,0.0
22.0,0.0
22.0,1.0
23.0,1.0
23.0,0.0
28.0,0.0
28.0,1.0
29.0,1.0
29.0,0.0
31.0,0.0
31.0,1.0
33.0,1.0
33.0,0.0
36.0,0.0
36.0,1.0
37.0,1.0
37.0,4.0
38.0,4.0
38.0,1.0
39.0,1.0
39.0,0.0
40.0,0.0
40.0,1.0
41.0,1.0
41.0,0.0
42.0,0.0
42.0,1.0
43.0,1.0
43.0,0.0
45.0,0.0
45.0,1.0
46.0,1.0
46.0,4.0
47.0,4.0
47.0,1.0
48.0,1.0
48.0,0.0
49.0,0.0
49.0,1.0
51.0,1.0
51.0,0.0
53.0,0.0
53.0,1.0
56.0,1.0
56.0,4.0
58.0,4.0
58.0,1.0
59.0,1.0
59.0,4.0
61.0,4.0
61.0,1.0
63.0,1.0
63.0,4.0
65.0,4.0
65.0,1.0
66.0,1.0
66.0,4.0
67.0,4.0
67.0,1.0
68.0,1.0
68.0,4.0
71.0,4.0
71.0,1.0
73.0,1.0
73.0,0.0
74.0,0.0
74.0,1.0
76.0,1.0
76.0,4.0
77.0,4.0
77.0,9.0
78.0,9.0
78.0,16.0
80.0,16.0
80.0,9.0
85.0,9.0
85.0,4.0
86.0,4.0
86.0,9.0
87.0,9.0
87.0,4.0
88.0,4.0
88.0,1.0
89.0,1.0
89.0,4.0
90.0,4.0
90.0,9.0
92.0,9.0
92.0,4.0
93.0,4.0
93.0,1.0
97.0,1.0
97.0,4.0
98.0,4.0
98.0,9.0
99.0,9.0
99.0,4.0
100.0,4.0
100.000002,9.0
					</series>
					<series title="bd[2]" type="l" color="0x8000ff" encoding="csv">0.0,0.0
5.0,0.0
5.0,1.0
6.0,1.0
6.0,4.0
8.0,4.0
8.0,9.0
9.0,9.0
9.0,16.0
10.0,16.0
10.0,25.0
11.0,25.0
11.0,16.0
17.0,16.0
17.0,25.0
19.0,25.0
19.0,36.0
20.0,36.0
20.0,49.0
21.0,49.0
21.0,64.0
22.0,64.0
22.0,81.0
23.0,81.0
23.0,64.0
24.0,64.0
24.0,81.0
25.0,81.0
25.0,64.0
27.0,64.0
27.0,81.0
28.0,81.0
28.0,64.0
30.0,64.0
30.0,49.0
31.0,49.0
31.0,36.0
32.0,36.0
32.0,25.0
34.0,25.0
34.0,16.0
35.0,16.0
35.0,9.0
36.0,9.0
36.0,16.0
37.0,16.0
37.0,9.0
40.0,9.0
40.0,16.0
41.0,16.0
41.0,25.0
42.0,25.0
42.0,16.0
44.0,16.0
44.0,9.0
47.0,9.0
47.0,16.0
48.0,16.0
48.0,25.0
49.0,25.0
49.0,16.0
50.0,16.0
50.0,9.0
51.0,9.0
51.0,4.0
53.0,4.0
53.0,9.0
55.0,9.0
55.0,16.0
56.0,16.0
56.0,9.0
57.0,9.0
57.0,4.0
58.0,4.0
58.0,9.0
59.0,9.0
59.0,4.0
61.0,4.0
61.0,9.0
62.0,9.0
62.0,16.0
67.0,16.0
67.0,9.0
69.0,9.0
69.0,16.0
70.0,16.0
70.0,25.0
71.0,25.0
71.0,16.0
72.0,16.0
72.0,25.0
75.0,25.0
75.0,36.0
76.0,36.0
76.0,25.0
79.0,25.0
79.0,36.0
80.0,36.0
80.0,49.0
81.0,49.0
81.0,36.0
82.0,36.0
82.0,25.0
83.0,25.0
83.0,0.0
100.000002,0.0
					</series>
					<comment/>
				</plot>
			</result>
		</query>
		<query>
			<formula>Pr[&lt;=100](&lt;&gt; vel[1]==0 and time &gt;20)</formula>
			<comment/>
		</query>
		<query>
			<formula>Pr[&lt;=100](&lt;&gt; lane[1]==lane[2])</formula>
			<comment/>
			<result outcome="success" type="interval" value="≥ 0.950056 (95% CI)" timestamp="2026-03-26 21:52:37 +0100">
				<details>≥ 0.950056 (95% CI)</details>
				<plot title="Probability Density Distribution" xaxis="run duration in time" yaxis="probability density">
					<series title="density" type="b(1.333333)" color="0x0000ff" encoding="csv">0.0,0.59375
1.3333333333333333,0.07291666666666667
2.6666666666666665,0.041666666666666664
4.0,0.020833333333333332
5.333333333333333,0.0
6.666666666666666,0.0
8.0,0.010416666666666666
9.333333333333332,0.0
10.666666666666666,0.0
12.0,0.010416666666666666
					</series>
					<series title="average" type="pl" color="0x00dd00" encoding="csv">0.9861111111111112,0.0
0.9861111111111112,0.59375
					</series>
					<comment>Parameters: α=0.05, ε=0.05, bucket width=1.3333, bucket count=10
Runs: 72 in total, 72 (100%) displayed, 0 (0%) remaining
Span of displayed sample: [0, 12]
Mean estimate of displayed sample: 0.986 ± 0.442 (95% CI)</comment>
				</plot>
				<plot title="Probability Density Confidence Intervals" xaxis="run duration in time" yaxis="probability density">
					<series title="upper limit" type="b(1.333333)" color="0xa0a0ff" encoding="csv">0.0,0.8784487970921917
1.3333333333333333,0.19011034044555922
2.6666666666666665,0.13617864931292403
4.0,0.09676728911341523
5.333333333333333,0.04994408370585468
6.666666666666666,0.04994408370585468
8.0,0.07497131085391912
9.333333333333332,0.04994408370585468
10.666666666666666,0.04994408370585468
12.0,0.07497131085391912
					</series>
					<series title="lower limit" type="b(1.333333)" color="0x0000ff" encoding="csv">0.0,0.6797704888706283
1.3333333333333333,0.039989500933602505
2.6666666666666665,0.015342537111130598
4.0,0.0033819003261732383
5.333333333333333,0.0
6.666666666666666,0.0
8.0,3.515744052335976E-4
9.333333333333332,0.0
10.666666666666666,0.0
12.0,3.515744052335976E-4
					</series>
					<series title="average" type="pl" color="0x00dd00" encoding="csv">0.9861111111111112,0.0
0.9861111111111112,0.6588365978191438
					</series>
					<comment>Parameters: α=0.05, ε=0.05, bucket width=1.3333, bucket count=10
Runs: 72 in total, 72 (100%) displayed, 0 (0%) remaining
Span of displayed sample: [0, 12]
Mean estimate of displayed sample: 0.986 ± 0.442 (95% CI)</comment>
				</plot>
				<plot title="Probability Distribution" xaxis="run duration in time" yaxis="probability">
					<series title="probability" type="b(1.333333)" color="0x0000ff" encoding="csv">0.0,0.7916666666666666
1.3333333333333333,0.09722222222222222
2.6666666666666665,0.05555555555555555
4.0,0.027777777777777776
5.333333333333333,0.0
6.666666666666666,0.0
8.0,0.013888888888888888
9.333333333333332,0.0
10.666666666666666,0.0
12.0,0.013888888888888888
					</series>
					<series title="average" type="pl" color="0x00dd00" encoding="csv">0.9861111111111112,0.0
0.9861111111111112,0.7916666666666666
					</series>
					<comment>Parameters: α=0.05, ε=0.05, bucket width=1.3333, bucket count=10
Runs: 72 in total, 72 (100%) displayed, 0 (0%) remaining
Span of displayed sample: [0, 12]
Mean estimate of displayed sample: 0.986 ± 0.442 (95% CI)</comment>
				</plot>
				<plot title="Probability Confidence Intervals" xaxis="run duration in time" yaxis="probability">
					<series title="upper limit" type="b(1.333333)" color="0xa0a0ff" encoding="csv">0.0,0.8784487970921917
1.3333333333333333,0.19011034044555922
2.6666666666666665,0.13617864931292403
4.0,0.09676728911341523
5.333333333333333,0.04994408370585468
6.666666666666666,0.04994408370585468
8.0,0.07497131085391912
9.333333333333332,0.04994408370585468
10.666666666666666,0.04994408370585468
12.0,0.07497131085391912
					</series>
					<series title="lower limit" type="b(1.333333)" color="0x0000ff" encoding="csv">0.0,0.6797704888706283
1.3333333333333333,0.039989500933602505
2.6666666666666665,0.015342537111130598
4.0,0.0033819003261732383
5.333333333333333,0.0
6.666666666666666,0.0
8.0,3.515744052335976E-4
9.333333333333332,0.0
10.666666666666666,0.0
12.0,3.515744052335976E-4
					</series>
					<series title="average" type="pl" color="0x00dd00" encoding="csv">0.9861111111111112,0.0
0.9861111111111112,0.8784487970921917
					</series>
					<comment>Parameters: α=0.05, ε=0.05, bucket width=1.3333, bucket count=10
Runs: 72 in total, 72 (100%) displayed, 0 (0%) remaining
Span of displayed sample: [0, 12]
Mean estimate of displayed sample: 0.986 ± 0.442 (95% CI)</comment>
				</plot>
				<plot title="Cumulative Probability Distribution" xaxis="run duration in time" yaxis="probability">
					<series title="cumulative" type="l" color="0x000000" encoding="csv">0.0,0.0
1.3333333333333333,0.7916666666666666
2.6666666666666665,0.8888888888888888
4.0,0.9444444444444444
5.333333333333333,0.9722222222222222
6.666666666666666,0.9722222222222222
8.0,0.9722222222222222
9.333333333333332,0.9861111111111112
10.666666666666666,0.9861111111111112
12.0,0.9861111111111112
					</series>
					<series title="average" type="pl" color="0x00dd00" encoding="csv">0.9861111111111112,0.0
0.9861111111111112,1.0
					</series>
					<comment>Parameters: α=0.05, ε=0.05, bucket width=1.3333, bucket count=10
Runs: 72 in total, 72 (100%) displayed, 0 (0%) remaining
Span of displayed sample: [0, 12]
Mean estimate of displayed sample: 0.986 ± 0.442 (95% CI)</comment>
				</plot>
				<plot title="Cumulative Probability Confidence Intervals" xaxis="run duration in time" yaxis="probability">
					<series title="upper limit" type="k" color="0x0000dd" encoding="csv">0.0,0.04994408370585468
1.3333333333333333,0.8784487970921917
2.6666666666666665,0.950791960729359
4.0,0.9846574628888694
5.333333333333333,0.9966180996738268
6.666666666666666,0.9966180996738268
8.0,0.9966180996738268
9.333333333333332,0.9996484255947664
10.666666666666666,0.9996484255947664
12.0,0.9996484255947664
					</series>
					<series title="lower limit" type="k" color="0xdd0000" encoding="csv">0.0,0.0
1.3333333333333333,0.6797704888706283
2.6666666666666665,0.7927531293332511
4.0,0.863821350687076
5.333333333333333,0.9032327108865847
6.666666666666666,0.9032327108865847
8.0,0.9032327108865847
9.333333333333332,0.9250286891460808
10.666666666666666,0.9250286891460808
12.0,0.9250286891460808
					</series>
					<series title="cumulative" type="l" color="0x000000" encoding="csv">0.0,0.0
1.3333333333333333,0.7916666666666666
2.6666666666666665,0.8888888888888888
4.0,0.9444444444444444
5.333333333333333,0.9722222222222222
6.666666666666666,0.9722222222222222
8.0,0.9722222222222222
9.333333333333332,0.9861111111111112
10.666666666666666,0.9861111111111112
12.0,0.9861111111111112
					</series>
					<series title="average" type="pl" color="0x00dd00" encoding="csv">0.9861111111111112,0.0
0.9861111111111112,1.0
					</series>
					<comment>Parameters: α=0.05, ε=0.05, bucket width=1.3333, bucket count=10
Runs: 72 in total, 72 (100%) displayed, 0 (0%) remaining
Span of displayed sample: [0, 12]
Mean estimate of displayed sample: 0.986 ± 0.442 (95% CI)</comment>
				</plot>
				<plot title="Frequency Histogram" xaxis="run duration in time" yaxis="count">
					<series title="count" type="b(1.333333)" color="0x0000ff" encoding="csv">0.0,57.0
1.3333333333333333,7.0
2.6666666666666665,4.0
4.0,2.0
5.333333333333333,0.0
6.666666666666666,0.0
8.0,1.0
9.333333333333332,0.0
10.666666666666666,0.0
12.0,1.0
					</series>
					<series title="average" type="pl" color="0x00dd00" encoding="csv">0.9861111111111112,0.0
0.9861111111111112,57.0
					</series>
					<comment>Parameters: α=0.05, ε=0.05, bucket width=1.3333, bucket count=10
Runs: 72 in total, 72 (100%) displayed, 0 (0%) remaining
Span of displayed sample: [0, 12]
Mean estimate of displayed sample: 0.986 ± 0.442 (95% CI)</comment>
				</plot>
			</result>
		</query>
		<query>
			<formula>A[] !Monitor.ERROR</formula>
			<comment>Safety: cars never collide</comment>
			<result outcome="success" type="quality" timestamp="2026-10-06 21:18:09 +0200">
				<option key="--diagnostic" value="1"/>
			</result>
		</query>
		<query>
			<formula>A[] not deadlock</formula>
			<comment>A safe choice always exists</comment>
			<result outcome="success" type="quality" timestamp="2026-10-06 21:18:44 +0200">
				<option key="--diagnostic" value="1"/>
			</result>
		</query>
		<query>
			<formula/>
			<comment/>
		</query>
	</queries>
</nta>
