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):
    var9 = var5(arg2, arg1)
    var14 = func5(arg2, arg1)
    var19 = func6(var14, arg2)
    var24 = func7(var19, arg2)
    var31 = func8(arg2, var24)
    var32 = 1114729038 & (arg2 & 1542805591) | var14
    var33 = (1230795728 ^ arg1) ^ var9 ^ var19
    var34 = 1144015092 ^ (var31 - (arg1 ^ arg1))
    var35 = arg1 - var19
    var36 = var32 | arg2
    var37 = -123 ^ (var35 + var34) - var9
    var38 = var31 ^ arg2 | var19 + var31
    var39 = (var32 & -379806115) | var34 + var36
    var40 = arg2 - var36
    if arg1 < var37:
        var41 = var36 & var33
    else:
        var41 = ((arg1 & var14) + arg1) ^ var19
    var42 = (arg2 | var35) | var19
    var43 = -464 & (var31 ^ var38 ^ var37)
    var44 = (var14 - var24 + var33) | arg2
    var45 = var36 & var36
    var46 = var34 ^ (var39 | arg1) - var9
    var47 = var36 + var39 & (var35 & var19)
    var48 = (arg1 & 439 ^ var43) & var37
    var49 = (var38 ^ arg2 | arg2) ^ var19
    var50 = var35 & (var44 - var49)
    var51 = var14 & (var46 + var24) - var34
    var52 = var49 | (var19 | var32 + var45)
    result = var44 & (var33 & var38 + 462 & var31 + arg1 - var43 & var47 - var42 ^ arg1 | (var39 | -883121597))
    return result
def func10(arg27, arg28):
    var29 = (-922 ^ ((682545220 ^ -959 | 79) & arg27 - (327 - arg28))) | ((arg27 | ((164 & arg27 ^ arg28) & (arg27 ^ arg27 + arg28) ^ 1146856973)) - 493796091)
    result = 455 + arg27
    return result
def func7(arg20, arg21):
    var22 = 0
    for var23 in xrange(20):
        var22 += (var23 & var22) & var22
    return var22
def func6(arg15, arg16):
    var17 = 0
    for var18 in range(12):
        var17 += (var17 ^ arg15) + arg16
    return var17
def func5(arg10, arg11):
    var12 = 0
    for var13 in xrange(4):
        if arg10 < var13:
            var12 += var12 + arg10 + arg11
        else:
            var12 += arg11 & var12
    return var12
def func4(arg6, arg7):
    var8 = arg6 & arg6 - arg7 & arg6 | ((244 + (-554 | arg7 & -1683545800) - -905 - (515972666 - arg7)) & -725706446 & arg6 ^ 89 | arg7) + arg7 - (arg6 & (arg7 & 823567753 ^ arg6) - arg6) - 9
    result = var8 + arg6 | (arg7 + arg6 | -932 + 202 & arg6) & 16
    return result
def func3():
    closure = [4]
    def func2(arg3, arg4):
        closure[0] += func4(arg3, arg4)
        return closure[0]
    func = func2
    return func
var5 = func3()
def func8(arg25, arg26):
    def func9(acc, rest):
        var30 = func10(1, -8)
        if acc == 0:
            return var30
        else:
            result = func9(acc - 1, var30)
            return result
    result = func9(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 11'
    print 'arg_number: 53'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,