Source context

Program Rust

MAX_DIGITS_WITHOUT_OVERFLOW

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

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

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def num.imp.dec2flt.decimal_seq.DecimalSeq.MAX_DIGITS_WITHOUT_OVERFLOW
  : Std.Usize :=
  19#usize
Source details
Declarationnum.imp.dec2flt.decimal_seq.DecimalSeq.MAX_DIGITS_WITHOUT_OVERFLOW
Filenum/imp/../../dec2flt/decimal_seq.rs
Lines67:4–67:61
Program versionRevised program