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

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

Build:
Build:
LAST BUILD BRANCH: codex/root-dal-gitignore
DEFAULT BRANCH: master
Repo Added 16 Jan 2021 06:31AM UTC
Token RCHt5bHBHiesAZrXN9ctLtgBNi9sbYmV8 regen
Build 3712 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-compiled-superequal-shortcircuit
branch: fix/script-compiled-superequal-shortcircuit
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/script-compiled-superequal-shortcircuit
  • 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/root-dal-gitignore
  • 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-ifelse-bstack-underflow
  • 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 09:36AM UTC coverage: 82.756% (+0.5%) from 82.244%
28702145923

Pull #205

github

wegamekinglc
Fix SupEqual const-fold and restore &&/|| short-circuit

Phase 1b of the compiled/tree-walk alignment (defects #5 and #2 from
.claude/specs/script-compiled-evaluator-alignment.md).

#5 SupEqual const-fold: Compiler_::VisitCondition<SupEqual> folded via
(x > -EPSILON) while the runtime SupEqual opcode uses (x >= 0) - divergent
for x in (-EPSILON, 0). Changed the fold predicate to x >= 0.0 so the
compiled path matches the runtime exactly. The fold is unreachable through
the public PreProcess -> Compile pipeline (ConstCondProcess crisps fully-
const conditions first), so the fix is verified by a direct Compiler_ unit
test at the visitor level.

#2 short-circuit loss: Compiler_::Visit(NodeAnd_)/Visit(NodeOr_) emitted
both RHS sub-streams unconditionally and the And/Or opcodes merged them,
while the tree-walk short-circuits (Evaluator_::Visit(NodeAnd_)/NodeOr_).
Added two opcodes (AndIfFalse, OrIfTrue) emitted as a 2-slot guard between
the LHS and RHS sub-streams; the guard peeks the LHS bool on bStack and
jumps past the trailing And/Or merge when the LHS decides the boolean, so
the RHS sub-stream is genuinely skipped (not executed). When the LHS does
not decide, the RHS executes and the existing And/Or opcodes merge LHS+RHS
as before. Mirrors evaluator.hpp:187-201 exactly.

Verification (the parity pins for #2 and #5 pass even on the unfixed code,
so primary verification is via direct Compiler_ unit tests):
- TestAndShortCircuit_SkipsRhsWhenLhsFalse: hand-builds a NodeAnd_ whose
  RHS is a state-mutating assignment; asserts the AndIfFalse opcode is
  emitted, that LHS=false leaves the marker unchanged (RHS skipped), and
  that LHS=true writes the marker (RHS executed).
- TestOrShortCircuit_SkipsRhsWhenLhsTrue: symmetric for OrIfTrue.
- TestSupEqualConstFold_TinyNegativeIsFalse_TinyPositiveIsTrue: drives
  Visit(NodeSupEqual_) directly on const children; asserts a tiny-negative
  folds to False (was True pre-fix) and tiny-positive/zero to True.
- Enabled t... (continued)
Pull Request #205: fix: SupEqual const-fold and &&/|| short-circuit

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

6479 of 7829 relevant lines covered (82.76%)

3318459.53 hits per line

Relevant lines Covered
Build:
Build:
7829 RELEVANT LINES 6479 COVERED LINES
3318459.53 HITS PER LINE
Source Files on fix/script-compiled-superequal-shortcircuit
  • Tree
  • List 221
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28702145923 fix/script-compiled-superequal-shortcircuit Fix SupEqual const-fold and restore &&/|| short-circuit Phase 1b of the compiled/tree-walk alignment (defects #5 and #2 from .claude/specs/script-compiled-evaluator-alignment.md). #5 SupEqual const-fold: Compiler_::VisitCondition<SupEqual> folde... Pull #205 04 Jul 2026 09:43AM UTC wegamekinglc github
82.76
28702153715 fix/script-compiled-superequal-shortcircuit Merge 7e379ea49 into f65e59634 Pull #205 04 Jul 2026 09:43AM UTC web-flow github
82.76
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