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.

214 lines
6.0 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":"time"
  11. },
  12. {
  13. "name":"round"
  14. }
  15. ],
  16. "constants":[
  17. {
  18. "name":"delay",
  19. "type":"int"
  20. },
  21. {
  22. "name":"fast",
  23. "type":"real"
  24. }
  25. ],
  26. "variables":[
  27. {
  28. "name":"x",
  29. "type":{
  30. "kind":"bounded",
  31. "base":"int",
  32. "lower-bound":0,
  33. "upper-bound":{
  34. "op":"+",
  35. "left":167,
  36. "right":1
  37. }
  38. }
  39. },
  40. {
  41. "name":"s",
  42. "type":{
  43. "kind":"bounded",
  44. "base":"int",
  45. "lower-bound":0,
  46. "upper-bound":9
  47. }
  48. }
  49. ],
  50. "observables":[
  51. {
  52. "name":"\"time\""
  53. },
  54. {
  55. "name":"\"rounds\""
  56. }
  57. ],
  58. "initial-states":{
  59. "exp":{
  60. "op":"∧",
  61. "left":{
  62. "op":"=",
  63. "left":"x",
  64. "right":0
  65. },
  66. "right":{
  67. "op":"=",
  68. "left":"s",
  69. "right":0
  70. }
  71. }
  72. },
  73. "automata":[
  74. {
  75. "name":"abstract_firewire",
  76. "locations":[
  77. {
  78. "name":"location"
  79. }
  80. ],
  81. "initial-locations":[
  82. "location"
  83. ],
  84. "edges":[
  85. {
  86. "location":"location",
  87. "action":"time",
  88. "guard":{
  89. "exp":{
  90. "op":"∧",
  91. "left":{
  92. "op":"=",
  93. "left":"s",
  94. "right":0
  95. },
  96. "right":{
  97. "op":"<",
  98. "left":"x",
  99. "right":"delay"
  100. }
  101. }
  102. },
  103. "destinations":[
  104. {
  105. "probability":{
  106. "exp":1
  107. },
  108. "location":"location",
  109. "assignments":[
  110. {
  111. "ref":"x",
  112. "value":{
  113. "op":"min",
  114. "left":{
  115. "op":"+",
  116. "left":"x",
  117. "right":1
  118. },
  119. "right":{
  120. "op":"+",
  121. "left":167,
  122. "right":1
  123. }
  124. }
  125. }
  126. ],
  127. "observables":[
  128. {
  129. "ref":"\"time\"",
  130. "value":1
  131. }
  132. ]
  133. }
  134. ]
  135. },
  136. {
  137. "location":"location",
  138. "action":"round",
  139. "guard":{
  140. "exp":{
  141. "op":"=",
  142. "left":"s",
  143. "right":0
  144. }
  145. },
  146. "destinations":[
  147. {
  148. "probability":{
  149. "exp":"fast"
  150. },
  151. "location":"location",
  152. "assignments":[
  153. {
  154. "ref":"s",
  155. "value":1
  156. }
  157. ],
  158. "observables":[
  159. {
  160. "ref":"\"rounds\"",
  161. "value":1
  162. }
  163. ]
  164. },
  165. {
  166. "probability":{
  167. "exp":{
  168. "op":"-",
  169. "left":1,
  170. "right":"fast"
  171. }
  172. },
  173. "location":"location",
  174. "assignments":[
  175. {
  176. "ref":"s",
  177. "value":4
  178. }
  179. ],
  180. "observables":[
  181. {
  182. "ref":"\"rounds\"",
  183. "value":1
  184. }
  185. ]
  186. }
  187. ]
  188. }
  189. ]
  190. }
  191. ],
  192. "system":{
  193. "elements":[
  194. {
  195. "automaton":"abstract_firewire"
  196. }
  197. ],
  198. "syncs":[
  199. {
  200. "synchronise":[
  201. "time"
  202. ],
  203. "result":"time"
  204. },
  205. {
  206. "synchronise":[
  207. "round"
  208. ],
  209. "result":"round"
  210. }
  211. ]
  212. }
  213. }