Program Rust
to_bits
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
205 const LARGEST_POWER_OF_TEN: i32 = 4;206 const SMALLEST_POWER_OF_TEN: i32 = -27;207 208 fn to_bits(self) -> Self::Int {209 self.to_bits()210 }211 212 fn classify(self) -> FpCategory {213 self.classify()Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
def F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.to_bits
(self : F16) : Result Std.U16 := do
core.f16.F16.to_bits selfOperations used here
Source details
| Declaration | F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.to_bits |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 208:4–210:5 |
| Program version | Preparation 1 |