-
Notifications
You must be signed in to change notification settings - Fork 83
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
core: Implement and use ConstraintContext #2700
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2700 +/- ##
==========================================
+ Coverage 89.86% 89.87% +0.01%
==========================================
Files 367 367
Lines 47373 47401 +28
Branches 7213 7223 +10
==========================================
+ Hits 42570 42600 +30
+ Misses 3695 3693 -2
Partials 1108 1108 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
One thing I'm kind of disagreeing on though, is allowing to call verify
without the ConstraintContext
.
I would say it is the role of the caller to define a ConstraintContext
, not the constraint. What do you think?
Sure, I can just revert that, here are my cents:
I want to insist on I can just revert 😋 I see this as bikeshedding, so please first just confirm you want it reverted, and let's continue the discussion separately from the feature 🙂 This is one small piece amongst quite a few small pieces, that will yield very nice expressivity to IRDL, which is what I'm after rather than the API |
Co-authored-by: Fehr Mathieu <mathieu.fehr@gmail.com>
Co-authored-by: Fehr Mathieu <mathieu.fehr@gmail.com>
As discussed in a quick call, I'll revert the default argument thing! |
Just define ConstraintContext to encapsulate the constraint variables used in verification and inference.
Also, define a default value for this argument in verification, to verify with an empty context.