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):
    def func2(arg3, arg4):
        var5 = func5()
        var10 = func6(arg3, arg1)
        var15 = func7(var5, arg2)
        var16 = -210 + var15
        var17 = arg3 | arg1
        if arg1 < arg1:
            var18 = ((arg4 - var17) & -597) & var16
        else:
            var18 = var16 & -330
        var19 = arg4 - arg3
        var20 = var5 | (arg4 - (var17 - var16))
        var21 = (var20 - (var15 | var10)) ^ var19
        var22 = var17 & (var21 + var21 ^ var10)
        var23 = var21 ^ arg3
        if arg1 < var16:
            var24 = (-686 & arg3 - var15) - var10
        else:
            var24 = arg1 - var21 - var21 ^ arg3
        var25 = arg2 - (var15 + arg2 & arg2)
        var26 = 671 + (arg2 + var16) - var25
        var27 = ((var15 | var22) ^ var17) + var20
        var28 = (359906793 - var22 & -598261904) + 295074465
        var29 = arg1 + var25 | var20 ^ arg1
        var30 = var20 & var15 + 2035230879 & var25
        var31 = var22 | ((var29 | var25) | arg2)
        var32 = var17 ^ -1668409050
        var33 = -317 | (var28 - var17)
        var34 = var16 - (var5 & var16) | 1026098749
        var35 = var28 & arg1 ^ var27 | var32
        var36 = -785366709 | var10 & var22 ^ var31
        var37 = (var35 | var32) - arg2 + var26
        var38 = var19 ^ (var37 ^ var10) | var10
        result = ((var21 + arg3) - var37) | var30
        return result
    var39 = func2(arg1, arg2)
    var43 = func8(arg2, arg1)
    result = (-314163257 | (arg2 ^ 715) ^ ((var43 + (var39 + (2108310296 | 1410945819)) - 941767413 ^ 880) | 788342354) - var43) - 842
    return result
def func7(arg11, arg12):
    var13 = 0
    for var14 in range(16):
        var13 += arg12 ^ arg12 & -3
    return var13
def func6(arg6, arg7):
    var8 = 0
    for var9 in xrange(6):
        var8 += (var9 & var9) | var9
    return var8
def func5():
    func3()
    result = len(xrange(39))
    func4()
    return result
def func4():
    global len
    del len
def func3():
    global len
    len = lambda x : -4
def func8(arg40, arg41):
    def func9(acc, rest):
        var42 = rest | acc & rest
        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: 44'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,