Skip to content

Commit 8d913bd

Browse files
committed
debug
1 parent e067f42 commit 8d913bd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,17 @@ module MakeImplCommon<InputSig Lang> {
13601360
)
13611361
}
13621362

1363+
private predicate temp(ArgNode arg, ParamNode p, DataFlowType t1, DataFlowType t2) {
1364+
typeFlowArgType(arg, t1, _) and
1365+
relevantArgParamIn(arg, p, t2) and
1366+
not compatibleTypes(t1, t2)
1367+
}
1368+
1369+
private predicate temp(ArgNode arg, ParamNode p, int cnt) {
1370+
// temp(arg, p, t1, t2) and
1371+
cnt = strictcount(DataFlowType ta, DataFlowType tb | temp(arg, p, ta, tb))
1372+
}
1373+
13631374
/**
13641375
* Holds if there is a possible type for `arg` in the call context `cc` that
13651376
* is consistent with the static type of `p`.

0 commit comments

Comments
 (0)