We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d072a1 commit e185e90Copy full SHA for e185e90
ruby/ql/lib/codeql/ruby/dataflow/internal/SsaImplCommon.qll
@@ -645,17 +645,18 @@ module Consistency {
645
646
query predicate nonUniqueDef(RelevantDefinition def, SourceVariable v, BasicBlock bb, int i) {
647
ssaDefReachesRead(v, def, bb, i) and
648
- not exists(unique(Definition def0 | ssaDefReachesRead(_, def0, bb, i)))
+ not exists(unique(Definition def0 | ssaDefReachesRead(v, def0, bb, i)))
649
}
650
651
query predicate readWithoutDef(SourceVariable v, BasicBlock bb, int i) {
652
variableRead(bb, i, v, _) and
653
- not ssaDefReachesRead(_, _, bb, i)
+ not ssaDefReachesRead(v, _, bb, i)
654
655
656
query predicate deadDef(RelevantDefinition def, SourceVariable v) {
657
v = def.getSourceVariable() and
658
not ssaDefReachesRead(_, def, _, _) and
659
- not phiHasInputFromBlock(_, def, _)
+ not phiHasInputFromBlock(_, def, _) and
660
+ not uncertainWriteDefinitionInput(_, def)
661
662
0 commit comments