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 func3(arg27, arg28):
    var32 = func4(arg27, arg28)
    var45 = func9()
    var50 = func10(arg27, var32)
    def func11(arg51, arg52):
        if var45 < arg28:
            var53 = var32 | -987 - arg27
        else:
            var53 = arg28 ^ var45
        var54 = (var45 + var45) | arg27 - -127546723
        var55 = -1631139011 + arg27 & arg52 & 942
        var56 = arg51 | arg28
        var57 = (var45 - arg52 - 1989366147) ^ arg28
        var58 = ((var55 & var57) + arg51) | arg52
        var59 = ((arg52 - 84) & var58) & var32
        var60 = var58 & (var54 & (arg28 - var50))
        var61 = -463 ^ (var55 + var54) | var50
        var62 = arg27 | (var54 - arg28) - arg28
        var63 = var57 + ((var54 - arg28) + var55)
        var64 = (arg27 - 1101337384 & var57) - var62
        var65 = ((var54 ^ arg52) - var56) + var61
        var66 = (arg27 ^ var55 ^ var59) | arg52
        var67 = 495 ^ (var59 | arg27) ^ var56
        var68 = arg28 ^ arg27 & arg52 | var32
        var69 = var55 ^ var50 + var66 ^ var57
        var70 = arg28 + var65
        if var69 < arg28:
            var71 = var63 | arg52 | var69 - var50
        else:
            var71 = var54 | arg51 + var58
        var72 = (-198 | arg52) ^ var63 - var56
        result = var66 ^ (var68 | ((var60 + var58 + var60) & (arg51 | var68)))
        return result
    var73 = func11(arg28, arg27)
    var74 = ((var32 ^ var45 ^ (arg27 & arg28) ^ (var50 ^ var50)) & ((((arg28 - 614) + var73) | (var32 | -1797278144)) ^ var73) & var32 | var32 | var45 - (var73 + arg27) - -635634238 - 1587897966 & arg28) | 453
    var75 = (var45 + var45) - arg28 + var74
    result = var74 - 2017459539 - var75
    return result
def func10(arg46, arg47):
    var48 = 0
    for var49 in range(21):
        var48 += -5 ^ arg47 ^ var48
    return var48
def func9():
    func6()
    result = len(func8(-7, -5))
    func7()
    return result
def func8(arg33, arg34):
    var35 = (arg33 & arg34) ^ -932441521
    yield var35
    var36 = arg34 | -170 ^ var35
    yield var36
    var37 = -67 | arg33
    yield var37
    var38 = arg34 - (var35 + arg34 | var35)
    yield var38
    var39 = 114963603 & var35 - var36 ^ var36
    yield var39
    var40 = arg34 & var35
    yield var40
    var41 = arg33 & var39 & (arg34 & var36)
    yield var41
    var42 = arg33 | arg34 + var40 ^ var36
    yield var42
    var43 = (arg34 - arg34 - var38) & var37
    yield var43
    var44 = var39 - var42
    yield var44
def func7():
    global len
    del len
def func6():
    global len
    len = lambda x : -10
def func2(arg4, arg5):
    var6 = -239 + 1689752163 | 525902456
    var7 = (arg4 | 327 | arg5) | -2027251022
    var8 = (var7 | arg5) & arg4 - var6
    var9 = var8 & var6
    var10 = 32 ^ var7
    var11 = 585 - arg4
    var12 = ((arg5 + var6) | var8) ^ var6
    var13 = var6 ^ (var8 ^ (var7 + var6))
    var14 = var11 & var10 + arg4 & var6
    var15 = 1860080277 & (arg4 ^ var7) - var7
    var16 = (arg4 ^ var12 | arg4) | var10
    var17 = 1635449439 + var7
    var18 = var15 | (var9 | var16) | var8
    if var13 < var7:
        var19 = var8 & 353398349 & var13 - var12
    else:
        var19 = var15 - var18
    var20 = (var6 ^ arg5) + var6 - var6
    var21 = var20 | var16 ^ var15
    var22 = var15 | 1619802134
    var23 = var20 | ((var6 + var18) - var15)
    var24 = (var21 + var7) - var20 & var14
    if var6 < arg5:
        var25 = var16 | var23 | var14 | var24
    else:
        var25 = 1421078344 ^ (var10 + 993282279) - var15
    var26 = var6 ^ (627367626 - var15 | var18)
    result = var9 + (var13 | (var12 ^ var11) + arg4)
    return result
def func1(arg1, arg2):
    var3 = (arg1 | -1378929473 | (arg2 + ((989 + (-74450586 + -205361419 ^ arg1 + (((((-962481779 | arg2) | arg2 | arg1) - arg1) ^ arg1 - 811) - arg1 | 551833460))) + 351) + arg1 ^ arg1) ^ arg1 - -374420176) | 91
    result = (arg1 + (var3 + (((arg1 + arg2) ^ arg2) ^ arg2) ^ arg2 | (150 | 624)) | var3 & var3) - var3
    return result
def func4(arg29, arg30):
    closure = [0]
    def func5(acc, rest):
        var31 = -2 - (acc | (-10 - closure[0]))
        closure[0] += var31
        if acc == 0:
            return var31
        else:
            result = func5(acc - 1, var31)
            return result
    result = func5(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 4'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 0'
    print 'func_number: 3'
    print 'arg_number: 27'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 12'
    print 'arg_number: 76'
    for i in xrange(25000):
        x = 5
        x = func3(x, i)
        print x,