C++: Allow source = sink in 'MustFlow'.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-11-07 09:18:34 +00:00
parent 1dc08941f8
commit 6bf2d47321
2 changed files with 14 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ abstract class MustFlowConfiguration extends string {
*/
final predicate hasFlowPath(MustFlowPathNode source, MustFlowPathSink sink) {
this.isSource(source.getInstruction()) and
source.getASuccessor+() = sink
source.getASuccessor*() = sink
}
}