Skip to content

Commit 53a0534

Browse files
committed
Formatting
1 parent 176f866 commit 53a0534

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

liquidjava-verifier/src/main/java/liquidjava/rj_language/opt/ConstantPropagation.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ private static ValDerivationNode propagateRecursive(Expression exp, Map<String,
4545
if (value != null) {
4646
// check if this variable has an origin from a previous pass
4747
DerivationNode previousOrigin = varOrigins.get(name);
48-
48+
4949
// preserve origin if value came from previous derivation
50-
DerivationNode origin = previousOrigin != null ? new VarDerivationNode(name, previousOrigin) : new VarDerivationNode(name);
50+
DerivationNode origin = previousOrigin != null ? new VarDerivationNode(name, previousOrigin)
51+
: new VarDerivationNode(name);
5152
return new ValDerivationNode(value.clone(), origin);
5253
}
5354

@@ -93,11 +94,10 @@ private static ValDerivationNode propagateRecursive(Expression exp, Map<String,
9394
return new ValDerivationNode(exp, null);
9495
}
9596

96-
9797
/**
98-
* Extracts the derivation nodes for variable values from the derivation tree
99-
* This is so done so when we find "var == value" in the tree, we store the derivation of the value
100-
* So it can be preserved when var is substituted in subsequent passes
98+
* Extracts the derivation nodes for variable values from the derivation tree This is so done so when we find "var
99+
* == value" in the tree, we store the derivation of the value So it can be preserved when var is substituted in
100+
* subsequent passes
101101
*/
102102
private static void extractVarOrigins(ValDerivationNode node, Map<String, DerivationNode> varOrigins) {
103103
if (node == null)

0 commit comments

Comments
 (0)