Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
i7
peregrine
Commits
abecc460
Commit
abecc460
authored
Nov 20, 2014
by
Philipp Meyer
Browse files
Added original example for Lamport's algorithm
parent
a68e024c
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/lamport_orig.pnet
0 → 100644
View file @
abecc460
petri net "Lamport's algorithm" {
places {
p1 p2 p3 b1 nb1
q1 q2 q3 q4 q5 nb2
}
transitions {
s1 s2 s3
t1 t2 t3 t4 t5 t6
}
arcs {
{ p1, nb1 } -> s1 -> { p2, b1 }
{ p2, nb2 } -> s2 -> { p3, nb2 }
{ p3, b1 } -> s3 -> { p1, nb1 }
{ q1, nb2 } -> t1 -> { q2, }
{ q2, b1 } -> t2 -> { q3, b1 }
{ q3, } -> t3 -> { q4, nb2 }
{ q4, nb1 } -> t4 -> { q1, nb1 }
{ q2, nb1 } -> t5 -> { q5, nb1 }
{ q5, } -> t6 -> { q1, nb2 }
}
initial {
p1 q1 nb1 nb2
}
}
safety property "mutual exclusion" {
p3 >= 1 && q5 >= 1
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment