Exemplo n.º 1
0
    def __init__(self):
        self.trees = []
        self.smallest_error = 9999999999999999999999999999999999999999999999999999
        for i in range(0, 10):
            scope = Scope(ScopeHandler())
            scope.add_var(Variable("arg1", Type.INT))
            scope.add_var(Variable("arg2", Type.INT))
            scope.add_var(Variable("boolvar", Type.BOOL))
            # add initial variables to scope.

            tree = Block(None, scope)
            self.trees.append(tree)

        self.best_tree = None