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

Add code quality tests to regression #959

Open
myreen opened this issue Jul 8, 2023 · 0 comments
Open

Add code quality tests to regression #959

myreen opened this issue Jul 8, 2023 · 0 comments

Comments

@myreen
Copy link
Contributor

myreen commented Jul 8, 2023

At present, the compiler proofs are regression tested. This means the compiler generated code will always stay correct. However, the compiler and its configuration are not currently tested for quality.

This issue is about adding a collection of simple tests that ensure optimisations trigger in situations they are supposed to be triggered. One could, e.g., take a few simple code snippets, compile them to dataLang, and check that certain small functions are inlined in the generated dataLang program. See examples/cost for nice pretty printing of dataLang programs.

The same can be done for wordLang, one could check wordLang optimisations using functions already present in examples/compilation/to_word.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant