test_cond.xml 666 B

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" ?>
  2. <test>
  3. <statechart>
  4. <semantics/>
  5. <datamodel>
  6. <var id="x" expr="0"/>
  7. <var id="y" expr="x"/><!-- this is allowed, value of x copied to y -->
  8. </datamodel>
  9. <tree>
  10. <state initial="start">
  11. <state id="start">
  12. <transition event="e" port="in" target="/done" cond="y == 0">
  13. <raise event="done" port="out"/>
  14. </transition>
  15. </state>
  16. <state id="done"/>
  17. </state>
  18. </tree>
  19. </statechart>
  20. <input>
  21. <input_event name="e" port="in" time="0 d"/>
  22. </input>
  23. <output>
  24. <big_step>
  25. <event name="done" port="out"/>
  26. </big_step>
  27. </output>
  28. </test>