[TS] Execute modeled Number exponentiation (#428) - #454
Draft
CaelmBleidd wants to merge 14 commits into
Draft
CaelmBleidd wants to merge 14 commits into
CaelmBleidd wants to merge 14 commits into
Conversation
CaelmBleidd
force-pushed
the
caelmbleidd/ts-428-exponentiation
branch
from
October 2, 2026 22:21
27277ad to
8f91900
Compare
CaelmBleidd
changed the base branch from
main
to
caelmbleidd/ts-422-string-value-equality
October 2, 2026 22:21
Implement supported string equality cases and preserve explicit unsupported outcomes for unbacked symbolic witnesses. Reuse shared Node replay tests.
CaelmBleidd
force-pushed
the
caelmbleidd/ts-422-string-value-equality
branch
from
October 3, 2026 05:21
7927e93 to
127ecb5
Compare
CaelmBleidd
force-pushed
the
caelmbleidd/ts-428-exponentiation
branch
from
October 3, 2026 05:28
e887b32 to
de035f9
Compare
Remove duplicate Node process handling from #428 regressions while preserving witness assertions.
CaelmBleidd
force-pushed
the
caelmbleidd/ts-422-string-value-equality
branch
from
October 4, 2026 19:51
e5527a3 to
7217c2a
Compare
Base automatically changed from
caelmbleidd/ts-422-string-value-equality
to
main
October 5, 2026 12:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Implements the modeled part of #428 for JavaScript Number exponentiation.
Stacked on #455 (
caelmbleidd/ts-422-string-value-equality) at127ecb5df35366c550a32725cf4e6af25208f673. This PR has five linear #428 implementation commits throughde035f9f113b1289db9532706da200c5caf57974, followed by the Node replay test cleanup at377f02d85acf07961ec3e99dc845ed8fedd48170. The five-commit implementation aggregate throughde035f9fhas the same patch-id as the old #428 range above the previous #455 base7527353569ca3235f939e8c0305535d02e419ed4. #455 supplies the reusable unsupported-path outcome contract and is stacked on #453.0,1,2, and0.5. The square-root case maps both signed zeros to+0and-Infinityto+Infinityas JavaScript requires.±0 ** -1and-1 ** ±Infinitykeep their exact discrete results.UnsupportedOperationExceptioninstead of inventing a result. In particular,0.1 ** 0.7is reported as unsupported.The floating-point SMT model has no general power operation, and JVM
Math.powcan differ from Node.js by one ULP. This PR deliberately limits support to the cases above. A pinned review of the rebased headde035f9ffound duplicate Node process handling in its regression test;377f02d8replaces it with the shared replay utility. Pinned core correctness and AI code hygiene my-review passes of the current head found no actionable defects. This PR remains draft because #428 covers general exponentiation beyond these modeled cases.What remains for #428
0,1,2, and0.5, and symbolic exponents.Math.powdiffers by one ULP.Verification
377f02d8, with local JacoDB [TS PBT] Schedule assertion, coverage and hypothesis targets under one budget #399 (b5e10a1a) substituted, the focused Exponentiation suite passed 8/8 tests, including Node replay;:usvm-ts:detektTestandgit diff --checkpassed. The scenario assertions and 10-second timeout are preserved through the sharedassertNodeReplayhelper.de035f9f, Division, Remainder, and Neg passed 10 tests with 3 existing skips, and:usvm-ts:detektMainpassed.:usvm-ts:testrun on preceding headde035f9fand the same JacoDB revision ran 1,110 tests: 967 passed, 143 skipped, no failures or errors.analyzeWithOutcomereports unmodeled powers inunsupportedPaths, with no completed state, while supported powers have no unsupported paths. Generatedsquare(3), signed-zero, and negative-infinity witnesses replay in Node.js withObject.is.0.1 ** 0.7regression verifies an unsupported analysis outcome and executes the same TypeScript function in Node.js without relying on a version-specific expected bit pattern.x ** -1with FP division is not guaranteed to preserve JavaScript rounding. Tests also replay concrete NaN, infinity, signed-zero, and fractional-power cases in Node.js.