Skip to content

Commit faf717b

Browse files
committed
debug
1 parent 9bc395b commit faf717b

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
@@ -1358,6 +1358,17 @@ module MakeImplCommon<InputSig Lang> {
13581358
)
13591359
}
13601360

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

0 commit comments

Comments
 (0)