You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d29b7e1
Browse filesBrowse the repository at this point in the historyBrowse files
Do not decide statically which branches and loop bodies run in the variable flow
A usage in code that the analysis considers dead still counts: the
variable flow no longer prunes if/elseif/else branches, loop bodies or
blocks by the inferred or literal value of a condition, the type of the
iterated value, the exhaustiveness of a switch without default, or the
polluteScopeWithAlwaysIterableForeach, polluteScopeWithLoopInitialAssignments
and polluteScopeWithBlock settings. Every branch, loop body and block may
run or not - a write inside one does not make an earlier write dead, and
a read inside one counts even when it can never run. A do-while body
still runs once.
Under polluteScopeWithBlock: false the block's variable flow was dropped
altogether. InternalStatementResult::withVariableFlow() replaces the flow
of the result a polluting block passes through.
The DEAD flow kind, VariableFlow::dead() and the truthiness argument of
VariableFlow::conditional() are gone.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bm4YbtwnyY5UMgp64hK1ff
0 commit comments