Definition val_obsC f v :=
    match v with
    | Vptr b n => match f b with
                 | Some b' => Vptr b' n
                 | None => Vundef
                 end
    | _ => v
    end.

Lemma val_obs_offset_ptr: forall f v1 v2 ofs (Hval_obs: val_obs f v1 v2), val_obs f (Val.offset_ptr v1 ofs) (Val.offset_ptr v2 ofs).