Definition maybe_retval (Q: environ -> mpred) retty ret :=
match ret with
| Some id => fun rho => Q (get_result1 id rho)
| None =>
match retty with
| Tvoid => (fun rho => Q (globals_only rho))
| _ => fun rho => EX v: val, Q (make_args (ret_temp::nil) (v::nil) rho)
end
end.

Lemma can_free_list:
forall Delta F f jm ge ve te
(NOREP: list_norepet (map (@fst _ _) (fn_vars f)))
(COMPLETE: Forall (fun it => complete_type cenv_cs (snd it) = true) (fn_vars f))
(HGG:  genv_cenv ge = cenv_cs),
guard_environ (func_tycontext' f Delta) (Some f)
(construct_rho (filter_genv ge) ve te) ->
(F * stackframe_of f (construct_rho (filter_genv ge)ve te))%pred (m_phi jm) ->
exists m2, free_list (m_dry jm) (blocks_of_env ge ve) = Some m2.