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):
    var46 = func11()
    var47 = arg2 & var46 + var46
    var48 = (var47 & var46 + arg1) | 1487996963
    var49 = arg1 - arg2
    if var49 < var46:
        var50 = -1936412270 + (var48 ^ var47) | var47
    else:
        var50 = var49 + 1299116642 & var47 ^ var47
    var51 = var48 - var49
    var52 = (var48 ^ arg1 ^ 573) | 1942072386
    var53 = var51 | var49
    var54 = ((var46 - arg1) & -59) & 1230933779
    var55 = arg1 - var47
    var56 = var55 + var54 & -1070258450 + var48
    var57 = var54 + ((var51 & var51) & -613)
    var58 = var56 + var53
    var59 = var56 | var56 ^ var57
    var60 = var58 + (634 + (882 + -476390836))
    result = (var55 & ((var55 & var51 | var46 - var49 ^ arg1 ^ var47 - var60 ^ var52) & var60) + var52) | var51
    return result
def func11():
    func2()
    result = len(func4(-3, -5))
    func3()
    return result
def func5(arg5, arg6):
    var26 = var9(arg6, arg5)
    var31 = func9(arg5, var26)
    def func10(arg32, arg33):
        result = (var31 | var31) ^ ((var31 | arg6) + (((var31 | var26) ^ ((arg32 - -515 | arg33) - arg5)) + 472279834 | arg33))
        return result
    var34 = func10(arg5, arg6)
    result = (var34 ^ ((-228 - (arg5 ^ var31 ^ ((arg5 - arg5) & -153) & var31)) ^ 676834883 - (var31 | 331))) + -1080565519
    return result
def func9(arg27, arg28):
    var29 = 0
    for var30 in xrange(31):
        var29 += 8 - arg28 ^ arg27
    return var29
def func8(arg10, arg11):
    var12 = -581 & (-828 - arg10 & arg11)
    var13 = (19 | -1670998371) ^ var12
    var14 = var13 ^ -960 - arg10 + arg11
    var15 = arg10 - (-200 + -1750477223) ^ var14
    var16 = var14 & -1119157383 - var14
    var17 = arg11 | var12
    var18 = var12 | arg11
    var19 = (arg10 + var15 ^ var18) - var18
    var20 = (var12 - var18) ^ var18 + var13
    var21 = -659 | arg11
    var22 = 1700555943 & (var21 + var17 - var18)
    var23 = arg10 & var20
    var24 = var23 & (var18 + var19)
    var25 = var13 - var16
    result = var18 & (((var20 ^ (719 - var22 & var19)) - var18) + var18)
    return result
def func7():
    closure = [-2]
    def func6(arg7, arg8):
        closure[0] += func8(arg7, arg8)
        return closure[0]
    func = func6
    return func
var9 = func7()
def func4(arg3, arg4):
    var35 = func5(1710611864, arg4)
    yield var35
    var36 = -1729366699 ^ arg3 + arg3 ^ -34
    yield var36
    var37 = arg3 - ((1661130538 ^ arg4) & arg3)
    yield var37
    var38 = (var36 & 917) - var37
    yield var38
    var39 = var38 ^ var38 + (-2076437400 ^ var38)
    yield var39
    var40 = var36 | ((var39 + -442) - var39)
    yield var40
    var41 = arg4 & var39 & arg3 | arg3
    yield var41
    var42 = (var38 + arg4) ^ -228
    yield var42
    var43 = arg4 | -298 - var36
    yield var43
    var44 = ((var36 & var37) - var42) - var36
    yield var44
    var45 = var41 - var40
    yield var45
def func3():
    global len
    del len
def func2():
    global len
    len = lambda x : 8
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 12'
    print 'arg_number: 61'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,