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.

862 lines
29 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":"tau__"
  11. }
  12. ],
  13. "variables":[
  14. {
  15. "name":"s1",
  16. "type":{
  17. "kind":"bounded",
  18. "base":"int",
  19. "lower-bound":0,
  20. "upper-bound":7
  21. }
  22. },
  23. {
  24. "name":"d1",
  25. "type":{
  26. "kind":"bounded",
  27. "base":"int",
  28. "lower-bound":0,
  29. "upper-bound":6
  30. }
  31. },
  32. {
  33. "name":"s2",
  34. "type":{
  35. "kind":"bounded",
  36. "base":"int",
  37. "lower-bound":0,
  38. "upper-bound":7
  39. }
  40. },
  41. {
  42. "name":"d2",
  43. "type":{
  44. "kind":"bounded",
  45. "base":"int",
  46. "lower-bound":0,
  47. "upper-bound":6
  48. }
  49. }
  50. ],
  51. "observables":[
  52. {
  53. "name":"\"coin_flips\""
  54. }
  55. ],
  56. "initial-states":{
  57. "exp":{
  58. "op":"∧",
  59. "left":{
  60. "op":"∧",
  61. "left":{
  62. "op":"∧",
  63. "left":{
  64. "op":"=",
  65. "left":"s1",
  66. "right":0
  67. },
  68. "right":{
  69. "op":"=",
  70. "left":"d1",
  71. "right":0
  72. }
  73. },
  74. "right":{
  75. "op":"=",
  76. "left":"s2",
  77. "right":0
  78. }
  79. },
  80. "right":{
  81. "op":"=",
  82. "left":"d2",
  83. "right":0
  84. }
  85. }
  86. },
  87. "automata":[
  88. {
  89. "name":"die1",
  90. "locations":[
  91. {
  92. "name":"location",
  93. "observables":[
  94. {
  95. "ref":"\"coin_flips\"",
  96. "value":{
  97. "op":"?:",
  98. "args":[
  99. {
  100. "op":"¬",
  101. "exp":{
  102. "op":"∧",
  103. "left":{
  104. "op":"=",
  105. "left":"s1",
  106. "right":7
  107. },
  108. "right":{
  109. "op":"=",
  110. "left":"s2",
  111. "right":7
  112. }
  113. }
  114. },
  115. 1,
  116. 0
  117. ]
  118. }
  119. }
  120. ]
  121. }
  122. ],
  123. "initial-locations":[
  124. "location"
  125. ],
  126. "edges":[
  127. {
  128. "location":"location",
  129. "action":"tau__",
  130. "guard":{
  131. "exp":{
  132. "op":"=",
  133. "left":"s1",
  134. "right":0
  135. }
  136. },
  137. "destinations":[
  138. {
  139. "probability":{
  140. "exp":0.5000000
  141. },
  142. "location":"location",
  143. "assignments":[
  144. {
  145. "ref":"s1",
  146. "value":1
  147. }
  148. ],
  149. "observables":[
  150. ]
  151. },
  152. {
  153. "probability":{
  154. "exp":0.5000000
  155. },
  156. "location":"location",
  157. "assignments":[
  158. {
  159. "ref":"s1",
  160. "value":2
  161. }
  162. ],
  163. "observables":[
  164. ]
  165. }
  166. ]
  167. },
  168. {
  169. "location":"location",
  170. "action":"tau__",
  171. "guard":{
  172. "exp":{
  173. "op":"=",
  174. "left":"s1",
  175. "right":1
  176. }
  177. },
  178. "destinations":[
  179. {
  180. "probability":{
  181. "exp":0.5000000
  182. },
  183. "location":"location",
  184. "assignments":[
  185. {
  186. "ref":"s1",
  187. "value":3
  188. }
  189. ],
  190. "observables":[
  191. ]
  192. },
  193. {
  194. "probability":{
  195. "exp":0.5000000
  196. },
  197. "location":"location",
  198. "assignments":[
  199. {
  200. "ref":"s1",
  201. "value":4
  202. }
  203. ],
  204. "observables":[
  205. ]
  206. }
  207. ]
  208. },
  209. {
  210. "location":"location",
  211. "action":"tau__",
  212. "guard":{
  213. "exp":{
  214. "op":"=",
  215. "left":"s1",
  216. "right":2
  217. }
  218. },
  219. "destinations":[
  220. {
  221. "probability":{
  222. "exp":0.5000000
  223. },
  224. "location":"location",
  225. "assignments":[
  226. {
  227. "ref":"s1",
  228. "value":5
  229. }
  230. ],
  231. "observables":[
  232. ]
  233. },
  234. {
  235. "probability":{
  236. "exp":0.5000000
  237. },
  238. "location":"location",
  239. "assignments":[
  240. {
  241. "ref":"s1",
  242. "value":6
  243. }
  244. ],
  245. "observables":[
  246. ]
  247. }
  248. ]
  249. },
  250. {
  251. "location":"location",
  252. "action":"tau__",
  253. "guard":{
  254. "exp":{
  255. "op":"=",
  256. "left":"s1",
  257. "right":3
  258. }
  259. },
  260. "destinations":[
  261. {
  262. "probability":{
  263. "exp":0.5000000
  264. },
  265. "location":"location",
  266. "assignments":[
  267. {
  268. "ref":"s1",
  269. "value":1
  270. }
  271. ],
  272. "observables":[
  273. ]
  274. },
  275. {
  276. "probability":{
  277. "exp":0.5000000
  278. },
  279. "location":"location",
  280. "assignments":[
  281. {
  282. "ref":"s1",
  283. "value":7
  284. },
  285. {
  286. "ref":"d1",
  287. "value":1
  288. }
  289. ],
  290. "observables":[
  291. ]
  292. }
  293. ]
  294. },
  295. {
  296. "location":"location",
  297. "action":"tau__",
  298. "guard":{
  299. "exp":{
  300. "op":"=",
  301. "left":"s1",
  302. "right":4
  303. }
  304. },
  305. "destinations":[
  306. {
  307. "probability":{
  308. "exp":0.5000000
  309. },
  310. "location":"location",
  311. "assignments":[
  312. {
  313. "ref":"s1",
  314. "value":7
  315. },
  316. {
  317. "ref":"d1",
  318. "value":2
  319. }
  320. ],
  321. "observables":[
  322. ]
  323. },
  324. {
  325. "probability":{
  326. "exp":0.5000000
  327. },
  328. "location":"location",
  329. "assignments":[
  330. {
  331. "ref":"s1",
  332. "value":7
  333. },
  334. {
  335. "ref":"d1",
  336. "value":3
  337. }
  338. ],
  339. "observables":[
  340. ]
  341. }
  342. ]
  343. },
  344. {
  345. "location":"location",
  346. "action":"tau__",
  347. "guard":{
  348. "exp":{
  349. "op":"=",
  350. "left":"s1",
  351. "right":5
  352. }
  353. },
  354. "destinations":[
  355. {
  356. "probability":{
  357. "exp":0.5000000
  358. },
  359. "location":"location",
  360. "assignments":[
  361. {
  362. "ref":"s1",
  363. "value":7
  364. },
  365. {
  366. "ref":"d1",
  367. "value":4
  368. }
  369. ],
  370. "observables":[
  371. ]
  372. },
  373. {
  374. "probability":{
  375. "exp":0.5000000
  376. },
  377. "location":"location",
  378. "assignments":[
  379. {
  380. "ref":"s1",
  381. "value":7
  382. },
  383. {
  384. "ref":"d1",
  385. "value":5
  386. }
  387. ],
  388. "observables":[
  389. ]
  390. }
  391. ]
  392. },
  393. {
  394. "location":"location",
  395. "action":"tau__",
  396. "guard":{
  397. "exp":{
  398. "op":"=",
  399. "left":"s1",
  400. "right":6
  401. }
  402. },
  403. "destinations":[
  404. {
  405. "probability":{
  406. "exp":0.5000000
  407. },
  408. "location":"location",
  409. "assignments":[
  410. {
  411. "ref":"s1",
  412. "value":2
  413. }
  414. ],
  415. "observables":[
  416. ]
  417. },
  418. {
  419. "probability":{
  420. "exp":0.5000000
  421. },
  422. "location":"location",
  423. "assignments":[
  424. {
  425. "ref":"s1",
  426. "value":7
  427. },
  428. {
  429. "ref":"d1",
  430. "value":6
  431. }
  432. ],
  433. "observables":[
  434. ]
  435. }
  436. ]
  437. },
  438. {
  439. "location":"location",
  440. "action":"tau__",
  441. "guard":{
  442. "exp":{
  443. "op":"∧",
  444. "left":{
  445. "op":"=",
  446. "left":"s1",
  447. "right":7
  448. },
  449. "right":{
  450. "op":"=",
  451. "left":"s2",
  452. "right":7
  453. }
  454. }
  455. },
  456. "destinations":[
  457. {
  458. "probability":{
  459. "exp":1
  460. },
  461. "location":"location",
  462. "assignments":[
  463. {
  464. "ref":"s1",
  465. "value":7
  466. }
  467. ],
  468. "observables":[
  469. ]
  470. }
  471. ]
  472. }
  473. ]
  474. },
  475. {
  476. "name":"die2",
  477. "locations":[
  478. {
  479. "name":"location"
  480. }
  481. ],
  482. "initial-locations":[
  483. "location"
  484. ],
  485. "edges":[
  486. {
  487. "location":"location",
  488. "action":"tau__",
  489. "guard":{
  490. "exp":{
  491. "op":"=",
  492. "left":"s2",
  493. "right":0
  494. }
  495. },
  496. "destinations":[
  497. {
  498. "probability":{
  499. "exp":0.5000000
  500. },
  501. "location":"location",
  502. "assignments":[
  503. {
  504. "ref":"s2",
  505. "value":1
  506. }
  507. ],
  508. "observables":[
  509. ]
  510. },
  511. {
  512. "probability":{
  513. "exp":0.5000000
  514. },
  515. "location":"location",
  516. "assignments":[
  517. {
  518. "ref":"s2",
  519. "value":2
  520. }
  521. ],
  522. "observables":[
  523. ]
  524. }
  525. ]
  526. },
  527. {
  528. "location":"location",
  529. "action":"tau__",
  530. "guard":{
  531. "exp":{
  532. "op":"=",
  533. "left":"s2",
  534. "right":1
  535. }
  536. },
  537. "destinations":[
  538. {
  539. "probability":{
  540. "exp":0.5000000
  541. },
  542. "location":"location",
  543. "assignments":[
  544. {
  545. "ref":"s2",
  546. "value":3
  547. }
  548. ],
  549. "observables":[
  550. ]
  551. },
  552. {
  553. "probability":{
  554. "exp":0.5000000
  555. },
  556. "location":"location",
  557. "assignments":[
  558. {
  559. "ref":"s2",
  560. "value":4
  561. }
  562. ],
  563. "observables":[
  564. ]
  565. }
  566. ]
  567. },
  568. {
  569. "location":"location",
  570. "action":"tau__",
  571. "guard":{
  572. "exp":{
  573. "op":"=",
  574. "left":"s2",
  575. "right":2
  576. }
  577. },
  578. "destinations":[
  579. {
  580. "probability":{
  581. "exp":0.5000000
  582. },
  583. "location":"location",
  584. "assignments":[
  585. {
  586. "ref":"s2",
  587. "value":5
  588. }
  589. ],
  590. "observables":[
  591. ]
  592. },
  593. {
  594. "probability":{
  595. "exp":0.5000000
  596. },
  597. "location":"location",
  598. "assignments":[
  599. {
  600. "ref":"s2",
  601. "value":6
  602. }
  603. ],
  604. "observables":[
  605. ]
  606. }
  607. ]
  608. },
  609. {
  610. "location":"location",
  611. "action":"tau__",
  612. "guard":{
  613. "exp":{
  614. "op":"=",
  615. "left":"s2",
  616. "right":3
  617. }
  618. },
  619. "destinations":[
  620. {
  621. "probability":{
  622. "exp":0.5000000
  623. },
  624. "location":"location",
  625. "assignments":[
  626. {
  627. "ref":"s2",
  628. "value":1
  629. }
  630. ],
  631. "observables":[
  632. ]
  633. },
  634. {
  635. "probability":{
  636. "exp":0.5000000
  637. },
  638. "location":"location",
  639. "assignments":[
  640. {
  641. "ref":"s2",
  642. "value":7
  643. },
  644. {
  645. "ref":"d2",
  646. "value":1
  647. }
  648. ],
  649. "observables":[
  650. ]
  651. }
  652. ]
  653. },
  654. {
  655. "location":"location",
  656. "action":"tau__",
  657. "guard":{
  658. "exp":{
  659. "op":"=",
  660. "left":"s2",
  661. "right":4
  662. }
  663. },
  664. "destinations":[
  665. {
  666. "probability":{
  667. "exp":0.5000000
  668. },
  669. "location":"location",
  670. "assignments":[
  671. {
  672. "ref":"s2",
  673. "value":7
  674. },
  675. {
  676. "ref":"d2",
  677. "value":2
  678. }
  679. ],
  680. "observables":[
  681. ]
  682. },
  683. {
  684. "probability":{
  685. "exp":0.5000000
  686. },
  687. "location":"location",
  688. "assignments":[
  689. {
  690. "ref":"s2",
  691. "value":7
  692. },
  693. {
  694. "ref":"d2",
  695. "value":3
  696. }
  697. ],
  698. "observables":[
  699. ]
  700. }
  701. ]
  702. },
  703. {
  704. "location":"location",
  705. "action":"tau__",
  706. "guard":{
  707. "exp":{
  708. "op":"=",
  709. "left":"s2",
  710. "right":5
  711. }
  712. },
  713. "destinations":[
  714. {
  715. "probability":{
  716. "exp":0.5000000
  717. },
  718. "location":"location",
  719. "assignments":[
  720. {
  721. "ref":"s2",
  722. "value":7
  723. },
  724. {
  725. "ref":"d2",
  726. "value":4
  727. }
  728. ],
  729. "observables":[
  730. ]
  731. },
  732. {
  733. "probability":{
  734. "exp":0.5000000
  735. },
  736. "location":"location",
  737. "assignments":[
  738. {
  739. "ref":"s2",
  740. "value":7
  741. },
  742. {
  743. "ref":"d2",
  744. "value":5
  745. }
  746. ],
  747. "observables":[
  748. ]
  749. }
  750. ]
  751. },
  752. {
  753. "location":"location",
  754. "action":"tau__",
  755. "guard":{
  756. "exp":{
  757. "op":"=",
  758. "left":"s2",
  759. "right":6
  760. }
  761. },
  762. "destinations":[
  763. {
  764. "probability":{
  765. "exp":0.5000000
  766. },
  767. "location":"location",
  768. "assignments":[
  769. {
  770. "ref":"s2",
  771. "value":2
  772. }
  773. ],
  774. "observables":[
  775. ]
  776. },
  777. {
  778. "probability":{
  779. "exp":0.5000000
  780. },
  781. "location":"location",
  782. "assignments":[
  783. {
  784. "ref":"s2",
  785. "value":7
  786. },
  787. {
  788. "ref":"d2",
  789. "value":6
  790. }
  791. ],
  792. "observables":[
  793. ]
  794. }
  795. ]
  796. },
  797. {
  798. "location":"location",
  799. "action":"tau__",
  800. "guard":{
  801. "exp":{
  802. "op":"∧",
  803. "left":{
  804. "op":"=",
  805. "left":"s2",
  806. "right":7
  807. },
  808. "right":{
  809. "op":"=",
  810. "left":"s1",
  811. "right":7
  812. }
  813. }
  814. },
  815. "destinations":[
  816. {
  817. "probability":{
  818. "exp":1
  819. },
  820. "location":"location",
  821. "assignments":[
  822. {
  823. "ref":"s2",
  824. "value":7
  825. }
  826. ],
  827. "observables":[
  828. ]
  829. }
  830. ]
  831. }
  832. ]
  833. }
  834. ],
  835. "system":{
  836. "elements":[
  837. {
  838. "automaton":"die1"
  839. },
  840. {
  841. "automaton":"die2"
  842. }
  843. ],
  844. "syncs":[
  845. {
  846. "synchronise":[
  847. "tau__",
  848. null
  849. ],
  850. "result":"tau__"
  851. },
  852. {
  853. "synchronise":[
  854. null,
  855. "tau__"
  856. ],
  857. "result":"tau__"
  858. }
  859. ]
  860. }
  861. }