Package org.sonar.php.cfg
Class LiveVariablesAnalysis
- java.lang.Object
-
- org.sonar.php.cfg.LiveVariablesAnalysis
-
public class LiveVariablesAnalysis extends Object
This class provides information about symbols which are "live" (which value will be read) at some point of the program. See https://en.wikipedia.org/wiki/Live_variable_analysis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LiveVariablesAnalysis.LiveVariables
Holds the information about the liveness of variables for one basic block.static class
LiveVariablesAnalysis.VariableUsage
-
Constructor Summary
Constructors Constructor Description LiveVariablesAnalysis()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LiveVariablesAnalysis
analyze(ControlFlowGraph cfg, SymbolTable symbols)
LiveVariablesAnalysis.LiveVariables
getLiveVariables(CfgBlock block)
Set<Symbol>
getReadSymbols()
-
-
-
Method Detail
-
analyze
public static LiveVariablesAnalysis analyze(ControlFlowGraph cfg, SymbolTable symbols)
-
getLiveVariables
public LiveVariablesAnalysis.LiveVariables getLiveVariables(CfgBlock block)
-
-