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_iff_int32:
forall (bl: list Memdata.memval) (x: float32),
Memdata.size_chunk Mfloat32 = Z.of_nat (Datatypes.length bl) ->
(Memdata.decode_val Mfloat32 bl = Vsingle x <->
Memdata.decode_val Mint32 bl = Vint (Float32.to_bits x)).