Files
codeql/cpp/ql/test/successor-tests/dostmt/dostmt07.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
872 B
Plaintext

| 0 | dostmt.c:8:22:14:1 | { ... } | 1 | dostmt.c:9:3:9:3 | { ... } |
| 1 | dostmt.c:9:3:9:3 | { ... } | 1 | dostmt.c:9:3:12:13 | do (...) ... |
| 1 | dostmt.c:9:3:12:13 | do (...) ... | 1 | dostmt.c:9:6:12:3 | { ... } |
| 1 | dostmt.c:9:6:12:3 | { ... } | 2 | dostmt.c:10:5:10:7 | label ...: |
| 2 | dostmt.c:10:5:10:7 | label ...: | 2 | dostmt.c:10:8:10:8 | ; |
| 2 | dostmt.c:10:8:10:8 | ; | 3 | dostmt.c:11:5:11:10 | break; |
| 3 | dostmt.c:11:5:11:10 | break; | 4 | dostmt.c:12:13:12:13 | label ...: |
| 4 | dostmt.c:12:11:12:11 | 1 | 1 | dostmt.c:9:6:12:3 | { ... } |
| 4 | dostmt.c:12:13:12:13 | label ...: | 5 | dostmt.c:13:3:13:5 | label ...: |
| 5 | dostmt.c:13:3:13:5 | label ...: | 5 | dostmt.c:13:6:13:6 | ; |
| 5 | dostmt.c:13:6:13:6 | ; | 6 | dostmt.c:14:1:14:1 | return ... |
| 6 | dostmt.c:14:1:14:1 | return ... | 0 | dostmt.c:8:6:8:18 | always_true_1 |