Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into syntax_playground
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Feb 25, 2025
2 parents 7867ed1 + 63e8228 commit 4240da6
Show file tree
Hide file tree
Showing 43 changed files with 1,805 additions and 732 deletions.
6 changes: 3 additions & 3 deletions src/haz3lcore/dynamics/Casts.re
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ let rec transition = (~recursive=false, d: DHExp.t): option(DHExp.t) => {
switch (DHExp.term_of(d1)) {
| Cast(d2, t3, {term: Unknown(_), _}) =>
/* by canonical forms, d1' must be of the form d<ty'' -> ?> */
if (Typ.eq(t3, t2)) {
if (Typ.equal(t3, t2)) {
Some
(d2); // Rule ITCastSucceed
} else {
Expand Down Expand Up @@ -159,7 +159,7 @@ let rec transition = (~recursive=false, d: DHExp.t): option(DHExp.t) => {
| (Ground, NotGroundOrHole(_)) =>
switch (DHExp.term_of(d1)) {
| Cast(d2, t3, _) =>
if (Typ.eq(t3, t2)) {
if (Typ.equal(t3, t2)) {
Some(d2);
} else {
None;
Expand All @@ -172,7 +172,7 @@ let rec transition = (~recursive=false, d: DHExp.t): option(DHExp.t) => {

| (NotGroundOrHole(_), NotGroundOrHole(_)) =>
/* they might be eq in this case, so remove cast if so */
if (Typ.eq(t1, t2)) {
if (Typ.equal(t1, t2)) {
Some
(d1); // Rule ITCastId
} else {
Expand Down
159 changes: 0 additions & 159 deletions src/haz3lcore/dynamics/Constraint.re

This file was deleted.

2 changes: 1 addition & 1 deletion src/haz3lcore/dynamics/FilterMatcher.re
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ and matches_fun =
}

and matches_typ = (d: Typ.t, f: Typ.t) => {
Typ.eq(d, f);
Typ.equal(d, f);
}

and matches_utpat = (d: TPat.t, f: TPat.t): bool => {
Expand Down
146 changes: 0 additions & 146 deletions src/haz3lcore/dynamics/Incon.re

This file was deleted.

4 changes: 2 additions & 2 deletions src/haz3lcore/dynamics/Substitution.re
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let rec binds_var = (m: Statics.Map.t, x: Var.t, dp: DHPat.t): bool =>
| Constructor(_) => false
| Cast(y, _, _)
| Parens(y) => binds_var(m, x, y)
| Var(y) => Var.eq(x, y)
| Var(y) => Var.equal(x, y)
| TupLabel(_, dp) => binds_var(m, x, dp)
| Tuple(dps) => dps |> List.exists(binds_var(m, x))
| Cons(dp1, dp2) => binds_var(m, x, dp1) || binds_var(m, x, dp2)
Expand All @@ -34,7 +34,7 @@ let rec subst_var = (m, d1: DHExp.t, x: Var.t, d2: DHExp.t): DHExp.t => {
let (term, rewrap) = DHExp.unwrap(d2);
switch (term) {
| Var(y) =>
if (Var.eq(x, y)) {
if (Var.equal(x, y)) {
d1;
} else {
d2;
Expand Down
Loading

0 comments on commit 4240da6

Please sign in to comment.