-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Bugfix for #2747 #2748
Bugfix for #2747 #2748
Conversation
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.
Thanks for the fix! One quick question on the extra logic in PrimeRule
:
case OperEx(TlaActionOper.prime, nEx @ NameEx(name)) => | ||
nEx.typeTag match { | ||
case Typed(tt1: TlaType1) => state.setRex(tla.name(name + "'", tt1)) | ||
case _ => throw new InternalCheckerError("Internal expressions should be Typed", nEx) | ||
} |
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.
Do we actually need this extra check?
Feels like it only replicates the check in TlaType1.fromTypeTag
, and if we wanted to be consistent, we'd need to replicate this kind of logic across all the rules?
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.
No, that's fair, we could just use that.
Codecov Report
@@ Coverage Diff @@
## main #2748 +/- ##
==========================================
- Coverage 78.88% 78.86% -0.02%
==========================================
Files 464 464
Lines 15876 15876
Branches 2550 2557 +7
==========================================
- Hits 12523 12520 -3
- Misses 3353 3356 +3
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
👍
make fmt-fix
(or had formatting run automatically on all files edited)./unreleased/
for any new functionalitycloses #2747
No regression tests, since this error only surfaces if an intermediate expression has no rule applicable to it (as is the case in the example provided in #2747), otherwise untyped ephemeral cell expressions do not break the solver.