Repository navigation
IR-306: specify nested integer operand intervals - #362
Merged
Merged
Conversation
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.
Refs IR-306
QSL emits
(x + 1) + 1,x * -1, and-(x + 1)with plain-Integer inner applications. The outer operation directly references those applications; only the outer result is narrowed. The existing scalar oracle therefore treats the inner operand as unbounded even when its leaves have finite ranges.This spec defines a conservative integer interval from independently bounded leaves for add, sub, mul, and negate, with explicit resource limits and typed refusals. It uses that interval for the corresponding Kani argument and preserves the existing rule that a raw application cannot borrow a separate consumer's narrowing bound. Plain-Integer parameters still refuse
RequiresBound.Current QSL output for all three expressions was emitted and admitted by Contract IR in a temporary read-only probe; outer arithmetic lowered with bounded scalar settings. This PR changes only FR-014, FR-015, TC-024, and TC-033.
make specpassed twice, with only the existing FR-017 line-186 warnings; no code tests were run for this spec-only change. The separate CG code implementation and its full gates remain to do.