The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

210 lines
6.7 KiB

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