fail_race_condition.xml 904 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" ?>
  2. <test>
  3. <statechart>
  4. <semantics
  5. big_step_maximality="take_one"
  6. input_event_lifeline="whole"
  7. assignment_memory_protocol="big_step"/>
  8. <datamodel>
  9. x = 0;
  10. </datamodel>
  11. <root>
  12. <!-- both transitions execute in the same big step, both writing to 'x' (one overwriting the other's result) -->
  13. <parallel id="p">
  14. <state id="a">
  15. <state id="a1">
  16. <transition port="in" event="e" target=".">
  17. <code> x += 1; </code>
  18. </transition>
  19. </state>
  20. </state>
  21. <state id="b">
  22. <state id="a1">
  23. <transition port="in" event="e" target=".">
  24. <code> x += 1; </code>
  25. </transition>
  26. </state>
  27. </state>
  28. </parallel>
  29. </root>
  30. </statechart>
  31. <input>
  32. <event port="in" name="e" time="0 d"/>
  33. </input>
  34. </test>