test_cross_region1.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. <!-- cross-region transition -->
  17. <!-- only this transition should be taken, its arena is <root> -->
  18. <transition target="/p/region2/s4">
  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. </state>
  28. <state id="s4">
  29. </state>
  30. </state>
  31. <state id="region3" initial="s5">
  32. <state id="s5">
  33. <!-- same-region transition -->
  34. <!-- this transition's arena is <region3>, descendant of <root> -->
  35. <transition target="/p/region3/s6">
  36. <raise port="out" event="fail"/>
  37. </transition>
  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>