Definition removeopt_localdef (ret: option ident) (l: list localdef) : list localdef :=
  match ret with
   | Some id => remove_localdef_temp id l
   | None => l
   end.Definition ifvoid {T} t (A B: T) :=
 match t with Tvoid => A | _ => B end.

Lemma type_of_subsume_funspec: (* move to subsume_funspec.v *) forall fs1 fs2, subsume_funspec fs1 fs2 -> type_of_funspec fs1 = type_of_funspec fs2.