cakeml icon indicating copy to clipboard operation
cakeml copied to clipboard

Add some basic static checks to the Pancake compiler

Open IlmariReissumies opened this issue 1 year ago • 1 comments

It would be nice if the bootstrapped compiler would reject Pancake programs:

  • where out-of-scope variables are mentioned, and
  • with missing return statements.

I don't think there's any particular benefit to proving any theorems about these passes, since they do not suffice to imply the absence of runtime failures. But it would remove some pointless foot guns for people who use the bootstrapped compiler.

IlmariReissumies avatar Jun 03 '23 01:06 IlmariReissumies

The first of these has been addressed by #986

IlmariReissumies avatar Mar 24 '24 06:03 IlmariReissumies