File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
lib/codeql/rust/dataflow/internal
test/library-tests/variables Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ private module Cached {
229
229
*/
230
230
cached
231
231
predicate capturedEntryWrite ( EntryBasicBlock bb , int i , Variable v ) {
232
- readsCapturedVariable ( bb .getASuccessor * ( ) , v ) and
232
+ exists ( getACapturedVariableAccess ( bb .getASuccessor * ( ) , v ) ) and
233
233
i = - 1
234
234
}
235
235
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ definition
167
167
| main.rs:621:5:621:5 | x | main.rs:620:9:620:9 | x |
168
168
| main.rs:626:13:626:13 | x | main.rs:626:13:626:13 | x |
169
169
| main.rs:627:13:627:15 | cap | main.rs:627:13:627:15 | cap |
170
+ | main.rs:627:19:632:5 | <captured entry> x | main.rs:626:13:626:13 | x |
170
171
| main.rs:627:20:627:20 | b | main.rs:627:20:627:20 | b |
171
172
| main.rs:629:17:631:9 | SSA phi(x) | main.rs:626:13:626:13 | x |
172
173
| main.rs:630:13:630:13 | x | main.rs:626:13:626:13 | x |
548
549
| main.rs:284:20:284:55 | SSA phi(a9) | main.rs:284:20:284:55 | a9 | main.rs:284:53:284:54 | a9 |
549
550
| main.rs:494:13:503:5 | SSA phi(x) | main.rs:490:13:490:13 | x | main.rs:496:9:496:9 | x |
550
551
| main.rs:494:13:503:5 | SSA phi(x) | main.rs:490:13:490:13 | x | main.rs:500:9:500:9 | x |
552
+ | main.rs:629:17:631:9 | SSA phi(x) | main.rs:626:13:626:13 | x | main.rs:627:19:632:5 | <captured entry> x |
551
553
| main.rs:629:17:631:9 | SSA phi(x) | main.rs:626:13:626:13 | x | main.rs:630:13:630:13 | x |
552
554
phiReadNode
553
555
| main.rs:108:11:109:12 | SSA phi read(s1) | main.rs:106:9:106:10 | s1 |
@@ -591,6 +593,7 @@ ultimateDef
591
593
| main.rs:284:20:284:55 | SSA phi(a9) | main.rs:284:53:284:54 | a9 |
592
594
| main.rs:494:13:503:5 | SSA phi(x) | main.rs:496:9:496:9 | x |
593
595
| main.rs:494:13:503:5 | SSA phi(x) | main.rs:500:9:500:9 | x |
596
+ | main.rs:629:17:631:9 | SSA phi(x) | main.rs:627:19:632:5 | <captured entry> x |
594
597
| main.rs:629:17:631:9 | SSA phi(x) | main.rs:630:13:630:13 | x |
595
598
assigns
596
599
| main.rs:18:9:18:10 | x1 | main.rs:18:14:18:16 | "a" |
You can’t perform that action at this time.
0 commit comments