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)
from pypy.jit.tl.tla import tla
 
code = [
    tla.DUP,
    tla.CONST_INT, 1,
    tla.SUB,
    tla.DUP,
    tla.JUMP_IF, 1,
    tla.POP,
    tla.CONST_INT, 1,

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/tl/tla/add_10.tla.py   plexnet(Download)
from pypy.jit.tl.tla import tla
 
code = [
    tla.CONST_INT, 10,
    tla.ADD,

src/s/y/Sypy-HEAD/jit/tl/tla/add_10.tla.py   Sypy(Download)
from pypy.jit.tl.tla import tla
 
code = [
    tla.CONST_INT, 10,
    tla.ADD,

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/tl/tla/test_tla.py   plexnet(Download)
def test_pop():
    code = [
        tla.CONST_INT, 99,
        tla.POP,
        tla.RETURN
def test_bogus_return():
    code = [
        tla.CONST_INT, 123,
        tla.RETURN # stack depth == 2 here, error!
        ]
    py.test.raises(AssertionError, "interp(code, tla.W_IntObject(234))")
 
def test_add():
    code = [
        tla.CONST_INT, 20,
def test_sub():
    code = [
        tla.CONST_INT, 20,
        tla.SUB,
        tla.RETURN
def test_jump_if():
    code = [
        tla.JUMP_IF, 5,   # jump to target
        tla.CONST_INT, 123,
        tla.RETURN,

src/s/y/Sypy-HEAD/jit/tl/tla/test_tla.py   Sypy(Download)
def test_pop():
    code = [
        tla.CONST_INT, 99,
        tla.POP,
        tla.RETURN
def test_bogus_return():
    code = [
        tla.CONST_INT, 123,
        tla.RETURN # stack depth == 2 here, error!
        ]
    py.test.raises(AssertionError, "interp(code, tla.W_IntObject(234))")
 
def test_add():
    code = [
        tla.CONST_INT, 20,
def test_sub():
    code = [
        tla.CONST_INT, 20,
        tla.SUB,
        tla.RETURN
def test_jump_if():
    code = [
        tla.JUMP_IF, 5,   # jump to target
        tla.CONST_INT, 123,
        tla.RETURN,