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):
    var6 = func2(arg2, arg1)
    var14 = var9(var6, arg2)
    var15 = func9()
    def func10(arg16, arg17):
        result = var15 | arg17
        return result
    var18 = func10(arg2, var14)
    var19 = func13()
    if arg1 < var15:
        var20 = -1003358815 + (var18 ^ var14 - (-1634053507 ^ var19))
    else:
        var20 = -13979358 + arg2 + arg2 - ((var6 - (arg2 | (var14 & ((-591 + var19) & var18 & (arg2 ^ 586931411 & (var15 - arg1 ^ 1523086782)) & (var6 & var18) | var6 | var19 ^ arg1))) + var6) & var18) & var14
    var21 = var6 - var18
    var22 = (arg1 | var6 | var14) ^ var14 + var18
    result = var14 ^ (var14 + arg1) & var15
    return result
def func13():
    func11()
    result = len(xrange(4))
    func12()
    return result
def func12():
    global len
    del len
def func11():
    global len
    len = lambda x : -10
def func9():
    func7()
    result = len(range(18))
    func8()
    return result
def func8():
    global len
    del len
def func7():
    global len
    len = lambda x : -1
def func6(arg10, arg11):
    var12 = (arg11 & (-525554138 ^ ((arg10 + 1076951630 ^ -553) ^ -151) | ((269 & -313893282 - 79100154) - 21 ^ arg11 + arg10 ^ (458 + arg10) & arg10 - arg10) & ((713 + arg11) | -85 | arg11 | arg11))) | 670
    var13 = (-1593323921 & arg11) | var12
    result = arg10 + -1311773727
    return result
def func5():
    closure = [-8]
    def func4(arg7, arg8):
        closure[0] += func6(arg7, arg8)
        return closure[0]
    func = func4
    return func
var9 = func5()
def func2(arg3, arg4):
    closure = [0]
    def func3(acc, rest):
        var5 = (2 ^ -8) & (2 - acc)
        closure[0] += var5
        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: 5'
    print 'func_number: 14'
    print 'arg_number: 23'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,