Fixpoint set_params' (vl: list val) (il: list ident) (te: Cminor.env) : Cminor.env :=
match il, vl with
| i1 :: is, v1 :: vs => set_params' vs is (PTree.set i1 v1 te)
| i1 :: is, nil => set_params' nil is (PTree.set i1 Vundef te)
| _, _ => te
end.

Lemma set_params_set_params':
forall il vl id,
list_norepet il ->
(set_params vl il)!id = (set_params' vl il (PTree.empty val))!id.