Changeset 2691


Ignore:
Timestamp:
Nov 25, 2012, 10:20:36 AM (6 years ago)
Author:
cameron
Message:

Record whether blocks are if/while in carryInfoSet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r2690 r2691  
    8383    (self.block_first_op, self.block_op_count, self.advance_amount) = ({}, {}, {})
    8484    self.init_one_list = []
    85     (self.parent_block, self.children) = ({}, {})
     85    (self.parent_block, self.children, self.whileblock) = ({}, {}, {})
    8686    (self.carry_count, self.adv_n_count, self.adv_1_count) = (0, 0, 0)
    8787    (self.total_advance, self.max_advance) = (0, 0)
     
    123123    self.parent_block[this_block_no] = prnt
    124124    self.children[prnt].append(this_block_no)
     125    self.whileblock = isinstance(blkNode, ast.While)
    125126    self.block_no = this_block_no
    126127    self.block_first_op[this_block_no] = self.operation_count
Note: See TracChangeset for help on using the changeset viewer.