[TS Calls] Add guarded semantic models with a simplified contract - #377
Merged
CaelmBleidd merged 18 commits intoSep 18, 2026
Merged
Conversation
This was referenced Aug 28, 2026
This was referenced Sep 7, 2026
CaelmBleidd
force-pushed
the
caelmbleidd/issue-365-guarded-semantic-models
branch
from
September 8, 2026 13:32
eeba8c3 to
80a861c
Compare
CaelmBleidd
force-pushed
the
caelmbleidd/issue-365-guarded-semantic-models
branch
from
September 8, 2026 13:40
80a861c to
54610a9
Compare
CaelmBleidd
force-pushed
the
caelmbleidd/issue-365-guarded-semantic-models
branch
from
September 8, 2026 13:57
54610a9 to
eba8e4e
Compare
CaelmBleidd
deleted the
caelmbleidd/issue-365-guarded-semantic-models
branch
September 18, 2026 16:08
7 tasks
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.
What this PR delivers
Capability work for #365
Array.shiftas the intrinsic example backed by symbolic-memorymemcpyContract simplification gate for #383
Starting from
fad3d155(the rebased last pre-simplification head after the original #365 registry and intrinsic packaging), this PR:TsUnknownCallModelobject with an ID, declarative target, and guarded executionNo obsolete contract or configuration layer from that list remains in the #383 code path.
Unresolved
Array.shiftelementsTsStepScope, preserving the exactly-one-type constraint and updated solver models in every successorshift; current-state resolution observes the final symbolic memoryany[], empty arrays, all three symbolic regions, aliases, repeated shifts, and multi-element reference arraysScope boundary
This PR completes the common contract and intrinsic integration only. It does not claim source-model execution as delivered.
PR #380 / #366 is rebased on this branch and supplies the concrete downstream implementation: the same model object and catalog expose an EtsIR-backed successor completion, model EtsIR files become part of the analysis scene, and the normal interpreter executes the source body.
Array.popremains the source-model example. No second dispatcher, backend registry, or plugin framework is introduced.Diff accounting
The complete PR includes the original #365 capability, the #383 simplification, the unresolved-element follow-up, and the review fix, so its aggregate size is not the size of the simplification alone.
src/main)src/test)origin/main...9251124ffad3d155..bcc9d62b34597f57..bcc9d62bArray.shift:bcc9d62b..eba8e4e6eba8e4e6..9251124fThe contract-simplification production diff is net -327 lines. The final gate cleanup is net -15 production lines, and the review fix removes another net 31 production lines while adding focused regressions. These comparisons deliberately exclude earlier capability additions when describing deletion of complexity.
Verification
Local verification at
9251124f:./gradlew :usvm-ts:test :usvm-ts:detektMain :usvm-ts:detektTest --offline --no-daemon --max-workers=2 --console=plaingit diff --check origin/main...9251124fece06b3ewith no PR-local merge commitsGitHub CI is green for
ci-core,ci-jvm,ci-python,ci-ts,ci-ts-pbt,lint, anddetektat9251124f.This PR replaces #376 after its squash commit was removed from
main.Closes #365
Closes #383
Part of #360