Commit Graph

4 Commits

Author SHA1 Message Date
Felix Raimundo
44ec987008 Add is_identical_to util in tests.
Change-Id: I8b55a228e1bd27e4c7b72891ff887bdc15b02fad
2016-04-11 12:47:24 +02:00
Felix Raimundo
9d4c95eeea Add a test for the recursive simplification.
Note that this test will stop passing as soon as we add rules for simpficating
products of integer.

Change-Id: I4087bd92516e1dbe41da2dae77c2cdab8da5f8a5
2016-04-11 12:37:22 +02:00
Felix Raimundo
93914a21fc Refactor the simplification tests.
The assert_simpfilies_to is now a util function.

Change-Id: Iac164359e7f8136434860e10d9b414b17c6b6268
2016-04-11 12:26:06 +02:00
Felix Raimundo
2f7b1f4860 Add the cloneWithNewOperands method.
This allows to replace the operands of an expression with new ones.

Change-Id: I3c2d183bbdbcc43b776f7ce2a302216c52e494bd
2016-04-11 12:21:14 +02:00