Source context

Program Rust

DECIMAL_POINT_RANGE

This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.

64 65     /// The max decimal digits that can be exactly represented in a 64-bit integer.66     pub(super) const MAX_DIGITS_WITHOUT_OVERFLOW: usize = 19;67     pub(super) const DECIMAL_POINT_RANGE: i32 = 2047;68 69     /// Append a digit to the buffer if it fits.70     // FIXME(tgross35): it may be better for this to return an option

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def num.imp.dec2flt.decimal_seq.DecimalSeq.DECIMAL_POINT_RANGE : Std.I32 :=
  2047#i32
Source details
Declarationnum.imp.dec2flt.decimal_seq.DecimalSeq.DECIMAL_POINT_RANGE
Filenum/imp/../../dec2flt/decimal_seq.rs
Lines67:4–67:53
Program versionOriginal program