Static analysis of expl3 programs (13): Reaching definitions and expandability
Over the fourteen months since the last full devlog post, I have released twenty updates (1, 2, 3, …, 20) to expltools, the bundle that provides the explcheck static analyzer for the expl3 programming language.
These updates have brought two major features to flow analysis, the final processing step of explcheck that I teased in that earlier post: reaching definitions and expandability analysis.
In this post, I outline both features and the algorithms behind them, adapted to the dynamic scoping and inherent uncertainty of expl3 programs.