Josh a while ago added an option to the SSA compiler which logs every rewrite rule that's triggered. I just hacked up a program that takes the output of that code and generates a cover-like profile of all of our rewrite rules. Running on make.bash, you can see which rewrite rules trigger and which don't (attached). The hope is to use this data to generate tests for the compiler that cover all the rewrite rules. Or convince us that there are some rules that are not needed.
(Rules with *** fire, rules with --- don't)
TODO: use all.bash as the corpus, it has a lot more weird tests.
TODO: run go cover on the compiler itself, not just the rewrite rules.