Skip to content

Commit 2ef25e8

Browse files
yoffCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent a09285b commit 2ef25e8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • python/ql/test/library-tests/dataflow-new-ssa

python/ql/test/library-tests/dataflow-new-ssa/test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Basic SSA tests for the new-CFG SSA adapter.
22
#
33
# 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.
4+
# write definitions of variables that are never read in their scope are
5+
# not materialised (except for module-scope globals, which may be read by
6+
# importers). Scope-entry defs are only created for non-local reads when
7+
# the variable has a defining store somewhere in the program.
88
#
99
# Annotations:
1010
# def=<var>: there is an SSA write definition of <var> at this line

0 commit comments

Comments
 (0)