Skip to content

Commit 05e44c8

Browse files
owen-mcCopilot
andcommitted
Fix Java shared guards instantiation
Explicitly implement the new optional SSA hooks in LogicInput_v3 so its signature members do not conflict with those imported from LogicInput_v2. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d6d0ed2 commit 05e44c8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • java/ql/lib/semmle/code/java/controlflow

‎java/ql/lib/semmle/code/java/controlflow/Guards.qll‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,12 @@ private module LogicInput_v3 implements GuardsImpl::LogicInputSig {
342342
private import semmle.code.java.dataflow.IntegerGuards as IntegerGuards
343343
import LogicInput_v2
344344

345+
predicate implicitReturnDefinition(GuardsInput::NonOverridableMethod method, SsaDefinition def) {
346+
none()
347+
}
348+
349+
predicate additionalSsaDefinitionValue(SsaDefinition def, GuardValue value) { none() }
350+
345351
predicate rangeGuard(GuardsImpl::PreGuard guard, GuardValue val, Expr e, int k, boolean upper) {
346352
IntegerGuards::rangeGuard(guard, val.asBooleanValue(), e, k, upper)
347353
}

0 commit comments

Comments
 (0)