Skip to content

Commit

Permalink
Merge pull request #98 from Nadrieril/update-charon
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril authored Dec 6, 2024
2 parents ba9be28 + 063d4da commit 7164d1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@

inputsFrom = [
self.packages.${system}.default
charon-ml
];
};
});
Expand Down
4 changes: 3 additions & 1 deletion lib/AstOfLlbc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ let rec typ_of_ty (env : env) (ty : Charon.Types.ty) : K.typ =
(* Appears in some trait methods, so let's try to handle that. *)
K.TBuf (typ_of_ty env t, false)
| TTraitType _ -> failwith ("TODO: TraitTypes " ^ Charon.PrintTypes.ty_to_string env.format_env ty)
| TArrow (_, ts, t) -> Krml.Helpers.fold_arrow (List.map (typ_of_ty env) ts) (typ_of_ty env t)
| TArrow binder ->
let ts, t = binder.binder_value in
Krml.Helpers.fold_arrow (List.map (typ_of_ty env) ts) (typ_of_ty env t)

and maybe_cg_array env t cg =
match cg with
Expand Down

0 comments on commit 7164d1a

Please sign in to comment.