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):
    if arg1 < arg2:
        var7 = class2()
    else:
        var7 = class4()
    for var8 in [arg2 + i - (i | (arg1 & arg2) | (((arg1 | arg2) & (arg2 | arg1)) & (arg2 + -1))) - i for i in (arg2 | (arg1 ^ arg2 | (arg1 | (arg2 & i) | (1 | i) | i - arg1) | i) | arg2 for i in range(6))]:
        var9 = var7.func3
        var9(arg2, arg2)
    var19 = var12(arg1, arg2)
    var20 = arg2 + arg1
    var21 = var19 | ((arg2 | 913) ^ 669)
    if arg2 < arg2:
        var22 = -157 ^ 1814096911
    else:
        var22 = var19 | 9 + arg1
    var23 = 133 | (var21 + 253)
    var24 = arg1 | arg1 + var20
    var25 = var23 & var23 ^ var19 | var20
    var26 = var21 | (var25 & var23 ^ var19)
    var27 = (-594612869 - -812090754) + var26
    var28 = var24 & (var26 - var25)
    var29 = (var19 & var26 & var19) ^ var24
    result = var28 ^ (var28 & (-59688927 ^ var23) + var28 & -1901871398)
    return result
def func8(arg13, arg14):
    var15 = func11()
    var16 = 835 - ((arg13 ^ arg13) ^ (((861 & arg13 & 1183563814 | -528 & arg14 & arg13) & 668153289 - (arg13 & arg13 & arg14 - var15)) + ((((-707 & arg14) | arg13) + var15) + var15)) | -185 - arg13) | arg14
    var17 = 819190203 - ((arg14 ^ ((((var16 + -1558743768) ^ var15 | (var16 ^ 559321233 - var16) ^ -360) & 500 | (var15 | (var16 + arg13 - arg13)) - var16 & arg13) | var16 + arg13 - 566089538) + arg14 & var16) - arg14)
    var18 = (arg14 - 249751812) | arg13 | arg14
    result = 287 & 2059802890
    return result
def func11():
    func9()
    result = len(xrange(45))
    func10()
    return result
def func10():
    global len
    del len
def func9():
    global len
    len = lambda x : -9
def func7():
    closure = [-1]
    def func6(arg10, arg11):
        closure[0] += func8(arg10, arg11)
        return closure[0]
    func = func6
    return func
var12 = func7()
class class4(object):
    def func3(self, arg5, arg6):
        return 0
class class2(object):
    def func3(self, arg3, arg4):
        return 0
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 12'
    print 'arg_number: 30'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,