changeset 333:b42cc382a1f0

Explained my cryptic code
author Sigurd Meldgaard <stm@daimi.au.dk>
date Wed, 07 Jul 2010 11:08:06 +0200
parents 06abdeadde6e
children 5a7d7698512b
files pysmcl/range_analysis.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/range_analysis.py	Wed Jul 07 10:47:20 2010 +0200
+++ b/pysmcl/range_analysis.py	Wed Jul 07 11:08:06 2010 +0200
@@ -183,6 +183,9 @@
     def distribute(self, x):
         if isinstance(x, ast.If):
             if self.is_comparison(x.test):
+                # This works this effect:
+                # if a <= 3:
+                #     pass # now we know a <= 3
                 a = dict(x.out_values[self.key])
                 old = a[x.test.left.id]
                 compared_value = RangeVisitor(