File tree Expand file tree Collapse file tree
liquidjava-verifier/src/main/java/liquidjava/rj_language Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77import spoon .reflect .reference .CtTypeReference ;
88
9+ /**
10+ * Represents a predicate simplified from another predicate. Stores the original predicate and any variables that must
11+ * be reintroduced as binders when relating the simplified predicate back to its origin.
12+ * <p>
13+ * For example, simplifying {@code x == 1 && y > x} with binders {@code x: int, y: int} may produce
14+ * {@code y > 1}. The origin {@code x == 1 && y > x} and binder {@code x: int} are kept so we can relate the simplified predicate back to the original.
15+ */
916public class SimplifiedPredicate extends Predicate {
1017
1118 private final Predicate origin ;
@@ -56,6 +63,9 @@ public boolean equals(Object obj) {
5663 && binders .equals (other .binders );
5764 }
5865
66+ /**
67+ * Represents a variable that must be bound when relating the simplified predicate to its origin
68+ */
5969 public static class Binder {
6070 private final String name ;
6171 private final String type ;
You can’t perform that action at this time.
0 commit comments