Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. int globA;
  2. int globB;
  3.  
  4. proctype step1() {
  5. atomic {
  6. globA = 1;
  7. }
  8. }
  9.  
  10. proctype step2() { atomic {
  11. globB = 2;
  12. }
  13. }
  14.  
  15. init { atomic {
  16. run step1();
  17. run step2();
  18. }
  19. }
  20.  
  21. 0: proc - (:root:) creates proc 0 (:init:)
  22. Starting step1 with pid 1
  23. 1: proc 0 (:init::1) creates proc 1 (step1)
  24. 1: proc 0 (:init::1) pml_testing/transition_testing.pml:16 (state 1) [(run step1())]
  25. Starting step2 with pid 2
  26. 2: proc 0 (:init::1) creates proc 2 (step2)
  27. 2: proc 0 (:init::1) pml_testing/transition_testing.pml:17 (state 2) [(run step2())]
  28. 3: proc 2 (step2:1) pml_testing/transition_testing.pml:11 (state 1) [globB = 2]
  29. 4: proc 1 (step1:1) pml_testing/transition_testing.pml:6 (state 1) [globA = 1]
  30. 4: proc 2 (step2:1) terminates
  31. 4: proc 1 (step1:1) terminates
  32. 4: proc 0 (:init::1) terminates
  33. 3 processes created
  34.  
  35. 0: proc - (:root:) creates proc 0 (:init:)
  36. Starting step1 with pid 1
  37. 1: proc 0 (:init::1) creates proc 1 (step1)
  38. 1: proc 0 (:init::1) pml_testing/transition_testing.pml:16 (state 1) [(run step1())]
  39. Starting step2 with pid 2
  40. 2: proc 0 (:init::1) creates proc 2 (step2)
  41. 2: proc 0 (:init::1) pml_testing/transition_testing.pml:17 (state 2) [(run step2())]
  42. 3: proc 1 (step1:1) pml_testing/transition_testing.pml:6 (state 1) [globA = 1]
  43. 4: proc 2 (step2:1) pml_testing/transition_testing.pml:11 (state 1) [globB = 2]
  44. 4: proc 2 (step2:1) terminates
  45. 4: proc 1 (step1:1) terminates
  46. 4: proc 0 (:init::1) terminates
  47. 3 processes created
  48.  
  49. 0: proc - (:root:) creates proc 0 (:init:)
  50. Starting step1 with pid 1
  51. 1: proc 0 (:init::1) creates proc 1 (step1)
  52. 1: proc 0 (:init::1) pml_testing/transition_testing.pml:16 (state 1) [(run step1())]
  53. Starting step2 with pid 2
  54. 2: proc 0 (:init::1) creates proc 2 (step2)
  55. 2: proc 0 (:init::1) pml_testing/transition_testing.pml:17 (state 2) [(run step2())]
  56. 3: proc 2 (step2:1) pml_testing/transition_testing.pml:11 (state 1) [globB = 2]
  57. 3: proc 2 (step2:1) terminates
  58. 4: proc 1 (step1:1) pml_testing/transition_testing.pml:6 (state 1) [globA = 1]
  59. 4: proc 1 (step1:1) terminates
  60. 4: proc 0 (:init::1) terminates
  61. 3 processes created
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement