Python: more tests and comments

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-09-08 14:44:36 +02:00
parent 9b198c6d0a
commit a9c409403c
5 changed files with 112 additions and 0 deletions

View File

@@ -245,6 +245,9 @@ predicate simpleLocalFlowStep(Node nodeFrom, Node nodeTo) {
/**
* Holds if there is an Essa flow step from `nodeFrom` to `nodeTo` that does not switch between
* local and global SSA variables.
*
* This predicate is currently empty, since `EssaFlow::essaFlowStep` never goes between `EssaNode`s.
* (It only starts in an `EssaNode` in a single case, namely `defToFirstUse` which ends in a `CfgNode`.)
*/
private predicate localEssaStep(EssaNode nodeFrom, EssaNode nodeTo) {
EssaFlow::essaFlowStep(nodeFrom, nodeTo) and