Skip to content

Commit d011b46

Browse files
committed
Accept CFG changes
- An empty select statement is correctly identified as a dead end. - Select statements have multiple successors. - Return statements have multiple successors when there are conditionally called defer statements.
1 parent ace5552 commit d011b46

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
consistencyOverview
2+
| deadEnd | 1 |
3+
| multipleSuccessors | 10 |
4+
deadEnd
5+
| stmts.go:61:2:61:10 | select statement |
6+
multipleSuccessors
7+
| stmts2.go:16:2:26:2 | select statement | successor | stmts2.go:17:2:17:15 | comm clause |
8+
| stmts2.go:16:2:26:2 | select statement | successor | stmts2.go:18:2:19:10 | comm clause |
9+
| stmts2.go:16:2:26:2 | select statement | successor | stmts2.go:20:2:24:10 | comm clause |
10+
| stmts2.go:16:2:26:2 | select statement | successor | stmts2.go:25:2:25:18 | comm clause |
11+
| stmts.go:50:2:59:2 | select statement | successor | stmts.go:51:2:52:31 | comm clause |
12+
| stmts.go:50:2:59:2 | select statement | successor | stmts.go:53:2:55:16 | comm clause |
13+
| stmts.go:50:2:59:2 | select statement | successor | stmts.go:56:2:57:15 | comm clause |
14+
| stmts.go:50:2:59:2 | select statement | successor | stmts.go:58:2:58:16 | comm clause |
15+
| stmts.go:71:2:71:10 | return statement | successor | stmts.go:67:9:67:35 | defer-invoke function call |
16+
| stmts.go:71:2:71:10 | return statement | successor | stmts.go:69:9:69:36 | defer-invoke function call |

0 commit comments

Comments
 (0)