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):
    var7 = func2(arg2, arg1)
    var15 = func3(arg1, arg2)
    if var15 < var7:
        var20 = class4()
    else:
        var20 = class6()
    for var21 in xrange(5):
        var22 = var20.func5
        var22(arg1, var7)
    var30 = func8(arg1, arg2)
    var31 = var30 & arg1 | 2100571751 ^ -218
    var32 = (var30 + arg1) | var31
    var33 = (var15 | var31 | arg2 | var15) | (var15 - (-2038465749 + arg2 - arg1))
    if var15 < var32:
        var34 = (1984087414 ^ var33) & var32
    else:
        var34 = -314 + (var30 + var32) | arg2 ^ var33
    var35 = arg1 ^ arg1 ^ var7 - arg2
    result = ((var31 - var31) & var15 - var7 - var33 | var32 + var30 - (var32 & arg2 | arg1)) & var31 - -422
    return result
def func8(arg23, arg24):
    var25 = -1314830099 ^ arg23 | arg24 ^ -376
    var26 = 180 | var25
    var27 = var25 ^ 806398668
    var28 = (-1300379238 + ((var26 & var25) | 1601297966) & arg23) & -810327805 - (var26 ^ var25)
    if arg24 < var25:
        var29 = (arg23 | (arg23 + 342965795) - arg23 ^ arg24 & var28 + var26) & (arg23 + (var26 + var25)) & arg23
    else:
        var29 = (arg23 | 350002270 | arg23 & -1059197743 & var25) - var28
    result = (var28 ^ var25) & arg23
    return result
class class6(object):
    def func5(self, arg18, arg19):
        result = arg18 - arg18
        return result
class class4(object):
    def func5(self, arg16, arg17):
        result = (0 & (((1281951957 - -1) + arg16 ^ arg17) - arg16)) | arg17
        return result
def func3(arg8, arg9):
    if arg9 < arg9:
        var10 = ((arg8 ^ ((1712378485 & arg9) & arg9)) - -680) - (arg9 ^ (((arg8 ^ arg8 + arg9) + arg8) ^ arg8 & (arg9 & (arg8 + (arg9 & (957 & arg9)))) + 899454367 + arg9 + arg8) + -631) & arg9 - 1799495612
    else:
        var10 = 143 & arg8 + (arg9 - (arg8 ^ 1220490829))
    var11 = (1882001294 ^ (arg8 + 819059038 | -716393410) ^ (-52 - arg8 | (arg8 - (arg9 | (arg8 | arg9)) ^ ((468 & -2111605567 | -473661642) + -428 | arg9 - -459 - arg8) - arg9) - -738 ^ arg8) & arg8) & arg9
    if arg9 < arg8:
        var12 = var11 - (((((var11 + (var11 - 50) ^ ((998355305 & -1877599662 + (var11 + -96) | (arg9 | (-437586159 & arg9)) ^ arg9) | -398 ^ arg9) + 1634179579) - -315897953) | arg8) ^ arg8 | arg9 - var11 | -544) ^ arg9)
    else:
        var12 = ((arg9 - (arg9 & var11)) | (((arg8 + ((var11 ^ ((arg8 + (arg9 & -1949690794 & -837) + var11) | var11)) | arg8)) & var11 & (arg8 + arg8 - arg9 - arg9) | arg9) ^ 408203815 ^ var11)) & -668
    var13 = (-799884102 - (arg9 & (arg9 | arg9) + arg8 ^ arg8 - (var11 & 947)) | var11) + ((981 | 2134249330) ^ arg8)
    var14 = arg8 ^ -707
    result = arg8 ^ 152945667
    return result
def func2(arg3, arg4):
    var5 = 0
    for var6 in [var5 ^ (i & var5) for i in xrange(6)]:
        var5 += arg3 | -7 ^ arg3
    return var5
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 9'
    print 'arg_number: 36'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,