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 func7(arg9, arg10):
    def func8(arg11, arg12):
        var13 = (arg12 | (arg10 - arg10 + 292 | ((arg11 ^ (arg12 + -973889340 + -74) + ((-506733895 & 1860604133) ^ ((arg10 & arg10) - arg9 ^ arg9 ^ arg10) | -1483444819) - arg12 ^ arg9 + arg9 + arg11) | 951))) + 1493899894
        result = (-557 | arg10 - arg9) | var13
        return result
    var14 = func8(arg9, arg10)
    var19 = func9(var14, arg9)
    var24 = func10(var19, var14)
    var25 = -847 ^ arg9
    if var25 < var19:
        var26 = ((arg9 - (var14 + var24)) - (var25 + 385 + var14)) ^ var24 ^ ((arg9 + -242273434 - var14 - ((arg9 + 628446753 - ((var24 ^ ((arg10 + arg9) - var14 - arg9)) + arg9)) ^ var25 + -1177564719 - var24)) & var24)
    else:
        var26 = (var24 | -451265099) ^ var24
    var27 = -273855617 ^ var19
    var28 = var24 - (343 | var14) | (388 | var25 + ((var14 + var14) + (2125099561 ^ (arg9 ^ (-492 - var19)) + -701231587 ^ var27 ^ var14) + var24 + var24) | arg10 + var14 ^ -1922049742 + var24) | var24 - -1142149906
    var29 = var28 | 353
    result = -718816131 ^ var14
    return result
def func10(arg20, arg21):
    var22 = -394 | arg20
    var23 = arg21 ^ var22
    result = var22 & 1316970315
    return result
def func9(arg15, arg16):
    var17 = 0
    for var18 in range(28):
        if arg15 < arg15:
            var17 += arg16 & (arg15 - var18)
        else:
            var17 += arg16 - arg15
    return var17
def func1(arg1, arg2):
    var3 = func4()
    var6 = class5()
    for var7 in range(25):
        var8 = var6.func6
        var8(arg1, arg1)
    result = var3 | var3 | -781
    return result
class class5(object):
    def func6(self, arg4, arg5):
        return 0
def func4():
    func2()
    result = len(range(34))
    func3()
    return result
def func3():
    global len
    del len
def func2():
    global len
    len = lambda x : 6
if __name__ == "__main__":
    print 'prog_size: 2'
    print 'func_number: 7'
    print 'arg_number: 9'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 11'
    print 'arg_number: 30'
    for i in xrange(25000):
        x = 5
        x = func7(x, i)
        print x,