Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More precision in partial evaluation #395

Open
2 tasks
cdisselkoen opened this issue Jul 16, 2024 · 0 comments
Open
2 tasks

More precision in partial evaluation #395

cdisselkoen opened this issue Jul 16, 2024 · 0 comments
Labels
feature-request Request for a new feature

Comments

@cdisselkoen
Copy link
Contributor

Category

Lean formalization

Describe the feature you'd like to request

Although there are many ways in which partial evaluation could be more precise, this issue is specifically about evaluateHasAttr and evaluateGetAttr. Currently, when evaluating x has attr or x.attr, if x is a Partial.Value.residual, these functions make no attempt to simplify. But, in some cases, even if x is a residual we may know concretely whether it contains the particular attr we care about (hasAttr case) or we may have a concrete value for the particular attr we care about (getAttr case). These functions could check for these conditions and be more aggressive.

Describe alternatives you've considered

Status quo is still sound.

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@cdisselkoen cdisselkoen added feature-request Request for a new feature backlog labels Jul 16, 2024
cdisselkoen added a commit that referenced this issue Jul 16, 2024
Signed-off-by: Craig Disselkoen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants