Exemplo n.º 1
0
 def f(a, b):  # 'b' in empty startblock
     while a > 100:  # 'b'
         a -= 2  # 'b'
     c = llop.same_as(lltype.Signed, b)  # 'c', 'b'
     while b > 10:  # 'c', 'b'
         b -= 2  # 'c', 'b'
     d = llop.same_as(lltype.Signed, c)  # 'd', 'c'
     return d  # 'v' is the return var
Exemplo n.º 2
0
 def fn():
     n = llop.same_as(lltype.Signed, 66)
     if n == 1: return 5
     elif n == 2: return 6
     elif n == 3: return 8
     elif n == 4: return -123
     elif n == 5: return 12973
     else: return n
Exemplo n.º 3
0
 def fn():
     n = llop.same_as(lltype.Signed, 66)
     if n == 1: return 5
     elif n == 2: return 6
     elif n == 3: return 8
     elif n == 4: return -123
     elif n == 5: return 12973
     else: return n
Exemplo n.º 4
0
 def f():
     if NonConstant(False):
         x = llop.same_as(lltype.Signed, 666)
     return 42
Exemplo n.º 5
0
 def f():
     if NonConstant(False):
         x = llop.same_as(lltype.Signed, 666)
     return 42