Python: Also restrict StepSumary::step

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-01-04 16:42:11 +01:00
parent e6e1cc2398
commit 8ceb33d3f7

View File

@@ -51,7 +51,7 @@ module StepSummary {
* heap and/or inter-procedural step from `nodeFrom` to `nodeTo`.
*/
cached
predicate step(Node nodeFrom, Node nodeTo, StepSummary summary) {
predicate step(LocalSourceNode nodeFrom, Node nodeTo, StepSummary summary) {
exists(Node mid | typePreservingStep*(nodeFrom, mid) and smallstep(mid, nodeTo, summary))
}