Skip to content

Commit 44546c3

Browse files
committed
Java: Move SSA entry defs to index -1.
1 parent 85175f6 commit 44546c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/BaseSSA.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private module SsaInput implements SsaImplCommon::InputSig<Location, BasicBlock>
169169
certain = true
170170
or
171171
hasEntryDef(v, bb) and
172-
i = 0 and
172+
i = -1 and
173173
certain = true
174174
}
175175

@@ -232,7 +232,7 @@ private module Cached {
232232
exists(BaseSsaSourceVariable v, BasicBlock bb, int i |
233233
def.definesAt(v, bb, i) and
234234
hasEntryDef(v, bb) and
235-
i = 0
235+
i = -1
236236
)
237237
}
238238

java/ql/lib/semmle/code/java/dataflow/internal/SsaImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private module SsaInput implements SsaImplCommon::InputSig<Location, BasicBlock>
188188
certain = true
189189
or
190190
hasEntryDef(v, bb) and
191-
i = 0 and
191+
i = -1 and
192192
certain = true
193193
or
194194
uncertainVariableUpdate(v, _, bb, i) and
@@ -502,7 +502,7 @@ private module Cached {
502502
exists(SsaSourceVariable v, BasicBlock bb, int i |
503503
def.definesAt(v, bb, i) and
504504
hasEntryDef(v, bb) and
505-
i = 0
505+
i = -1
506506
)
507507
}
508508

0 commit comments

Comments
 (0)