2319 interval pentagon ai interval expression semantics#2321
Merged
schuler-henry merged 31 commits intostaging/pentagon-aifrom Feb 24, 2026
Merged
Conversation
Added rudimentary support for inferring scalar numeric values using the NumericInferenceVisitor. First support for: +, -, *, length.
Tests for: +, -, *, length.
- Removed interprocedural and loop test, as we do not support it yet - Updated threshold when comparing floating point numbers to be relative to the number (as larger numbers produce larger errors)
test/functionality/abstract-interpretation/interval/interval.ts
Outdated
Show resolved
Hide resolved
test/functionality/abstract-interpretation/interval/inference.test.ts
Outdated
Show resolved
Hide resolved
test/functionality/abstract-interpretation/interval/inference.test.ts
Outdated
Show resolved
Hide resolved
test/functionality/abstract-interpretation/interval/inference.test.ts
Outdated
Show resolved
Hide resolved
- Updated domain functions equals and leq to return ternary values in order to represent results based on significant figures precision comparison. - Refactored code with review from PR
- Argument value resolution is delayed until the arguments are needed to increase performance and allow evaluating potential non-numeric arguments via constant propagation. - Updated test cases to include tests for missing/to many function arguments.
Collaborator
Author
|
@OliverGerstl I have applied your feedback. |
EagleoutIce
reviewed
Feb 13, 2026
test/functionality/abstract-interpretation/interval/inference.test.ts
Outdated
Show resolved
Hide resolved
test/functionality/abstract-interpretation/interval/inference.test.ts
Outdated
Show resolved
Hide resolved
test/functionality/abstract-interpretation/interval/inference.test.ts
Outdated
Show resolved
Hide resolved
test/functionality/abstract-interpretation/interval/inference.test.ts
Outdated
Show resolved
Hide resolved
…expression-semantics # Conflicts: # src/abstract-interpretation/absint-visitor.ts # src/documentation/wiki-absint.ts
EagleoutIce
reviewed
Feb 16, 2026
EagleoutIce
approved these changes
Feb 24, 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.
NumericInferenceVisitor
(note: pr includes one flowr release patch (2.9.9))