@@ -62,22 +62,22 @@ private static VCImplication substitute(VCImplication implication, VCImplication
6262 * Substitutes a source binder inside one predicate while preserving simplification metadata
6363 */
6464 private static Predicate substituteRefinement (Predicate refinement , VCImplication source , Expression value ) {
65- Expression active = refinement .getExpression ().clone ();
65+ Expression exp = refinement .getExpression ().clone ();
6666 Binder binder = new Binder (source .getName (), source .getType ());
67- Expression substituted = active .substitute (new Var (binder .getName ()), value .clone ());
67+ Expression substituted = exp .substitute (new Var (binder .getName ()), value .clone ());
6868
6969 return new SimplifiedPredicate (new Predicate (substituted ), refinement .getOrigin ().clone (),
70- bindersAfterSubstitution (refinement , active , binder ));
70+ bindersAfterSubstitution (refinement , exp , binder ));
7171 }
7272
7373 /**
7474 * Builds the binder metadata after one substitution
7575 */
76- private static List <Binder > bindersAfterSubstitution (Predicate refinement , Expression active ,
76+ private static List <Binder > bindersAfterSubstitution (Predicate refinement , Expression exp ,
7777 SimplifiedPredicate .Binder binder ) {
7878 List <SimplifiedPredicate .Binder > binders = refinement instanceof SimplifiedPredicate previous
7979 ? new ArrayList <>(previous .getBinders ()) : new ArrayList <>();
80- if (containsVariable (active , binder .getName ()) && !binders .contains (binder ))
80+ if (containsVariable (exp , binder .getName ()) && !binders .contains (binder ))
8181 binders .add (binder );
8282 return binders ;
8383 }
0 commit comments