Files
codeql/cpp/ql/test/successor-tests/whilestmt/whilestmt07.expected
Jeroen Ketema 5b0603a5b9 C++: Artificial block insertion for loops and switches has changed in frontend
There are now more artificial blocks containing more than one instruction
(artificial blocks containing a single instruction have the extractor only
emit that instruction and not the block). The second instruction in each case
is the label for breaking out of a loop or switch.
2022-04-25 21:13:52 +02:00

13 lines
950 B
Plaintext

| 0 | whilestmt.c:15:22:21:1 | { ... } | 1 | whilestmt.c:16:3:16:3 | { ... } |
| 1 | whilestmt.c:16:3:16:3 | { ... } | 1 | whilestmt.c:16:3:19:3 | while (...) ... |
| 1 | whilestmt.c:16:3:19:3 | while (...) ... | 1 | whilestmt.c:16:9:16:9 | 1 |
| 1 | whilestmt.c:16:9:16:9 | 1 | 1 | whilestmt.c:16:12:19:3 | { ... } |
| 1 | whilestmt.c:16:12:19:3 | { ... } | 2 | whilestmt.c:17:5:17:7 | label ...: |
| 2 | whilestmt.c:17:5:17:7 | label ...: | 2 | whilestmt.c:17:8:17:8 | ; |
| 2 | whilestmt.c:17:8:17:8 | ; | 3 | whilestmt.c:18:5:18:10 | break; |
| 3 | whilestmt.c:18:5:18:10 | break; | 4 | whilestmt.c:19:3:19:3 | label ...: |
| 4 | whilestmt.c:19:3:19:3 | label ...: | 5 | whilestmt.c:20:3:20:5 | label ...: |
| 5 | whilestmt.c:20:3:20:5 | label ...: | 5 | whilestmt.c:20:6:20:6 | ; |
| 5 | whilestmt.c:20:6:20:6 | ; | 6 | whilestmt.c:21:1:21:1 | return ... |
| 6 | whilestmt.c:21:1:21:1 | return ... | 0 | whilestmt.c:15:6:15:18 | always_true_1 |