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):
    var15 = var5(arg2, arg1)
    var16 = func8()
    def func9(arg17, arg18):
        var19 = var15 & -288480228 - (var15 - -484301528)
        var20 = (var19 - arg17) + arg17 | (arg1 - (arg17 - var16 & arg18) - arg2 ^ var19 - -214)
        var21 = arg2 & -558 - 566 + (1146287056 - (arg2 & (var16 & arg18 | arg2)) & var20 - ((var15 & -943688106) | (var19 + (var20 ^ arg2) ^ var15)))
        var22 = var21 | var19 + var21
        var23 = var16 | ((34281364 + var15 - (720112672 ^ var20 - var15)) ^ arg1) ^ arg2 + var21
        result = var19 - var21 & var23
        return result
    var24 = func9(var15, arg2)
    var31 = var27(var24, var15)
    var32 = var31 | arg1
    var33 = -1472579096 - var24 & arg1 | var16
    var34 = ((var31 - var16) | arg1) ^ arg1
    var35 = (325651032 + arg2) - var32 ^ arg2
    var36 = var34 & 1086689872 - (1386260770 & var33)
    var37 = var16 | var16
    var38 = (var16 - arg2) + var32 ^ var16
    var39 = (var24 ^ var32 + var37) + var34
    if var33 < var37:
        var40 = (var37 | (-156804356 ^ var38)) + 1342343630
    else:
        var40 = arg2 + var34
    var41 = arg2 | var34
    if var16 < var35:
        var42 = -1004605496 + var15 & var32 + var35
    else:
        var42 = (var41 + var33) & var41
    var43 = var34 - var31
    var44 = var36 + var37 ^ var33 + var34
    var45 = var44 & (var44 & var35 & var36)
    var46 = (var45 - var34 ^ var32) & var39
    var47 = (var37 + -12700244 - var41) & var36
    var48 = -699 - (var16 & var34) + var46
    var49 = var46 & var15
    var50 = var41 & (var36 & var16)
    result = (var33 + var32) + (var49 - var32)
    return result
def func12(arg28, arg29):
    if arg29 < arg29:
        var30 = 183 + arg28 ^ ((-699344006 - 1875051868) ^ (143 + (-478 | (arg29 | 1739455921)))) & arg29 | -845 & arg28
    else:
        var30 = -747354414 | 1589822722 - arg29 & (-102 - (arg29 & -2129880150)) + arg29 + (-246 + arg29 & ((375195454 - (arg29 ^ -2111979243) ^ (arg28 ^ (arg28 - arg29) & arg28)) & arg29) + (-814327119 ^ (arg28 + -861))) | arg29 & arg28
    result = 366 ^ arg28
    return result
def func11():
    closure = [8]
    def func10(arg25, arg26):
        closure[0] += func12(arg25, arg26)
        return closure[0]
    func = func10
    return func
var27 = func11()
def func8():
    func6()
    result = len(xrange(32))
    func7()
    return result
def func7():
    global len
    del len
def func6():
    global len
    len = lambda x : -6
def func4(arg6, arg7):
    var10 = func5(arg6, arg7)
    var11 = -418708655 ^ arg7
    var12 = arg6 | (arg7 & 1823860482) ^ 51 | (arg6 ^ (var10 & var10 ^ -816 + var10 ^ (-825 - var10 - (((-653828744 | (arg6 & arg6 & var11)) - var10 | arg6) - arg6 + var10) | var10))) & arg6 | 676
    var13 = 478543412 - var10
    var14 = var12 | (var13 - var11)
    result = var13 + (1978802730 & var12 + var13 & var10)
    return result
def func5(arg8, arg9):
    result = (545833887 - (arg8 - 709)) | ((319408574 | arg8) ^ 722 + arg9 ^ 1753595230 & (arg8 - arg8 - 800728857 | arg9))
    return result
def func3():
    closure = [-2]
    def func2(arg3, arg4):
        closure[0] += func4(arg3, arg4)
        return closure[0]
    func = func2
    return func
var5 = func3()
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 13'
    print 'arg_number: 51'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,