Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ssa: Expose new consistency check from VariableCapture.qll
  • Loading branch information
asgerf committed Oct 2, 2026
commit b1b2b2008c61872085b2bf1a7e760e557cb94adc
1 change: 1 addition & 0 deletions csharp/ql/consistency-queries/SsaConsistency.ql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import csharp
import semmle.code.csharp.dataflow.internal.SsaImpl as Impl
import Impl::Consistency
import Impl::DataFlowIntegration::DfConsistency
import Ssa

query predicate localDeclWithSsaDef(LocalVariableDeclExpr d) {
Expand Down
1 change: 1 addition & 0 deletions java/ql/consistency-queries/SsaConsistency.ql
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import java
import semmle.code.java.dataflow.internal.SsaImpl
import Impl::Consistency
import DataFlowIntegration::DfConsistency
1 change: 1 addition & 0 deletions ruby/ql/consistency-queries/SsaConsistency.ql
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import codeql.ruby.dataflow.SSA
import codeql.ruby.dataflow.internal.SsaImpl
import Consistency
import DataFlowIntegration::DfConsistency
1 change: 1 addition & 0 deletions rust/ql/consistency-queries/SsaConsistency.ql
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
import codeql.rust.dataflow.Ssa
import codeql.rust.dataflow.internal.SsaImpl
import Consistency
import DataFlowIntegration::DfConsistency
2 changes: 2 additions & 0 deletions shared/dataflow/codeql/dataflow/VariableCapture.qll
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ module Flow<
msg = "Callable has multiple locations" and 2 <= strictcount(c.getLocation())
}

import SsaFlow::DfConsistency

query predicate consistencyOverview(string msg, int n) {
uniqueToString(msg, n) or
n = strictcount(BasicBlock bb | uniqueEnclosingCallable(bb, msg)) or
Expand Down