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 func6(arg35, arg36):
    var96 = func13()
    var97 = -282111318 & var96 + (((-1505409829 & arg35) ^ arg36) + arg36 + ((arg35 ^ 447944682) | (((-279 & var96 - (-1939374728 & (arg36 ^ (arg35 & arg35))) | arg36 & var96 - arg35 | var96) | var96) ^ var96)) & -354 & 257)
    var98 = var96 | var96
    var99 = arg35 & var97 ^ var97 + var97
    result = (var99 | 59987907 - -30847122 + var96 & var96) + arg36
    return result
def func13():
    func7()
    result = len(func9(2, 5))
    func8()
    return result
def func10(arg39, arg40):
    var60 = func11(arg40, arg39)
    var83 = func12(var60, arg39)
    var84 = var83 | -321
    result = var84 + var83 + 2015336589 ^ 1414606223 + (2103611983 | -1444681711 ^ -456)
    return result
def func12(arg61, arg62):
    if arg61 < arg61:
        var63 = arg62 & arg62 - 687464887 & arg61
    else:
        var63 = arg61 | arg62 + 1810816604 + arg62
    var64 = arg61 & (arg61 & arg61) & arg61
    var65 = arg62 + 1158832278
    var66 = (arg62 & var64) ^ var64 | 1754959773
    var67 = (-552160688 ^ arg62) ^ arg61 + -272
    var68 = var64 ^ 513
    var69 = 827 | (arg61 ^ var65) - var68
    var70 = var68 & (var69 - arg62) & var66
    var71 = -468284769 | var66
    var72 = var69 & var68
    var73 = (arg61 | -970944949) & var65 + arg61
    if var68 < var67:
        var74 = ((var67 ^ arg61) & -395) + var73
    else:
        var74 = var72 & var71 & arg62
    var75 = var72 | var68
    var76 = (var66 ^ var67 | var67) | arg62
    var77 = var70 - var66 + var72
    if var64 < var77:
        var78 = var73 | (var73 | var72 & var66)
    else:
        var78 = (var68 - var77 & var77) ^ var76
    var79 = var75 + var66
    var80 = -463 + var72 & var77
    var81 = var68 - var64
    var82 = var68 ^ var64 + var73
    result = (var69 ^ (var69 ^ var64)) & 793189878 - -62 & var71 & var73
    return result
def func11(arg41, arg42):
    var43 = 500 ^ 92 | -1935216608
    var44 = arg41 & arg42 & -741 + 29
    var45 = arg41 | (var44 - 217)
    var46 = (arg42 ^ arg41) | (arg41 - -1316781820)
    var47 = -1306119588 ^ (arg41 & var43) ^ arg41
    var48 = (var45 & 1302221787) ^ (var43 + -154039718)
    var49 = var47 | (var43 + -504162383)
    if var48 < var46:
        var50 = var48 & -939387480
    else:
        var50 = (var44 | arg42 | 27) ^ var48
    var51 = var46 + arg41 & var46 | var44
    var52 = var44 & 999697995
    var53 = 618 | var47
    var54 = arg41 & var45
    var55 = var43 | var46
    var56 = var53 ^ (var45 | var46 & var47)
    var57 = var47 - arg42 - var44
    var58 = (var47 | var51 | arg42) - var48
    var59 = var55 | arg41 - var54 - arg41
    result = var43 | var57
    return result
def func9(arg37, arg38):
    var85 = func10(arg38, arg37)
    yield var85
    var86 = 199 + -761
    yield var86
    var87 = ((arg37 ^ 441) & -825) - arg38
    yield var87
    var88 = (var86 | 1968690801) & arg37 - arg37
    yield var88
    var89 = var86 ^ (var88 & var88)
    yield var89
    var90 = arg38 & arg38
    yield var90
    var91 = var86 & var90 | arg37 ^ arg38
    yield var91
    var92 = 388 - 184
    yield var92
    var93 = (var86 ^ var86 - 289562309) & arg38
    yield var93
    var94 = (var90 + (var87 ^ var88)) & var89
    yield var94
    var95 = (var92 | (var88 + var90)) & var87
    yield var95
def func8():
    global len
    del len
def func7():
    global len
    len = lambda x : -1
def func3(arg16, arg17):
    var21 = func4(arg17, arg16)
    var22 = arg16 | arg17 & var21 ^ arg17
    var23 = (var21 - var22) ^ (var22 - var22)
    var24 = var22 | 2078873178 & var23 - var23
    var25 = ((var22 + arg17) | 1417185561) ^ var21
    var26 = (var24 + var24 - 335) + -169
    if var26 < var25:
        var27 = -1221025423 - (var22 ^ var25) ^ var22
    else:
        var27 = var26 & var21 & (var23 - arg17)
    var28 = var25 - (var26 - (var23 + var22))
    if var24 < var25:
        var29 = var25 + var21 - -528 - var28
    else:
        var29 = (var22 - -320) - var23 - -313483519
    var30 = var28 - var25 + -1336713376
    var31 = var24 ^ var24 | var21 + var28
    var32 = arg16 ^ 302742139
    var33 = (var31 - var23) | var30
    var34 = var25 ^ (arg17 & arg17) & var28
    result = (var34 | 759) ^ var25 & (((var22 - (var25 - var34)) | (var26 | var24 + var28)) | var22) - var23 ^ var31
    return result
def func2(arg13, arg14):
    var15 = (-1009439431 - ((688 + arg13 + 128 | 1906442081) ^ 133)) - -2014993753
    result = (var15 + arg14 ^ arg14) - -401967260
    return result
def func1(arg1, arg2):
    var3 = arg2 & arg1 | (arg1 | arg2)
    var4 = 25 & var3
    var5 = -1631858315 | (var4 + (var4 | arg2))
    var6 = -1861079925 - (var3 + var4 - arg1)
    var7 = (var4 | arg1 + var6) | var3
    if arg1 < var7:
        var8 = -334 + var4 ^ -183 | var7
    else:
        var8 = var7 & var3
    var9 = 1760172186 - (var6 & arg2) - var3
    var10 = var9 | var5
    if var7 < var9:
        var11 = arg1 ^ var7
    else:
        var11 = var6 - var10
    var12 = var6 | var7 ^ var5
    result = var9 & (arg1 | var12 - var7 | (arg2 ^ arg1) | var10 & arg2 & var3 ^ 53 + -331 & var12)
    return result
def func4(arg18, arg19):
    def func5(acc, rest):
        var20 = acc + -5
        if acc == 0:
            return var20
        else:
            result = func5(acc - 1, var20)
            return result
    result = func5(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 13'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 0'
    print 'func_number: 3'
    print 'arg_number: 16'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,
    print 'prog_size: 1'
    print 'func_number: 6'
    print 'arg_number: 35'
    for i in xrange(25000):
        x = 5
        x = func3(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 14'
    print 'arg_number: 100'
    for i in xrange(25000):
        x = 5
        x = func6(x, i)
        print x,