test_cross_region2.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" ?>
  2. <test>
  3. <statechart>
  4. <semantics big_step_maximality="take_one"/>
  5. <inport name="in">
  6. <event name="go"/>
  7. </inport>
  8. <outport name="out">
  9. <event name="success"/>
  10. <event name="fail"/>
  11. </outport>
  12. <root>
  13. <parallel id="p">
  14. <state id="region1" initial="s1">
  15. <state id="s1">
  16. <!-- same-region transition -->
  17. <!-- only this transition should be taken, its arena is <region1> -->
  18. <transition target="/p/region1/s2">
  19. <raise port="out" event="success"/>
  20. </transition>
  21. </state>
  22. <state id="s2">
  23. </state>
  24. </state>
  25. <state id="region2" initial="s3">
  26. <state id="s3">
  27. <!-- cross-region transition -->
  28. <!-- this transition's arena is <root>, ancestor of <region1> -->
  29. <transition target="/p/region3/s6">
  30. <raise port="out" event="fail"/>
  31. </transition>
  32. </state>
  33. <state id="s4">
  34. </state>
  35. </state>
  36. <state id="region3" initial="s5">
  37. <state id="s5">
  38. </state>
  39. <state id="s6">
  40. </state>
  41. </state>
  42. </parallel>
  43. </root>
  44. </statechart>
  45. <input>
  46. <event port="in" name="go" time="0 d"/>
  47. </input>
  48. <output>
  49. <big_step>
  50. <event port="out" name="success"/>
  51. </big_step>
  52. </output>
  53. </test>