There was an error while loading. Please reload this page.
1 parent a09285b commit 2ef25e8Copy full SHA for 2ef25e8
1 file changed
python/ql/test/library-tests/dataflow-new-ssa/test.py
@@ -1,10 +1,10 @@
1
# Basic SSA tests for the new-CFG SSA adapter.
2
#
3
# The shared SSA implementation prunes its construction by liveness:
4
-# definitions of variables that are not read are never materialised.
5
-# This is by design — write-only variables would only bloat the SSA
6
-# graph. Tests therefore must always include a read of each variable
7
-# being verified.
+# write definitions of variables that are never read in their scope are
+# not materialised (except for module-scope globals, which may be read by
+# importers). Scope-entry defs are only created for non-local reads when
+# the variable has a defining store somewhere in the program.
8
9
# Annotations:
10
# def=<var>: there is an SSA write definition of <var> at this line
0 commit comments