@@ -393,12 +393,12 @@ module StepRelationTransformations {
393
393
* Consider a read from a global variable `x = foo`. At import time there should be a local flow step from `foo` to `x`,
394
394
* while at runtime there should be a jump step from the module variable corresponding to `foo` to `x`.
395
395
*
396
- * Similarly for, a write `foo = y`, at import time, there is a local flow step from `y` to `foo` while at runtime there
396
+ * Similarly, for a write `foo = y`, at import time, there is a local flow step from `y` to `foo` while at runtime there
397
397
* is a jump step from `y` to the module variable corresponding to `foo`.
398
398
*
399
399
* We need a way of distinguishing if we are looking at import time or runtime. We have the following helpful facts:
400
400
* - All top-level executable statements are import time (and import time only)
401
- * - All - non-top-level code may be executed at runtime (but could also be executed at import time)
401
+ * - All non-top-level code may be executed at runtime (but could also be executed at import time)
402
402
*
403
403
* We could write an analysis to determine which functions are called at import time, but until we have that, we will go
404
404
* with the heuristic that global variables act according to import time rules at top-level program points and according
@@ -409,7 +409,7 @@ module StepRelationTransformations {
409
409
* Holds if `node` is found at the top level of a module.
410
410
*/
411
411
pragma [ inline]
412
- predicate isTopLevel ( Node node ) { node .getScope ( ) instanceof Module }
412
+ private predicate isTopLevel ( Node node ) { node .getScope ( ) instanceof Module }
413
413
414
414
/** Holds if a step can be taken from `nodeFrom` to `nodeTo` at import time. */
415
415
predicate importTimeStep ( Node nodeFrom , Node nodeTo ) {
0 commit comments