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):
    var5 = class2()
    for var6 in (4 & -10 ^ arg2 for i in range(35)):
        var5.func3(var6, arg1)
    var23 = func4(arg2, arg1)
    var28 = func5(arg2, arg1)
    var33 = func6(var23, arg2)
    result = (arg1 + 285111471) - arg1
    return result
def func6(arg29, arg30):
    var31 = 0
    for var32 in xrange(28):
        var31 += arg30 - arg29 + arg30
    return var31
def func5(arg24, arg25):
    var26 = 0
    for var27 in range(45):
        var26 += arg24 + 0 & 5
    return var26
def func4(arg7, arg8):
    var9 = 962 | arg7 - 1744047042 - arg8
    var10 = -469 | var9 & arg7
    var11 = -1232548062 & -352094801 ^ 1969545340
    var12 = arg8 ^ arg8 & var9 ^ arg7
    if arg8 < var10:
        var13 = (var10 + (-714282422 ^ var10)) & arg7
    else:
        var13 = 671 | ((arg7 | var11) & arg8)
    var14 = 877 & (arg8 | arg7)
    var15 = arg8 - (var9 | 2077395380) ^ arg7
    var16 = arg8 ^ 612602950
    var17 = ((var9 & arg7) ^ arg7) & var12
    var18 = (var9 - arg7 | var12) | 532
    if var11 < arg8:
        var19 = -115 + var12 + (-2021280520 & arg8)
    else:
        var19 = var16 + arg7 - var15 & arg7
    var20 = (-210335542 ^ -469) ^ var11 + var12
    var21 = -900 - var18 + (-1874844743 + var14)
    var22 = var12 ^ arg8 + var20
    result = ((var15 + (var11 + (var12 - (((var21 | 346) & var17) | var11) - var10 - var22))) - var17 ^ var15) - var10
    return result
class class2(object):
    def func3(self, arg3, arg4):
        result = arg4 & (1 | arg3)
        return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 7'
    print 'arg_number: 34'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,