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.

2128 lines
32 KiB

  1. {
  2. "jani-version": 1,
  3. "name": "modelName",
  4. "type": "mdp",
  5. "actions": [
  6. {
  7. "name": "done"
  8. }
  9. ],
  10. "variables": [
  11. {
  12. "name": "counter",
  13. "type": {
  14. "kind": "bounded",
  15. "base": "int",
  16. "lower-bound": 0,
  17. "upper-bound": 60
  18. },
  19. "initial-value": 30
  20. },
  21. {
  22. "name": "fin1",
  23. "type": {
  24. "kind": "bounded",
  25. "base": "int",
  26. "lower-bound": 0,
  27. "upper-bound": 1
  28. },
  29. "initial-value": 0
  30. },
  31. {
  32. "name": "fin2",
  33. "type": {
  34. "kind": "bounded",
  35. "base": "int",
  36. "lower-bound": 0,
  37. "upper-bound": 1
  38. },
  39. "initial-value": 0
  40. },
  41. {
  42. "name": "fin3",
  43. "type": {
  44. "kind": "bounded",
  45. "base": "int",
  46. "lower-bound": 0,
  47. "upper-bound": 1
  48. },
  49. "initial-value": 0
  50. },
  51. {
  52. "name": "fin4",
  53. "type": {
  54. "kind": "bounded",
  55. "base": "int",
  56. "lower-bound": 0,
  57. "upper-bound": 1
  58. },
  59. "initial-value": 0
  60. },
  61. {
  62. "name": "fin5",
  63. "type": {
  64. "kind": "bounded",
  65. "base": "int",
  66. "lower-bound": 0,
  67. "upper-bound": 1
  68. },
  69. "initial-value": 0
  70. },
  71. {
  72. "name": "fin6",
  73. "type": {
  74. "kind": "bounded",
  75. "base": "int",
  76. "lower-bound": 0,
  77. "upper-bound": 1
  78. },
  79. "initial-value": 0
  80. },
  81. {
  82. "name": "coin1",
  83. "type": {
  84. "kind": "bounded",
  85. "base": "int",
  86. "lower-bound": 0,
  87. "upper-bound": 1
  88. },
  89. "initial-value": 0
  90. },
  91. {
  92. "name": "coin2",
  93. "type": {
  94. "kind": "bounded",
  95. "base": "int",
  96. "lower-bound": 0,
  97. "upper-bound": 1
  98. },
  99. "initial-value": 0
  100. },
  101. {
  102. "name": "coin3",
  103. "type": {
  104. "kind": "bounded",
  105. "base": "int",
  106. "lower-bound": 0,
  107. "upper-bound": 1
  108. },
  109. "initial-value": 0
  110. },
  111. {
  112. "name": "coin4",
  113. "type": {
  114. "kind": "bounded",
  115. "base": "int",
  116. "lower-bound": 0,
  117. "upper-bound": 1
  118. },
  119. "initial-value": 0
  120. },
  121. {
  122. "name": "coin5",
  123. "type": {
  124. "kind": "bounded",
  125. "base": "int",
  126. "lower-bound": 0,
  127. "upper-bound": 1
  128. },
  129. "initial-value": 0
  130. },
  131. {
  132. "name": "coin6",
  133. "type": {
  134. "kind": "bounded",
  135. "base": "int",
  136. "lower-bound": 0,
  137. "upper-bound": 1
  138. },
  139. "initial-value": 0
  140. }
  141. ],
  142. "rewards": [
  143. {
  144. "name": "coin_flips"
  145. }
  146. ],
  147. "properties": [
  148. {
  149. "name": "C1",
  150. "bound": 1,
  151. "op": "≥",
  152. "reach": {
  153. "op": "∧",
  154. "args": [
  155. {
  156. "op": "∧",
  157. "args": [
  158. {
  159. "op": "∧",
  160. "args": [
  161. {
  162. "op": "∧",
  163. "args": [
  164. {
  165. "op": "∧",
  166. "args": [
  167. {
  168. "op": "=",
  169. "args": [
  170. "fin1",
  171. 1
  172. ]
  173. },
  174. {
  175. "op": "=",
  176. "args": [
  177. "fin2",
  178. 1
  179. ]
  180. }
  181. ]
  182. },
  183. {
  184. "op": "=",
  185. "args": [
  186. "fin3",
  187. 1
  188. ]
  189. }
  190. ]
  191. },
  192. {
  193. "op": "=",
  194. "args": [
  195. "fin4",
  196. 1
  197. ]
  198. }
  199. ]
  200. },
  201. {
  202. "op": "=",
  203. "args": [
  204. "fin5",
  205. 1
  206. ]
  207. }
  208. ]
  209. },
  210. {
  211. "op": "=",
  212. "args": [
  213. "fin6",
  214. 1
  215. ]
  216. }
  217. ]
  218. },
  219. "type": "probability-comparison"
  220. },
  221. {
  222. "name": "C2",
  223. "reach": {
  224. "op": "∧",
  225. "args": [
  226. {
  227. "op": "∧",
  228. "args": [
  229. {
  230. "op": "∧",
  231. "args": [
  232. {
  233. "op": "∧",
  234. "args": [
  235. {
  236. "op": "∧",
  237. "args": [
  238. {
  239. "op": "∧",
  240. "args": [
  241. {
  242. "op": "∧",
  243. "args": [
  244. {
  245. "op": "∧",
  246. "args": [
  247. {
  248. "op": "∧",
  249. "args": [
  250. {
  251. "op": "∧",
  252. "args": [
  253. {
  254. "op": "∧",
  255. "args": [
  256. {
  257. "op": "=",
  258. "args": [
  259. "fin1",
  260. 1
  261. ]
  262. },
  263. {
  264. "op": "=",
  265. "args": [
  266. "fin2",
  267. 1
  268. ]
  269. }
  270. ]
  271. },
  272. {
  273. "op": "=",
  274. "args": [
  275. "fin3",
  276. 1
  277. ]
  278. }
  279. ]
  280. },
  281. {
  282. "op": "=",
  283. "args": [
  284. "fin4",
  285. 1
  286. ]
  287. }
  288. ]
  289. },
  290. {
  291. "op": "=",
  292. "args": [
  293. "fin5",
  294. 1
  295. ]
  296. }
  297. ]
  298. },
  299. {
  300. "op": "=",
  301. "args": [
  302. "fin6",
  303. 1
  304. ]
  305. }
  306. ]
  307. },
  308. {
  309. "op": "=",
  310. "args": [
  311. "coin1",
  312. 1
  313. ]
  314. }
  315. ]
  316. },
  317. {
  318. "op": "=",
  319. "args": [
  320. "coin2",
  321. 1
  322. ]
  323. }
  324. ]
  325. },
  326. {
  327. "op": "=",
  328. "args": [
  329. "coin3",
  330. 1
  331. ]
  332. }
  333. ]
  334. },
  335. {
  336. "op": "=",
  337. "args": [
  338. "coin4",
  339. 1
  340. ]
  341. }
  342. ]
  343. },
  344. {
  345. "op": "=",
  346. "args": [
  347. "coin5",
  348. 1
  349. ]
  350. }
  351. ]
  352. },
  353. {
  354. "op": "=",
  355. "args": [
  356. "coin6",
  357. 1
  358. ]
  359. }
  360. ]
  361. },
  362. "type": "probability-min-query"
  363. }
  364. ],
  365. "automata": [
  366. {
  367. "name": "Tourist1",
  368. "variables": [],
  369. "locations": [
  370. {
  371. "name": "l_0"
  372. },
  373. {
  374. "name": "l_1"
  375. },
  376. {
  377. "name": "l_2"
  378. },
  379. {
  380. "name": "l_3"
  381. }
  382. ],
  383. "initial-location": "l_0",
  384. "edges": [
  385. {
  386. "location": "l_0",
  387. "guard": true,
  388. "destinations": [
  389. {
  390. "probability": {
  391. "op": "/",
  392. "args": [
  393. 1,
  394. 2
  395. ]
  396. },
  397. "location": "l_1",
  398. "assignments": [
  399. {
  400. "ref": "coin1",
  401. "value": 0
  402. }
  403. ],
  404. "reward": [
  405. {
  406. "ref": "coin_flips",
  407. "value": 1
  408. }
  409. ]
  410. },
  411. {
  412. "probability": {
  413. "op": "/",
  414. "args": [
  415. 1,
  416. 2
  417. ]
  418. },
  419. "location": "l_1",
  420. "assignments": [
  421. {
  422. "ref": "coin1",
  423. "value": 1
  424. }
  425. ],
  426. "reward": [
  427. {
  428. "ref": "coin_flips",
  429. "value": 1
  430. }
  431. ]
  432. }
  433. ]
  434. },
  435. {
  436. "location": "l_1",
  437. "guard": {
  438. "op": "∧",
  439. "args": [
  440. {
  441. "op": "=",
  442. "args": [
  443. "coin1",
  444. 0
  445. ]
  446. },
  447. {
  448. "op": ">",
  449. "args": [
  450. "counter",
  451. 0
  452. ]
  453. }
  454. ]
  455. },
  456. "destinations": [
  457. {
  458. "probability": 1,
  459. "location": "l_2",
  460. "assignments": [
  461. {
  462. "ref": "counter",
  463. "value": {
  464. "op": "-",
  465. "args": [
  466. "counter",
  467. 1
  468. ]
  469. }
  470. }
  471. ]
  472. }
  473. ]
  474. },
  475. {
  476. "location": "l_1",
  477. "guard": {
  478. "op": "∧",
  479. "args": [
  480. {
  481. "op": "=",
  482. "args": [
  483. "coin1",
  484. 1
  485. ]
  486. },
  487. {
  488. "op": "<",
  489. "args": [
  490. "counter",
  491. 60
  492. ]
  493. }
  494. ]
  495. },
  496. "destinations": [
  497. {
  498. "probability": 1,
  499. "location": "l_2",
  500. "assignments": [
  501. {
  502. "ref": "counter",
  503. "value": {
  504. "op": "+",
  505. "args": [
  506. "counter",
  507. 1
  508. ]
  509. }
  510. },
  511. {
  512. "ref": "coin1",
  513. "value": 0
  514. }
  515. ]
  516. }
  517. ]
  518. },
  519. {
  520. "location": "l_2",
  521. "guard": {
  522. "op": "≤",
  523. "args": [
  524. "counter",
  525. 6
  526. ]
  527. },
  528. "destinations": [
  529. {
  530. "probability": 1,
  531. "location": "l_3",
  532. "assignments": [
  533. {
  534. "ref": "coin1",
  535. "value": 0
  536. },
  537. {
  538. "ref": "fin1",
  539. "value": 1
  540. }
  541. ]
  542. }
  543. ]
  544. },
  545. {
  546. "location": "l_2",
  547. "guard": {
  548. "op": "≥",
  549. "args": [
  550. "counter",
  551. 54
  552. ]
  553. },
  554. "destinations": [
  555. {
  556. "probability": 1,
  557. "location": "l_3",
  558. "assignments": [
  559. {
  560. "ref": "coin1",
  561. "value": 1
  562. },
  563. {
  564. "ref": "fin1",
  565. "value": 1
  566. }
  567. ]
  568. }
  569. ]
  570. },
  571. {
  572. "location": "l_2",
  573. "guard": {
  574. "op": "∧",
  575. "args": [
  576. {
  577. "op": ">",
  578. "args": [
  579. "counter",
  580. 6
  581. ]
  582. },
  583. {
  584. "op": "<",
  585. "args": [
  586. "counter",
  587. 54
  588. ]
  589. }
  590. ]
  591. },
  592. "destinations": [
  593. {
  594. "probability": {
  595. "op": "/",
  596. "args": [
  597. 1,
  598. 2
  599. ]
  600. },
  601. "location": "l_1",
  602. "assignments": [
  603. {
  604. "ref": "coin1",
  605. "value": 0
  606. }
  607. ],
  608. "reward": [
  609. {
  610. "ref": "coin_flips",
  611. "value": 1
  612. }
  613. ]
  614. },
  615. {
  616. "probability": {
  617. "op": "/",
  618. "args": [
  619. 1,
  620. 2
  621. ]
  622. },
  623. "location": "l_1",
  624. "assignments": [
  625. {
  626. "ref": "coin1",
  627. "value": 1
  628. }
  629. ],
  630. "reward": [
  631. {
  632. "ref": "coin_flips",
  633. "value": 1
  634. }
  635. ]
  636. }
  637. ]
  638. },
  639. {
  640. "location": "l_3",
  641. "action": "done",
  642. "guard": true,
  643. "destinations": [
  644. {
  645. "probability": 1,
  646. "location": "l_3"
  647. }
  648. ]
  649. }
  650. ]
  651. },
  652. {
  653. "name": "Tourist2",
  654. "variables": [],
  655. "locations": [
  656. {
  657. "name": "l_0"
  658. },
  659. {
  660. "name": "l_1"
  661. },
  662. {
  663. "name": "l_2"
  664. },
  665. {
  666. "name": "l_3"
  667. }
  668. ],
  669. "initial-location": "l_0",
  670. "edges": [
  671. {
  672. "location": "l_0",
  673. "guard": true,
  674. "destinations": [
  675. {
  676. "probability": {
  677. "op": "/",
  678. "args": [
  679. 1,
  680. 2
  681. ]
  682. },
  683. "location": "l_1",
  684. "assignments": [
  685. {
  686. "ref": "coin2",
  687. "value": 0
  688. }
  689. ],
  690. "reward": [
  691. {
  692. "ref": "coin_flips",
  693. "value": 1
  694. }
  695. ]
  696. },
  697. {
  698. "probability": {
  699. "op": "/",
  700. "args": [
  701. 1,
  702. 2
  703. ]
  704. },
  705. "location": "l_1",
  706. "assignments": [
  707. {
  708. "ref": "coin2",
  709. "value": 1
  710. }
  711. ],
  712. "reward": [
  713. {
  714. "ref": "coin_flips",
  715. "value": 1
  716. }
  717. ]
  718. }
  719. ]
  720. },
  721. {
  722. "location": "l_1",
  723. "guard": {
  724. "op": "∧",
  725. "args": [
  726. {
  727. "op": "=",
  728. "args": [
  729. "coin2",
  730. 0
  731. ]
  732. },
  733. {
  734. "op": ">",
  735. "args": [
  736. "counter",
  737. 0
  738. ]
  739. }
  740. ]
  741. },
  742. "destinations": [
  743. {
  744. "probability": 1,
  745. "location": "l_2",
  746. "assignments": [
  747. {
  748. "ref": "counter",
  749. "value": {
  750. "op": "-",
  751. "args": [
  752. "counter",
  753. 1
  754. ]
  755. }
  756. }
  757. ]
  758. }
  759. ]
  760. },
  761. {
  762. "location": "l_1",
  763. "guard": {
  764. "op": "∧",
  765. "args": [
  766. {
  767. "op": "=",
  768. "args": [
  769. "coin2",
  770. 1
  771. ]
  772. },
  773. {
  774. "op": "<",
  775. "args": [
  776. "counter",
  777. 60
  778. ]
  779. }
  780. ]
  781. },
  782. "destinations": [
  783. {
  784. "probability": 1,
  785. "location": "l_2",
  786. "assignments": [
  787. {
  788. "ref": "counter",
  789. "value": {
  790. "op": "+",
  791. "args": [
  792. "counter",
  793. 1
  794. ]
  795. }
  796. },
  797. {
  798. "ref": "coin2",
  799. "value": 0
  800. }
  801. ]
  802. }
  803. ]
  804. },
  805. {
  806. "location": "l_2",
  807. "guard": {
  808. "op": "≤",
  809. "args": [
  810. "counter",
  811. 6
  812. ]
  813. },
  814. "destinations": [
  815. {
  816. "probability": 1,
  817. "location": "l_3",
  818. "assignments": [
  819. {
  820. "ref": "coin2",
  821. "value": 0
  822. },
  823. {
  824. "ref": "fin2",
  825. "value": 1
  826. }
  827. ]
  828. }
  829. ]
  830. },
  831. {
  832. "location": "l_2",
  833. "guard": {
  834. "op": "≥",
  835. "args": [
  836. "counter",
  837. 54
  838. ]
  839. },
  840. "destinations": [
  841. {
  842. "probability": 1,
  843. "location": "l_3",
  844. "assignments": [
  845. {
  846. "ref": "coin2",
  847. "value": 1
  848. },
  849. {
  850. "ref": "fin2",
  851. "value": 1
  852. }
  853. ]
  854. }
  855. ]
  856. },
  857. {
  858. "location": "l_2",
  859. "guard": {
  860. "op": "∧",
  861. "args": [
  862. {
  863. "op": ">",
  864. "args": [
  865. "counter",
  866. 6
  867. ]
  868. },
  869. {
  870. "op": "<",
  871. "args": [
  872. "counter",
  873. 54
  874. ]
  875. }
  876. ]
  877. },
  878. "destinations": [
  879. {
  880. "probability": {
  881. "op": "/",
  882. "args": [
  883. 1,
  884. 2
  885. ]
  886. },
  887. "location": "l_1",
  888. "assignments": [
  889. {
  890. "ref": "coin2",
  891. "value": 0
  892. }
  893. ],
  894. "reward": [
  895. {
  896. "ref": "coin_flips",
  897. "value": 1
  898. }
  899. ]
  900. },
  901. {
  902. "probability": {
  903. "op": "/",
  904. "args": [
  905. 1,
  906. 2
  907. ]
  908. },
  909. "location": "l_1",
  910. "assignments": [
  911. {
  912. "ref": "coin2",
  913. "value": 1
  914. }
  915. ],
  916. "reward": [
  917. {
  918. "ref": "coin_flips",
  919. "value": 1
  920. }
  921. ]
  922. }
  923. ]
  924. },
  925. {
  926. "location": "l_3",
  927. "action": "done",
  928. "guard": true,
  929. "destinations": [
  930. {
  931. "probability": 1,
  932. "location": "l_3"
  933. }
  934. ]
  935. }
  936. ]
  937. },
  938. {
  939. "name": "Tourist3",
  940. "variables": [],
  941. "locations": [
  942. {
  943. "name": "l_0"
  944. },
  945. {
  946. "name": "l_1"
  947. },
  948. {
  949. "name": "l_2"
  950. },
  951. {
  952. "name": "l_3"
  953. }
  954. ],
  955. "initial-location": "l_0",
  956. "edges": [
  957. {
  958. "location": "l_0",
  959. "guard": true,
  960. "destinations": [
  961. {
  962. "probability": {
  963. "op": "/",
  964. "args": [
  965. 1,
  966. 2
  967. ]
  968. },
  969. "location": "l_1",
  970. "assignments": [
  971. {
  972. "ref": "coin3",
  973. "value": 0
  974. }
  975. ],
  976. "reward": [
  977. {
  978. "ref": "coin_flips",
  979. "value": 1
  980. }
  981. ]
  982. },
  983. {
  984. "probability": {
  985. "op": "/",
  986. "args": [
  987. 1,
  988. 2
  989. ]
  990. },
  991. "location": "l_1",
  992. "assignments": [
  993. {
  994. "ref": "coin3",
  995. "value": 1
  996. }
  997. ],
  998. "reward": [
  999. {
  1000. "ref": "coin_flips",
  1001. "value": 1
  1002. }
  1003. ]
  1004. }
  1005. ]
  1006. },
  1007. {
  1008. "location": "l_1",
  1009. "guard": {
  1010. "op": "∧",
  1011. "args": [
  1012. {
  1013. "op": "=",
  1014. "args": [
  1015. "coin3",
  1016. 0
  1017. ]
  1018. },
  1019. {
  1020. "op": ">",
  1021. "args": [
  1022. "counter",
  1023. 0
  1024. ]
  1025. }
  1026. ]
  1027. },
  1028. "destinations": [
  1029. {
  1030. "probability": 1,
  1031. "location": "l_2",
  1032. "assignments": [
  1033. {
  1034. "ref": "counter",
  1035. "value": {
  1036. "op": "-",
  1037. "args": [
  1038. "counter",
  1039. 1
  1040. ]
  1041. }
  1042. }
  1043. ]
  1044. }
  1045. ]
  1046. },
  1047. {
  1048. "location": "l_1",
  1049. "guard": {
  1050. "op": "∧",
  1051. "args": [
  1052. {
  1053. "op": "=",
  1054. "args": [
  1055. "coin3",
  1056. 1
  1057. ]
  1058. },
  1059. {
  1060. "op": "<",
  1061. "args": [
  1062. "counter",
  1063. 60
  1064. ]
  1065. }
  1066. ]
  1067. },
  1068. "destinations": [
  1069. {
  1070. "probability": 1,
  1071. "location": "l_2",
  1072. "assignments": [
  1073. {
  1074. "ref": "counter",
  1075. "value": {
  1076. "op": "+",
  1077. "args": [
  1078. "counter",
  1079. 1
  1080. ]
  1081. }
  1082. },
  1083. {
  1084. "ref": "coin3",
  1085. "value": 0
  1086. }
  1087. ]
  1088. }
  1089. ]
  1090. },
  1091. {
  1092. "location": "l_2",
  1093. "guard": {
  1094. "op": "≤",
  1095. "args": [
  1096. "counter",
  1097. 6
  1098. ]
  1099. },
  1100. "destinations": [
  1101. {
  1102. "probability": 1,
  1103. "location": "l_3",
  1104. "assignments": [
  1105. {
  1106. "ref": "coin3",
  1107. "value": 0
  1108. },
  1109. {
  1110. "ref": "fin3",
  1111. "value": 1
  1112. }
  1113. ]
  1114. }
  1115. ]
  1116. },
  1117. {
  1118. "location": "l_2",
  1119. "guard": {
  1120. "op": "≥",
  1121. "args": [
  1122. "counter",
  1123. 54
  1124. ]
  1125. },
  1126. "destinations": [
  1127. {
  1128. "probability": 1,
  1129. "location": "l_3",
  1130. "assignments": [
  1131. {
  1132. "ref": "coin3",
  1133. "value": 1
  1134. },
  1135. {
  1136. "ref": "fin3",
  1137. "value": 1
  1138. }
  1139. ]
  1140. }
  1141. ]
  1142. },
  1143. {
  1144. "location": "l_2",
  1145. "guard": {
  1146. "op": "∧",
  1147. "args": [
  1148. {
  1149. "op": ">",
  1150. "args": [
  1151. "counter",
  1152. 6
  1153. ]
  1154. },
  1155. {
  1156. "op": "<",
  1157. "args": [
  1158. "counter",
  1159. 54
  1160. ]
  1161. }
  1162. ]
  1163. },
  1164. "destinations": [
  1165. {
  1166. "probability": {
  1167. "op": "/",
  1168. "args": [
  1169. 1,
  1170. 2
  1171. ]
  1172. },
  1173. "location": "l_1",
  1174. "assignments": [
  1175. {
  1176. "ref": "coin3",
  1177. "value": 0
  1178. }
  1179. ],
  1180. "reward": [
  1181. {
  1182. "ref": "coin_flips",
  1183. "value": 1
  1184. }
  1185. ]
  1186. },
  1187. {
  1188. "probability": {
  1189. "op": "/",
  1190. "args": [
  1191. 1,
  1192. 2
  1193. ]
  1194. },
  1195. "location": "l_1",
  1196. "assignments": [
  1197. {
  1198. "ref": "coin3",
  1199. "value": 1
  1200. }
  1201. ],
  1202. "reward": [
  1203. {
  1204. "ref": "coin_flips",
  1205. "value": 1
  1206. }
  1207. ]
  1208. }
  1209. ]
  1210. },
  1211. {
  1212. "location": "l_3",
  1213. "action": "done",
  1214. "guard": true,
  1215. "destinations": [
  1216. {
  1217. "probability": 1,
  1218. "location": "l_3"
  1219. }
  1220. ]
  1221. }
  1222. ]
  1223. },
  1224. {
  1225. "name": "Tourist4",
  1226. "variables": [],
  1227. "locations": [
  1228. {
  1229. "name": "l_0"
  1230. },
  1231. {
  1232. "name": "l_1"
  1233. },
  1234. {
  1235. "name": "l_2"
  1236. },
  1237. {
  1238. "name": "l_3"
  1239. }
  1240. ],
  1241. "initial-location": "l_0",
  1242. "edges": [
  1243. {
  1244. "location": "l_0",
  1245. "guard": true,
  1246. "destinations": [
  1247. {
  1248. "probability": {
  1249. "op": "/",
  1250. "args": [
  1251. 1,
  1252. 2
  1253. ]
  1254. },
  1255. "location": "l_1",
  1256. "assignments": [
  1257. {
  1258. "ref": "coin4",
  1259. "value": 0
  1260. }
  1261. ],
  1262. "reward": [
  1263. {
  1264. "ref": "coin_flips",
  1265. "value": 1
  1266. }
  1267. ]
  1268. },
  1269. {
  1270. "probability": {
  1271. "op": "/",
  1272. "args": [
  1273. 1,
  1274. 2
  1275. ]
  1276. },
  1277. "location": "l_1",
  1278. "assignments": [
  1279. {
  1280. "ref": "coin4",
  1281. "value": 1
  1282. }
  1283. ],
  1284. "reward": [
  1285. {
  1286. "ref": "coin_flips",
  1287. "value": 1
  1288. }
  1289. ]
  1290. }
  1291. ]
  1292. },
  1293. {
  1294. "location": "l_1",
  1295. "guard": {
  1296. "op": "∧",
  1297. "args": [
  1298. {
  1299. "op": "=",
  1300. "args": [
  1301. "coin4",
  1302. 0
  1303. ]
  1304. },
  1305. {
  1306. "op": ">",
  1307. "args": [
  1308. "counter",
  1309. 0
  1310. ]
  1311. }
  1312. ]
  1313. },
  1314. "destinations": [
  1315. {
  1316. "probability": 1,
  1317. "location": "l_2",
  1318. "assignments": [
  1319. {
  1320. "ref": "counter",
  1321. "value": {
  1322. "op": "-",
  1323. "args": [
  1324. "counter",
  1325. 1
  1326. ]
  1327. }
  1328. }
  1329. ]
  1330. }
  1331. ]
  1332. },
  1333. {
  1334. "location": "l_1",
  1335. "guard": {
  1336. "op": "∧",
  1337. "args": [
  1338. {
  1339. "op": "=",
  1340. "args": [
  1341. "coin4",
  1342. 1
  1343. ]
  1344. },
  1345. {
  1346. "op": "<",
  1347. "args": [
  1348. "counter",
  1349. 60
  1350. ]
  1351. }
  1352. ]
  1353. },
  1354. "destinations": [
  1355. {
  1356. "probability": 1,
  1357. "location": "l_2",
  1358. "assignments": [
  1359. {
  1360. "ref": "counter",
  1361. "value": {
  1362. "op": "+",
  1363. "args": [
  1364. "counter",
  1365. 1
  1366. ]
  1367. }
  1368. },
  1369. {
  1370. "ref": "coin4",
  1371. "value": 0
  1372. }
  1373. ]
  1374. }
  1375. ]
  1376. },
  1377. {
  1378. "location": "l_2",
  1379. "guard": {
  1380. "op": "≤",
  1381. "args": [
  1382. "counter",
  1383. 6
  1384. ]
  1385. },
  1386. "destinations": [
  1387. {
  1388. "probability": 1,
  1389. "location": "l_3",
  1390. "assignments": [
  1391. {
  1392. "ref": "coin4",
  1393. "value": 0
  1394. },
  1395. {
  1396. "ref": "fin4",
  1397. "value": 1
  1398. }
  1399. ]
  1400. }
  1401. ]
  1402. },
  1403. {
  1404. "location": "l_2",
  1405. "guard": {
  1406. "op": "≥",
  1407. "args": [
  1408. "counter",
  1409. 54
  1410. ]
  1411. },
  1412. "destinations": [
  1413. {
  1414. "probability": 1,
  1415. "location": "l_3",
  1416. "assignments": [
  1417. {
  1418. "ref": "coin4",
  1419. "value": 1
  1420. },
  1421. {
  1422. "ref": "fin4",
  1423. "value": 1
  1424. }
  1425. ]
  1426. }
  1427. ]
  1428. },
  1429. {
  1430. "location": "l_2",
  1431. "guard": {
  1432. "op": "∧",
  1433. "args": [
  1434. {
  1435. "op": ">",
  1436. "args": [
  1437. "counter",
  1438. 6
  1439. ]
  1440. },
  1441. {
  1442. "op": "<",
  1443. "args": [
  1444. "counter",
  1445. 54
  1446. ]
  1447. }
  1448. ]
  1449. },
  1450. "destinations": [
  1451. {
  1452. "probability": {
  1453. "op": "/",
  1454. "args": [
  1455. 1,
  1456. 2
  1457. ]
  1458. },
  1459. "location": "l_1",
  1460. "assignments": [
  1461. {
  1462. "ref": "coin4",
  1463. "value": 0
  1464. }
  1465. ],
  1466. "reward": [
  1467. {
  1468. "ref": "coin_flips",
  1469. "value": 1
  1470. }
  1471. ]
  1472. },
  1473. {
  1474. "probability": {
  1475. "op": "/",
  1476. "args": [
  1477. 1,
  1478. 2
  1479. ]
  1480. },
  1481. "location": "l_1",
  1482. "assignments": [
  1483. {
  1484. "ref": "coin4",
  1485. "value": 1
  1486. }
  1487. ],
  1488. "reward": [
  1489. {
  1490. "ref": "coin_flips",
  1491. "value": 1
  1492. }
  1493. ]
  1494. }
  1495. ]
  1496. },
  1497. {
  1498. "location": "l_3",
  1499. "action": "done",
  1500. "guard": true,
  1501. "destinations": [
  1502. {
  1503. "probability": 1,
  1504. "location": "l_3"
  1505. }
  1506. ]
  1507. }
  1508. ]
  1509. },
  1510. {
  1511. "name": "Tourist5",
  1512. "variables": [],
  1513. "locations": [
  1514. {
  1515. "name": "l_0"
  1516. },
  1517. {
  1518. "name": "l_1"
  1519. },
  1520. {
  1521. "name": "l_2"
  1522. },
  1523. {
  1524. "name": "l_3"
  1525. }
  1526. ],
  1527. "initial-location": "l_0",
  1528. "edges": [
  1529. {
  1530. "location": "l_0",
  1531. "guard": true,
  1532. "destinations": [
  1533. {
  1534. "probability": {
  1535. "op": "/",
  1536. "args": [
  1537. 1,
  1538. 2
  1539. ]
  1540. },
  1541. "location": "l_1",
  1542. "assignments": [
  1543. {
  1544. "ref": "coin5",
  1545. "value": 0
  1546. }
  1547. ],
  1548. "reward": [
  1549. {
  1550. "ref": "coin_flips",
  1551. "value": 1
  1552. }
  1553. ]
  1554. },
  1555. {
  1556. "probability": {
  1557. "op": "/",
  1558. "args": [
  1559. 1,
  1560. 2
  1561. ]
  1562. },
  1563. "location": "l_1",
  1564. "assignments": [
  1565. {
  1566. "ref": "coin5",
  1567. "value": 1
  1568. }
  1569. ],
  1570. "reward": [
  1571. {
  1572. "ref": "coin_flips",
  1573. "value": 1
  1574. }
  1575. ]
  1576. }
  1577. ]
  1578. },
  1579. {
  1580. "location": "l_1",
  1581. "guard": {
  1582. "op": "∧",
  1583. "args": [
  1584. {
  1585. "op": "=",
  1586. "args": [
  1587. "coin5",
  1588. 0
  1589. ]
  1590. },
  1591. {
  1592. "op": ">",
  1593. "args": [
  1594. "counter",
  1595. 0
  1596. ]
  1597. }
  1598. ]
  1599. },
  1600. "destinations": [
  1601. {
  1602. "probability": 1,
  1603. "location": "l_2",
  1604. "assignments": [
  1605. {
  1606. "ref": "counter",
  1607. "value": {
  1608. "op": "-",
  1609. "args": [
  1610. "counter",
  1611. 1
  1612. ]
  1613. }
  1614. }
  1615. ]
  1616. }
  1617. ]
  1618. },
  1619. {
  1620. "location": "l_1",
  1621. "guard": {
  1622. "op": "∧",
  1623. "args": [
  1624. {
  1625. "op": "=",
  1626. "args": [
  1627. "coin5",
  1628. 1
  1629. ]
  1630. },
  1631. {
  1632. "op": "<",
  1633. "args": [
  1634. "counter",
  1635. 60
  1636. ]
  1637. }
  1638. ]
  1639. },
  1640. "destinations": [
  1641. {
  1642. "probability": 1,
  1643. "location": "l_2",
  1644. "assignments": [
  1645. {
  1646. "ref": "counter",
  1647. "value": {
  1648. "op": "+",
  1649. "args": [
  1650. "counter",
  1651. 1
  1652. ]
  1653. }
  1654. },
  1655. {
  1656. "ref": "coin5",
  1657. "value": 0
  1658. }
  1659. ]
  1660. }
  1661. ]
  1662. },
  1663. {
  1664. "location": "l_2",
  1665. "guard": {
  1666. "op": "≤",
  1667. "args": [
  1668. "counter",
  1669. 6
  1670. ]
  1671. },
  1672. "destinations": [
  1673. {
  1674. "probability": 1,
  1675. "location": "l_3",
  1676. "assignments": [
  1677. {
  1678. "ref": "coin5",
  1679. "value": 0
  1680. },
  1681. {
  1682. "ref": "fin5",
  1683. "value": 1
  1684. }
  1685. ]
  1686. }
  1687. ]
  1688. },
  1689. {
  1690. "location": "l_2",
  1691. "guard": {
  1692. "op": "≥",
  1693. "args": [
  1694. "counter",
  1695. 54
  1696. ]
  1697. },
  1698. "destinations": [
  1699. {
  1700. "probability": 1,
  1701. "location": "l_3",
  1702. "assignments": [
  1703. {
  1704. "ref": "coin5",
  1705. "value": 1
  1706. },
  1707. {
  1708. "ref": "fin5",
  1709. "value": 1
  1710. }
  1711. ]
  1712. }
  1713. ]
  1714. },
  1715. {
  1716. "location": "l_2",
  1717. "guard": {
  1718. "op": "∧",
  1719. "args": [
  1720. {
  1721. "op": ">",
  1722. "args": [
  1723. "counter",
  1724. 6
  1725. ]
  1726. },
  1727. {
  1728. "op": "<",
  1729. "args": [
  1730. "counter",
  1731. 54
  1732. ]
  1733. }
  1734. ]
  1735. },
  1736. "destinations": [
  1737. {
  1738. "probability": {
  1739. "op": "/",
  1740. "args": [
  1741. 1,
  1742. 2
  1743. ]
  1744. },
  1745. "location": "l_1",
  1746. "assignments": [
  1747. {
  1748. "ref": "coin5",
  1749. "value": 0
  1750. }
  1751. ],
  1752. "reward": [
  1753. {
  1754. "ref": "coin_flips",
  1755. "value": 1
  1756. }
  1757. ]
  1758. },
  1759. {
  1760. "probability": {
  1761. "op": "/",
  1762. "args": [
  1763. 1,
  1764. 2
  1765. ]
  1766. },
  1767. "location": "l_1",
  1768. "assignments": [
  1769. {
  1770. "ref": "coin5",
  1771. "value": 1
  1772. }
  1773. ],
  1774. "reward": [
  1775. {
  1776. "ref": "coin_flips",
  1777. "value": 1
  1778. }
  1779. ]
  1780. }
  1781. ]
  1782. },
  1783. {
  1784. "location": "l_3",
  1785. "action": "done",
  1786. "guard": true,
  1787. "destinations": [
  1788. {
  1789. "probability": 1,
  1790. "location": "l_3"
  1791. }
  1792. ]
  1793. }
  1794. ]
  1795. },
  1796. {
  1797. "name": "Tourist6",
  1798. "variables": [],
  1799. "locations": [
  1800. {
  1801. "name": "l_0"
  1802. },
  1803. {
  1804. "name": "l_1"
  1805. },
  1806. {
  1807. "name": "l_2"
  1808. },
  1809. {
  1810. "name": "l_3"
  1811. }
  1812. ],
  1813. "initial-location": "l_0",
  1814. "edges": [
  1815. {
  1816. "location": "l_0",
  1817. "guard": true,
  1818. "destinations": [
  1819. {
  1820. "probability": {
  1821. "op": "/",
  1822. "args": [
  1823. 1,
  1824. 2
  1825. ]
  1826. },
  1827. "location": "l_1",
  1828. "assignments": [
  1829. {
  1830. "ref": "coin6",
  1831. "value": 0
  1832. }
  1833. ],
  1834. "reward": [
  1835. {
  1836. "ref": "coin_flips",
  1837. "value": 1
  1838. }
  1839. ]
  1840. },
  1841. {
  1842. "probability": {
  1843. "op": "/",
  1844. "args": [
  1845. 1,
  1846. 2
  1847. ]
  1848. },
  1849. "location": "l_1",
  1850. "assignments": [
  1851. {
  1852. "ref": "coin6",
  1853. "value": 1
  1854. }
  1855. ],
  1856. "reward": [
  1857. {
  1858. "ref": "coin_flips",
  1859. "value": 1
  1860. }
  1861. ]
  1862. }
  1863. ]
  1864. },
  1865. {
  1866. "location": "l_1",
  1867. "guard": {
  1868. "op": "∧",
  1869. "args": [
  1870. {
  1871. "op": "=",
  1872. "args": [
  1873. "coin6",
  1874. 0
  1875. ]
  1876. },
  1877. {
  1878. "op": ">",
  1879. "args": [
  1880. "counter",
  1881. 0
  1882. ]
  1883. }
  1884. ]
  1885. },
  1886. "destinations": [
  1887. {
  1888. "probability": 1,
  1889. "location": "l_2",
  1890. "assignments": [
  1891. {
  1892. "ref": "counter",
  1893. "value": {
  1894. "op": "-",
  1895. "args": [
  1896. "counter",
  1897. 1
  1898. ]
  1899. }
  1900. }
  1901. ]
  1902. }
  1903. ]
  1904. },
  1905. {
  1906. "location": "l_1",
  1907. "guard": {
  1908. "op": "∧",
  1909. "args": [
  1910. {
  1911. "op": "=",
  1912. "args": [
  1913. "coin6",
  1914. 1
  1915. ]
  1916. },
  1917. {
  1918. "op": "<",
  1919. "args": [
  1920. "counter",
  1921. 60
  1922. ]
  1923. }
  1924. ]
  1925. },
  1926. "destinations": [
  1927. {
  1928. "probability": 1,
  1929. "location": "l_2",
  1930. "assignments": [
  1931. {
  1932. "ref": "counter",
  1933. "value": {
  1934. "op": "+",
  1935. "args": [
  1936. "counter",
  1937. 1
  1938. ]
  1939. }
  1940. },
  1941. {
  1942. "ref": "coin6",
  1943. "value": 0
  1944. }
  1945. ]
  1946. }
  1947. ]
  1948. },
  1949. {
  1950. "location": "l_2",
  1951. "guard": {
  1952. "op": "≤",
  1953. "args": [
  1954. "counter",
  1955. 6
  1956. ]
  1957. },
  1958. "destinations": [
  1959. {
  1960. "probability": 1,
  1961. "location": "l_3",
  1962. "assignments": [
  1963. {
  1964. "ref": "coin6",
  1965. "value": 0
  1966. },
  1967. {
  1968. "ref": "fin6",
  1969. "value": 1
  1970. }
  1971. ]
  1972. }
  1973. ]
  1974. },
  1975. {
  1976. "location": "l_2",
  1977. "guard": {
  1978. "op": "≥",
  1979. "args": [
  1980. "counter",
  1981. 54
  1982. ]
  1983. },
  1984. "destinations": [
  1985. {
  1986. "probability": 1,
  1987. "location": "l_3",
  1988. "assignments": [
  1989. {
  1990. "ref": "coin6",
  1991. "value": 1
  1992. },
  1993. {
  1994. "ref": "fin6",
  1995. "value": 1
  1996. }
  1997. ]
  1998. }
  1999. ]
  2000. },
  2001. {
  2002. "location": "l_2",
  2003. "guard": {
  2004. "op": "∧",
  2005. "args": [
  2006. {
  2007. "op": ">",
  2008. "args": [
  2009. "counter",
  2010. 6
  2011. ]
  2012. },
  2013. {
  2014. "op": "<",
  2015. "args": [
  2016. "counter",
  2017. 54
  2018. ]
  2019. }
  2020. ]
  2021. },
  2022. "destinations": [
  2023. {
  2024. "probability": {
  2025. "op": "/",
  2026. "args": [
  2027. 1,
  2028. 2
  2029. ]
  2030. },
  2031. "location": "l_1",
  2032. "assignments": [
  2033. {
  2034. "ref": "coin6",
  2035. "value": 0
  2036. }
  2037. ],
  2038. "reward": [
  2039. {
  2040. "ref": "coin_flips",
  2041. "value": 1
  2042. }
  2043. ]
  2044. },
  2045. {
  2046. "probability": {
  2047. "op": "/",
  2048. "args": [
  2049. 1,
  2050. 2
  2051. ]
  2052. },
  2053. "location": "l_1",
  2054. "assignments": [
  2055. {
  2056. "ref": "coin6",
  2057. "value": 1
  2058. }
  2059. ],
  2060. "reward": [
  2061. {
  2062. "ref": "coin_flips",
  2063. "value": 1
  2064. }
  2065. ]
  2066. }
  2067. ]
  2068. },
  2069. {
  2070. "location": "l_3",
  2071. "action": "done",
  2072. "guard": true,
  2073. "destinations": [
  2074. {
  2075. "probability": 1,
  2076. "location": "l_3"
  2077. }
  2078. ]
  2079. }
  2080. ]
  2081. }
  2082. ],
  2083. "system": {
  2084. "composition": "parallel",
  2085. "elements": [
  2086. {
  2087. "composition": "parallel",
  2088. "elements": [
  2089. {
  2090. "composition": "parallel",
  2091. "elements": [
  2092. {
  2093. "composition": "parallel",
  2094. "elements": [
  2095. {
  2096. "composition": "parallel",
  2097. "elements": [
  2098. "Tourist1",
  2099. "Tourist2"
  2100. ],
  2101. "alphabet": [
  2102. "done"
  2103. ]
  2104. },
  2105. "Tourist3"
  2106. ],
  2107. "alphabet": [
  2108. "done"
  2109. ]
  2110. },
  2111. "Tourist4"
  2112. ],
  2113. "alphabet": [
  2114. "done"
  2115. ]
  2116. },
  2117. "Tourist5"
  2118. ],
  2119. "alphabet": [
  2120. "done"
  2121. ]
  2122. },
  2123. "Tourist6"
  2124. ],
  2125. "alphabet": [
  2126. "done"
  2127. ]
  2128. }
  2129. }