Fixes #1376. Don't handle half folding gracefully.
authorAlan Baker <alanbaker@google.com>
Mon, 5 Mar 2018 20:02:34 +0000 (15:02 -0500)
committerAlan Baker <alanbaker@google.com>
Tue, 6 Mar 2018 19:00:02 +0000 (14:00 -0500)
commit5f50e6209c815e93733f4d58906b86a50ff2af32
treeb4d1d6b147780669fd17f3c69aa450e8d4beae8e
parent5f69f7512695bd7b26f83ed9872be45159a46cf6
Fixes #1376. Don't handle half folding gracefully.

* Added early returns to folding rules to prevent half attempts
* Added some tests
source/opt/folding_rules.cpp
test/opt/fold_test.cpp