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

stillwater-sc / universal / 23114576915
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: fix/issue-1044-priestrenorm-cancellation
DEFAULT BRANCH: master
Ran 15 Mar 2026 05:07PM UTC
Jobs 1
Files 618
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

15 Mar 2026 04:36PM UTC coverage: 84.005% (+0.01%) from 83.993%
23114576915

push

github

web-flow
feat(posit): implement parse(), fix to_triple/color_print, remove bitblock dep (#562)

* feat(posit): implement parse() and fix to_triple, color_print, type_tag

Add parse() function for posit that handles both posit hex format
(nbits.esxHEXVALUEp) and decimal floating-point strings. This enables
the operator>> istream extraction that was already calling parse()
but had no implementation.

Also in this commit:
- Fix to_triple() to handle NaR/zero explicitly using decoded field
  scales instead of calling scale(number) which bypasses NaR handling
- Move NaR display verification tests from api.cpp to manipulators.cpp
- Remove last bitblock dependency (convert_to_bitblock -> setbits)
- Replace typeid(bt).name() with type_tag(bt{}) in posit and
  blocktriple type_tag() for portable, readable type names

Relates to #559

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

* fix(posit): address CodeRabbit review on parse() regex and label typo

- Widen posit hex format regex to support multi-digit es values
  (\\d+ instead of single-digit character class)
- Fix comma-vs-period typo in ReportValue label string

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

* fix(posit): harden parse() against UB shifts and trailing junk

Address two CodeRabbit findings on parse():

1. Posit hex format parsing: tighten regex to [0-9A-Fa-f] (was \w
   which accepts underscores), validate nbits_in and es_in match
   template parameters (eliminates UB shift >= 64), check hex parse
   success and full consumption.

2. Decimal float parsing: reject trailing junk by verifying EOF after
   consuming whitespace (e.g. "1.25abc" was silently accepted as 1.25).

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

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

48 of 52 new or added lines in 3 files covered. (92.31%)

4 existing lines in 2 files now uncovered.

42993 of 51179 relevant lines covered (84.01%)

6061621.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
93.98
0.03% include/sw/universal/number/posit/posit_impl.hpp

Coverage Regressions

Lines Coverage ∆ File
3
80.58
-0.67% include/sw/universal/number/posit1/specialized/posit_16_1.hpp
1
93.98
0.03% include/sw/universal/number/posit/posit_impl.hpp
Jobs
ID Job ID Ran Files Coverage
1 23114576915.1 15 Mar 2026 05:07PM UTC 618
84.01
GitHub Action Run
Source Files on build 23114576915
  • Tree
  • List 618
  • Changed 5
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23114576915
  • 339cc1e1 on github
  • Prev Build on main (#23097151336)
  • Next Build on main (#23116994287)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc