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)
    var27 = var10(arg1, arg2)
    var28 = func8()
    var49 = var31(var7, arg2)
    var50 = var28 - var27 ^ (var7 ^ 923617754)
    var51 = -321 | var50
    var52 = (var27 + -848) - var50 - var49
    var53 = var52 ^ var50
    var54 = var28 + (var52 - arg2) & 1060575587
    var55 = var49 | -253
    var56 = var52 ^ var50 - var50 + -519698337
    var57 = var50 & var54 + (arg1 | var27)
    var58 = var51 + ((arg1 - var49) & var54)
    var59 = var50 - var49 - (1151259694 & var56)
    var60 = var54 & var49
    var61 = -715748155 + var54
    var62 = 117 + var55 + (var53 | var60)
    result = -39 & ((var53 + arg1) ^ (var59 ^ var54) | (arg1 + var53 ^ (var62 | var54) - -450119782 - 593705415)) ^ var55
    return result
def func11(arg32, arg33):
    var34 = arg32 & (702 ^ arg33) | -825
    if var34 < var34:
        var35 = 1365543814 + (var34 - var34 & -747)
    else:
        var35 = -2052964925 + (arg33 - arg32)
    var36 = arg32 + 38 + var34
    var37 = (var34 ^ (var36 | var34)) + arg33
    var38 = var37 + (-29270371 | (var34 ^ arg33))
    var39 = var37 - var38
    var40 = var38 ^ var36
    var41 = arg33 + var34 | var38
    if var37 < var34:
        var42 = ((var41 | var38) - 697) | var40
    else:
        var42 = var37 | (var39 + -354)
    var43 = var39 | (arg32 | var37) + var37
    var44 = var37 - ((var39 - arg32) ^ arg33)
    var45 = ((var38 & -601223800) - var44) + var39
    var46 = (var37 & 884) + (var39 | arg33)
    var47 = var34 ^ var45 - (720 - var44)
    var48 = var43 - arg33 - var39
    result = var39 + var47 & var46 + (((var47 ^ (var43 & arg33) - var44 & var43 ^ var46 - var36) + var47) & var40)
    return result
def func10():
    closure = [6]
    def func9(arg29, arg30):
        closure[0] += func11(arg29, arg30)
        return closure[0]
    func = func9
    return func
var31 = func10()
def func8():
    func6()
    result = len(range(46))
    func7()
    return result
def func7():
    global len
    del len
def func6():
    global len
    len = lambda x : 0
def func5(arg11, arg12):
    var13 = -1459981504 & arg11 & 1679270458 - arg11
    if arg12 < arg11:
        var14 = -1363293058 & (-1251581492 + -2046714234)
    else:
        var14 = (var13 ^ -258186193 - arg12) ^ arg11
    var15 = 818 | (arg11 ^ 312) - 1558603906
    var16 = arg11 - arg11
    var17 = var16 + 1533302070 - -400980990 - var15
    var18 = (var15 | arg12 ^ arg11) + 714
    var19 = var13 + (-276 - (-240 - -159568346))
    if var16 < var15:
        var20 = (var15 ^ (arg12 | var18)) - var16
    else:
        var20 = var15 | -1799036096
    var21 = arg11 - var17
    var22 = (var13 | (arg12 | var18)) + arg11
    var23 = (arg11 + (var19 | -1583708517)) | var17
    var24 = var17 - var17 | var15 & var15
    if var23 < var23:
        var25 = var15 & var15
    else:
        var25 = (var15 | (var23 & var15)) | var24
    var26 = var13 | ((var21 ^ var24) - var16)
    result = (((arg11 & (202 | var19 + -327652617 - var15 - var26 ^ var24 - var26)) | var22 | var18) ^ var23) ^ var19
    return result
def func4():
    closure = [-6]
    def func3(arg8, arg9):
        closure[0] += func5(arg8, arg9)
        return closure[0]
    func = func3
    return func
var10 = func4()
def func2(arg3, arg4):
    var5 = 0
    for var6 in [var5 & -5 for i in range(11)]:
        var5 += (arg4 & var6) - var5
    return var5
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 12'
    print 'arg_number: 63'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,