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 func13(arg35, arg36):
    var40 = func14(arg35, arg36)
    if arg35 < arg36:
        var41 = -1583396473 | arg36
    else:
        var41 = (493 + -752) - -1914427056
    var42 = arg36 | (arg36 & 9) - arg36
    var43 = arg36 | arg35
    var44 = var43 ^ var43 ^ arg36
    var45 = arg35 & var44 - var43 | var42
    var46 = (var43 | (var43 - -916)) | var43
    if arg36 < var40:
        var47 = ((var40 - var45) ^ var45) | arg36
    else:
        var47 = arg35 - ((var42 + var44) + -477)
    var48 = -1479344510 & var45
    var49 = var46 & arg35 & 1240010731 | arg36
    if arg36 < var42:
        var50 = (arg36 & arg36) - arg36 & arg36
    else:
        var50 = var46 + ((48 - var43) + var43)
    var51 = arg35 | (var40 ^ (474 & 706))
    var52 = var49 ^ (var48 ^ var48)
    result = var40 + var40
    return result
def func5(arg4, arg5):
    if arg5 < arg4:
        var10 = class6()
    else:
        var10 = class8()
    for var11 in range(10):
        var10.func7(arg4, var11)
    var29 = func10(arg5, arg4)
    var30 = var29 - arg5
    var31 = arg4 | -320
    var32 = var29 & (((var31 & arg4) - arg5) & -810) + var31
    var33 = 495 - var31
    if var31 < var32:
        var34 = (((arg5 | var30) - var29 & var32 ^ (var32 + (var32 - arg4))) - (arg5 & var33 + ((arg5 & var29 + arg4 & (410 | var33 & var32)) & var30) - arg5) & arg4 | var33) | arg4 ^ var30 | -1733160622
    else:
        var34 = var30 ^ -1860505832 - ((1379308719 & ((arg5 + (var30 | 354)) - var32) & arg4 & var31) - -147256203) & arg4
    result = var33 & 764 & (var30 | 23)
    return result
def func10(arg12, arg13):
    var17 = func11(arg13, arg12)
    var18 = (378 | -896 ^ 368088566) - 88
    var19 = var18 | arg12 & arg13 - -817
    var20 = var18 & arg12
    var21 = arg13 + (-704473600 & arg12 - var18)
    var22 = var18 | var20 + var18 + var19
    var23 = arg13 - 979 | 1551812250 + var20
    var24 = var21 + var19
    var25 = var21 - var22 ^ var22
    var26 = var24 & (-860 + var20)
    var27 = arg13 + var22
    var28 = -693298972 | var17
    result = arg13 - (arg12 + var26)
    return result
class class8(object):
    def func7(self, arg8, arg9):
        return 0
class class6(class8):
    def func7(self, arg6, arg7):
        result = ((-1 | 119846026) - 0) ^ (arg7 ^ arg6)
        return result
def func1(arg1, arg2):
    var3 = func4()
    result = -507 & (18 & arg2) | -732 & -704 | (((235882621 - arg1) - 892 & -984) & -8002964) | -841 | arg2
    return result
def func4():
    func2()
    result = len(xrange(45))
    func3()
    return result
def func3():
    global len
    del len
def func2():
    global len
    len = lambda x : 3
def func11(arg14, arg15):
    def func12(acc, rest):
        var16 = (rest | -8) ^ 3
        if acc == 0:
            return var16
        else:
            result = func12(acc - 1, var16)
            return result
    result = func12(10, 0)
    return result
def func14(arg37, arg38):
    closure = [0]
    def func15(acc, rest):
        var39 = ((-10 - acc) & rest) + 9 + closure[0] - acc
        closure[0] += var39
        if acc == 0:
            return var39
        else:
            result = func15(acc - 1, var39)
            return result
    result = func15(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 1'
    print 'func_number: 5'
    print 'arg_number: 4'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 4'
    print 'func_number: 13'
    print 'arg_number: 35'
    for i in xrange(25000):
        x = 5
        x = func5(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 16'
    print 'arg_number: 53'
    for i in xrange(25000):
        x = 5
        x = func13(x, i)
        print x,