Fixpoint hardware_alignof_composite (ha_env: PTree.t Z) (m: members): Z :=
  match m with
  | nil => 1
  | (_, t) :: m' => Z.max (hardware_alignof ha_env t) (hardware_alignof_composite ha_env m')
  end.Definition hardware_alignof_env (cenv: composite_env): PTree.t Z :=
  let l := composite_reorder.rebuild_composite_elements cenv in
  fold_right (fun (ic: positive * composite) (T0: PTree.t Z) => let (i, co) := ic in let T := T0 in PTree.set i (hardware_alignof_composite T (co_members co)) T) (PTree.empty _) l.

Lemma aux2: forall (cenv: composite_env), type_func.Env (fun t : type => match access_mode t with | By_value ch => align_chunk ch | By_reference => 1 | By_copy => 1 | By_nothing => 1 end) (fun (ha : Z) (_ : type) (_: Z) (_ : attr) => ha) (fun (ha : Z) (_ : ident) (_ : attr) => ha) (fun (ha : Z) (_ : ident) (_ : attr) => ha) (fun _ : struct_or_union => fix fm (l : list (ident * type * Z)) : Z := match l with | nil => 1 | (_, _, ha) :: l' => Z.max ha (fm l') end) (composite_reorder.rebuild_composite_elements cenv) = hardware_alignof_env cenv.