Skip to content

C++: Support custom defs in SimpleRangeAnalysis#4322

Merged
geoffw0 merged 8 commits into
github:mainfrom
jbj:range-analysis-custom-defs
Sep 30, 2020
Merged

C++: Support custom defs in SimpleRangeAnalysis#4322
geoffw0 merged 8 commits into
github:mainfrom
jbj:range-analysis-custom-defs

Conversation

@jbj
Copy link
Copy Markdown
Contributor

@jbj jbj commented Sep 22, 2020

@lcartey, this is based on your initial prototype, but it's a lot more complicated now. I've added extra overrides and parameters to allow specifying which variable in the RangeSsaDefinition is being customised.

@lcartey, can you validate that this extensibility is sufficient and practical for your use case?

lcartey and others added 7 commits September 11, 2020 17:12
Without these changes, there was no way to tell which variables were
overridden by a given instance of `SimpleRangeAnalysisDefinition`. All
four overrides are needed because they fit into different mutual
recursions of the `SimpleRangeAnalysis` implementation.
This ensures that `getFullyConverted{Lower,Upper}Bounds` are available
where they need to be called.
The def used in this test is not overridden yet.
@jbj jbj requested a review from a team as a code owner September 22, 2020 14:05
@github-actions github-actions Bot added the C++ label Sep 22, 2020
Copy link
Copy Markdown
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

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

LGTM (assuming @lcartey is happy with it)

Copy link
Copy Markdown
Contributor

@lcartey lcartey left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Copy Markdown
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

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

Two positive reviews and LGTM also.

@geoffw0 geoffw0 merged commit 282d3e8 into github:main Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants