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):
    var38 = func2(arg2, arg1)
    var61 = func8(arg2, arg1)
    var66 = func9(var38, arg2)
    var67 = (arg2 + arg2 - var61 | arg1 & 484 & var66 ^ var61 + arg2 & -236847182) + var61
    var68 = (var66 + (var66 + var38 - var38 ^ arg2) | -146 | (112 & -894)) & -448
    result = var67 & var61
    return result
def func9(arg62, arg63):
    var64 = 0
    for var65 in range(1):
        var64 += -10 - arg62 + 6
    return var64
def func8(arg39, arg40):
    var41 = arg40 + -793791374 | 590415926 - arg39
    var42 = arg39 & -240 & -611559454
    var43 = var41 ^ 96 & (var41 ^ var42)
    var44 = (var42 + var41) ^ arg40 - -446
    var45 = arg39 + 1681390266 | (var41 ^ var43)
    var46 = (var44 ^ arg39) - var45
    var47 = 128 - (var43 - var43) ^ arg39
    var48 = 892 + (arg40 + var44 | var45)
    var49 = (var47 | var46) & (var44 - var47)
    var50 = (var41 | var49) + var48
    var51 = ((var46 | -706) | arg39) & var44
    if var45 < var48:
        var52 = 1171773395 - ((632 - var42) & var50)
    else:
        var52 = var46 - -1249979225
    var53 = ((var50 - -1290270109) | var42) | -695
    var54 = var51 | var44
    var55 = var43 + (var45 + var53 + 527289016)
    var56 = 892 + (var50 ^ 966) - var53
    var57 = var45 | (var51 + var43)
    var58 = var54 - var51 | (var57 - 1032850034)
    var59 = -1268425845 | var58
    var60 = var56 ^ var51
    result = ((472 & (var47 | var44)) ^ var55) + arg40
    return result
def func2(arg3, arg4):
    var8 = func3(arg4, arg3)
    var35 = var11(arg3, var8)
    var36 = 514 - (arg4 + (arg4 | -896245337)) & 27159904
    var37 = (arg4 | var8) - (arg4 & arg4 + ((-948775588 ^ arg3 + -114) - var35 ^ (arg4 - (var35 | var36 | arg3 + (arg4 | ((874 & (arg4 & arg4)) - -38 | arg4))) ^ var36 & (var8 - var35)))) & var36
    result = (var35 & (var37 + 1596693215)) - 931307920
    return result
def func7(arg12, arg13):
    var14 = arg13 - (arg13 - -797) & arg12
    var15 = (var14 & arg13 | arg13) + arg12
    var16 = -747 ^ var15 ^ arg12 - var14
    var17 = (arg12 - 5088780 & var14) ^ var16
    var18 = 1397513305 + -1319492092 - arg12 & arg13
    var19 = ((var15 ^ -692762593) - -1447492649) & var15
    var20 = var14 | var16 & arg12 - var16
    var21 = arg12 ^ (-399999201 ^ var15)
    var22 = ((var14 & var16) & var14) & arg13
    var23 = arg12 & var17
    var24 = (arg13 ^ 742 ^ var18) | var21
    var25 = (2095921880 & var22 & var16) ^ var21
    var26 = var18 | (var14 ^ var17 | var14)
    var27 = var24 + (var25 & var19 | var14)
    var28 = var18 ^ var22
    var29 = (var17 & var16 ^ var16) + var17
    var30 = var16 - (256 - var16) - var16
    var31 = var30 - var24
    var32 = var22 - var17 & (var21 | var16)
    var33 = var14 ^ var14 | var25 - var19
    var34 = var32 - var33
    result = (((var28 & var34 - ((var17 & var16 - var16) | -969265272 + var23)) + arg13 ^ var30 + 1287737042) ^ var34) ^ var20
    return result
def func6():
    closure = [8]
    def func5(arg9, arg10):
        closure[0] += func7(arg9, arg10)
        return closure[0]
    func = func5
    return func
var11 = func6()
def func3(arg5, arg6):
    closure = [0]
    def func4(acc, rest):
        var7 = (((-1 | -1) & -5 | acc) + -2 ^ acc) + -8
        closure[0] += var7
        if acc == 0:
            return var7
        else:
            result = func4(acc - 1, var7)
            return result
    result = func4(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 10'
    print 'arg_number: 69'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,