Apply suggestions from code review

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2023-08-04 11:10:12 +02:00
committed by GitHub
parent 981f67531c
commit eb19052a7d
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
---
category: feature
---
* The `StateConfigSig` signature now supports an `isSink/1` predicate that does not specify the `FlowState` for which the given node is a sink. Instead, any `FlowState` is considered a valid `FlowState` for the sink.
* The `StateConfigSig` signature now supports a unary `isSink` predicate that does not specify the `FlowState` for which the given node is a sink. Instead, any `FlowState` is considered a valid `FlowState` for such a sink.

View File

@@ -114,7 +114,7 @@ module Configs<DataFlowParameter Lang> {
predicate isSink(Node sink, FlowState state);
/**
* Holds if `sink` is a relevant data flow sink.
* Holds if `sink` is a relevant data flow sink for any state.
*/
default predicate isSink(Node sink) { none() }

View File

@@ -4069,7 +4069,7 @@ module MakeImpl<DataFlowParameter Lang> {
NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
TRevSummaryCtx3 sc3, PartialAccessPath ap
) {
sinkNodeWithState(node, state) and
revSinkNode(node, state) and
sc1 = TRevSummaryCtx1None() and
sc2 = TRevSummaryCtx2None() and
sc3 = TRevSummaryCtx3None() and
@@ -4287,7 +4287,7 @@ module MakeImpl<DataFlowParameter Lang> {
}
predicate isSink() {
sinkNodeWithState(node, state) and
revSinkNode(node, state) and
sc1 = TRevSummaryCtx1None() and
sc2 = TRevSummaryCtx2None() and
sc3 = TRevSummaryCtx3None() and