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):
    var6 = func2(arg1, arg2)
    var10 = func4(var6, arg2)
    var11 = func8()
    def func9(arg12, arg13):
        var14 = arg12 + -152 ^ arg13 + arg1
        var15 = arg13 - 69897135
        var16 = ((arg13 - arg2) + arg12) & -1368388347
        var17 = ((var10 ^ arg13) ^ 95) & var10
        var18 = (var10 & (var16 & arg1)) ^ arg13
        var19 = (var15 - arg13) | arg2 ^ var6
        var20 = var17 + arg13 + var16
        var21 = var10 + var11 + var15 | var11
        var22 = var10 & (arg2 + var6) & var17
        var23 = var17 + ((var22 & var11) + arg12)
        if var16 < var15:
            var24 = var19 ^ arg12 + var14 ^ var18
        else:
            var24 = (-377 | arg13 - arg12) ^ var18
        var25 = arg1 + arg13
        var26 = arg1 + -433 ^ var17 ^ var15
        result = var23 + var25
        return result
    var27 = func9(var10, var11)
    var53 = func10(var6, var27)
    var54 = var6 - (var10 ^ (var10 - var6))
    var55 = var6 | arg2 ^ var27
    var56 = arg1 ^ -1370923705
    var57 = (var55 - var54) & var55 - 1669590592
    var58 = var27 | var57
    var59 = var10 + (var58 - var56 - var53)
    var60 = var56 & var56 - arg2 | var11
    var61 = (var54 ^ var56) ^ (arg1 | var59)
    var62 = arg2 + var53 & 795967316
    if var27 < var27:
        var63 = var58 ^ (var55 ^ var59 ^ var53)
    else:
        var63 = var27 ^ var54
    var64 = (var57 & var55 & var10) & var10
    var65 = var55 & var27 + (var55 & var58)
    var66 = arg2 - var59 & var27 - arg2
    var67 = -976109142 + var60 ^ var64
    var68 = var56 + arg2 - (var66 | arg1)
    var69 = var54 | var68
    var70 = var60 | var59 | var59 | var10
    var71 = -2085754189 - -955
    if var6 < var62:
        var72 = var59 ^ ((var55 + var71) + var54)
    else:
        var72 = (var27 & var11 + var27) & var6
    result = var56 - var70
    return result
def func10(arg28, arg29):
    var30 = arg29 + arg29 + 490 | 330
    var31 = var30 | 608
    var32 = -461 | -952
    var33 = arg28 & var31
    var34 = 999 + var33 ^ var32 + var31
    var35 = var32 & var32
    var36 = var31 ^ var35 ^ (var34 & var34)
    var37 = var35 + (var36 ^ var34)
    var38 = ((-33 | arg28) - var36) + var34
    var39 = var32 & var31
    var40 = (var37 ^ var38 ^ arg29) - arg29
    var41 = var35 & 1382297016
    var42 = var40 ^ arg28 & var32 | arg28
    var43 = var30 ^ var36 & var34 - var38
    var44 = var42 | var38
    var45 = var43 | var34 & var33 | var32
    var46 = (var34 - var45) - var37 | var32
    if arg29 < arg28:
        var47 = (var39 & var40) | var34 + var30
    else:
        var47 = var46 & (var36 ^ (arg29 | var41))
    var48 = arg29 & (var39 - var32 - var35)
    var49 = var38 - var32
    var50 = (var48 - var33) & var33 | var42
    var51 = var32 & arg29
    var52 = arg28 - var42
    result = var30 + var52 & var50
    return result
def func8():
    func6()
    result = len(range(35))
    func7()
    return result
def func7():
    global len
    del len
def func6():
    global len
    len = lambda x : 5
def func2(arg3, arg4):
    closure = [0]
    def func3(acc, rest):
        var5 = rest & (rest - -3 + -3)
        closure[0] += var5
        if acc == 0:
            return var5
        else:
            result = func3(acc - 1, var5)
            return result
    result = func3(10, 0)
    return result
def func4(arg7, arg8):
    def func5(acc, rest):
        var9 = acc + 7 - 0
        if acc == 0:
            return var9
        else:
            result = func5(acc - 1, var9)
            return result
    result = func5(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 11'
    print 'arg_number: 73'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,