• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stillwater-sc / universal / 43798278173
89%
master: 84%

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 16 Nov 2026 03:48AM UTC
Jobs 1
Files 895
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Nov 2026 03:27AM UTC coverage: 89.154% (+0.02%) from 89.131%
43798278173

push

github

web-flow
fix(quire): a sum that outgrows the accumulator overflows instead of wrapping; quire_overflow when quire exceptions are on (#2095)

The quire dropped the carry out of its accumulator's top bit and kept no
overflow state, so a sum past the accumulator wrapped around:
quire<cfloat<4,2>, 0> of 3*3 + 3*3 resolved to 2, and the squares of the
largest power of two a capacity-0 posit<8,0>, posit<16,1>, bposit, lns or
fixpnt quire holds summed to 0.

- quire_impl.hpp:
  - A sticky _is_overflow state with the sum's sign, next to the NaN and
    infinity states.
  - A same-sign addition detects the carry (the sum is below an addend), for
    a product added to the quire and for a quire added to a quire.
  - An overflowed quire stays overflowed under finite terms; two opposite
    overflows make NaN; an infinity or NaN operand still takes over.
  - isoverflow(); comparisons order an overflow past every finite sum,
    inside the infinities; convert_to gives +-inf or the integer's limit.
- With QUIRE_THROW_ARITHMETIC_EXCEPTION the carry throws the new
  quire_overflow (quire/exceptions.hpp) instead, as decided.
- quire_resolve, as decided: posit and bposit give +-maxpos; cfloat gives
  +-inf (a saturating cfloat clamps); float and double (quire_round_to)
  give +-inf. lns, dbns and fixpnt have no infinity and give +-maxpos.

Tests:
- quire/api/overflow, every quire user:
  - cfloat<4,2>: 3*3 + 3*3 is +inf (2 on main), -inf for a negative sum,
    sticky under an opposite term, quire + quire, ordering, convert_to,
    opposite overflows NaN, assignment clears the state;
  - double with capacity 0;
  - posit<8,0>, posit<16,1>, bposit<16,5,2>, lns<8,4> and fixpnt<8,4>:
    squares of the largest power of two the accumulator holds, until the
    sum passes its top (each resolves to 0 on main);
  - dbns<8,3>, whose quire is far wider than its products, through
    2^top + 2^top.
- quire/api/overflow_throw: quire_overflow from a product and from a quire
  sum (main has... (continued)

33 of 35 new or added lines in 9 files covered. (94.29%)

2 existing lines in 1 file now uncovered.

63736 of 71490 relevant lines covered (89.15%)

12643345.37 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
92.78
-0.06% include/sw/universal/number/quire/quire_impl.hpp

Coverage Regressions

Lines Coverage ∆ File
2
34.7
-0.63% include/sw/universal/verification/test_suite_randoms.hpp
Jobs
ID Job ID Ran Files Coverage
1 43798278173.1 16 Nov 2026 03:48AM UTC 895
89.15
GitHub Action Run
Source Files on build 43798278173
  • Tree
  • List 895
  • Changed 19
  • Source Changed 17
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43798278173
  • 153e5002 on github
  • Prev Build on main (#43785117344)
  • Next Build on main (#43798240842)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc