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

wegamekinglc / Derivatives-Algorithms-Lib / 28700916027
82%
master: 85%

Build:
Build:
LAST BUILD BRANCH: codex/fix-msvc-utf8-charset
DEFAULT BRANCH: master
Ran 04 Jul 2026 08:51AM UTC
Jobs 1
Files 221
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

04 Jul 2026 08:44AM UTC coverage: 82.244% (+0.2%) from 81.996%
28700916027

Pull #204

github

wegamekinglc
Fix IfElse bStack underflow in compiled evaluator

EvalCompiled reset the thread_local bStack on every entry, including the
recursive call the IfElse case made to evaluate the true branch. That
re-entry wiped the parent frame's bStack (where the just-tested condition
still sat), so the parent's subsequent bStack.Pop() underflowed sp_ and a
later Push wrote into the call frame's locals. Every IfElse whose
condition was true triggered it; Phase 0's UBSAN run confirmed the
diagnostic (stacks.hpp:133,135 'index -1 out of bounds for type bool [128]').

Gate the Reset() calls on a reset param: EvalCompiled keeps the opcode
switch with the master shape (one function, thread_local static stacks
inline), but reset defaults true and is only passed false by the IfElse
true-branch re-entry over (i+3, nodeStream[i+1]). The per-event entry
(event.hpp:136) uses the defaults and resets as before; the re-entrant
call preserves the parent's stacks.

Enabled the two Phase-0 IfElse parity pins
(TestParity_IfElse_ConsecutiveBothTrue, TestParity_IfElse_NestedInTrueBranch)
which go from UBSAN-crash to GREEN. The nested case exercises the
re-entrancy the reset=false path must support.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pull Request #204: fix: IfElse bStack underflow in compiled evaluator

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

6429 of 7817 relevant lines covered (82.24%)

3319139.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28700916027.1 04 Jul 2026 08:51AM UTC 221
82.24
GitHub Action Run
Source Files on build 28700916027
  • Tree
  • List 221
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28700916027
  • Pull Request #204
  • PR Base - master (#28700166749)
  • Delete
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