Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/s/y/Sypy-HEAD/jit/tl/tla/loopabit.tla.py   Sypy(Download)
    tla.DUP,
    tla.JUMP_IF, 0,
    tla.RETURN
    ]
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/tl/tla/add_10.tla.py   plexnet(Download)
    tla.CONST_INT, 10,
    tla.ADD,
    tla.RETURN
    ]
 

src/s/y/Sypy-HEAD/jit/tl/tla/add_10.tla.py   Sypy(Download)
    tla.CONST_INT, 10,
    tla.ADD,
    tla.RETURN
    ]
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/tl/tla/test_tla.py   plexnet(Download)
def test_interp():
    code = [
        tla.RETURN
        ]
    res = interp(code, tla.W_IntObject(42))
def test_pop():
    code = [
        tla.CONST_INT, 99,
        tla.POP,
        tla.RETURN
def test_dup():
    code = [
        tla.DUP,
        tla.ADD,
        tla.RETURN
def test_bogus_return():
    code = [
        tla.CONST_INT, 123,
        tla.RETURN # stack depth == 2 here, error!
        ]
def test_add():
    code = [
        tla.CONST_INT, 20,
        tla.ADD,
        tla.RETURN

src/s/y/Sypy-HEAD/jit/tl/tla/test_tla.py   Sypy(Download)
def test_interp():
    code = [
        tla.RETURN
        ]
    res = interp(code, tla.W_IntObject(42))
def test_pop():
    code = [
        tla.CONST_INT, 99,
        tla.POP,
        tla.RETURN
def test_dup():
    code = [
        tla.DUP,
        tla.ADD,
        tla.RETURN
def test_bogus_return():
    code = [
        tla.CONST_INT, 123,
        tla.RETURN # stack depth == 2 here, error!
        ]
def test_add():
    code = [
        tla.CONST_INT, 20,
        tla.ADD,
        tla.RETURN