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 func4(arg9, arg10):
    var13 = class5()
    for var14 in xrange(41):
        var13.func6(var14, var14)
    var17 = class7()
    for var18 in xrange(17):
        var17.func8(arg10, arg10)
    var37 = var21(arg9, arg10)
    var42 = func12(arg9, var37)
    var43 = (-1752312321 ^ -504) ^ 219140660 + -1944853436
    var44 = (var43 | -311077008 + var37) | var42
    var45 = ((1091677581 ^ var37) ^ var42) & var43
    if var45 < arg10:
        var46 = var43 - ((arg9 + var43) + var45)
    else:
        var46 = (var44 & -2115929169 ^ var44) - var45
    var47 = var44 | (arg10 ^ arg10 + arg9)
    var48 = 657 + var45 + var44 - var43
    var49 = var44 + arg9
    if var42 < var42:
        var50 = var48 & var44 ^ -349 | var43
    else:
        var50 = (var43 ^ var47 - arg9) - var48
    var51 = (var47 | arg9) ^ arg10 ^ var43
    var52 = (-405 & arg9) + var43 & -238862386
    var53 = var49 - (var51 ^ var45)
    var54 = (var49 + arg9) - var51
    var55 = ((1768368053 ^ var45) - var44) ^ var49
    var56 = ((var48 ^ var51) & var37) ^ var37
    var57 = ((var56 ^ -432573802) & arg9) + var45
    var58 = var37 + var56 | var44 & var48
    var59 = var48 + var43
    var60 = var44 & var54
    var61 = (var60 + var42 & var49) | var57
    var62 = -411968735 & var59
    result = var55 + (var48 - var57)
    return result
def func12(arg38, arg39):
    var40 = 0
    for var41 in range(43):
        var40 += -10 + arg38
    return var40
def func11(arg22, arg23):
    var24 = 296 - arg22 & 662377648 & arg22
    var25 = (353 ^ var24) & var24 + var24
    var26 = var25 + 323
    var27 = (var24 ^ var26) & var26 ^ var26
    var28 = arg22 & var24
    var29 = var24 ^ (-2110087721 - var24 & 414)
    if var29 < var26:
        var30 = arg23 + (var25 + var25)
    else:
        var30 = var29 | (arg22 - -750) & var24
    var31 = (var24 + arg22) ^ -1382427019
    var32 = 117 ^ (arg22 | var28)
    var33 = var29 & -366
    var34 = var33 - (arg23 & var24) | var28
    var35 = var31 - -396679475
    var36 = var32 - (var28 | var28)
    result = (var29 ^ ((var26 - ((var29 ^ var35) | (var26 ^ var27) - var36 - var24 + var26)) | var26) + var36) ^ 441
    return result
def func10():
    closure = [5]
    def func9(arg19, arg20):
        closure[0] += func11(arg19, arg20)
        return closure[0]
    func = func9
    return func
var21 = func10()
class class7(object):
    def func8(self, arg15, arg16):
        result = arg16 ^ arg16 | arg15
        return result
class class5(object):
    def func6(self, arg11, arg12):
        result = -835636737 - arg12
        return result
def func1(arg1, arg2):
    var6 = func2(arg2, arg1)
    var7 = (1479608569 + (var6 - arg2) | arg2 | (var6 & (1529120460 & var6 ^ -920901177 + -815 + (arg1 + 1679373887 | 1192033470))) | 941) - (arg2 + 1766893601) ^ arg1
    var8 = var7 | arg1
    result = -576022112 + arg2
    return result
def func2(arg3, arg4):
    def func3(acc, rest):
        var5 = 1 ^ 3
        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: 9'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 13'
    print 'arg_number: 63'
    for i in xrange(25000):
        x = 5
        x = func4(x, i)
        print x,