Source context

Program Rust

INT_POW10

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

5 6 use crate::num::imp::dec2flt;7 8 const INT_POW10: [u64; 16] = [9     1,10     10,11     100,12     1000,13     10000,14     100000,15     1000000,16     10000000,17     100000000,18     1000000000,19     10000000000,20     100000000000,21     1000000000000,22     10000000000000,23     100000000000000,24     1000000000000000,25 ];26 27 /// A floating point number with up to 64 bits of mantissa and an `i64` exponent.28 // Debug output is absent from the accepted observations.  Removing only that

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def num.imp.dec2flt.decimal.INT_POW10 : Array Std.U64 16#usize :=
  Array.make 16#usize [
    1#u64, 10#u64, 100#u64, 1000#u64, 10000#u64, 100000#u64, 1000000#u64,
    10000000#u64, 100000000#u64, 1000000000#u64, 10000000000#u64,
    100000000000#u64, 1000000000000#u64, 10000000000000#u64,
    100000000000000#u64, 1000000000000000#u64
    ]
Source details
Declarationnum.imp.dec2flt.decimal.INT_POW10
Filenum/imp/../../dec2flt/decimal.rs
Lines8:0–25:2
Program versionOriginal program