-
Notifications
You must be signed in to change notification settings - Fork 152
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
Support strict casts in the SimpleSub inferencer #3870
Conversation
|
28b2a2c
to
3bd2f67
Compare
3bd2f67
to
23aa1e7
Compare
@@ -445,7 +445,7 @@ private Tuple2<Either<Set<KEMException>, Term>, Set<KEMException>> parseStringTe | |||
boolean equalRight = | |||
rez.isRight() && z3Rez.isRight() && rez.right().get().equals(z3Rez.right().get()); | |||
if (!(bothLeft || equalRight)) { | |||
throw KEMException.criticalError("Z3 and SimpleSub algorithms differ!"); | |||
throw typeInferenceCheckError(rez3, z3Rez, rez); |
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 you have any examples of such differences?
It would be interesting to document them and add regression tests.
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.
I'm not aware of any actual differences - the improved error message was just useful while debugging when I unintentionally broke something and caused a difference
Part of #3848.
CHECKED
mode