Class ConstantPropagation
java.lang.Object
liquidjava.rj_language.opt.ConstantPropagation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValDerivationNodepropagate(Expression exp) Performs constant propagation on an expression, by substituting variables with their constant values.
-
Constructor Details
-
ConstantPropagation
public ConstantPropagation()
-
-
Method Details
-
propagate
Performs constant propagation on an expression, by substituting variables with their constant values. Uses the VariableResolver to extract variable equalities from the expression first. Returns a derivation node representing the propagation steps taken.
-