1: for all S = (P′, T ′, F′, M′0) ∈S do
2: i = 1
3: I ←∅
4: O ←∅
5: for all p ∈P′ do
6: for each t ∈•p such that •t = ∅do I = I ∪{t}
7: for each t ∈p• such that t• = ∅do O = O ∪{t}
8: end for
9: if [I ̸= ∅or O ̸= ∅] then
10: if [I = ∅or O = ∅] then
11: notify: “The net cannot be decomposed.”
12: return
13: else
14: P′ = P′ ∪{N O Pi}
15: for