You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3310 lines
134 KiB

  1. {
  2. "jani-version":1,
  3. "features":[
  4. "derived-operators"
  5. ],
  6. "name":"Converted from PRISM by IscasMC",
  7. "type":"mdp",
  8. "actions":[
  9. {
  10. "name":"reset"
  11. },
  12. {
  13. "name":"time"
  14. },
  15. {
  16. "name":"send"
  17. },
  18. {
  19. "name":"tau__"
  20. },
  21. {
  22. "name":"rec"
  23. }
  24. ],
  25. "constants":[
  26. {
  27. "name":"reset",
  28. "type":"bool"
  29. },
  30. {
  31. "name":"N",
  32. "type":"int"
  33. },
  34. {
  35. "name":"K",
  36. "type":"int"
  37. },
  38. {
  39. "name":"err",
  40. "type":"real"
  41. }
  42. ],
  43. "variables":[
  44. {
  45. "name":"b_ip7",
  46. "type":{
  47. "kind":"bounded",
  48. "base":"int",
  49. "lower-bound":0,
  50. "upper-bound":2
  51. }
  52. },
  53. {
  54. "name":"b_ip6",
  55. "type":{
  56. "kind":"bounded",
  57. "base":"int",
  58. "lower-bound":0,
  59. "upper-bound":2
  60. }
  61. },
  62. {
  63. "name":"b_ip5",
  64. "type":{
  65. "kind":"bounded",
  66. "base":"int",
  67. "lower-bound":0,
  68. "upper-bound":2
  69. }
  70. },
  71. {
  72. "name":"b_ip4",
  73. "type":{
  74. "kind":"bounded",
  75. "base":"int",
  76. "lower-bound":0,
  77. "upper-bound":2
  78. }
  79. },
  80. {
  81. "name":"b_ip3",
  82. "type":{
  83. "kind":"bounded",
  84. "base":"int",
  85. "lower-bound":0,
  86. "upper-bound":2
  87. }
  88. },
  89. {
  90. "name":"b_ip2",
  91. "type":{
  92. "kind":"bounded",
  93. "base":"int",
  94. "lower-bound":0,
  95. "upper-bound":2
  96. }
  97. },
  98. {
  99. "name":"b_ip1",
  100. "type":{
  101. "kind":"bounded",
  102. "base":"int",
  103. "lower-bound":0,
  104. "upper-bound":2
  105. }
  106. },
  107. {
  108. "name":"b_ip0",
  109. "type":{
  110. "kind":"bounded",
  111. "base":"int",
  112. "lower-bound":0,
  113. "upper-bound":2
  114. }
  115. },
  116. {
  117. "name":"n",
  118. "type":{
  119. "kind":"bounded",
  120. "base":"int",
  121. "lower-bound":0,
  122. "upper-bound":8
  123. }
  124. },
  125. {
  126. "name":"n0",
  127. "type":{
  128. "kind":"bounded",
  129. "base":"int",
  130. "lower-bound":0,
  131. "upper-bound":20
  132. }
  133. },
  134. {
  135. "name":"n1",
  136. "type":{
  137. "kind":"bounded",
  138. "base":"int",
  139. "lower-bound":0,
  140. "upper-bound":8
  141. }
  142. },
  143. {
  144. "name":"b",
  145. "type":{
  146. "kind":"bounded",
  147. "base":"int",
  148. "lower-bound":0,
  149. "upper-bound":2
  150. }
  151. },
  152. {
  153. "name":"z",
  154. "type":{
  155. "kind":"bounded",
  156. "base":"int",
  157. "lower-bound":0,
  158. "upper-bound":1
  159. }
  160. },
  161. {
  162. "name":"ip_mess",
  163. "type":{
  164. "kind":"bounded",
  165. "base":"int",
  166. "lower-bound":0,
  167. "upper-bound":2
  168. }
  169. },
  170. {
  171. "name":"x",
  172. "type":{
  173. "kind":"bounded",
  174. "base":"int",
  175. "lower-bound":0,
  176. "upper-bound":60
  177. }
  178. },
  179. {
  180. "name":"y",
  181. "type":{
  182. "kind":"bounded",
  183. "base":"int",
  184. "lower-bound":0,
  185. "upper-bound":10
  186. }
  187. },
  188. {
  189. "name":"coll",
  190. "type":{
  191. "kind":"bounded",
  192. "base":"int",
  193. "lower-bound":0,
  194. "upper-bound":10
  195. }
  196. },
  197. {
  198. "name":"probes",
  199. "type":{
  200. "kind":"bounded",
  201. "base":"int",
  202. "lower-bound":0,
  203. "upper-bound":"K"
  204. }
  205. },
  206. {
  207. "name":"mess",
  208. "type":{
  209. "kind":"bounded",
  210. "base":"int",
  211. "lower-bound":0,
  212. "upper-bound":1
  213. }
  214. },
  215. {
  216. "name":"defend",
  217. "type":{
  218. "kind":"bounded",
  219. "base":"int",
  220. "lower-bound":0,
  221. "upper-bound":1
  222. }
  223. },
  224. {
  225. "name":"ip",
  226. "type":{
  227. "kind":"bounded",
  228. "base":"int",
  229. "lower-bound":1,
  230. "upper-bound":2
  231. }
  232. },
  233. {
  234. "name":"l",
  235. "type":{
  236. "kind":"bounded",
  237. "base":"int",
  238. "lower-bound":0,
  239. "upper-bound":4
  240. }
  241. }
  242. ],
  243. "observables":[
  244. {
  245. "name":""
  246. }
  247. ],
  248. "initial-states":{
  249. "exp":{
  250. "op":"∧",
  251. "left":{
  252. "op":"∧",
  253. "left":{
  254. "op":"∧",
  255. "left":{
  256. "op":"∧",
  257. "left":{
  258. "op":"∧",
  259. "left":{
  260. "op":"∧",
  261. "left":{
  262. "op":"∧",
  263. "left":{
  264. "op":"∧",
  265. "left":{
  266. "op":"∧",
  267. "left":{
  268. "op":"∧",
  269. "left":{
  270. "op":"∧",
  271. "left":{
  272. "op":"∧",
  273. "left":{
  274. "op":"∧",
  275. "left":{
  276. "op":"∧",
  277. "left":{
  278. "op":"∧",
  279. "left":{
  280. "op":"∧",
  281. "left":{
  282. "op":"∧",
  283. "left":{
  284. "op":"∧",
  285. "left":{
  286. "op":"∧",
  287. "left":{
  288. "op":"∧",
  289. "left":{
  290. "op":"∧",
  291. "left":{
  292. "op":"=",
  293. "left":"b_ip7",
  294. "right":0
  295. },
  296. "right":{
  297. "op":"=",
  298. "left":"b_ip6",
  299. "right":0
  300. }
  301. },
  302. "right":{
  303. "op":"=",
  304. "left":"b_ip5",
  305. "right":0
  306. }
  307. },
  308. "right":{
  309. "op":"=",
  310. "left":"b_ip4",
  311. "right":0
  312. }
  313. },
  314. "right":{
  315. "op":"=",
  316. "left":"b_ip3",
  317. "right":0
  318. }
  319. },
  320. "right":{
  321. "op":"=",
  322. "left":"b_ip2",
  323. "right":0
  324. }
  325. },
  326. "right":{
  327. "op":"=",
  328. "left":"b_ip1",
  329. "right":0
  330. }
  331. },
  332. "right":{
  333. "op":"=",
  334. "left":"b_ip0",
  335. "right":0
  336. }
  337. },
  338. "right":{
  339. "op":"=",
  340. "left":"n",
  341. "right":0
  342. }
  343. },
  344. "right":{
  345. "op":"=",
  346. "left":"n0",
  347. "right":0
  348. }
  349. },
  350. "right":{
  351. "op":"=",
  352. "left":"n1",
  353. "right":0
  354. }
  355. },
  356. "right":{
  357. "op":"=",
  358. "left":"b",
  359. "right":0
  360. }
  361. },
  362. "right":{
  363. "op":"=",
  364. "left":"z",
  365. "right":0
  366. }
  367. },
  368. "right":{
  369. "op":"=",
  370. "left":"ip_mess",
  371. "right":0
  372. }
  373. },
  374. "right":{
  375. "op":"=",
  376. "left":"x",
  377. "right":0
  378. }
  379. },
  380. "right":{
  381. "op":"=",
  382. "left":"y",
  383. "right":0
  384. }
  385. },
  386. "right":{
  387. "op":"=",
  388. "left":"coll",
  389. "right":0
  390. }
  391. },
  392. "right":{
  393. "op":"=",
  394. "left":"probes",
  395. "right":0
  396. }
  397. },
  398. "right":{
  399. "op":"=",
  400. "left":"mess",
  401. "right":0
  402. }
  403. },
  404. "right":{
  405. "op":"=",
  406. "left":"defend",
  407. "right":0
  408. }
  409. },
  410. "right":{
  411. "op":"=",
  412. "left":"ip",
  413. "right":1
  414. }
  415. },
  416. "right":{
  417. "op":"=",
  418. "left":"l",
  419. "right":1
  420. }
  421. }
  422. },
  423. "automata":[
  424. {
  425. "name":"environment",
  426. "locations":[
  427. {
  428. "name":"location"
  429. }
  430. ],
  431. "initial-locations":[
  432. "location"
  433. ],
  434. "edges":[
  435. {
  436. "location":"location",
  437. "action":"reset",
  438. "guard":{
  439. "exp":true
  440. },
  441. "destinations":[
  442. {
  443. "probability":{
  444. "exp":1
  445. },
  446. "location":"location",
  447. "assignments":[
  448. {
  449. "ref":"n1",
  450. "value":0
  451. },
  452. {
  453. "ref":"n0",
  454. "value":{
  455. "op":"min",
  456. "left":20,
  457. "right":{
  458. "op":"+",
  459. "left":"n0",
  460. "right":"n1"
  461. }
  462. }
  463. },
  464. {
  465. "ref":"ip_mess",
  466. "value":0
  467. },
  468. {
  469. "ref":"n",
  470. "value":{
  471. "op":"?:",
  472. "args":[
  473. "reset",
  474. 0,
  475. "n"
  476. ]
  477. }
  478. },
  479. {
  480. "ref":"b_ip7",
  481. "value":0
  482. },
  483. {
  484. "ref":"b_ip6",
  485. "value":0
  486. },
  487. {
  488. "ref":"b_ip5",
  489. "value":0
  490. },
  491. {
  492. "ref":"b_ip4",
  493. "value":0
  494. },
  495. {
  496. "ref":"b_ip3",
  497. "value":0
  498. },
  499. {
  500. "ref":"b_ip2",
  501. "value":0
  502. },
  503. {
  504. "ref":"b_ip1",
  505. "value":0
  506. },
  507. {
  508. "ref":"b_ip0",
  509. "value":0
  510. }
  511. ],
  512. "observables":[
  513. ]
  514. }
  515. ]
  516. },
  517. {
  518. "location":"location",
  519. "action":"time",
  520. "guard":{
  521. "exp":{
  522. "op":"∧",
  523. "left":{
  524. "op":"∧",
  525. "left":{
  526. "op":"∧",
  527. "left":{
  528. "op":"∧",
  529. "left":{
  530. "op":">",
  531. "left":"l",
  532. "right":0
  533. },
  534. "right":{
  535. "op":"=",
  536. "left":"b",
  537. "right":0
  538. }
  539. },
  540. "right":{
  541. "op":"=",
  542. "left":"n",
  543. "right":0
  544. }
  545. },
  546. "right":{
  547. "op":"=",
  548. "left":"n0",
  549. "right":0
  550. }
  551. },
  552. "right":{
  553. "op":"=",
  554. "left":"n1",
  555. "right":0
  556. }
  557. }
  558. },
  559. "destinations":[
  560. {
  561. "probability":{
  562. "exp":1
  563. },
  564. "location":"location",
  565. "assignments":[
  566. {
  567. "ref":"b",
  568. "value":"b"
  569. }
  570. ],
  571. "observables":[
  572. {
  573. "ref":"",
  574. "value":1
  575. }
  576. ]
  577. }
  578. ]
  579. },
  580. {
  581. "location":"location",
  582. "action":"time",
  583. "guard":{
  584. "exp":{
  585. "op":"∧",
  586. "left":{
  587. "op":"∧",
  588. "left":{
  589. "op":">",
  590. "left":"l",
  591. "right":0
  592. },
  593. "right":{
  594. "op":">",
  595. "left":"b",
  596. "right":0
  597. }
  598. },
  599. "right":{
  600. "op":"<",
  601. "left":"z",
  602. "right":1
  603. }
  604. }
  605. },
  606. "destinations":[
  607. {
  608. "probability":{
  609. "exp":1
  610. },
  611. "location":"location",
  612. "assignments":[
  613. {
  614. "ref":"z",
  615. "value":{
  616. "op":"min",
  617. "left":{
  618. "op":"+",
  619. "left":"z",
  620. "right":1
  621. },
  622. "right":1
  623. }
  624. }
  625. ],
  626. "observables":[
  627. {
  628. "ref":"",
  629. "value":1
  630. }
  631. ]
  632. }
  633. ]
  634. },
  635. {
  636. "location":"location",
  637. "action":"send",
  638. "guard":{
  639. "exp":{
  640. "op":"∧",
  641. "left":{
  642. "op":">",
  643. "left":"l",
  644. "right":0
  645. },
  646. "right":{
  647. "op":"=",
  648. "left":"n",
  649. "right":0
  650. }
  651. }
  652. },
  653. "destinations":[
  654. {
  655. "probability":{
  656. "exp":1
  657. },
  658. "location":"location",
  659. "assignments":[
  660. {
  661. "ref":"b_ip0",
  662. "value":"ip"
  663. },
  664. {
  665. "ref":"n",
  666. "value":{
  667. "op":"+",
  668. "left":"n",
  669. "right":1
  670. }
  671. }
  672. ],
  673. "observables":[
  674. {
  675. "ref":"",
  676. "value":{
  677. "op":"?:",
  678. "args":[
  679. {
  680. "op":"∧",
  681. "left":{
  682. "op":"∧",
  683. "left":{
  684. "op":"∧",
  685. "left":{
  686. "op":"∧",
  687. "left":{
  688. "op":"=",
  689. "left":"l",
  690. "right":3
  691. },
  692. "right":{
  693. "op":"=",
  694. "left":"mess",
  695. "right":0
  696. }
  697. },
  698. "right":{
  699. "op":"=",
  700. "left":"y",
  701. "right":2
  702. }
  703. },
  704. "right":{
  705. "op":"=",
  706. "left":"probes",
  707. "right":1
  708. }
  709. },
  710. "right":{
  711. "op":"=",
  712. "left":"ip",
  713. "right":1
  714. }
  715. },
  716. "err",
  717. 0
  718. ]
  719. }
  720. }
  721. ]
  722. }
  723. ]
  724. },
  725. {
  726. "location":"location",
  727. "action":"send",
  728. "guard":{
  729. "exp":{
  730. "op":"∧",
  731. "left":{
  732. "op":">",
  733. "left":"l",
  734. "right":0
  735. },
  736. "right":{
  737. "op":"=",
  738. "left":"n",
  739. "right":1
  740. }
  741. }
  742. },
  743. "destinations":[
  744. {
  745. "probability":{
  746. "exp":1
  747. },
  748. "location":"location",
  749. "assignments":[
  750. {
  751. "ref":"b_ip1",
  752. "value":"ip"
  753. },
  754. {
  755. "ref":"n",
  756. "value":{
  757. "op":"+",
  758. "left":"n",
  759. "right":1
  760. }
  761. }
  762. ],
  763. "observables":[
  764. {
  765. "ref":"",
  766. "value":{
  767. "op":"?:",
  768. "args":[
  769. {
  770. "op":"∧",
  771. "left":{
  772. "op":"∧",
  773. "left":{
  774. "op":"∧",
  775. "left":{
  776. "op":"∧",
  777. "left":{
  778. "op":"=",
  779. "left":"l",
  780. "right":3
  781. },
  782. "right":{
  783. "op":"=",
  784. "left":"mess",
  785. "right":0
  786. }
  787. },
  788. "right":{
  789. "op":"=",
  790. "left":"y",
  791. "right":2
  792. }
  793. },
  794. "right":{
  795. "op":"=",
  796. "left":"probes",
  797. "right":1
  798. }
  799. },
  800. "right":{
  801. "op":"=",
  802. "left":"ip",
  803. "right":1
  804. }
  805. },
  806. "err",
  807. 0
  808. ]
  809. }
  810. }
  811. ]
  812. }
  813. ]
  814. },
  815. {
  816. "location":"location",
  817. "action":"send",
  818. "guard":{
  819. "exp":{
  820. "op":"∧",
  821. "left":{
  822. "op":">",
  823. "left":"l",
  824. "right":0
  825. },
  826. "right":{
  827. "op":"=",
  828. "left":"n",
  829. "right":2
  830. }
  831. }
  832. },
  833. "destinations":[
  834. {
  835. "probability":{
  836. "exp":1
  837. },
  838. "location":"location",
  839. "assignments":[
  840. {
  841. "ref":"b_ip2",
  842. "value":"ip"
  843. },
  844. {
  845. "ref":"n",
  846. "value":{
  847. "op":"+",
  848. "left":"n",
  849. "right":1
  850. }
  851. }
  852. ],
  853. "observables":[
  854. {
  855. "ref":"",
  856. "value":{
  857. "op":"?:",
  858. "args":[
  859. {
  860. "op":"∧",
  861. "left":{
  862. "op":"∧",
  863. "left":{
  864. "op":"∧",
  865. "left":{
  866. "op":"∧",
  867. "left":{
  868. "op":"=",
  869. "left":"l",
  870. "right":3
  871. },
  872. "right":{
  873. "op":"=",
  874. "left":"mess",
  875. "right":0
  876. }
  877. },
  878. "right":{
  879. "op":"=",
  880. "left":"y",
  881. "right":2
  882. }
  883. },
  884. "right":{
  885. "op":"=",
  886. "left":"probes",
  887. "right":1
  888. }
  889. },
  890. "right":{
  891. "op":"=",
  892. "left":"ip",
  893. "right":1
  894. }
  895. },
  896. "err",
  897. 0
  898. ]
  899. }
  900. }
  901. ]
  902. }
  903. ]
  904. },
  905. {
  906. "location":"location",
  907. "action":"send",
  908. "guard":{
  909. "exp":{
  910. "op":"∧",
  911. "left":{
  912. "op":">",
  913. "left":"l",
  914. "right":0
  915. },
  916. "right":{
  917. "op":"=",
  918. "left":"n",
  919. "right":3
  920. }
  921. }
  922. },
  923. "destinations":[
  924. {
  925. "probability":{
  926. "exp":1
  927. },
  928. "location":"location",
  929. "assignments":[
  930. {
  931. "ref":"b_ip3",
  932. "value":"ip"
  933. },
  934. {
  935. "ref":"n",
  936. "value":{
  937. "op":"+",
  938. "left":"n",
  939. "right":1
  940. }
  941. }
  942. ],
  943. "observables":[
  944. {
  945. "ref":"",
  946. "value":{
  947. "op":"?:",
  948. "args":[
  949. {
  950. "op":"∧",
  951. "left":{
  952. "op":"∧",
  953. "left":{
  954. "op":"∧",
  955. "left":{
  956. "op":"∧",
  957. "left":{
  958. "op":"=",
  959. "left":"l",
  960. "right":3
  961. },
  962. "right":{
  963. "op":"=",
  964. "left":"mess",
  965. "right":0
  966. }
  967. },
  968. "right":{
  969. "op":"=",
  970. "left":"y",
  971. "right":2
  972. }
  973. },
  974. "right":{
  975. "op":"=",
  976. "left":"probes",
  977. "right":1
  978. }
  979. },
  980. "right":{
  981. "op":"=",
  982. "left":"ip",
  983. "right":1
  984. }
  985. },
  986. "err",
  987. 0
  988. ]
  989. }
  990. }
  991. ]
  992. }
  993. ]
  994. },
  995. {
  996. "location":"location",
  997. "action":"send",
  998. "guard":{
  999. "exp":{
  1000. "op":"∧",
  1001. "left":{
  1002. "op":">",
  1003. "left":"l",
  1004. "right":0
  1005. },
  1006. "right":{
  1007. "op":"=",
  1008. "left":"n",
  1009. "right":4
  1010. }
  1011. }
  1012. },
  1013. "destinations":[
  1014. {
  1015. "probability":{
  1016. "exp":1
  1017. },
  1018. "location":"location",
  1019. "assignments":[
  1020. {
  1021. "ref":"b_ip4",
  1022. "value":"ip"
  1023. },
  1024. {
  1025. "ref":"n",
  1026. "value":{
  1027. "op":"+",
  1028. "left":"n",
  1029. "right":1
  1030. }
  1031. }
  1032. ],
  1033. "observables":[
  1034. {
  1035. "ref":"",
  1036. "value":{
  1037. "op":"?:",
  1038. "args":[
  1039. {
  1040. "op":"∧",
  1041. "left":{
  1042. "op":"∧",
  1043. "left":{
  1044. "op":"∧",
  1045. "left":{
  1046. "op":"∧",
  1047. "left":{
  1048. "op":"=",
  1049. "left":"l",
  1050. "right":3
  1051. },
  1052. "right":{
  1053. "op":"=",
  1054. "left":"mess",
  1055. "right":0
  1056. }
  1057. },
  1058. "right":{
  1059. "op":"=",
  1060. "left":"y",
  1061. "right":2
  1062. }
  1063. },
  1064. "right":{
  1065. "op":"=",
  1066. "left":"probes",
  1067. "right":1
  1068. }
  1069. },
  1070. "right":{
  1071. "op":"=",
  1072. "left":"ip",
  1073. "right":1
  1074. }
  1075. },
  1076. "err",
  1077. 0
  1078. ]
  1079. }
  1080. }
  1081. ]
  1082. }
  1083. ]
  1084. },
  1085. {
  1086. "location":"location",
  1087. "action":"send",
  1088. "guard":{
  1089. "exp":{
  1090. "op":"∧",
  1091. "left":{
  1092. "op":">",
  1093. "left":"l",
  1094. "right":0
  1095. },
  1096. "right":{
  1097. "op":"=",
  1098. "left":"n",
  1099. "right":5
  1100. }
  1101. }
  1102. },
  1103. "destinations":[
  1104. {
  1105. "probability":{
  1106. "exp":1
  1107. },
  1108. "location":"location",
  1109. "assignments":[
  1110. {
  1111. "ref":"b_ip5",
  1112. "value":"ip"
  1113. },
  1114. {
  1115. "ref":"n",
  1116. "value":{
  1117. "op":"+",
  1118. "left":"n",
  1119. "right":1
  1120. }
  1121. }
  1122. ],
  1123. "observables":[
  1124. {
  1125. "ref":"",
  1126. "value":{
  1127. "op":"?:",
  1128. "args":[
  1129. {
  1130. "op":"∧",
  1131. "left":{
  1132. "op":"∧",
  1133. "left":{
  1134. "op":"∧",
  1135. "left":{
  1136. "op":"∧",
  1137. "left":{
  1138. "op":"=",
  1139. "left":"l",
  1140. "right":3
  1141. },
  1142. "right":{
  1143. "op":"=",
  1144. "left":"mess",
  1145. "right":0
  1146. }
  1147. },
  1148. "right":{
  1149. "op":"=",
  1150. "left":"y",
  1151. "right":2
  1152. }
  1153. },
  1154. "right":{
  1155. "op":"=",
  1156. "left":"probes",
  1157. "right":1
  1158. }
  1159. },
  1160. "right":{
  1161. "op":"=",
  1162. "left":"ip",
  1163. "right":1
  1164. }
  1165. },
  1166. "err",
  1167. 0
  1168. ]
  1169. }
  1170. }
  1171. ]
  1172. }
  1173. ]
  1174. },
  1175. {
  1176. "location":"location",
  1177. "action":"send",
  1178. "guard":{
  1179. "exp":{
  1180. "op":"∧",
  1181. "left":{
  1182. "op":">",
  1183. "left":"l",
  1184. "right":0
  1185. },
  1186. "right":{
  1187. "op":"=",
  1188. "left":"n",
  1189. "right":6
  1190. }
  1191. }
  1192. },
  1193. "destinations":[
  1194. {
  1195. "probability":{
  1196. "exp":1
  1197. },
  1198. "location":"location",
  1199. "assignments":[
  1200. {
  1201. "ref":"b_ip6",
  1202. "value":"ip"
  1203. },
  1204. {
  1205. "ref":"n",
  1206. "value":{
  1207. "op":"+",
  1208. "left":"n",
  1209. "right":1
  1210. }
  1211. }
  1212. ],
  1213. "observables":[
  1214. {
  1215. "ref":"",
  1216. "value":{
  1217. "op":"?:",
  1218. "args":[
  1219. {
  1220. "op":"∧",
  1221. "left":{
  1222. "op":"∧",
  1223. "left":{
  1224. "op":"∧",
  1225. "left":{
  1226. "op":"∧",
  1227. "left":{
  1228. "op":"=",
  1229. "left":"l",
  1230. "right":3
  1231. },
  1232. "right":{
  1233. "op":"=",
  1234. "left":"mess",
  1235. "right":0
  1236. }
  1237. },
  1238. "right":{
  1239. "op":"=",
  1240. "left":"y",
  1241. "right":2
  1242. }
  1243. },
  1244. "right":{
  1245. "op":"=",
  1246. "left":"probes",
  1247. "right":1
  1248. }
  1249. },
  1250. "right":{
  1251. "op":"=",
  1252. "left":"ip",
  1253. "right":1
  1254. }
  1255. },
  1256. "err",
  1257. 0
  1258. ]
  1259. }
  1260. }
  1261. ]
  1262. }
  1263. ]
  1264. },
  1265. {
  1266. "location":"location",
  1267. "action":"send",
  1268. "guard":{
  1269. "exp":{
  1270. "op":"∧",
  1271. "left":{
  1272. "op":">",
  1273. "left":"l",
  1274. "right":0
  1275. },
  1276. "right":{
  1277. "op":"=",
  1278. "left":"n",
  1279. "right":7
  1280. }
  1281. }
  1282. },
  1283. "destinations":[
  1284. {
  1285. "probability":{
  1286. "exp":1
  1287. },
  1288. "location":"location",
  1289. "assignments":[
  1290. {
  1291. "ref":"b_ip7",
  1292. "value":"ip"
  1293. },
  1294. {
  1295. "ref":"n",
  1296. "value":{
  1297. "op":"+",
  1298. "left":"n",
  1299. "right":1
  1300. }
  1301. }
  1302. ],
  1303. "observables":[
  1304. {
  1305. "ref":"",
  1306. "value":{
  1307. "op":"?:",
  1308. "args":[
  1309. {
  1310. "op":"∧",
  1311. "left":{
  1312. "op":"∧",
  1313. "left":{
  1314. "op":"∧",
  1315. "left":{
  1316. "op":"∧",
  1317. "left":{
  1318. "op":"=",
  1319. "left":"l",
  1320. "right":3
  1321. },
  1322. "right":{
  1323. "op":"=",
  1324. "left":"mess",
  1325. "right":0
  1326. }
  1327. },
  1328. "right":{
  1329. "op":"=",
  1330. "left":"y",
  1331. "right":2
  1332. }
  1333. },
  1334. "right":{
  1335. "op":"=",
  1336. "left":"probes",
  1337. "right":1
  1338. }
  1339. },
  1340. "right":{
  1341. "op":"=",
  1342. "left":"ip",
  1343. "right":1
  1344. }
  1345. },
  1346. "err",
  1347. 0
  1348. ]
  1349. }
  1350. }
  1351. ]
  1352. }
  1353. ]
  1354. },
  1355. {
  1356. "location":"location",
  1357. "action":"send",
  1358. "guard":{
  1359. "exp":{
  1360. "op":"∧",
  1361. "left":{
  1362. "op":">",
  1363. "left":"l",
  1364. "right":0
  1365. },
  1366. "right":{
  1367. "op":"=",
  1368. "left":"n",
  1369. "right":8
  1370. }
  1371. }
  1372. },
  1373. "destinations":[
  1374. {
  1375. "probability":{
  1376. "exp":1
  1377. },
  1378. "location":"location",
  1379. "assignments":[
  1380. {
  1381. "ref":"n",
  1382. "value":"n"
  1383. }
  1384. ],
  1385. "observables":[
  1386. {
  1387. "ref":"",
  1388. "value":{
  1389. "op":"?:",
  1390. "args":[
  1391. {
  1392. "op":"∧",
  1393. "left":{
  1394. "op":"∧",
  1395. "left":{
  1396. "op":"∧",
  1397. "left":{
  1398. "op":"∧",
  1399. "left":{
  1400. "op":"=",
  1401. "left":"l",
  1402. "right":3
  1403. },
  1404. "right":{
  1405. "op":"=",
  1406. "left":"mess",
  1407. "right":0
  1408. }
  1409. },
  1410. "right":{
  1411. "op":"=",
  1412. "left":"y",
  1413. "right":2
  1414. }
  1415. },
  1416. "right":{
  1417. "op":"=",
  1418. "left":"probes",
  1419. "right":1
  1420. }
  1421. },
  1422. "right":{
  1423. "op":"=",
  1424. "left":"ip",
  1425. "right":1
  1426. }
  1427. },
  1428. "err",
  1429. 0
  1430. ]
  1431. }
  1432. }
  1433. ]
  1434. }
  1435. ]
  1436. },
  1437. {
  1438. "location":"location",
  1439. "action":"tau__",
  1440. "guard":{
  1441. "exp":{
  1442. "op":"∧",
  1443. "left":{
  1444. "op":"∧",
  1445. "left":{
  1446. "op":">",
  1447. "left":"l",
  1448. "right":0
  1449. },
  1450. "right":{
  1451. "op":"=",
  1452. "left":"b",
  1453. "right":0
  1454. }
  1455. },
  1456. "right":{
  1457. "op":">",
  1458. "left":"n",
  1459. "right":0
  1460. }
  1461. }
  1462. },
  1463. "destinations":[
  1464. {
  1465. "probability":{
  1466. "exp":{
  1467. "op":"-",
  1468. "left":1,
  1469. "right":0.1000000
  1470. }
  1471. },
  1472. "location":"location",
  1473. "assignments":[
  1474. {
  1475. "ref":"b",
  1476. "value":1
  1477. },
  1478. {
  1479. "ref":"ip_mess",
  1480. "value":"b_ip0"
  1481. },
  1482. {
  1483. "ref":"n",
  1484. "value":{
  1485. "op":"-",
  1486. "left":"n",
  1487. "right":1
  1488. }
  1489. },
  1490. {
  1491. "ref":"b_ip7",
  1492. "value":0
  1493. },
  1494. {
  1495. "ref":"b_ip6",
  1496. "value":"b_ip7"
  1497. },
  1498. {
  1499. "ref":"b_ip5",
  1500. "value":"b_ip6"
  1501. },
  1502. {
  1503. "ref":"b_ip4",
  1504. "value":"b_ip5"
  1505. },
  1506. {
  1507. "ref":"b_ip3",
  1508. "value":"b_ip4"
  1509. },
  1510. {
  1511. "ref":"b_ip2",
  1512. "value":"b_ip3"
  1513. },
  1514. {
  1515. "ref":"b_ip1",
  1516. "value":"b_ip2"
  1517. },
  1518. {
  1519. "ref":"b_ip0",
  1520. "value":"b_ip1"
  1521. }
  1522. ],
  1523. "observables":[
  1524. ]
  1525. },
  1526. {
  1527. "probability":{
  1528. "exp":0.1000000
  1529. },
  1530. "location":"location",
  1531. "assignments":[
  1532. {
  1533. "ref":"n",
  1534. "value":{
  1535. "op":"-",
  1536. "left":"n",
  1537. "right":1
  1538. }
  1539. },
  1540. {
  1541. "ref":"b_ip7",
  1542. "value":0
  1543. },
  1544. {
  1545. "ref":"b_ip6",
  1546. "value":"b_ip7"
  1547. },
  1548. {
  1549. "ref":"b_ip5",
  1550. "value":"b_ip6"
  1551. },
  1552. {
  1553. "ref":"b_ip4",
  1554. "value":"b_ip5"
  1555. },
  1556. {
  1557. "ref":"b_ip3",
  1558. "value":"b_ip4"
  1559. },
  1560. {
  1561. "ref":"b_ip2",
  1562. "value":"b_ip3"
  1563. },
  1564. {
  1565. "ref":"b_ip1",
  1566. "value":"b_ip2"
  1567. },
  1568. {
  1569. "ref":"b_ip0",
  1570. "value":"b_ip1"
  1571. }
  1572. ],
  1573. "observables":[
  1574. ]
  1575. }
  1576. ]
  1577. },
  1578. {
  1579. "location":"location",
  1580. "action":"tau__",
  1581. "guard":{
  1582. "exp":{
  1583. "op":"∧",
  1584. "left":{
  1585. "op":"∧",
  1586. "left":{
  1587. "op":">",
  1588. "left":"l",
  1589. "right":0
  1590. },
  1591. "right":{
  1592. "op":"=",
  1593. "left":"b",
  1594. "right":0
  1595. }
  1596. },
  1597. "right":{
  1598. "op":">",
  1599. "left":"n0",
  1600. "right":0
  1601. }
  1602. }
  1603. },
  1604. "destinations":[
  1605. {
  1606. "probability":{
  1607. "exp":{
  1608. "op":"-",
  1609. "left":1,
  1610. "right":0.1000000
  1611. }
  1612. },
  1613. "location":"location",
  1614. "assignments":[
  1615. {
  1616. "ref":"b",
  1617. "value":2
  1618. },
  1619. {
  1620. "ref":"ip_mess",
  1621. "value":0
  1622. },
  1623. {
  1624. "ref":"n0",
  1625. "value":{
  1626. "op":"-",
  1627. "left":"n0",
  1628. "right":1
  1629. }
  1630. }
  1631. ],
  1632. "observables":[
  1633. ]
  1634. },
  1635. {
  1636. "probability":{
  1637. "exp":0.1000000
  1638. },
  1639. "location":"location",
  1640. "assignments":[
  1641. {
  1642. "ref":"n0",
  1643. "value":{
  1644. "op":"-",
  1645. "left":"n0",
  1646. "right":1
  1647. }
  1648. }
  1649. ],
  1650. "observables":[
  1651. ]
  1652. }
  1653. ]
  1654. },
  1655. {
  1656. "location":"location",
  1657. "action":"tau__",
  1658. "guard":{
  1659. "exp":{
  1660. "op":"∧",
  1661. "left":{
  1662. "op":"∧",
  1663. "left":{
  1664. "op":">",
  1665. "left":"l",
  1666. "right":0
  1667. },
  1668. "right":{
  1669. "op":"=",
  1670. "left":"b",
  1671. "right":0
  1672. }
  1673. },
  1674. "right":{
  1675. "op":">",
  1676. "left":"n1",
  1677. "right":0
  1678. }
  1679. }
  1680. },
  1681. "destinations":[
  1682. {
  1683. "probability":{
  1684. "exp":{
  1685. "op":"-",
  1686. "left":1,
  1687. "right":0.1000000
  1688. }
  1689. },
  1690. "location":"location",
  1691. "assignments":[
  1692. {
  1693. "ref":"b",
  1694. "value":2
  1695. },
  1696. {
  1697. "ref":"ip_mess",
  1698. "value":1
  1699. },
  1700. {
  1701. "ref":"n1",
  1702. "value":{
  1703. "op":"-",
  1704. "left":"n1",
  1705. "right":1
  1706. }
  1707. }
  1708. ],
  1709. "observables":[
  1710. ]
  1711. },
  1712. {
  1713. "probability":{
  1714. "exp":0.1000000
  1715. },
  1716. "location":"location",
  1717. "assignments":[
  1718. {
  1719. "ref":"n1",
  1720. "value":{
  1721. "op":"-",
  1722. "left":"n1",
  1723. "right":1
  1724. }
  1725. }
  1726. ],
  1727. "observables":[
  1728. ]
  1729. }
  1730. ]
  1731. },
  1732. {
  1733. "location":"location",
  1734. "action":"tau__",
  1735. "guard":{
  1736. "exp":{
  1737. "op":"∧",
  1738. "left":{
  1739. "op":"∧",
  1740. "left":{
  1741. "op":">",
  1742. "left":"l",
  1743. "right":0
  1744. },
  1745. "right":{
  1746. "op":"=",
  1747. "left":"b",
  1748. "right":1
  1749. }
  1750. },
  1751. "right":{
  1752. "op":"=",
  1753. "left":"ip_mess",
  1754. "right":0
  1755. }
  1756. }
  1757. },
  1758. "destinations":[
  1759. {
  1760. "probability":{
  1761. "exp":1
  1762. },
  1763. "location":"location",
  1764. "assignments":[
  1765. {
  1766. "ref":"b",
  1767. "value":0
  1768. },
  1769. {
  1770. "ref":"z",
  1771. "value":0
  1772. },
  1773. {
  1774. "ref":"n0",
  1775. "value":{
  1776. "op":"min",
  1777. "left":{
  1778. "op":"+",
  1779. "left":"n0",
  1780. "right":1
  1781. },
  1782. "right":20
  1783. }
  1784. },
  1785. {
  1786. "ref":"ip_mess",
  1787. "value":0
  1788. }
  1789. ],
  1790. "observables":[
  1791. ]
  1792. }
  1793. ]
  1794. },
  1795. {
  1796. "location":"location",
  1797. "action":"tau__",
  1798. "guard":{
  1799. "exp":{
  1800. "op":"∧",
  1801. "left":{
  1802. "op":"∧",
  1803. "left":{
  1804. "op":">",
  1805. "left":"l",
  1806. "right":0
  1807. },
  1808. "right":{
  1809. "op":"=",
  1810. "left":"b",
  1811. "right":1
  1812. }
  1813. },
  1814. "right":{
  1815. "op":"=",
  1816. "left":"ip_mess",
  1817. "right":1
  1818. }
  1819. }
  1820. },
  1821. "destinations":[
  1822. {
  1823. "probability":{
  1824. "exp":1
  1825. },
  1826. "location":"location",
  1827. "assignments":[
  1828. {
  1829. "ref":"b",
  1830. "value":0
  1831. },
  1832. {
  1833. "ref":"z",
  1834. "value":0
  1835. },
  1836. {
  1837. "ref":"n1",
  1838. "value":{
  1839. "op":"min",
  1840. "left":{
  1841. "op":"+",
  1842. "left":"n1",
  1843. "right":1
  1844. },
  1845. "right":8
  1846. }
  1847. },
  1848. {
  1849. "ref":"ip_mess",
  1850. "value":0
  1851. }
  1852. ],
  1853. "observables":[
  1854. ]
  1855. }
  1856. ]
  1857. },
  1858. {
  1859. "location":"location",
  1860. "action":"tau__",
  1861. "guard":{
  1862. "exp":{
  1863. "op":"∧",
  1864. "left":{
  1865. "op":"∧",
  1866. "left":{
  1867. "op":">",
  1868. "left":"l",
  1869. "right":0
  1870. },
  1871. "right":{
  1872. "op":"=",
  1873. "left":"b",
  1874. "right":1
  1875. }
  1876. },
  1877. "right":{
  1878. "op":"=",
  1879. "left":"ip_mess",
  1880. "right":2
  1881. }
  1882. }
  1883. },
  1884. "destinations":[
  1885. {
  1886. "probability":{
  1887. "exp":1
  1888. },
  1889. "location":"location",
  1890. "assignments":[
  1891. {
  1892. "ref":"b",
  1893. "value":0
  1894. },
  1895. {
  1896. "ref":"z",
  1897. "value":0
  1898. },
  1899. {
  1900. "ref":"ip_mess",
  1901. "value":0
  1902. }
  1903. ],
  1904. "observables":[
  1905. ]
  1906. }
  1907. ]
  1908. },
  1909. {
  1910. "location":"location",
  1911. "action":"rec",
  1912. "guard":{
  1913. "exp":{
  1914. "op":"∧",
  1915. "left":{
  1916. "op":">",
  1917. "left":"l",
  1918. "right":0
  1919. },
  1920. "right":{
  1921. "op":"=",
  1922. "left":"b",
  1923. "right":2
  1924. }
  1925. }
  1926. },
  1927. "destinations":[
  1928. {
  1929. "probability":{
  1930. "exp":1
  1931. },
  1932. "location":"location",
  1933. "assignments":[
  1934. {
  1935. "ref":"b",
  1936. "value":0
  1937. },
  1938. {
  1939. "ref":"z",
  1940. "value":0
  1941. },
  1942. {
  1943. "ref":"ip_mess",
  1944. "value":0
  1945. }
  1946. ],
  1947. "observables":[
  1948. ]
  1949. }
  1950. ]
  1951. }
  1952. ]
  1953. },
  1954. {
  1955. "name":"host0",
  1956. "locations":[
  1957. {
  1958. "name":"location"
  1959. }
  1960. ],
  1961. "initial-locations":[
  1962. "location"
  1963. ],
  1964. "edges":[
  1965. {
  1966. "location":"location",
  1967. "action":"reset",
  1968. "guard":{
  1969. "exp":{
  1970. "op":"=",
  1971. "left":"l",
  1972. "right":0
  1973. }
  1974. },
  1975. "destinations":[
  1976. {
  1977. "probability":{
  1978. "exp":1
  1979. },
  1980. "location":"location",
  1981. "assignments":[
  1982. {
  1983. "ref":"l",
  1984. "value":1
  1985. }
  1986. ]
  1987. }
  1988. ]
  1989. },
  1990. {
  1991. "location":"location",
  1992. "action":"rec",
  1993. "guard":{
  1994. "exp":{
  1995. "op":"=",
  1996. "left":"l",
  1997. "right":1
  1998. }
  1999. },
  2000. "destinations":[
  2001. {
  2002. "probability":{
  2003. "exp":1
  2004. },
  2005. "location":"location",
  2006. "assignments":[
  2007. ]
  2008. }
  2009. ]
  2010. },
  2011. {
  2012. "location":"location",
  2013. "action":"tau__",
  2014. "guard":{
  2015. "exp":{
  2016. "op":"∧",
  2017. "left":{
  2018. "op":"=",
  2019. "left":"l",
  2020. "right":1
  2021. },
  2022. "right":{
  2023. "op":"<",
  2024. "left":"coll",
  2025. "right":10
  2026. }
  2027. }
  2028. },
  2029. "destinations":[
  2030. {
  2031. "probability":{
  2032. "exp":{
  2033. "op":"*",
  2034. "left":{
  2035. "op":"/",
  2036. "left":1,
  2037. "right":3
  2038. },
  2039. "right":{
  2040. "op":"/",
  2041. "left":"N",
  2042. "right":65024
  2043. }
  2044. }
  2045. },
  2046. "location":"location",
  2047. "assignments":[
  2048. {
  2049. "ref":"l",
  2050. "value":2
  2051. },
  2052. {
  2053. "ref":"ip",
  2054. "value":1
  2055. },
  2056. {
  2057. "ref":"x",
  2058. "value":0
  2059. }
  2060. ],
  2061. "observables":[
  2062. ]
  2063. },
  2064. {
  2065. "probability":{
  2066. "exp":{
  2067. "op":"*",
  2068. "left":{
  2069. "op":"/",
  2070. "left":1,
  2071. "right":3
  2072. },
  2073. "right":{
  2074. "op":"/",
  2075. "left":"N",
  2076. "right":65024
  2077. }
  2078. }
  2079. },
  2080. "location":"location",
  2081. "assignments":[
  2082. {
  2083. "ref":"l",
  2084. "value":2
  2085. },
  2086. {
  2087. "ref":"ip",
  2088. "value":1
  2089. },
  2090. {
  2091. "ref":"x",
  2092. "value":1
  2093. }
  2094. ],
  2095. "observables":[
  2096. ]
  2097. },
  2098. {
  2099. "probability":{
  2100. "exp":{
  2101. "op":"*",
  2102. "left":{
  2103. "op":"/",
  2104. "left":1,
  2105. "right":3
  2106. },
  2107. "right":{
  2108. "op":"/",
  2109. "left":"N",
  2110. "right":65024
  2111. }
  2112. }
  2113. },
  2114. "location":"location",
  2115. "assignments":[
  2116. {
  2117. "ref":"l",
  2118. "value":2
  2119. },
  2120. {
  2121. "ref":"ip",
  2122. "value":1
  2123. },
  2124. {
  2125. "ref":"x",
  2126. "value":2
  2127. }
  2128. ],
  2129. "observables":[
  2130. ]
  2131. },
  2132. {
  2133. "probability":{
  2134. "exp":{
  2135. "op":"*",
  2136. "left":{
  2137. "op":"/",
  2138. "left":1,
  2139. "right":3
  2140. },
  2141. "right":{
  2142. "op":"-",
  2143. "left":1,
  2144. "right":{
  2145. "op":"/",
  2146. "left":"N",
  2147. "right":65024
  2148. }
  2149. }
  2150. }
  2151. },
  2152. "location":"location",
  2153. "assignments":[
  2154. {
  2155. "ref":"l",
  2156. "value":2
  2157. },
  2158. {
  2159. "ref":"ip",
  2160. "value":2
  2161. },
  2162. {
  2163. "ref":"x",
  2164. "value":0
  2165. }
  2166. ],
  2167. "observables":[
  2168. ]
  2169. },
  2170. {
  2171. "probability":{
  2172. "exp":{
  2173. "op":"*",
  2174. "left":{
  2175. "op":"/",
  2176. "left":1,
  2177. "right":3
  2178. },
  2179. "right":{
  2180. "op":"-",
  2181. "left":1,
  2182. "right":{
  2183. "op":"/",
  2184. "left":"N",
  2185. "right":65024
  2186. }
  2187. }
  2188. }
  2189. },
  2190. "location":"location",
  2191. "assignments":[
  2192. {
  2193. "ref":"l",
  2194. "value":2
  2195. },
  2196. {
  2197. "ref":"ip",
  2198. "value":2
  2199. },
  2200. {
  2201. "ref":"x",
  2202. "value":1
  2203. }
  2204. ],
  2205. "observables":[
  2206. ]
  2207. },
  2208. {
  2209. "probability":{
  2210. "exp":{
  2211. "op":"*",
  2212. "left":{
  2213. "op":"/",
  2214. "left":1,
  2215. "right":3
  2216. },
  2217. "right":{
  2218. "op":"-",
  2219. "left":1,
  2220. "right":{
  2221. "op":"/",
  2222. "left":"N",
  2223. "right":65024
  2224. }
  2225. }
  2226. }
  2227. },
  2228. "location":"location",
  2229. "assignments":[
  2230. {
  2231. "ref":"l",
  2232. "value":2
  2233. },
  2234. {
  2235. "ref":"ip",
  2236. "value":2
  2237. },
  2238. {
  2239. "ref":"x",
  2240. "value":2
  2241. }
  2242. ],
  2243. "observables":[
  2244. ]
  2245. }
  2246. ]
  2247. },
  2248. {
  2249. "location":"location",
  2250. "action":"time",
  2251. "guard":{
  2252. "exp":{
  2253. "op":"∧",
  2254. "left":{
  2255. "op":"∧",
  2256. "left":{
  2257. "op":"=",
  2258. "left":"l",
  2259. "right":1
  2260. },
  2261. "right":{
  2262. "op":"=",
  2263. "left":"coll",
  2264. "right":10
  2265. }
  2266. },
  2267. "right":{
  2268. "op":"<",
  2269. "left":"x",
  2270. "right":60
  2271. }
  2272. }
  2273. },
  2274. "destinations":[
  2275. {
  2276. "probability":{
  2277. "exp":1
  2278. },
  2279. "location":"location",
  2280. "assignments":[
  2281. {
  2282. "ref":"x",
  2283. "value":{
  2284. "op":"min",
  2285. "left":{
  2286. "op":"+",
  2287. "left":"x",
  2288. "right":1
  2289. },
  2290. "right":60
  2291. }
  2292. }
  2293. ]
  2294. }
  2295. ]
  2296. },
  2297. {
  2298. "location":"location",
  2299. "action":"tau__",
  2300. "guard":{
  2301. "exp":{
  2302. "op":"∧",
  2303. "left":{
  2304. "op":"∧",
  2305. "left":{
  2306. "op":"=",
  2307. "left":"l",
  2308. "right":1
  2309. },
  2310. "right":{
  2311. "op":"=",
  2312. "left":"coll",
  2313. "right":10
  2314. }
  2315. },
  2316. "right":{
  2317. "op":"=",
  2318. "left":"x",
  2319. "right":60
  2320. }
  2321. }
  2322. },
  2323. "destinations":[
  2324. {
  2325. "probability":{
  2326. "exp":{
  2327. "op":"*",
  2328. "left":{
  2329. "op":"/",
  2330. "left":1,
  2331. "right":3
  2332. },
  2333. "right":{
  2334. "op":"/",
  2335. "left":"N",
  2336. "right":65024
  2337. }
  2338. }
  2339. },
  2340. "location":"location",
  2341. "assignments":[
  2342. {
  2343. "ref":"l",
  2344. "value":2
  2345. },
  2346. {
  2347. "ref":"ip",
  2348. "value":1
  2349. },
  2350. {
  2351. "ref":"x",
  2352. "value":0
  2353. }
  2354. ],
  2355. "observables":[
  2356. ]
  2357. },
  2358. {
  2359. "probability":{
  2360. "exp":{
  2361. "op":"*",
  2362. "left":{
  2363. "op":"/",
  2364. "left":1,
  2365. "right":3
  2366. },
  2367. "right":{
  2368. "op":"/",
  2369. "left":"N",
  2370. "right":65024
  2371. }
  2372. }
  2373. },
  2374. "location":"location",
  2375. "assignments":[
  2376. {
  2377. "ref":"l",
  2378. "value":2
  2379. },
  2380. {
  2381. "ref":"ip",
  2382. "value":1
  2383. },
  2384. {
  2385. "ref":"x",
  2386. "value":1
  2387. }
  2388. ],
  2389. "observables":[
  2390. ]
  2391. },
  2392. {
  2393. "probability":{
  2394. "exp":{
  2395. "op":"*",
  2396. "left":{
  2397. "op":"/",
  2398. "left":1,
  2399. "right":3
  2400. },
  2401. "right":{
  2402. "op":"/",
  2403. "left":"N",
  2404. "right":65024
  2405. }
  2406. }
  2407. },
  2408. "location":"location",
  2409. "assignments":[
  2410. {
  2411. "ref":"l",
  2412. "value":2
  2413. },
  2414. {
  2415. "ref":"ip",
  2416. "value":1
  2417. },
  2418. {
  2419. "ref":"x",
  2420. "value":2
  2421. }
  2422. ],
  2423. "observables":[
  2424. ]
  2425. },
  2426. {
  2427. "probability":{
  2428. "exp":{
  2429. "op":"*",
  2430. "left":{
  2431. "op":"/",
  2432. "left":1,
  2433. "right":3
  2434. },
  2435. "right":{
  2436. "op":"-",
  2437. "left":1,
  2438. "right":{
  2439. "op":"/",
  2440. "left":"N",
  2441. "right":65024
  2442. }
  2443. }
  2444. }
  2445. },
  2446. "location":"location",
  2447. "assignments":[
  2448. {
  2449. "ref":"l",
  2450. "value":2
  2451. },
  2452. {
  2453. "ref":"ip",
  2454. "value":2
  2455. },
  2456. {
  2457. "ref":"x",
  2458. "value":0
  2459. }
  2460. ],
  2461. "observables":[
  2462. ]
  2463. },
  2464. {
  2465. "probability":{
  2466. "exp":{
  2467. "op":"*",
  2468. "left":{
  2469. "op":"/",
  2470. "left":1,
  2471. "right":3
  2472. },
  2473. "right":{
  2474. "op":"-",
  2475. "left":1,
  2476. "right":{
  2477. "op":"/",
  2478. "left":"N",
  2479. "right":65024
  2480. }
  2481. }
  2482. }
  2483. },
  2484. "location":"location",
  2485. "assignments":[
  2486. {
  2487. "ref":"l",
  2488. "value":2
  2489. },
  2490. {
  2491. "ref":"ip",
  2492. "value":2
  2493. },
  2494. {
  2495. "ref":"x",
  2496. "value":1
  2497. }
  2498. ],
  2499. "observables":[
  2500. ]
  2501. },
  2502. {
  2503. "probability":{
  2504. "exp":{
  2505. "op":"*",
  2506. "left":{
  2507. "op":"/",
  2508. "left":1,
  2509. "right":3
  2510. },
  2511. "right":{
  2512. "op":"-",
  2513. "left":1,
  2514. "right":{
  2515. "op":"/",
  2516. "left":"N",
  2517. "right":65024
  2518. }
  2519. }
  2520. }
  2521. },
  2522. "location":"location",
  2523. "assignments":[
  2524. {
  2525. "ref":"l",
  2526. "value":2
  2527. },
  2528. {
  2529. "ref":"ip",
  2530. "value":2
  2531. },
  2532. {
  2533. "ref":"x",
  2534. "value":2
  2535. }
  2536. ],
  2537. "observables":[
  2538. ]
  2539. }
  2540. ]
  2541. },
  2542. {
  2543. "location":"location",
  2544. "action":"time",
  2545. "guard":{
  2546. "exp":{
  2547. "op":"∧",
  2548. "left":{
  2549. "op":"=",
  2550. "left":"l",
  2551. "right":2
  2552. },
  2553. "right":{
  2554. "op":"<",
  2555. "left":"x",
  2556. "right":2
  2557. }
  2558. }
  2559. },
  2560. "destinations":[
  2561. {
  2562. "probability":{
  2563. "exp":1
  2564. },
  2565. "location":"location",
  2566. "assignments":[
  2567. {
  2568. "ref":"x",
  2569. "value":{
  2570. "op":"min",
  2571. "left":{
  2572. "op":"+",
  2573. "left":"x",
  2574. "right":1
  2575. },
  2576. "right":2
  2577. }
  2578. }
  2579. ]
  2580. }
  2581. ]
  2582. },
  2583. {
  2584. "location":"location",
  2585. "action":"send",
  2586. "guard":{
  2587. "exp":{
  2588. "op":"∧",
  2589. "left":{
  2590. "op":"∧",
  2591. "left":{
  2592. "op":"=",
  2593. "left":"l",
  2594. "right":2
  2595. },
  2596. "right":{
  2597. "op":"=",
  2598. "left":"x",
  2599. "right":2
  2600. }
  2601. },
  2602. "right":{
  2603. "op":"<",
  2604. "left":"probes",
  2605. "right":"K"
  2606. }
  2607. }
  2608. },
  2609. "destinations":[
  2610. {
  2611. "probability":{
  2612. "exp":1
  2613. },
  2614. "location":"location",
  2615. "assignments":[
  2616. {
  2617. "ref":"x",
  2618. "value":0
  2619. },
  2620. {
  2621. "ref":"probes",
  2622. "value":{
  2623. "op":"+",
  2624. "left":"probes",
  2625. "right":1
  2626. }
  2627. }
  2628. ]
  2629. }
  2630. ]
  2631. },
  2632. {
  2633. "location":"location",
  2634. "action":"tau__",
  2635. "guard":{
  2636. "exp":{
  2637. "op":"∧",
  2638. "left":{
  2639. "op":"∧",
  2640. "left":{
  2641. "op":"=",
  2642. "left":"l",
  2643. "right":2
  2644. },
  2645. "right":{
  2646. "op":"=",
  2647. "left":"x",
  2648. "right":2
  2649. }
  2650. },
  2651. "right":{
  2652. "op":"=",
  2653. "left":"probes",
  2654. "right":"K"
  2655. }
  2656. }
  2657. },
  2658. "destinations":[
  2659. {
  2660. "probability":{
  2661. "exp":1
  2662. },
  2663. "location":"location",
  2664. "assignments":[
  2665. {
  2666. "ref":"l",
  2667. "value":3
  2668. },
  2669. {
  2670. "ref":"probes",
  2671. "value":0
  2672. },
  2673. {
  2674. "ref":"coll",
  2675. "value":0
  2676. },
  2677. {
  2678. "ref":"x",
  2679. "value":0
  2680. }
  2681. ],
  2682. "observables":[
  2683. ]
  2684. }
  2685. ]
  2686. },
  2687. {
  2688. "location":"location",
  2689. "action":"rec",
  2690. "guard":{
  2691. "exp":{
  2692. "op":"∧",
  2693. "left":{
  2694. "op":"=",
  2695. "left":"l",
  2696. "right":2
  2697. },
  2698. "right":{
  2699. "op":"≠",
  2700. "left":"ip_mess",
  2701. "right":"ip"
  2702. }
  2703. }
  2704. },
  2705. "destinations":[
  2706. {
  2707. "probability":{
  2708. "exp":1
  2709. },
  2710. "location":"location",
  2711. "assignments":[
  2712. {
  2713. "ref":"l",
  2714. "value":"l"
  2715. }
  2716. ]
  2717. }
  2718. ]
  2719. },
  2720. {
  2721. "location":"location",
  2722. "action":"rec",
  2723. "guard":{
  2724. "exp":{
  2725. "op":"∧",
  2726. "left":{
  2727. "op":"=",
  2728. "left":"l",
  2729. "right":2
  2730. },
  2731. "right":{
  2732. "op":"=",
  2733. "left":"ip_mess",
  2734. "right":"ip"
  2735. }
  2736. }
  2737. },
  2738. "destinations":[
  2739. {
  2740. "probability":{
  2741. "exp":1
  2742. },
  2743. "location":"location",
  2744. "assignments":[
  2745. {
  2746. "ref":"l",
  2747. "value":0
  2748. },
  2749. {
  2750. "ref":"coll",
  2751. "value":{
  2752. "op":"min",
  2753. "left":{
  2754. "op":"+",
  2755. "left":"coll",
  2756. "right":1
  2757. },
  2758. "right":10
  2759. }
  2760. },
  2761. {
  2762. "ref":"x",
  2763. "value":0
  2764. },
  2765. {
  2766. "ref":"probes",
  2767. "value":0
  2768. }
  2769. ]
  2770. }
  2771. ]
  2772. },
  2773. {
  2774. "location":"location",
  2775. "action":"time",
  2776. "guard":{
  2777. "exp":{
  2778. "op":"∧",
  2779. "left":{
  2780. "op":"∧",
  2781. "left":{
  2782. "op":"∧",
  2783. "left":{
  2784. "op":"=",
  2785. "left":"l",
  2786. "right":3
  2787. },
  2788. "right":{
  2789. "op":"=",
  2790. "left":"mess",
  2791. "right":0
  2792. }
  2793. },
  2794. "right":{
  2795. "op":"=",
  2796. "left":"defend",
  2797. "right":0
  2798. }
  2799. },
  2800. "right":{
  2801. "op":"<",
  2802. "left":"x",
  2803. "right":2
  2804. }
  2805. }
  2806. },
  2807. "destinations":[
  2808. {
  2809. "probability":{
  2810. "exp":1
  2811. },
  2812. "location":"location",
  2813. "assignments":[
  2814. {
  2815. "ref":"x",
  2816. "value":{
  2817. "op":"min",
  2818. "left":{
  2819. "op":"+",
  2820. "left":"x",
  2821. "right":1
  2822. },
  2823. "right":60
  2824. }
  2825. }
  2826. ]
  2827. }
  2828. ]
  2829. },
  2830. {
  2831. "location":"location",
  2832. "action":"time",
  2833. "guard":{
  2834. "exp":{
  2835. "op":"∧",
  2836. "left":{
  2837. "op":"∧",
  2838. "left":{
  2839. "op":"∧",
  2840. "left":{
  2841. "op":"=",
  2842. "left":"l",
  2843. "right":3
  2844. },
  2845. "right":{
  2846. "op":"=",
  2847. "left":"mess",
  2848. "right":0
  2849. }
  2850. },
  2851. "right":{
  2852. "op":"=",
  2853. "left":"defend",
  2854. "right":1
  2855. }
  2856. },
  2857. "right":{
  2858. "op":"<",
  2859. "left":"x",
  2860. "right":2
  2861. }
  2862. }
  2863. },
  2864. "destinations":[
  2865. {
  2866. "probability":{
  2867. "exp":1
  2868. },
  2869. "location":"location",
  2870. "assignments":[
  2871. {
  2872. "ref":"x",
  2873. "value":{
  2874. "op":"min",
  2875. "left":{
  2876. "op":"+",
  2877. "left":"x",
  2878. "right":1
  2879. },
  2880. "right":60
  2881. }
  2882. },
  2883. {
  2884. "ref":"y",
  2885. "value":{
  2886. "op":"min",
  2887. "left":{
  2888. "op":"+",
  2889. "left":"y",
  2890. "right":1
  2891. },
  2892. "right":10
  2893. }
  2894. }
  2895. ]
  2896. }
  2897. ]
  2898. },
  2899. {
  2900. "location":"location",
  2901. "action":"rec",
  2902. "guard":{
  2903. "exp":{
  2904. "op":"∧",
  2905. "left":{
  2906. "op":"∧",
  2907. "left":{
  2908. "op":"∧",
  2909. "left":{
  2910. "op":"=",
  2911. "left":"l",
  2912. "right":3
  2913. },
  2914. "right":{
  2915. "op":"=",
  2916. "left":"mess",
  2917. "right":0
  2918. }
  2919. },
  2920. "right":{
  2921. "op":"=",
  2922. "left":"ip_mess",
  2923. "right":"ip"
  2924. }
  2925. },
  2926. "right":{
  2927. "op":"∨",
  2928. "left":{
  2929. "op":"=",
  2930. "left":"defend",
  2931. "right":0
  2932. },
  2933. "right":{
  2934. "op":"≥",
  2935. "left":"y",
  2936. "right":10
  2937. }
  2938. }
  2939. }
  2940. },
  2941. "destinations":[
  2942. {
  2943. "probability":{
  2944. "exp":1
  2945. },
  2946. "location":"location",
  2947. "assignments":[
  2948. {
  2949. "ref":"defend",
  2950. "value":1
  2951. },
  2952. {
  2953. "ref":"mess",
  2954. "value":1
  2955. },
  2956. {
  2957. "ref":"y",
  2958. "value":0
  2959. }
  2960. ]
  2961. }
  2962. ]
  2963. },
  2964. {
  2965. "location":"location",
  2966. "action":"rec",
  2967. "guard":{
  2968. "exp":{
  2969. "op":"∧",
  2970. "left":{
  2971. "op":"∧",
  2972. "left":{
  2973. "op":"∧",
  2974. "left":{
  2975. "op":"=",
  2976. "left":"l",
  2977. "right":3
  2978. },
  2979. "right":{
  2980. "op":"=",
  2981. "left":"mess",
  2982. "right":0
  2983. }
  2984. },
  2985. "right":{
  2986. "op":"=",
  2987. "left":"ip_mess",
  2988. "right":"ip"
  2989. }
  2990. },
  2991. "right":{
  2992. "op":"∨",
  2993. "left":{
  2994. "op":"=",
  2995. "left":"defend",
  2996. "right":0
  2997. },
  2998. "right":{
  2999. "op":"<",
  3000. "left":"y",
  3001. "right":10
  3002. }
  3003. }
  3004. }
  3005. },
  3006. "destinations":[
  3007. {
  3008. "probability":{
  3009. "exp":1
  3010. },
  3011. "location":"location",
  3012. "assignments":[
  3013. {
  3014. "ref":"l",
  3015. "value":0
  3016. },
  3017. {
  3018. "ref":"probes",
  3019. "value":0
  3020. },
  3021. {
  3022. "ref":"defend",
  3023. "value":0
  3024. },
  3025. {
  3026. "ref":"x",
  3027. "value":0
  3028. },
  3029. {
  3030. "ref":"y",
  3031. "value":0
  3032. }
  3033. ]
  3034. }
  3035. ]
  3036. },
  3037. {
  3038. "location":"location",
  3039. "action":"rec",
  3040. "guard":{
  3041. "exp":{
  3042. "op":"∧",
  3043. "left":{
  3044. "op":"∧",
  3045. "left":{
  3046. "op":"=",
  3047. "left":"l",
  3048. "right":3
  3049. },
  3050. "right":{
  3051. "op":"=",
  3052. "left":"mess",
  3053. "right":0
  3054. }
  3055. },
  3056. "right":{
  3057. "op":"≠",
  3058. "left":"ip_mess",
  3059. "right":"ip"
  3060. }
  3061. }
  3062. },
  3063. "destinations":[
  3064. {
  3065. "probability":{
  3066. "exp":1
  3067. },
  3068. "location":"location",
  3069. "assignments":[
  3070. {
  3071. "ref":"l",
  3072. "value":"l"
  3073. }
  3074. ]
  3075. }
  3076. ]
  3077. },
  3078. {
  3079. "location":"location",
  3080. "action":"send",
  3081. "guard":{
  3082. "exp":{
  3083. "op":"∧",
  3084. "left":{
  3085. "op":"=",
  3086. "left":"l",
  3087. "right":3
  3088. },
  3089. "right":{
  3090. "op":"=",
  3091. "left":"mess",
  3092. "right":1
  3093. }
  3094. }
  3095. },
  3096. "destinations":[
  3097. {
  3098. "probability":{
  3099. "exp":1
  3100. },
  3101. "location":"location",
  3102. "assignments":[
  3103. {
  3104. "ref":"mess",
  3105. "value":0
  3106. }
  3107. ]
  3108. }
  3109. ]
  3110. },
  3111. {
  3112. "location":"location",
  3113. "action":"send",
  3114. "guard":{
  3115. "exp":{
  3116. "op":"∧",
  3117. "left":{
  3118. "op":"∧",
  3119. "left":{
  3120. "op":"∧",
  3121. "left":{
  3122. "op":"=",
  3123. "left":"l",
  3124. "right":3
  3125. },
  3126. "right":{
  3127. "op":"=",
  3128. "left":"mess",
  3129. "right":0
  3130. }
  3131. },
  3132. "right":{
  3133. "op":"=",
  3134. "left":"x",
  3135. "right":2
  3136. }
  3137. },
  3138. "right":{
  3139. "op":"<",
  3140. "left":"probes",
  3141. "right":1
  3142. }
  3143. }
  3144. },
  3145. "destinations":[
  3146. {
  3147. "probability":{
  3148. "exp":1
  3149. },
  3150. "location":"location",
  3151. "assignments":[
  3152. {
  3153. "ref":"x",
  3154. "value":0
  3155. },
  3156. {
  3157. "ref":"probes",
  3158. "value":{
  3159. "op":"+",
  3160. "left":"probes",
  3161. "right":1
  3162. }
  3163. }
  3164. ]
  3165. }
  3166. ]
  3167. },
  3168. {
  3169. "location":"location",
  3170. "action":"send",
  3171. "guard":{
  3172. "exp":{
  3173. "op":"∧",
  3174. "left":{
  3175. "op":"∧",
  3176. "left":{
  3177. "op":"∧",
  3178. "left":{
  3179. "op":"=",
  3180. "left":"l",
  3181. "right":3
  3182. },
  3183. "right":{
  3184. "op":"=",
  3185. "left":"mess",
  3186. "right":0
  3187. }
  3188. },
  3189. "right":{
  3190. "op":"=",
  3191. "left":"x",
  3192. "right":2
  3193. }
  3194. },
  3195. "right":{
  3196. "op":"=",
  3197. "left":"probes",
  3198. "right":1
  3199. }
  3200. }
  3201. },
  3202. "destinations":[
  3203. {
  3204. "probability":{
  3205. "exp":1
  3206. },
  3207. "location":"location",
  3208. "assignments":[
  3209. {
  3210. "ref":"l",
  3211. "value":4
  3212. },
  3213. {
  3214. "ref":"x",
  3215. "value":0
  3216. },
  3217. {
  3218. "ref":"y",
  3219. "value":0
  3220. },
  3221. {
  3222. "ref":"probes",
  3223. "value":0
  3224. }
  3225. ]
  3226. }
  3227. ]
  3228. },
  3229. {
  3230. "location":"location",
  3231. "action":"tau__",
  3232. "guard":{
  3233. "exp":{
  3234. "op":"=",
  3235. "left":"l",
  3236. "right":4
  3237. }
  3238. },
  3239. "destinations":[
  3240. {
  3241. "probability":{
  3242. "exp":1
  3243. },
  3244. "location":"location",
  3245. "assignments":[
  3246. ],
  3247. "observables":[
  3248. ]
  3249. }
  3250. ]
  3251. }
  3252. ]
  3253. }
  3254. ],
  3255. "system":{
  3256. "elements":[
  3257. {
  3258. "automaton":"environment"
  3259. },
  3260. {
  3261. "automaton":"host0"
  3262. }
  3263. ],
  3264. "syncs":[
  3265. {
  3266. "synchronise":[
  3267. "reset",
  3268. "reset"
  3269. ],
  3270. "result":"reset"
  3271. },
  3272. {
  3273. "synchronise":[
  3274. "time",
  3275. "time"
  3276. ],
  3277. "result":"time"
  3278. },
  3279. {
  3280. "synchronise":[
  3281. "send",
  3282. "send"
  3283. ],
  3284. "result":"send"
  3285. },
  3286. {
  3287. "synchronise":[
  3288. "rec",
  3289. "rec"
  3290. ],
  3291. "result":"rec"
  3292. },
  3293. {
  3294. "synchronise":[
  3295. "tau__",
  3296. null
  3297. ],
  3298. "result":"tau__"
  3299. },
  3300. {
  3301. "synchronise":[
  3302. null,
  3303. "tau__"
  3304. ],
  3305. "result":"tau__"
  3306. }
  3307. ]
  3308. }
  3309. }