Skip to content

Commit

Permalink
Inputs reversed for bdep
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo2622 committed Nov 12, 2024
1 parent f987e09 commit ff5663a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phl/ecPhlBDep.ml
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ let process_bdep (bdinfo: bdep_info) (tc: tcenv1) =
(* ------------------------------------------------------------------ *)
let inpvs = get_vars inpvs hr.hs_m in
let finpvs = List.map (fun v -> EcFol.f_pvar (pv_loc v.v_name) v.v_type (fst hr.hs_m)) inpvs in

let invs, inv_tys =
let lookup (x : bdepvar) : (ident * ty) list =
let get1 (v : symbol) =
Expand All @@ -732,7 +733,6 @@ let process_bdep (bdinfo: bdep_info) (tc: tcenv1) =
in
let finvs = List.map (fun id -> f_local id inty) invs in
let pinvs = List.map (flatten_to_bits env) finvs in
let pinvs = List.rev pinvs in
let pinvs = List.fold_right (fun v1 v2 -> EcCoreLib.CI_List.p_cons @@! [v1; v2]) (List.rev pinvs) (fop_empty (List.hd pinvs).f_ty) in
let pinvs = EcCoreLib.CI_List.p_flatten @@! [pinvs] in
let () = Format.eprintf "Type after flatten %a@." pp_type pinvs.f_ty in
Expand Down

0 comments on commit ff5663a

Please sign in to comment.