Instance CompSpecs : compspecs. make_compspecs prog. Defined.
Definition Vprog : varspecs. mk_varspecs prog. Defined.
Definition Gprog : funspecs :=
ltac:(with_library prog (@nil(ident*funspec))).
Definition g_spec :=
DECLARE _g
WITH i: Z
PRE [ _i OF size_t]
PROP() LOCAL(temp _i (Vptrofs (Ptrofs.repr i))) SEP()
POST [ size_t ]
PROP() LOCAL (temp ret_temp (Vptrofs (Ptrofs.repr i))) SEP().

Lemma decode_float32_int32:
forall (bl: list memval) (x: float32),
size_chunk Mfloat32 = Z.of_nat (Datatypes.length bl) ->
decode_val Mfloat32 bl = Vsingle x ->
decode_val Mint32 bl = Vint (Float32.to_bits x).