C#: Remove unnecessary pre call in FlowSummaryImpl.qll

This commit is contained in:
Tom Hvitved
2021-03-25 15:31:43 +01:00
parent 6bfc49c069
commit 6a3859fc83

View File

@@ -323,19 +323,19 @@ module Private {
isParameterPostUpdate(_, c, i)
}
private Node pre(Node post) {
summaryPostUpdateNode(post, result)
or
not summaryPostUpdateNode(post, _) and
result = post
}
private predicate callbackOutput(
SummarizedCallable c, SummaryComponentStack s, Node receiver, ReturnKind rk
) {
any(SummaryNodeState state).isInputState(c, s) and
s.head() = TReturnSummaryComponent(rk) and
receiver = pre(summaryNodeInputState(c, s.drop(1)))
receiver = summaryNodeInputState(c, s.drop(1))
}
private Node pre(Node post) {
summaryPostUpdateNode(post, result)
or
not summaryPostUpdateNode(post, _) and
result = post
}
private predicate callbackInput(