Changeset 370 for proto


Ignore:
Timestamp:
Mar 5, 2010, 4:04:03 PM (9 years ago)
Author:
eamiri
Message:

bugfix

Location:
proto/Compiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/bitexpr.py

    r365 r370  
    173173            self.var = Var(var)
    174174        else:
     175            print var
    175176            assert(1==0)
    176177       
     
    304305        return e1.varname == e2.varname
    305306    elif isinstance(e1, Not) and isinstance(e2, Not):
    306         return equal_exprs(e1.operand, e2.operand)
     307        return equal_exprs(e1.operand1, e2.operand1)
    307308    elif isinstance(e1, And) and isinstance(e2, And):
    308309        if equal_exprs(e1.operand1, e2.operand1):
  • proto/Compiler/py2bitexpr.py

    r369 r370  
    11411141            fixed = filter_fixed(fixed, loc.stmts)
    11421142    return fixed
    1143            
     1143
    11441144def simplify_tree(code, fixed = {}, prev = []):
    11451145    if len(code) == 0:
Note: See TracChangeset for help on using the changeset viewer.