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 func2(arg8, arg9):
    var54 = var12(arg8, arg9)
    var80 = func13(arg8, arg9)
    var81 = 379 | 298 & arg9 - -1941270207
    var82 = -1550815036 - arg9 ^ -1267754179
    var83 = var80 & var54
    var84 = arg8 | var82
    var85 = arg9 - (7 | arg9)
    var86 = 81684015 ^ var84
    var87 = arg9 & var85 + arg8 | var85
    var88 = (var86 ^ arg9 + arg9) ^ arg8
    var89 = (arg8 ^ var85 ^ var83) ^ var87
    var90 = var81 ^ (arg9 | var82) & -890
    var91 = var54 | var80
    var92 = var83 - (arg9 - var80)
    var93 = var86 - var91
    var94 = arg9 & (arg8 ^ var92) - var87
    var95 = var87 - ((var81 + var86) - var91)
    if arg9 < var93:
        var96 = ((var83 & var85) ^ var85) + var91
    else:
        var96 = (212084630 ^ var89 | var81) - var91
    var97 = var89 + var84 ^ var90
    var98 = ((var83 & var88) ^ var80) ^ 1405825634
    result = 700 | (var92 - var82 + (var85 & var91))
    return result
def func13(arg55, arg56):
    var57 = arg56 | arg56
    var58 = var57 ^ arg56 & 1231849581 ^ -946
    var59 = -78 | (502 ^ var58) ^ var58
    var60 = arg56 + var57 & (-233690203 | arg56)
    var61 = -1350261551 | var59 | 179 | var59
    var62 = (var61 | var61) - (arg56 ^ arg56)
    var63 = (var61 ^ arg55 | 1985443206) + var58
    if arg56 < var60:
        var64 = (var61 & var58) - -1287463589 + 797
    else:
        var64 = var58 - arg56 - -1585873513
    var65 = ((var61 | var61) + var62) & -640
    var66 = (var58 & var58) | (var59 - var62)
    var67 = (var66 & arg56 + arg55) | var61
    var68 = (var57 & -1420060073 - arg56) & var57
    var69 = var66 - 955
    if var61 < var61:
        var70 = var57 | (var69 & var68 | arg56)
    else:
        var70 = (var66 + var60 & var66) & var62
    var71 = var58 ^ (var69 + var69) ^ var68
    var72 = 2091658625 + arg55
    var73 = var58 | var61 - var67 + -112
    var74 = var57 | arg56 ^ 1539346324
    var75 = var57 - var63 ^ var68 ^ var57
    var76 = var75 + var74 - var65 + 852595443
    var77 = var62 | var68
    var78 = (var61 + (var59 + var60)) ^ var63
    var79 = (var77 + var65) ^ arg56
    result = var79 + (var72 & var65) - (var61 - (var79 ^ var57 & var63))
    return result
def func5(arg13, arg14):
    var19 = func6(arg14, arg13)
    var44 = var22(var19, arg13)
    var52 = var47(var19, var44)
    var53 = arg13 ^ var44
    result = (-411 ^ arg14 - (var19 | (var53 + 2124229544) ^ 1064665106) | var44 ^ arg14 & arg13 & var19 & var44) & -1176678989
    return result
def func12(arg48, arg49):
    var50 = (1114891740 ^ ((arg48 + (-486 + arg49)) - arg48 - arg49) & 1524701257 ^ arg49 + arg49) + (arg48 ^ (arg48 | -477) ^ -247702592 - (arg49 ^ (317 + -587568919 | -466 + 1777201099 ^ arg48)) + -13) - arg49 & -848
    var51 = -34 - (-1801050627 + -2023733417) | arg49
    result = var50 ^ var50
    return result
def func11():
    closure = [-1]
    def func10(arg45, arg46):
        closure[0] += func12(arg45, arg46)
        return closure[0]
    func = func10
    return func
var47 = func11()
def func9(arg23, arg24):
    var25 = (arg23 | -15) ^ arg24 ^ arg23
    var26 = (arg23 & (-215678878 | 901)) | -674925437
    if var25 < arg24:
        var27 = (var26 - var25 | 536) ^ var26
    else:
        var27 = var25 - (arg24 - var26)
    var28 = -730 ^ arg24 - 1706611985 ^ var26
    var29 = 88 | -688 | arg24 ^ arg24
    var30 = (var28 - var26 | var26) | -234
    var31 = ((arg24 & var26) + var29) & arg24
    var32 = var26 | (974 ^ var26 - arg23)
    var33 = var31 + var26 + arg23 & var30
    var34 = (var32 & var33) | 177255454
    var35 = 1238812110 | -1676131931 + var31 & var30
    var36 = var30 & ((1680572249 | var33) | var31)
    var37 = -239804018 & -1741760082
    var38 = (arg24 ^ var32) - var25
    var39 = var30 & ((var28 & var34) + arg24)
    var40 = var28 + var33
    var41 = arg23 & var26
    var42 = (var40 - var38 + var34) | 265
    var43 = (arg23 & arg24) | var34 + var39
    result = var39 & (var41 ^ var26 + var41) + var34 - var38 - var25 + var26
    return result
def func8():
    closure = [9]
    def func7(arg20, arg21):
        closure[0] += func9(arg20, arg21)
        return closure[0]
    func = func7
    return func
var22 = func8()
def func6(arg15, arg16):
    var17 = 0
    for var18 in range(33):
        var17 += arg15 + var18 - var17
    return var17
def func4():
    closure = [0]
    def func3(arg10, arg11):
        closure[0] += func5(arg10, arg11)
        return closure[0]
    func = func3
    return func
var12 = func4()
def func1(arg1, arg2):
    var3 = arg1 & arg1
    var4 = ((((var3 | arg1 - var3) + (-1156248619 ^ (-691334789 | (arg1 & -499 & ((arg1 + arg1) ^ -448))))) | (205831360 & var3)) & 175) | 1750693099 - arg2
    var5 = (arg1 + -1810935736 & var3) | ((var3 - -388) ^ var3)
    var6 = var4 | (519 & ((var5 & var3) + var4 + var5)) & var4
    var7 = var5 & var5 & var6
    result = 947 + ((arg2 | var7) & var5)
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 8'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 14'
    print 'arg_number: 99'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,