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

Skip to content

Commit 50eb51b

Browse files
committed
Python: QL doc for StepSummary
1 parent 6103dbc commit 50eb51b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

python/ql/src/semmle/python/dataflow/new/TypeTracker.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,24 @@ class StepSummary extends TStepSummary {
4444
}
4545
}
4646

47+
/** Provides predicates for updating step summaries (`StepSummary`s). */
4748
module StepSummary {
49+
/**
50+
* Gets the summary that corresponds to having taken a forwards
51+
* heap and/or inter-procedural step from `nodeFrom` to `nodeTo`.
52+
*/
4853
cached
4954
predicate step(Node nodeFrom, Node nodeTo, StepSummary summary) {
5055
exists(Node mid | typePreservingStep*(nodeFrom, mid) and smallstep(mid, nodeTo, summary))
5156
}
5257

58+
/**
59+
* Gets the summary that corresponds to having taken a forwards
60+
* local, heap and/or inter-procedural step from `nodeFrom` to `nodeTo`.
61+
*
62+
* Unlike `StepSummary::step`, this predicate does not compress
63+
* type-preserving steps.
64+
*/
5365
predicate smallstep(Node nodeFrom, Node nodeTo, StepSummary summary) {
5466
typePreservingStep(nodeFrom, nodeTo) and
5567
summary = LevelStep()

0 commit comments

Comments
 (0)