Repository navigation
ILVerify: skip six verifiability rules in validation-only mode - #137970
Draft
pcshrosbree wants to merge 1 commit into
Draft
pcshrosbree wants to merge 1 commit into
pcshrosbree wants to merge 1 commit into
Conversation
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib |
Open
3 tasks
This was referenced Nov 20, 2026
In validation-only mode, stop reporting six rules that only verifiable IL must follow: InitLocals, BackwardBranch, EndfilterStack, ReturnPtrToStack, ThisMismatch and ConstrainedTypeNoInterfaceImpl. Verification output is unchanged.
pcshrosbree
force-pushed
the
feat/ilverify-validation-relax-rules
branch
from
November 25, 2026 06:19
431eb02 to
2a81b0a
Compare
This branch has not been deployed
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 changes
InitLocals,BackwardBranch,EndfilterStack,ReturnPtrToStack,ThisMismatchandConstrainedTypeNoInterfaceImpl. Verification mode still reports all six._Validation_Validsuffix, so each also checks that validation-only mode accepts the method. A newInitLocalsTests.ilcoversInitLocals, which had no test on main.Changes since the last push
Rebased on main after #137938 merged. The
jmp,cpblkandinitblkvalidity checks and their tests are no longer in this PR; they will come as separate PRs. Main already skips the blanketUnverifiableerror for instructions that are never verifiable, so this PR no longer lists it. The README is unchanged.Testing
ILVerification.Testspasses 1,090 of 1,090 in Release on linux-x64. To check the tests, I temporarily changed the code so that validation-only mode reported each of the six errors again. Each change failed the tests named for that error. Changes that stopped verification mode from reporting them also failed tests.Contributes to #37391.
Note
This PR was prepared with AI assistance (Anthropic Claude and OpenAI Codex), under my direction. I reviewed it before posting.