Program Rust
Dec2flt_modelNumImpTraitsCastIntoI16
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
42 macro_rules! int {43 ($($ty:ty),+) => {44 $(45 impl CastInto<i16> for $ty {46 fn cast(self) -> i16 {47 self as i1648 }49 }50 51 impl Int for $ty {52 const ZERO: Self = 0;Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[reducible]
def U64.Insts.Dec2flt_modelNumImpTraitsCastIntoI16 : num.imp.traits.CastInto
Std.U64 Std.I16 := {
coremarkerCopyInst := core.marker.CopyI16
cast := U64.Insts.Dec2flt_modelNumImpTraitsCastIntoI16.cast
}Source details
| Declaration | U64.Insts.Dec2flt_modelNumImpTraitsCastIntoI16 |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 45:12–49:13 |
| Program version | Original program |