Expression simplification

This commit is contained in:
Léa Saviot
2018-06-29 20:07:27 +02:00
parent 370a10710c
commit 3135fff759
8 changed files with 21 additions and 15 deletions

View File

@@ -232,7 +232,7 @@ void testSimplify() {
FloatRef(2.0f));
assert_expression_approximates_to(a, 3);
SimplificationRootRef b(a);
a.deepReduce();
assert_expression_approximates_to(a, 3);
@@ -277,7 +277,8 @@ int main() {
runTest(testPoolExpressionAllocationFail);
runTest(testPoolExpressionAllocationFail2);
runTest(testPoolExpressionAllocationFailOnImbricatedAdditions);
//runTest(testStealOperand);
runTest(testStealOperand);
runTest(testSimplify);
printf("\n*******************\nEnd of tests\n*******************\n\n");
return 0;
}