Random Python Program Generator

This page is powered by pyfuzz, a program generator I have written to test the JIT compiler of Unladen Swallow.

Reload to generate another program!

def func1(arg1, arg2):
    var6 = func2(arg2, arg1)
    var19 = func4(var6, arg1)
    var20 = func11()
    var25 = func12(var6, var20)
    var26 = var20 | arg1 & var20 - var20
    var27 = 894898920 ^ (var25 - var6) ^ var20
    var28 = var6 + arg1
    if var19 < var20:
        var29 = arg2 & ((var6 + var26) + var6)
    else:
        var29 = 230 | var25 & -45 | arg1
    var30 = -984 + var28 - var26
    var31 = var26 | (var27 ^ var28) ^ arg1
    var32 = (-1309497136 + var26 - var19) & var30
    var33 = var30 ^ var31
    var34 = var30 + var19
    var35 = var33 & var27
    result = (var26 & (-434152405 & -96 - (arg2 | var26)) + (var33 | ((arg1 | var25) & var35 + arg2 - var19))) & arg2
    return result
def func12(arg21, arg22):
    var23 = 0
    for var24 in range(49):
        var23 += var23 - (-1 + var24)
    return var23
def func11():
    func9()
    result = len(xrange(50))
    func10()
    return result
def func10():
    global len
    del len
def func9():
    global len
    len = lambda x : 3
def func4(arg7, arg8):
    if arg8 < arg8:
        var13 = class5()
    else:
        var13 = class7()
    for var14 in xrange(28):
        var15 = var13.func6
        var15(arg8, arg7)
    var16 = arg7 ^ (arg7 | -411)
    var17 = arg8 + arg8 + ((-756974769 - 1915230440) + (((198 ^ 1373658745) & var16) - (-703 + 49 | var16))) & var16 ^ arg8 & (arg8 ^ 618) - (((arg7 | var16) - -40) + 848 - -1046260202 ^ -1290929547) ^ 1806848444 & arg7
    var18 = (arg7 ^ -1012248755 + 1666345862) - 1411976182 - -1040768810 - -932
    result = var17 & (var17 ^ arg7)
    return result
class class7(object):
    def func6(self, arg11, arg12):
        return 0
class class5(class7):
    def func6(self, arg9, arg10):
        return 0
def func2(arg3, arg4):
    closure = [0]
    def func3(acc, rest):
        var5 = closure[0] & 6
        closure[0] += var5
        if acc == 0:
            return var5
        else:
            result = func3(acc - 1, var5)
            return result
    result = func3(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 13'
    print 'arg_number: 36'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,