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 func2(arg22, arg23):
    var28 = func3(arg23, arg22)
    var33 = func4(arg22, var28)
    if arg22 < arg22:
        var38 = class5()
    else:
        var38 = class7()
    for var39 in range(47):
        var38.func6(var39, var39)
    var44 = func9(arg22, var28)
    var48 = func10(var44, var33)
    if var28 < arg22:
        var49 = var33 ^ var33 | arg23 ^ arg22
    else:
        var49 = arg22 | arg23 - 757 - arg23
    var50 = ((var48 ^ var33) & var44) | 391981574
    if var48 < var50:
        var51 = var28 & 169493193 ^ arg22 | var28
    else:
        var51 = 457346220 & var50 | 854 & arg22
    var52 = var50 & -668
    var53 = var50 | var28
    var54 = var48 & var44
    var55 = 231 + var50
    var56 = (var54 | var44) - (-385 & -375732976)
    var57 = (var33 + var56) ^ (var54 ^ var33)
    var58 = var56 & ((52 | var33) + var57)
    var59 = var53 & -1954469872 & (arg22 & var52)
    var60 = var50 ^ (-2017025592 & (var44 & var55))
    result = -985 & var57
    return result
def func9(arg40, arg41):
    var42 = 0
    for var43 in range(21):
        var42 += arg40 ^ var42
    return var42
class class7(object):
    def func6(self, arg36, arg37):
        result = -1566647709 ^ (1 - 0 ^ -1247381201) - ((arg36 - -1989216574) - 1)
        return result
class class5(object):
    def func6(self, arg34, arg35):
        result = -1 | arg34 ^ -690796992 & arg34 | ((arg35 | arg35) | 1)
        return result
def func4(arg29, arg30):
    var31 = 0
    for var32 in xrange(32):
        var31 += (var31 + arg29) - 8
    return var31
def func3(arg24, arg25):
    var26 = 0
    for var27 in xrange(9):
        var26 += var26 + -9 | arg25
    return var26
def func1(arg1, arg2):
    var3 = 570 - (-418 & arg2) ^ arg1
    var4 = 564 & (-694595289 ^ -395)
    var5 = var3 ^ (var3 ^ arg2) ^ 2145186203
    var6 = (arg2 & var3) + (var5 | -1739796044)
    var7 = var4 - 508 | var6 ^ arg2
    var8 = -2128557286 ^ var3
    var9 = var7 + (arg1 | var6 | var4)
    var10 = 371667499 | var3
    var11 = var6 - (-2062477975 - (var3 + var9))
    var12 = var3 - (890 & var4) & var10
    var13 = (370201350 ^ arg2) + arg2
    var14 = var12 ^ -1048738348 & arg1 | var4
    var15 = var12 - arg1
    var16 = var12 | (var15 - var3) ^ var10
    var17 = ((var4 - var11) + var8) ^ var3
    var18 = (var6 + var13 & 454) ^ var3
    var19 = var13 + var6 + 1989481362 ^ var4
    var20 = var4 + (var7 + var18)
    var21 = (var15 ^ (var18 ^ var13)) - -146
    result = -691 ^ (((var4 - ((var13 & var14 | (-883386033 - var7)) | var6) - var9) & var11) & var20) - -73 - var7
    return result
def func10(arg45, arg46):
    def func11(acc, rest):
        var47 = (acc & 0) - 0
        if acc == 0:
            return var47
        else:
            result = func11(acc - 1, var47)
            return result
    result = func11(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 22'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 12'
    print 'arg_number: 61'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,