You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Challenge 28: Safety of float to decimal conversion module #524
I'd like to claim challenge #28 (core::num::flt2dec). PR:
It adds Kani harnesses for all 12 target functions (the 6 flt2dec/mod.rs entry points and the 6 Grisu/Dragon strategy functions), proving each assume_init/indexing unsafe block touches only initialized, in-bounds memory. Bignum/Fp arithmetic is abstracted via sound stubbing; the two shortest-mode functions' loop bounds are discharged by citing the Grisu/Loitsch <=17-digit theorem as an assume under the exact decode() precondition (details and caveats in the PR).
We are evaluating Challenge 28 with ESBMC (listed in doc/src/tools.md, run by .github/workflows/esbmc.yml) and have one CI question.
We want to verify the digit-generation loops in grisu::format_shortest_opt, grisu::format_exact_opt, dragon::format_shortest and dragon::format_exact on their real bodies, with no stubs and no assumptions on the digit value or the buffer index. Kani may not finish these harnesses in CI, and scripts/run-kani.sh verifies every harness kani list reports. How should such harnesses be submitted?
With a marker that run-kani.sh skips and scripts/run-esbmc.sh runs.
As a stubbed harness that Kani finishes, plus the unstubbed harness for ESBMC as the proof of record.
We would also move run-esbmc.sh from ESBMC v8.7 (line 13) to the next release.
Hi all — I've opened #819 for Challenge 28 (flt2dec), covering all 12 target functions with 44 Kani harnesses. It's a rework of the earlier #818 and addresses the #606 review feedback: the production bodies are unchanged (no #[cfg(kani)] body swaps), there is no assume(q < 10) at the digit writes, the digit loops have explicit MAX_SIG_DIGITS bounds, and the arithmetic models are checked by separate lemma harnesses (Fp::mul interval, cached_power postcondition, max_pow10 specification). CI is fully green on all 17 checks.
I understand #596 is also in flight and reviewer bandwidth is limited; I'd appreciate a look whenever convenient, and I'm happy to adapt to whatever direction the committee prefers.
Activity
MavenRain commentedon Jun 15, 2026
I'd like to claim challenge #28 (
core::num::flt2dec). PR:It adds Kani harnesses for all 12 target functions (the 6
flt2dec/mod.rsentry points and the 6 Grisu/Dragon strategy functions), proving eachassume_init/indexing unsafe block touches only initialized, in-bounds memory. Bignum/Fparithmetic is abstracted via sound stubbing; the two shortest-mode functions' loop bounds are discharged by citing the Grisu/Loitsch <=17-digit theorem as anassumeunder the exactdecode()precondition (details and caveats in the PR).lucasccordeiro commentedon Nov 22, 2026
We are evaluating Challenge 28 with ESBMC (listed in
doc/src/tools.md, run by.github/workflows/esbmc.yml) and have one CI question.We want to verify the digit-generation loops in
grisu::format_shortest_opt,grisu::format_exact_opt,dragon::format_shortestanddragon::format_exacton their real bodies, with no stubs and no assumptions on the digit value or the buffer index. Kani may not finish these harnesses in CI, andscripts/run-kani.shverifies every harnesskani listreports. How should such harnesses be submitted?run-kani.shskips andscripts/run-esbmc.shruns.We would also move
run-esbmc.shfrom ESBMC v8.7 (line 13) to the next release.fromtaoyuanhsinchuuuu commentedon Dec 4, 2026
Hi all — I've opened #819 for Challenge 28 (
flt2dec), covering all 12 target functions with 44 Kani harnesses. It's a rework of the earlier #818 and addresses the #606 review feedback: the production bodies are unchanged (no#[cfg(kani)]body swaps), there is noassume(q < 10)at the digit writes, the digit loops have explicitMAX_SIG_DIGITSbounds, and the arithmetic models are checked by separate lemma harnesses (Fp::mulinterval,cached_powerpostcondition,max_pow10specification). CI is fully green on all 17 checks.I understand #596 is also in flight and reviewer bandwidth is limited; I'd appreciate a look whenever convenient, and I'm happy to adapt to whatever direction the committee prefers.