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 func7(arg57, arg58):
    var87 = var61(arg57, arg58)
    var88 = func13()
    var89 = func16()
    var90 = var88 | 320
    var91 = var88 & (((arg57 & 1881777850) | (arg58 - var88)) | var87)
    var92 = var87 | arg57
    var93 = (var90 | var88) ^ var91 | (-1070849386 ^ var87)
    var94 = var87 - arg58 & (1235910300 | arg58 | (arg58 ^ var93 | (-313 | (var89 ^ var93)) | var88) | var87 | 712 & arg58 + var93) - var93
    result = (var92 + var92 + -594136390) + ((-1037968195 - 12) & var89 + -287)
    return result
def func16():
    func14()
    result = len(xrange(50))
    func15()
    return result
def func15():
    global len
    del len
def func14():
    global len
    len = lambda x : 7
def func13():
    func11()
    result = len(xrange(46))
    func12()
    return result
def func12():
    global len
    del len
def func11():
    global len
    len = lambda x : -3
def func10(arg62, arg63):
    var64 = (172401584 ^ 261068909 & -544) & arg62
    var65 = var64 | arg63
    var66 = -645 & (arg63 ^ arg62 ^ var64)
    var67 = (var66 & (arg63 & var66)) - var66
    var68 = arg63 - var64
    var69 = (var68 ^ var64 - arg63) | var64
    var70 = (var65 ^ var64 & arg62) - var68
    var71 = var65 + var67 ^ (var70 ^ -904)
    if var69 < var71:
        var72 = (var66 | var69 ^ 185) - arg62
    else:
        var72 = var68 ^ var66
    var73 = (arg62 + var64 & -1366176042) ^ var68
    var74 = var64 - var64
    var75 = (var73 + var64 | var65) | var67
    if var68 < var75:
        var76 = (var65 ^ var67 | var71) + var64
    else:
        var76 = var69 & arg63
    var77 = var70 | var68 - arg62 & var65
    var78 = arg62 - ((var69 + var66) & var77)
    var79 = var70 | var71 - (var68 + var68)
    var80 = var64 ^ (var70 ^ var66 & var69)
    var81 = var79 | var68
    var82 = ((317 ^ var67) + var70) - var75
    if var66 < var75:
        var83 = var74 ^ var78
    else:
        var83 = var75 - var82
    var84 = var80 + (var82 & var66)
    var85 = var73 - (var64 & -1927230779) ^ var74
    var86 = ((var65 | var82) ^ var66) ^ arg62
    result = var78 ^ ((var71 | (((var74 & var75) + var74) ^ var82 | var65) - arg63) - -936056153) - var85 ^ var78 + var67
    return result
def func9():
    closure = [-10]
    def func8(arg59, arg60):
        closure[0] += func10(arg59, arg60)
        return closure[0]
    func = func8
    return func
var61 = func9()
def func6(arg38, arg39):
    var40 = -110971190 & arg38 + arg39 & -1359002329
    var41 = arg38 - 752 + arg38 ^ var40
    var42 = (var41 - var40) ^ var41
    var43 = arg39 & arg39
    var44 = arg38 & (var42 ^ arg39 + 1819456143)
    var45 = var41 - var41
    var46 = -368 - var45 | var44 & var42
    var47 = var40 ^ -565100926
    var48 = -784 & 310878708
    if var43 < var46:
        var49 = (-159 + var45) - var48
    else:
        var49 = var48 ^ var42
    if var47 < var43:
        var50 = var43 + arg39
    else:
        var50 = var46 ^ var41 - var43 & var45
    var51 = var40 & var47 | var48 - -1241125505
    var52 = arg38 + (var46 | var45 + var42)
    var53 = (var51 - -1633859987) - arg39 - var47
    var54 = var53 + var40 | (var41 | var45)
    var55 = var46 + -1728850671
    var56 = -2101387894 & var55
    result = arg38 & var56 ^ (var54 ^ 645332610 ^ var43) ^ var40 ^ var53
    return result
def func4(arg11, arg12):
    def func5(arg13, arg14):
        var15 = -628 ^ arg12
        result = (arg12 + (arg12 & 714)) ^ arg12 | (arg11 | (arg11 + var15 ^ (1088329553 - 332 | arg14))) - var15 & arg13
        return result
    var16 = func5(arg11, arg12)
    var17 = arg11 + -79773448
    var18 = arg11 ^ 792 & -1426025106 & arg11
    if arg11 < var17:
        var19 = (var16 & arg12 | arg11) - arg12
    else:
        var19 = (var16 & arg11) + var17 - 725195518
    var20 = var17 ^ var16
    var21 = (var20 & 424) + arg11
    if arg11 < arg11:
        var22 = var20 + arg11
    else:
        var22 = (var16 ^ arg11) & var18 ^ arg12
    var23 = var21 - arg12 + 148
    if arg12 < var17:
        var24 = var17 | var23 & var16
    else:
        var24 = (181 - (arg12 - var23)) ^ arg12
    var25 = var23 ^ (-75678291 & var20) | -997154085
    var26 = var20 - 956735309
    var27 = (var17 - var25 ^ var16) ^ var20
    var28 = var26 | var20
    var29 = 305 - (964 - var27 | var18)
    var30 = (var16 - var20 | 330397607) | var29
    var31 = var27 | 1774140152
    var32 = (arg12 & (var17 & var21)) | var31
    var33 = var31 - (var17 | var31) & 1972859259
    var34 = (arg12 ^ var21 | var25) | var27
    var35 = arg11 - var25 ^ (var29 | var26)
    var36 = var16 + (var31 | var28 ^ var34)
    var37 = var16 - var21
    result = var18 + var36 - var31 | var32 - var25
    return result
def func1(arg1, arg2):
    var6 = func2(arg1, arg2)
    var7 = (((-879 | var6 - arg2) & var6 ^ 156035088 - var6 ^ var6 + (arg1 ^ arg2) ^ -130 ^ (var6 + var6)) - var6) | var6
    var8 = arg1 ^ var6 | 1514462061
    var9 = arg1 | arg1
    var10 = (var8 + (arg1 ^ arg2)) & var7
    result = var9 - ((var7 & var9 & var9) | var10 + var9)
    return result
def func2(arg3, arg4):
    def func3(acc, rest):
        var5 = 9 - rest ^ acc
        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: 1'
    print 'func_number: 4'
    print 'arg_number: 11'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 2'
    print 'func_number: 6'
    print 'arg_number: 38'
    for i in xrange(25000):
        x = 5
        x = func4(x, i)
        print x,
    print 'prog_size: 2'
    print 'func_number: 7'
    print 'arg_number: 57'
    for i in xrange(25000):
        x = 5
        x = func6(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 17'
    print 'arg_number: 95'
    for i in xrange(25000):
        x = 5
        x = func7(x, i)
        print x,