Skip to content

2319 interval pentagon ai interval expression semantics#2321

Merged
schuler-henry merged 31 commits intostaging/pentagon-aifrom
2319-interval-pentagon-ai-interval-expression-semantics
Feb 24, 2026
Merged

2319 interval pentagon ai interval expression semantics#2321
schuler-henry merged 31 commits intostaging/pentagon-aifrom
2319-interval-pentagon-ai-interval-expression-semantics

Conversation

@schuler-henry
Copy link
Collaborator

NumericInferenceVisitor

  • Constant number resolution for integers and double.
  • Expression semantics for +, -, *, length

(note: pr includes one flowr release patch (2.9.9))

Added rudimentary support for inferring scalar numeric values using the NumericInferenceVisitor.
First support 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)
@schuler-henry schuler-henry self-assigned this Feb 9, 2026
Copy link
Collaborator

@OliverGerstl OliverGerstl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks generally good :D
Most of the comments are general hints/ideas and minor issues.
We can talk about this later.

- 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.
@schuler-henry
Copy link
Collaborator Author

@OliverGerstl I have applied your feedback.
@EagleoutIce, it would be great if you could take a look at the changes, especially whether my implementation of the Ternary return value for equal and leq in the domains was what you had in mind.
Feel free to suggest other solutions.

@schuler-henry schuler-henry merged commit 92d2802 into staging/pentagon-ai Feb 24, 2026
8 checks passed
@schuler-henry schuler-henry deleted the 2319-interval-pentagon-ai-interval-expression-semantics branch February 24, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants