Definition longoffloat (x: aval) :=
match x with
| F f =>
match Float.to_long f with
| Some i => L i
| None => if va_strict tt then Vbot else ntop
end
| _ => ntop1 x
end.

(* Specifications: *)
Lemma longoffloat_sound:
forall v x w, vmatch v x -> Val.longoffloat v = Some w -> vmatch w (longoffloat x).