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):
    var35 = func2(arg1, arg2)
    var39 = func6(arg2, var35)
    var43 = func8(arg1, var35)
    var44 = -611147795 ^ arg2
    result = var35 ^ (var35 + var39) | ((((var35 ^ (var44 & var35)) + 956014781) | var39) | 226427205 - var43) + var43 & var39
    return result
def func2(arg3, arg4):
    var5 = 0
    for var34 in func3(arg3, arg4):
        var5 += var5 + arg3
    return var5
def func4(arg8, arg9):
    def func5(arg10, arg11):
        var12 = (arg9 - arg8 + arg8) ^ arg9
        var13 = -790485893 - arg10
        var14 = var13 | (947 - var13) + arg11
        var15 = (arg11 + var13 ^ arg10) - arg8
        var16 = arg9 + (arg8 + (var13 - var14))
        var17 = var13 & arg8
        var18 = -1906642018 - arg9 ^ var17 + var12
        var19 = ((arg8 ^ var16) | 783414989) - var16
        var20 = (-332957031 ^ arg11) | var18 | arg8
        var21 = arg11 ^ var16 - var18 | var20
        result = 8 + -1744486476 & arg8 ^ var21 + arg11
        return result
    var22 = func5(arg9, arg8)
    result = arg9 | -347 + arg8 ^ -951
    return result
def func3(arg6, arg7):
    var23 = func4(-294550903, arg6)
    yield var23
    var24 = arg7 & (arg6 ^ arg7) | arg7
    yield var24
    var25 = var24 + -696
    yield var25
    var26 = arg7 & arg6 - 803
    yield var26
    var27 = var25 ^ (-188 | var24)
    yield var27
    var28 = 520 + -140
    yield var28
    var29 = var25 | (arg7 + var27)
    yield var29
    var30 = var27 & -26 & var25
    yield var30
    var31 = arg7 + var27
    yield var31
    var32 = var29 | arg6
    yield var32
    var33 = (var29 & var26 - var26) & var30
    yield var33
def func6(arg36, arg37):
    def func7(acc, rest):
        var38 = (-2 + -3) - 0
        if acc == 0:
            return var38
        else:
            result = func7(acc - 1, var38)
            return result
    result = func7(10, 0)
    return result
def func8(arg40, arg41):
    def func9(acc, rest):
        var42 = 5 + acc + -1
        if acc == 0:
            return var42
        else:
            result = func9(acc - 1, var42)
            return result
    result = func9(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 10'
    print 'arg_number: 45'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,