Skip to content

Commit

Permalink
Fix SM layouter for some irregular / irreducible CF
Browse files Browse the repository at this point in the history
  • Loading branch information
phschaad committed Oct 30, 2024
1 parent 96b182f commit f01b8c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layouter/state_machine/sm_layouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ export class SMLayouter {
if (n !== node)
exitCandidates.add(n);
}
const loopGuardPostdom = this.iPostDoms.get(node)
if (loopGuardPostdom && loopGuardPostdom !== node)
exitCandidates.add(loopGuardPostdom);

if (exitCandidates.size < 1) {
throw new Error('No exit candidates found.');
Expand Down

0 comments on commit f01b8c3

Please sign in to comment.