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 func3(arg28, arg29):
    var60 = func10()
    var66 = func11(arg28, var60)
    var67 = var66 - arg29
    if var66 < arg29:
        var68 = var60 | var67 + var67 + var60
    else:
        var68 = (var67 ^ 568639478) - arg29 ^ arg28
    var69 = (var67 & (arg29 - var60)) ^ 990260151
    var70 = 1091632572 & var67 & -358 | arg29
    var71 = var60 - var60 & arg28 - 815430992
    var72 = arg28 - arg29
    var73 = -445192513 | (arg29 + -403) - var66
    var74 = var72 & var67
    var75 = (var72 & var69) + var69
    if var72 < var71:
        var76 = 2124978141 ^ var70 | var60 ^ var74
    else:
        var76 = var60 & var72
    var77 = var73 ^ var71
    var78 = arg28 & var69 - var60 + arg28
    var79 = var60 - -1396422843 | (var69 - var70)
    var80 = var74 - var74
    var81 = arg28 & var72
    var82 = var81 - var78
    var83 = arg28 - var71 ^ var69 ^ var69
    var84 = var75 ^ arg28 | (var71 ^ var81)
    result = (var69 | var70) | ((var79 | var77) + var70) - var81 + var81
    return result
def func13(arg63, arg64):
    result = (-738063706 + arg64) | 1572277641
    return result
def func10():
    func4()
    result = len(func6(1, 4))
    func5()
    return result
def func7(arg32, arg33):
    var46 = func8(arg32, arg33)
    var47 = 1722220901 & -488932420 | arg33 & arg33 - 1009558758 & (arg33 + -66430750) | (-1901956294 ^ (1855286908 - (-4 - (567 ^ 344475487) | arg33 | -878) & 1865783886) | arg32 + (-2473287 + arg33)) | arg32 & arg33
    var48 = (var47 + arg33 | (var47 - ((685 | (arg33 | 867039475) + arg32 | var47 - (var46 | var47 - arg32)) - 1403737495 + (arg32 + var47)) | (arg33 - arg32)) & (234 - 139 - arg33 + var46) | arg32) - arg32
    result = var46 - var46
    return result
def func8(arg34, arg35):
    var40 = func9(arg35, arg34)
    if arg34 < arg35:
        var41 = (var40 - arg34) + var40
    else:
        var41 = -1118800202 - -354
    var42 = -834344995 + (-2065127112 & arg34) & -959977080 ^ (arg34 ^ arg34)
    var43 = var42 + (var40 & arg35 - 1992334154)
    if arg35 < var43:
        var44 = (var43 - arg35) ^ (1398019655 & var40)
    else:
        var44 = (326 | ((((-76189104 - arg34 - -933480526 - arg35 ^ var40) + ((var43 ^ (-397 | -602822456 + var40 + (-1231343684 ^ var43 + var42)) + var43 - (arg34 ^ var43)) & arg34)) | arg35) ^ arg34) | var42 - -2080943111) & -777
    var45 = var40 + (-176399849 | 1955348030) ^ arg35
    result = var40 | (480 ^ var45 & var42 & (var43 + (((-904 ^ -1101307065) ^ var42) | arg34) ^ arg34) + var45 ^ var43)
    return result
def func9(arg36, arg37):
    var38 = 0
    for var39 in range(47):
        var38 += arg36 & (arg37 - arg36)
    return var38
def func6(arg30, arg31):
    var49 = func7(arg30, 1658985374)
    yield var49
    var50 = arg30 | arg31
    yield var50
    var51 = (366 + 1192514776 & arg31) - var50
    yield var51
    var52 = -528 & (arg30 & arg31) | -296
    yield var52
    var53 = var51 | (var52 | 812)
    yield var53
    var54 = (var53 & var50) & var50 - -180940225
    yield var54
    var55 = arg30 ^ var54 + var50
    yield var55
    var56 = var51 & var54
    yield var56
    var57 = (-128 ^ var51 - 964) + arg30
    yield var57
    var58 = var52 ^ var55 - var51
    yield var58
    var59 = ((arg31 ^ var52) ^ var52) ^ arg30
    yield var59
def func5():
    global len
    del len
def func4():
    global len
    len = lambda x : 2
def func2(arg5, arg6):
    var7 = (arg6 + arg6) - -921019276 + arg5
    var8 = var7 ^ arg6
    var9 = ((var7 - var8) - var7) + -779
    var10 = (var7 & -466 & var9) - -615154955
    var11 = var10 | -580 | var8 + 851
    var12 = arg5 - var8 ^ -1575285187 ^ arg5
    var13 = var12 ^ var12
    var14 = var7 - 812
    if arg5 < var7:
        var15 = var9 | var14
    else:
        var15 = arg5 & (arg6 + var7) - arg5
    var16 = var9 - -22
    var17 = var12 - var16 + var11 ^ var9
    var18 = var10 ^ (var10 & (1906630560 | var16))
    if arg6 < var9:
        var19 = arg6 + (var16 & arg6 ^ var14)
    else:
        var19 = var9 + (var11 | 818950177 ^ var12)
    var20 = 2053012028 | var12 ^ (var7 + 385)
    var21 = arg6 + var8 ^ (var8 | var16)
    var22 = var12 + (var7 ^ var13) - var9
    var23 = var14 + var9 + (1409317650 + var13)
    var24 = arg5 + var7
    var25 = ((var21 & 59) - var11) & var24
    var26 = (var11 + var21 + var23) + var7
    var27 = arg6 | arg5 & var24 + var9
    result = var12 - var8
    return result
def func1(arg1, arg2):
    if arg1 < arg1:
        var3 = (arg1 + (arg1 - -856)) + arg1
    else:
        var3 = arg1 - (arg2 - arg1) - arg2 & ((299114775 - arg2 + 325) | arg2 & arg2 ^ -986) & 382
    var4 = 863 ^ 23
    result = arg1 | (var4 | ((((-2105203071 | (arg1 + arg1)) + arg2) ^ 854) - var4)) + 883 | var4 ^ -374 & arg1
    return result
def func11(arg61, arg62):
    def func12(acc, rest):
        var65 = func13(-4, -1)
        if acc == 0:
            return var65
        else:
            result = func12(acc - 1, var65)
            return result
    result = func12(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 5'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 0'
    print 'func_number: 3'
    print 'arg_number: 28'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 14'
    print 'arg_number: 85'
    for i in xrange(25000):
        x = 5
        x = func3(x, i)
        print x,