Program Rust
pfe_invalid
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
263 // Used in unit tests, keep public.264 // This is much better than making FloatErrorKind and ParseFloatError::kind public.265 #[inline]266 pub fn pfe_invalid() -> ParseFloatError {267 ParseFloatError { kind: FloatErrorKind::Invalid }268 }269 270 /// Converts a `BiasedFp` to the closest machine float type.271 fn biased_fp_to_float<F: FloatExt>(x: BiasedFp) -> F {Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
def num.imp.dec2flt.pfe_invalid : Result num.float_parse.ParseFloatError := do
ok { kind := num.float_parse.FloatErrorKind.Invalid }Operations used here
Source details
| Declaration | num.imp.dec2flt.pfe_invalid |
|---|---|
| File | num/imp/../../dec2flt/mod.rs |
| Lines | 266:0–268:1 |
| Program version | Preparation 1 |