Ignore:
Timestamp:
Dec 3, 2010, 2:06:00 PM (8 years ago)
Author:
cameron
Message:

Fix total carry count for @any_carry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/compiler2.py

    r760 r772  
    4141        self.mainfn = s.body[-1]
    4242        assert (isinstance(self.mainfn, ast.FunctionDef))
    43 
     43        carry_count = pablo.CarryCounter().count(self.mainfn)
    4444
    4545
     
    5252                            stream_stmts,
    5353                            pablo.block_stmts(self.mainfn),
    54                             pablo.any_carry_expr(self.mainfn),
     54                            pablo.any_carry_expr("carryQ", carry_count),
    5555                            templ)
    5656        self.write_final_code(templ)
Note: See TracChangeset for help on using the changeset viewer.