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 hardware_alignof_pos: forall (cenv: composite_env) (ha_env: PTree.t Z), composite_env_consistent cenv -> hardware_alignof_env_consistent cenv ha_env -> hardware_alignof_env_complete cenv ha_env -> forall t, hardware_alignof ha_env t > 0.