1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492
|
// From "Design and validation of a controller", Laure Petrucci, SCI 2000
// http://www.lsv.ens-cachan.fr/Publis/PAPERS/Pet-sci2000.ps
// Normally, Maria reports 836 states, 2644 arcs
// #define MIN // for canonical initial markings (512 states, 1600 arcs)
// #define MAX // for worst possible initial markings (898 states, 2819 arcs)
// #define OPT // optimised model (no intermediate states)
/* The MIN option unfires the following local transitions, transforming
* the initial marking to a situation where no local actions have been
* performed after synchronisations:
* t1, t7..t6, t8, t45..t44, t50
*/
/* The MAX option fires the following local transitions, transforming
* the initial marking to a situation where only synchronisation actions
* are enabled:
* t9, t16, t31, t32, t53, t25..t30, t11..t12, t35..t38, t51..t52
*/
#ifdef MODULAR
trans :t2;
subnet
{
#endif // MODULAR
#ifndef OPT
place i12 (1) bool:
# ifdef MIN
true
# else // MIN
false
# endif //MIN
;
trans i12_t1 in { place i12: true; } out { place i12: false; };
#endif // !OPT
#ifdef MODULAR
trans i12_t2:trans t2
#else // MODULAR
trans :i12_t2
#endif // MODULAR
#ifndef OPT
in { place i12: false; } out { place i12: true; }
#endif // !OPT
;
#ifdef MODULAR
};
trans :t5;
subnet
{
#endif // MODULAR
#ifdef OPT
place a (1) bool: false;
#else // OPT
place a (1) unsigned (1..6):
# ifdef MIN
4
# else // MIN
6
# endif // MIN
;
trans a_t in { place a: a; } out { place a: +a; }
gate a != 6, a != 3;
#endif // OPT
#ifdef MODULAR
trans a_t2:trans t2
#else // MODULAR
trans :a_t2
#endif // MODULAR
#ifdef OPT
in { place a: false; } out { place a: true; };
#else // OPT
in { place a: 6; } out { place a: 1; };
#endif // OPT
#ifdef MODULAR
trans a_t5:trans t5
#else // MODULAR
trans :a_t5
#endif // MODULAR
#ifdef OPT
in { place a: true; } out { place a: false; };
#else // OPT
in { place a: 3; } out { place a: 4; };
#endif // OPT
#ifdef MODULAR
};
trans :t10;
subnet
{
#endif // MODULAR
#ifdef OPT
place w1 (1) bool: false;
#else // OPT
place w1 (1) unsigned (11..14):
# ifdef MAX
13
# else // MAX
# ifdef MIN
11
# else // MIN
12
# endif // MIN
# endif // MAX
;
trans w1_t in { place w1: w; } out { place w1: +w; }
gate w != 13, w != 14;
#endif // OPT
#ifdef MODULAR
trans w1_t5:trans t5
#else // MODULAR
trans :w1_t5
#endif // MODULAR
#ifdef OPT
in { place w1: true; } out { place w1: false; };
#else // OPT
in { place w1: 14; } out { place w1: 11; };
#endif // OPT
#ifdef MODULAR
trans w1_t10:trans t10
#else // MODULAR
trans :w1_t10
#endif // MODULAR
#ifdef OPT
in { place w1: false; } out { place w1: true; };
#else // OPT
in { place w1: 13; } out { place w1: 14; };
#endif // OPT
#ifdef MODULAR
};
trans :t17;
subnet
{
#endif // MODULAR
#ifndef OPT
place i34 (1) bool:
# ifdef MAX
false
# else // MAX
true
# endif // MAX
;
trans i34_t16 in { place i34: true; } out { place i34: false; };
#endif // !OPT
#ifdef MODULAR
trans i34_t17:trans t17
#else // MODULAR
trans :i34_t17
#endif // MODULAR
#ifndef OPT
in { place i34: false; } out { place i34: true; }
#endif // !OPT
;
#ifdef MODULAR
};
trans :t13;
trans :t33;
trans :t34;
subnet
{
#endif // MODULAR
#ifdef OPT
place w (1) bool: false;
place w3 (1) bool: false;
#else // OPT
place w (1) unsigned (33..36):
# ifdef MAX
36
# else // MAX
33
# endif // MAX
;
place w3 (0..1) unsigned (31..32)
# ifdef MAX
# else // MAX
: 32
# endif // MAX
;
trans w3_t31 in { place w3: 32; place w: 33; } out { place w: 34; };
trans w3_t32 in { place w: 34; } out { place w: 36; };
#endif // OPT
#ifdef MODULAR
trans w3_t13:trans t13
#else // MODULAR
trans :w3_t13
#endif // MODULAR
#ifdef OPT
in { place w3: true; } out { place w3: false; };
#else // OPT
in { place w3: 31; } out { place w3: 32; };
#endif // OPT
#ifdef MODULAR
trans w3_t34:trans t34
#else // MODULAR
trans :w3_t34
#endif // MODULAR
#ifdef OPT
in { place w: true; } out { place w: false; };
#else // OPT
in { place w: 35; } out { place w: 33; };
#endif // OPT
#ifdef MODULAR
trans w3_t33:trans t33
#else // MODULAR
trans :w3_t33
#endif // MODULAR
#ifdef OPT
in { place w3: false; place w: false; }
out { place w3: true; place w: true; };
#else // OPT
in { place w: 36; } out { place w3: 31; place w: 35; };
#endif // OPT
#ifdef MODULAR
};
trans :t24;
trans :t39;
subnet
{
#endif // MODULAR
#ifdef OPT
place w2 (1) bool: false;
#else // OPT
place w2 (1) unsigned (21..24):
# ifdef MIN
21
# else // MIN
23
# endif // MIN
;
trans w2_t in { place w2: w; } out { place w2: +w; }
gate w != 23, w != 24;
#endif // OPT
#ifdef MODULAR
trans w2_t24:trans t24
#else // MODULAR
trans :w2_t24
#endif // MODULAR
#ifdef OPT
in { place w2: true; } out { place w2: false; };
#else // OPT
in { place w2: 24; } out { place w2: 21; };
#endif // OPT
#ifdef MODULAR
trans w2_t39:trans t39
#else // MODULAR
trans :w2_t39
#endif // MODULAR
#ifdef OPT
in { place w2: false; } out { place w2: true; };
#else // OPT
in { place w2: 23; } out { place w2: 24; };
#endif // OPT
#ifdef MODULAR
};
trans :t49;
subnet
{
#endif // MODULAR
#ifndef OPT
place o (1) bool:
#ifdef MAX
false
#else
true
#endif
;
trans o_t53 in { place o: true; } out { place o: false; };
#endif // !OPT
#ifdef MODULAR
trans o_t49:trans t49
#else // MODULAR
trans :o_t49
#endif // MODULAR
#ifndef OPT
in { place o: false; } out { place o: true; }
#endif // !OPT
;
#ifdef MODULAR
};
subnet
{
#endif // MODULAR
#ifdef OPT
place b (1) bool: false;
#else // OPT
place b (1) unsigned (1..14):
# ifdef MAX
14
# else // MAX
8
# endif // MAX
;
trans b in { place b: b; } out { place b: +b; }
gate b != 7, b != 14;
#endif // OPT
#ifdef MODULAR
trans t24:trans t24
#else // MODULAR
trans :t24
#endif // MODULAR
#ifdef OPT
in { place b: true; } out { place b: false; };
#else // OPT
in { place b: 7; } out { place b: 8; };
#endif // OPT
#ifdef MODULAR
trans t17:trans t17
#else // MODULAR
trans :t17
#endif // MODULAR
#ifdef OPT
in { place b: false; } out { place b: true; };
#else // OPT
in { place b: 14; } out { place b: 1; };
#endif // OPT
#ifdef MODULAR
};
subnet
{
#endif // MODULAR
#ifdef OPT
place d (1) bool: false;
#else // OPT
place d (1) unsigned (1..6):
# ifdef MAX
6
# else // MAX
4
# endif // MAX
;
trans d in { place d: d; } out { place d: +d; }
gate d != 3, d != 6;
#endif // OPT
#ifdef MODULAR
trans t10:trans t10
#else // MODULAR
trans :t10
#endif // MODULAR
#ifdef OPT
in { place d: true; } out { place d: false; };
#else // OPT
in { place d: 3; } out { place d: 4; };
#endif // OPT
#ifdef MODULAR
trans t13:trans t13
#else // MODULAR
trans :t13
#endif // MODULAR
#ifdef OPT
in { place d: false; } out { place d: true; };
#else // OPT
in { place d: 6; } out { place d: 1; };
#endif // OPT
#ifdef MODULAR
};
subnet
{
#endif // MODULAR
#ifdef OPT
place e (1) bool: false;
#else // OPT
place e (1) unsigned (1..10):
# ifdef MAX
5
# else // MAX
1
# endif // MAX
;
trans e in { place e: e; } out { place e: +e; }
gate e != 5, e != 10;
#endif // OPT
#ifdef MODULAR
trans t39:trans t39
#else // MODULAR
trans :t39
#endif // MODULAR
#ifdef OPT
in { place e: false; } out { place e: true; };
#else // OPT
in { place e: 5; } out { place e: 6; };
#endif // OPT
#ifdef MODULAR
trans t34:trans t34
#else // MODULAR
trans :t34
#endif // MODULAR
#ifdef OPT
in { place e: true; } out { place e: false; };
#else // OPT
in { place e: 10; } out { place e: 1; };
#endif // OPT
#ifdef MODULAR
};
subnet
{
#endif // MODULAR
#ifdef OPT
place f (1) bool: false;
#else // OPT
place f (1) unsigned (1..8):
# ifdef MAX
8
# else // MAX
# ifdef MIN
5
# else // MIN
6
# endif // MIN
# endif // MAX
;
trans f in { place f: f; } out { place f: +f; }
gate f != 4, f != 8;
#endif // OPT
#ifdef MODULAR
trans t49:trans t49
#else // MODULAR
trans :t49
#endif // MODULAR
#ifdef OPT
in { place f: true; } out { place f: false; };
#else // OPT
in { place f: 4; } out { place f: 5; };
#endif // OPT
#ifdef MODULAR
trans t33:trans t33
#else // MODULAR
trans :t33
#endif // MODULAR
#ifdef OPT
in { place f: false; } out { place f: true; };
#else // OPT
in { place f: 8; } out { place f: 1; };
#endif // OPT
#ifdef MODULAR
};
#else // MODULAR
trans t2:trans i12_t2:trans a_t2;
trans t5:trans a_t5:trans w1_t5;
trans t10:trans w1_t10:trans t10;
trans t17:trans i34_t17:trans t17;
trans t13:trans w3_t13:trans t13;
trans t33:trans w3_t33:trans t33;
trans t34:trans w3_t34:trans t34;
trans t24:trans w2_t24:trans t24;
trans t39:trans w2_t39:trans t39;
trans t49:trans o_t49:trans t49;
#endif // MODULAR
|