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):
    var52 = var5(arg1, arg2)
    var57 = func14(var52, arg2)
    var58 = arg1 | (528 + arg1 & (((((-279 + var57) + arg1 - var52) + (arg2 - 1910914114)) + -282) & var57))
    var59 = arg2 ^ arg1
    var60 = -613 + 811 | var52 & (arg1 - var58)
    result = var52 - (var60 - var59)
    return result
def func14(arg53, arg54):
    var55 = 0
    for var56 in range(38):
        var55 += 0 & arg54 + arg54
    return var55
def func4(arg6, arg7):
    var48 = var10(arg7, arg6)
    var49 = 1453494203 ^ arg7
    var50 = ((arg6 + -506505887) | (303 + (-834 & var48) + 606759061 | (var49 | 639 & (-1733615069 | (arg6 + 548) & (-702 + -551277499))) ^ arg7)) | (var49 | var48)
    var51 = (var49 | arg6) & (955 + 1788857223) + var48
    result = var48 + -146
    return result
def func7(arg11, arg12):
    var19 = func8(arg12, arg11)
    var25 = var22(arg12, arg11)
    var26 = (arg12 & -667 - 2127668930) & var25
    var27 = 1608724881 ^ -1367358217
    var28 = var25 + -1548898602
    var29 = 1498903719 & (-1247776657 ^ -851)
    var30 = var25 | (var27 & var19) + var28
    var31 = (var30 + -325) + 844 ^ var26
    var32 = (var31 - -1685362465 - var30) | arg11
    var33 = (-971 & var26) + arg11 - var19
    var34 = (var27 | var33) & (var27 & var27)
    var35 = -411 + var30 + (var27 & var26)
    var36 = (var30 & (var35 + var25)) ^ var31
    var37 = var36 + var19 | var34 ^ arg12
    var38 = (var37 + arg11 | var28) - var33
    var39 = (var31 | var32 & arg11) + var32
    var40 = var19 + var27
    var41 = var27 | var26
    var42 = var35 - (var25 - (arg11 | -1097639777))
    var43 = var30 - (638554021 ^ var41) & arg11
    var44 = (var39 & (var26 + 412)) + var43
    var45 = var33 + var44
    var46 = (1693192012 ^ arg11) + var33 | var19
    var47 = (var34 - var26) ^ var37 ^ var33
    result = var32 | var30
    return result
def func13(arg23, arg24):
    result = arg24 & -1294777422
    return result
def func12():
    closure = [-8]
    def func11(arg20, arg21):
        closure[0] += func13(arg20, arg21)
        return closure[0]
    func = func11
    return func
var22 = func12()
def func10(arg15, arg16):
    var17 = -1268650595 + arg15 - 244 | 993
    result = var17 - var17
    return result
def func6():
    closure = [2]
    def func5(arg8, arg9):
        closure[0] += func7(arg8, arg9)
        return closure[0]
    func = func5
    return func
var10 = func6()
def func3():
    closure = [-3]
    def func2(arg3, arg4):
        closure[0] += func4(arg3, arg4)
        return closure[0]
    func = func2
    return func
var5 = func3()
def func8(arg13, arg14):
    def func9(acc, rest):
        var18 = func10(rest, 8)
        if acc == 0:
            return var18
        else:
            result = func9(acc - 1, var18)
            return result
    result = func9(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 15'
    print 'arg_number: 61'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,