As pointed out by reviewers, my own mental model here was wrong. So, let's try revising the definition to make that more clear.
Details
Diff Detail
Event Timeline
| docs/LoopTerminology.rst | ||
|---|---|---|
| 17 |
(It's not a single cycle.) | |
| 31 | A sub-loop is sth. different. A loop can be made up of multiple cycles without having sub-loops. h: if (...) goto a; else goto b; a: if (...) goto h; else goto end; b: if (...) goto h; else goto end; two cycles: h -> a -> h and h -> b -> h, neither containing the other one. | |
I think I've reformulated this to incorporate the review comments, let me know what you think.
minor comments and corrections, LGTM otherwise. Thx.
| docs/LoopTerminology.rst | ||
|---|---|---|
| 17 | My bad, I missed the "maximal" part:
| |
| 29 | Nit: "but the strongly connected component formed" | |
| 61 | Nit: "(The latter is a consequence of the block being contained within an | |
(It's not a single cycle.)