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

Support strict casts in the SimpleSub inferencer #3870

Merged
merged 6 commits into from
Dec 18, 2023

Conversation

Scott-Guest
Copy link
Contributor

@Scott-Guest Scott-Guest commented Dec 12, 2023

Part of #3848.

@Scott-Guest Scott-Guest self-assigned this Dec 12, 2023
@Scott-Guest
Copy link
Contributor Author

Scott-Guest commented Dec 15, 2023

Blocked on #3877

@Scott-Guest Scott-Guest force-pushed the simplesub-strict-casts branch 2 times, most recently from 28b2a2c to 3bd2f67 Compare December 17, 2023 22:17
@Scott-Guest Scott-Guest force-pushed the simplesub-strict-casts branch from 3bd2f67 to 23aa1e7 Compare December 17, 2023 22:25
@Scott-Guest Scott-Guest marked this pull request as ready for review December 17, 2023 23:41
@@ -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);
Copy link
Contributor

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.

Copy link
Contributor Author

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

@rv-jenkins rv-jenkins merged commit 41de3ac into develop Dec 18, 2023
8 checks passed
@rv-jenkins rv-jenkins deleted the simplesub-strict-casts branch December 18, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants