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

Report termination errors after typechecking #2318

Merged
merged 13 commits into from
Aug 30, 2023

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Aug 25, 2023

I've added an effect for termination. It keeps track of which functions failed the termination checker, which is run just after translating to Internal. During typechecking, non-terminating functions are not normalized. After typechecking, if there is at least one function which failed the termination checker, an error is reported.
Additionally, we now properly check for termination of functions defined in a let expression in the repl.

@janmasrovira janmasrovira added this to the 0.4.4 milestone Aug 25, 2023
@janmasrovira janmasrovira self-assigned this Aug 25, 2023
@janmasrovira janmasrovira force-pushed the termination-errors-after-typechecking branch 2 times, most recently from 6763bc9 to d4340ea Compare August 29, 2023 16:40
@janmasrovira janmasrovira marked this pull request as ready for review August 29, 2023 16:59
@paulcadman paulcadman force-pushed the termination-errors-after-typechecking branch from 6abbe3b to 300baa2 Compare August 29, 2023 18:42
@jonaprieto jonaprieto force-pushed the termination-errors-after-typechecking branch from 1c41d42 to 75b24f4 Compare August 30, 2023 13:57
@jonaprieto jonaprieto merged commit 34719bb into main Aug 30, 2023
@jonaprieto jonaprieto deleted the termination-errors-after-typechecking branch August 30, 2023 14:39
@jonaprieto jonaprieto modified the milestones: 0.4.4, 0.5 Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants