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

wegamekinglc / Derivatives-Algorithms-Lib / 35496610591
92%

Build:
DEFAULT BRANCH: master
Ran 20 Sep 2026 07:30AM UTC
Jobs 1
Files 300
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

20 Sep 2026 07:20AM UTC coverage: 91.589% (+0.09%) from 91.502%
35496610591

push

github

web-flow
DAL-283: fuzzy AAD early-exercise valuation (T4) (#401)

* Add fuzzy AAD valuation for early exercise (T4)

EXERCISE products now value in AAD mode: the frozen hard-decision policy
from the double phases feeds a fuzzy replay in which each worker records
payments, exercise values, and condition degrees on its own tape and prices
paths with the recursive blend V_k = d_k*h_k + (1-d_k)*(p_k + D*V_{k+1}),
d_k = CSpr(h_k - C_k(z_k), eps) * condition degree. Coefficients stay
passive tape constants (N6 envelope), and adjoint reduction follows the
thread-count independent batch layout, so AAD PV and risks are bitwise
thread invariant (N9).

- compiler: lift the fuzzy EXERCISE rejection; append LsmcFuzzyPays/
  LsmcFuzzyPaysConst/LsmcFuzzyExercise opcodes recording into the typed
  LsmcFuzzySinks_; thread the Lsmc_ dispatch flag through If/IfElse/FuzzyIf
  branch evaluation so recording opcodes inside branches resolve (the hard
  IfElse case was latently unreachable for LSMC streams too)
- tree: FuzzyEvaluator_ gains optional LSMC recording sinks; without them
  the plain fuzzy arithmetic is untouched
- driver: MCLsmcAadSimulation reuses the double Phases A/B and routes from
  MCAADSimulation; RegressionPredict becomes a template shared by both
- tests: AAD vs policy-regenerating central differences (N6 exceedance
  attributed and recorded, guarded at the measured envelope scale),
  smooth-to-zero convergence band/trend, AAD bitwise thread invariance,
  historical FIX x EXERCISE analytic risks (snapshot and global store),
  and tree/compiled AAD parity

Co-authored-by: multica-agent <github@multica.ai>

* Split the fuzzy replay batch into workspace and helpers

Codacy flags RunFuzzyReplayBatch with cyclomatic complexity 11 (limit 8):
the batch setup, both engine-specific path evaluations, and the replay
loop lived in one function. Extract the per-worker state into
FuzzyReplayWorkspace_ and the tree/compiled path evaluations plus the
shared replay loop into nam... (continued)

198 of 203 new or added lines in 6 files covered. (97.54%)

52 existing lines in 6 files now uncovered.

15310 of 16716 relevant lines covered (91.59%)

3941593.23 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.8
0.27% dal-cpp/dal/script/lsmc.cpp
2
90.57
0.61% dal-cpp/dal/script/visitor/compiler.hpp
1
93.33
-0.42% dal-cpp/dal/script/visitor/evalstate.hpp

Coverage Regressions

Lines Coverage ∆ File
43
90.57
0.61% dal-cpp/dal/script/visitor/compiler.hpp
3
96.67
0.0% dal-cpp/dal/script/event.hpp
3
98.8
0.27% dal-cpp/dal/script/lsmc.cpp
1
97.3
-2.7% dal-cpp/dal/concurrency/concurrentqueue.hpp
1
95.52
0.03% dal-cpp/dal/script/simulation.hpp
1
93.75
-1.7% dal-cpp/dal/script/visitor/lsmcevaluator.hpp
Jobs
ID Job ID Ran Files Coverage
1 35496610591.1 20 Sep 2026 07:30AM UTC 300
91.59
GitHub Action Run
Source Files on build 35496610591
  • Tree
  • List 300
  • Changed 12
  • Source Changed 11
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35496610591
  • b7390b11 on github
  • Prev Build on master (#35464753232)
  • Next Build on master (#35503613940)
  • Delete
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