Skip to content
Snippets Groups Projects
Commit d0af1443 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Automatic whitespace changes.

parent 030e9754
No related branches found
No related tags found
No related merge requests found
...@@ -13,15 +13,18 @@ class TestOptimizeAdvanced(unittest.TestCase): ...@@ -13,15 +13,18 @@ class TestOptimizeAdvanced(unittest.TestCase):
def test_eliminate_common_subexpressions(self): def test_eliminate_common_subexpressions(self):
pass pass
def test_copy_propagation_true(self): def test_fold_constants(self):
pass
def test_copy_propagation_true(self):
print "testing true" print "testing true"
block = B([self.foo, block = B([self.foo,
S('command', 'move', '$1', '$2'), S('command', 'move', '$1', '$2'),
self.foo, self.foo,
S('command', 'addu', '$3', '$1', '$4'), S('command', 'addu', '$3', '$1', '$4'),
self.bar]) self.bar])
copy_propagation(block) copy_propagation(block)
self.assertEqual(block.statements, [self.foo, self.assertEqual(block.statements, [self.foo,
S('command', 'move', '$1', '$2'), S('command', 'move', '$1', '$2'),
...@@ -29,7 +32,7 @@ class TestOptimizeAdvanced(unittest.TestCase): ...@@ -29,7 +32,7 @@ class TestOptimizeAdvanced(unittest.TestCase):
S('command', 'addu', '$3', '$2', '$4'), S('command', 'addu', '$3', '$2', '$4'),
self.bar]) self.bar])
print "Test true succesfull" print "Test true succesfull"
# def test_copy_propagation_false(self): # def test_copy_propagation_false(self):
# print "Testing false" # print "Testing false"
# arguments = [self.foo, # arguments = [self.foo,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment