[TS Calls] Add guarded semantic models with a simplified contract - #377
Open
CaelmBleidd wants to merge 8 commits into
Open
[TS Calls] Add guarded semantic models with a simplified contract#377CaelmBleidd wants to merge 8 commits into
CaelmBleidd wants to merge 8 commits into
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
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 successorany[], empty arrays, all three symbolic regions, aliases, 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, and the unresolved-element follow-up, so its aggregate size is not the size of the simplification alone.
src/main)src/test)origin/main...eba8e4e6fad3d155..bcc9d62b34597f57..bcc9d62bArray.shift:bcc9d62b..eba8e4e6The contract-simplification production diff is net -327 lines. The final gate cleanup is net -15 production lines. These comparisons deliberately exclude the earlier capability additions when describing deletion of complexity.
Verification
Local verification at
eba8e4e6:./gradlew :usvm-ts:test :usvm-ts:detektMain :usvm-ts:detektTest --console=plaingit diff --check origin/main...eba8e4e6ece06b3ewith no PR-local merge commitsGitHub CI is green for
ci-core,ci-jvm,ci-python,ci-ts,ci-ts-pbt,lint, anddetektateba8e4e6.This PR replaces #376 after its squash commit was removed from
main.Closes #365
Closes #383
Part of #360