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

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

Build:
Build:
LAST BUILD BRANCH: codex/fix-msvc-utf8-charset
DEFAULT BRANCH: master
Repo Added 16 Jan 2021 06:31AM UTC
Token RCHt5bHBHiesAZrXN9ctLtgBNi9sbYmV8 regen
Build 3709 Last
Files 222
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

LAST BUILD ON BRANCH fix/script-ifelse-bstack-underflow
branch: fix/script-ifelse-bstack-underflow
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/script-ifelse-bstack-underflow
  • china_2025
  • chore/add-doc-writer-to-orchestrator-team
  • chore/api-dedup-safe
  • chore/ban-volatile-mutable
  • chore/curve-dedup-step1
  • chore/curve-dedup-step2
  • chore/curve-dedup-step3
  • chore/curve-hoist-helpers
  • chore/dedup-black-bachelier
  • chore/dedup-cg-bcg
  • chore/dedup-curve
  • chore/dedup-dal-public
  • chore/dedup-math-structural
  • chore/dedup-model-indice
  • chore/dedup-script
  • chore/fix-all-style-findings
  • chore/fix-infra-bugs
  • chore/fix-io-protocol-indice-bugs
  • chore/fix-math-bugs
  • chore/fix-model-bugs
  • chore/fix-script-bugs
  • chore/phase7-curve-trim
  • chore/remove-co-authored-by-from-guides
  • chore/simplify-comments-phase1
  • chore/simplify-comments-phase2
  • chore/simplify-comments-phase3
  • chore/simplify-comments-phase4
  • chore/simplify-comments-phase5
  • chore/simplify-comments-phase6
  • chore/simplify-comments-phase8
  • chore/simplify-comments-phase9
  • chore/trim-curve-comments
  • chore/trim-dupire-comments
  • chore/trim-script-comments
  • chore/trim-small-residuals
  • ci/expand-ci-to-public-subprojects
  • ci/matrix-workflow
  • codex/dal-agent-skills
  • codex/fix-msvc-utf8-charset
  • codex/fix-script-engine-math-rendering
  • codex/script-results-lookup-guard
  • copilot/add-test-coverage-analysis
  • copilot/analyze-test-coverage
  • copilot/analyze-test-coverage-again
  • copilot/design-web-ui-derivatives-portfolio-management
  • copilot/enhance-yield-curve-framework
  • copilot/explore-codebase-implementation-plan
  • copilot/explore-codebase-yield-curve-modeling
  • copilot/fix-comments-in-review-thread
  • copilot/override-function-gradient-calibration
  • copilot/refactor-script-engine
  • copilot/review-pr-199-plan
  • dependabot/github_actions/actions/checkout-3
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-6.0.2
  • dependabot/github_actions/actions/checkout-6.0.3
  • dependabot/github_actions/actions/checkout-7.0.0
  • dependabot/github_actions/astral-sh/setup-uv-8.2.0
  • dependabot/github_actions/astral-sh/setup-uv-caf0cab7a618c569241d31dcd442f54681755d39
  • dependabot/npm_and_yarn/webui/frontend/multi-f57e1e291f
  • dependabot/npm_and_yarn/webui/frontend/vite-8.0.16
  • dependabot/uv/dal-web/backend/starlette-1.3.1
  • docs/add-black-scholes-methodology
  • docs/add-dupire-methodology
  • docs/add-matrix-methodology
  • docs/add-no-dup-and-comment-style-rules
  • docs/add-pde-methodology
  • docs/add-quadrature-methodology
  • docs/add-random-methodology
  • docs/claude-config-sync
  • docs/copilot-instructions-guidance
  • docs/design-api-shape-dedup
  • docs/fix-documentation-consistency
  • docs/full-quality-pass
  • docs/full-review-and-perf-reflect
  • docs/improve-readme-formatting
  • docs/markdown-table-alignment-and-cleanup
  • docs/migrate-curve-comments
  • docs/migrate-script-comments
  • docs/migrate-small-residuals
  • docs/ptirds-curve-extension-plan
  • docs/reconcile-readmes-and-methodology
  • docs/restructure-and-webui-rename
  • docs/script-plan-descope-2-and-5
  • docs/simplify-comments-phase0
  • docs/simplify-comments-phase7
  • experimental
  • feature/aad-methodology-doc
  • feature/adept-aad-backend
  • feature/adept-expr-tape-tests
  • feature/agent-team-design
  • feature/agents-tdd-worktree
  • feature/analytic-jacobian-backend-abstraction
  • feature/analytic-jacobian-rename
  • feature/bench-col-width
  • feature/benchmark-coverage-gaps
  • feature/code-style-fixes
  • feature/codipack-aad-backend
  • feature/codipack-polish
  • feature/comment-migration-docs
  • feature/coverage-build-flag
  • feature/currency-unit-tests
  • feature/curve-jacobian-default-analytic
  • feature/curve-jacobian-mode-flag
  • feature/dal-doc-writer-agent
  • feature/dal-performancer-agent
  • feature/dal-pr-review-agent
  • feature/dal-python-uv-modernization
  • feature/dal-refactor-docs
  • feature/dal-refactor-full
  • feature/dal-refactor-phase0-phase1
  • feature/dal-refactor-phase2
  • feature/dal-refactor-phase3
  • feature/dal-refactor-phase4
  • feature/dal-refactor-phase5
  • feature/dal-simplifier-agent
  • feature/dal-unit-test-write-agent
  • feature/dal-web-async
  • feature/dal-web-db-persistence
  • feature/dal-web-playwright-e2e
  • feature/dal-web-pwsh-scripts
  • feature/docs-interp-logdf-calibration-examples
  • feature/docs-table-style-guidance
  • feature/docs-webui-startup
  • feature/enforce-worktree-dal-dev-workflow
  • feature/euribor3m-curve-calibration-example
  • feature/expose-curve-calibration-to-python-and-excel
  • feature/harden-dal-pr-review-agent
  • feature/joint-curve-base-layering
  • feature/log-linear-interp-and-refactor
  • feature/multi-curve-joint-calibration
  • feature/normal-expectation-quadrature
  • feature/piecewise-linear-curve-tests
  • feature/ptirds-log-discount-curve
  • feature/ptirds-single-currency-curve
  • feature/pybind11-migration
  • feature/pybind11-submodule
  • feature/remove-precompute-self-param
  • feature/rename-skills-dal-prefix
  • feature/reorg-miscs-to-subfolders
  • feature/rng-precise-default
  • feature/script-compiled-evaluator-alignment
  • feature/script-compiled-evaluator-alignment-plan
  • feature/script-compiled-parity-harness
  • feature/script-engine-test-coverage
  • feature/serialization-tests-and-skills
  • feature/sync-agent-doc-guidance
  • feature/webui-redesign-industrial-terminal
  • feature/windows-ci-workflow
  • feature/ycinstrument-polymorphic-calibration
  • feature/yield-curve-calibration
  • feature/yield-curve-jacobian-example
  • fix/adept-cmake-definitions
  • fix/arrayn-dimension-validation
  • fix/calibration-build-constant
  • fix/cg-shadow-vector-alloc
  • fix/code-style-param-naming
  • fix/doc-writer-methodology-refs
  • fix/machinist-cmake-compiler-id
  • fix/msvc-ndarray-test-parsing
  • fix/nodiscard-warnings-script-tests
  • fix/priority-8-test-cosmetics-and-guidance
  • fix/readme-build-badge
  • fix/script-compiled-superequal-shortcircuit
  • fix/sparse-qform-oob
  • fix/underdetermined-guidance-and-xad-default
  • fix/upgrade-vite-plugin-react-for-vite8
  • fix/xccy-calibration-budget
  • fix/xccy-calibration-coverage
  • fix/yield-curve-inverse-jacobian-units
  • master
  • old_virtual_dispatch
  • perf/bench-infrastructure
  • perf/enable-fp-contract-all-compilers
  • perf/p1-tape-rewind-p5-zeroadjoints
  • perf/p2-sparse-jacobian
  • perf/p3-pde-decomp-caching
  • perf/p4-sobol-no-polish
  • perf/p6-p7-p8-kernel-opts
  • perf/p7-p8-fused-sweeps
  • refactor/rename-calibratedyieldcurve-to-curveblock
  • refs/heads/master
  • refs/pull/5/merge
  • revert/ptirds-101
  • style/dal-web-ruff-format
  • use_codi
  • wegamekinglc-perf-improvements
  • worktree-agent-a344d3a27476b1053

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

Relevant lines Covered
Build:
Build:
7817 RELEVANT LINES 6429 COVERED LINES
3319139.63 HITS PER LINE
Source Files on fix/script-ifelse-bstack-underflow
  • Tree
  • List 221
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28700916027 fix/script-ifelse-bstack-underflow 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 j... Pull #204 04 Jul 2026 08:51AM UTC wegamekinglc github
82.24
28700622085 fix/script-ifelse-bstack-underflow 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 j... Pull #204 04 Jul 2026 08:38AM UTC wegamekinglc github
82.24
See All Builds (2285)

Badge your Repo: Derivatives-Algorithms-Lib

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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