def remove_refct_calls(func):
 for bb in func.basic_blocks:
  remove_null_refct_call(bb)
  remove_refct_pairs(bb)

def remove_refct_calls ( func ) : for bb in func . basic_blocks : remove_null_refct_call ( bb ) remove_refct_pairs ( bb )
remove redundant incref/decref within on a per block basis .