CakeML / CakeML/cakeml

Add code quality tests to regression

Open
#959 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Standard ML
Stars
1.2k
Forks
104
Avg merge
2d 21h
Merged PRs (30d)
16

Description

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`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.