def populate_op(program, populate_function): replacer = OpPopulator(populate_function) return replace(program, replacer)
def populate_stmt(program, populate_function): replacer = StatementPopulator(populate_function) return replace(program, replacer)
def populate_expr(program, populate_function): replacer = ExpressionPopulator(populate_function) return replace(program, replacer)
def populate_name(program, populate_function): replacer = NamePopulator(populate_function) return replace(program, replacer)