[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 Sep 7, 2026
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
c996c996(the 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.
Scope boundary
This PR completes the common contract and intrinsic integration only. It does not claim source-model execution as delivered.
PR #380 / #366 has the concrete downstream migration path: use the same model object and catalog, expose an EtsIR-backed successor completion, add model EtsIR files to the analysis scene, enter the source body through the normal interpreter, and keep external source or artifact hashes in experiment metadata.
Array.popremains the source-model example there. No second dispatcher, backend registry, or plugin framework is introduced here.Diff accounting
The complete PR includes both new #365 capability and the later #383 simplification, so its aggregate size is not the size of the simplification alone.
src/main)src/test)origin/main...026c7186c996c996..026c7186036030b1..026c7186The 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:
./gradlew :usvm-ts:test --rerun-tasks./gradlew :usvm-ts:detektMain :usvm-ts:detektTest --rerun-tasks./gradlew :usvm-ts:checkgit diff --checkGitHub CI is green for
ci-core,ci-jvm,ci-python,ci-ts,ci-ts-pbt,lint, anddetektat026c7186.This PR replaces #376 after its squash commit was removed from
main.Closes #365
Closes #383
Part of #360