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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 08 Nov 2026 12:36AM UTC
Jobs 1
Files 868
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

08 Nov 2026 12:18AM UTC coverage: 88.772% (-0.001%) from 88.773%
42429189490

push

github

web-flow
fix(erational): ++/-- as values, x /= x aliasing, no -0, signed toPair, NaN/inf to NaN (#1993)

- ++ and -- added one to the numerator only, so 1/2 ++ gave 2/2 and -3/2 ++
  gave -4/2. They now add and subtract one as a value.
- x /= x read the numerator after the first product had changed it, so
  1/2 /= itself gave 1/2. rhs's numerator is read first.
- normalize() clears the sign of a zero, so 0 / -3, 0 * -3, -0 and x - x all
  give +0; unary minus leaves zero alone. normalize() also computes one
  remainder per Euclid step instead of two.
- toPair() carries the sign on the numerator ({-3, 2}) and saturates a part
  beyond int64 instead of wrapping (owner decision). The NaN is {0, 0}.
- NaN and +/-inf convert to the 0/0 NaN instead of 0 (owner decision:
  erational has no infinity). It converts back to the IEEE NaN.

Tests: arithmetic/reference.cpp checks + - * /, ++, --, negation and x op= x
against exact int64 fractions, plus signed zeros and toPair; ieee754.cpp checks
NaN/inf for float, double and long double. Both fail against the previous
header. logic.cpp built its sign-flagged-zero fixture as 0 * -3; it now sets
the flag with setneg(), and checks that 0 * -3 is +0.

Resolves #1990

BEHAVIOUR-CHANGE: erational ++ and -- now add/subtract one (1/2 ++ is 3/2, was 2/2)
BEHAVIOUR-CHANGE: erational zero results are +0: 0 * -3 and 0 / -3 print 0/1 and convert to +0.0 (were -0/1 and -0.0)
BEHAVIOUR-CHANGE: erational::toPair() returns the sign on the numerator and saturates to INT64_MIN/INT64_MAX (was the magnitude, wrapping)
BEHAVIOUR-CHANGE: erational from a NaN or +/-inf float/double/long double is now NaN (0/0), was 0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

20 of 20 new or added lines in 1 file covered. (100.0%)

6 existing lines in 4 files now uncovered.

59622 of 67163 relevant lines covered (88.77%)

9678991.27 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
97.24
-0.31% include/sw/universal/number/erational/erational_impl.hpp
2
34.7
-0.63% include/sw/universal/verification/test_suite_randoms.hpp
1
97.67
-0.21% include/sw/universal/number/edecimal/edecimal_impl.hpp
1
92.31
-0.85% include/sw/universal/verification/correctly_rounded_reference.hpp
Jobs
ID Job ID Ran Files Coverage
1 42429189490.1 08 Nov 2026 12:36AM UTC 868
88.77
GitHub Action Run
Source Files on build 42429189490
  • Tree
  • List 868
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42429189490
  • 3d5fe0a4 on github
  • Prev Build on main (#42425064522)
  • Next Build on main (#42433863613)
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