Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Halbaroth committed Oct 25, 2024
1 parent b3f0e79 commit 91c013c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/lib/structures/expr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1604,9 +1604,14 @@ let apply_subst, clear_subst_cache =
try TMap.find f ch |> Msbt.find sbt |> Ty.Subst.Map.find sbty
with Not_found ->
let nf = apply_subst_aux s f in
let c_sbt = try TMap.find f ch with Not_found -> Msbt.empty in
let c_sbty = try Msbt.find sbt c_sbt with Not_found -> Ty.Subst.Map.empty in
cache := TMap.add f (Msbt.add sbt (Ty.Subst.Map.add sbty nf c_sbty) c_sbt) ch;
let c_sbt =
try TMap.find f ch with Not_found -> Msbt.empty
in
let c_sbty =
try Msbt.find sbt c_sbt with Not_found -> Ty.Subst.Map.empty
in
cache :=
TMap.add f (Msbt.add sbt (Ty.Subst.Map.add sbty nf c_sbty) c_sbt) ch;
nf
in
let clear_subst_cache () =
Expand Down

0 comments on commit 91c013c

Please sign in to comment.