Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4814dcf

Browse files
author
Dave Bartolomeo
committed
Print partial flow info in PrintIRLocalFlow.qll
1 parent 1dae8f6 commit 4814dcf

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/PrintIRLocalFlow.qll

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,19 @@ private string getNodeProperty(DataFlow::Node node, string key) {
130130
|
131131
kind, ", "
132132
)
133+
or
134+
key = "pflow" and
135+
result =
136+
strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,
137+
int order1, int order2 |
138+
any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and
139+
destNode.getNode() = node and
140+
sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable()
141+
|
142+
nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", "
143+
order by
144+
order1, order2, dist desc
145+
)
133146
}
134147

135148
/**

0 commit comments

Comments
 (0)