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 free_list_resource_decay:
forall bl jm jm',
free_list_juicy_mem jm bl jm' ->
resource_decay (nextblock (m_dry jm)) (m_phi jm) (m_phi jm').