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(arg4, arg5):
    def func3(arg6, arg7):
        var12 = func4(arg5, arg4)
        var17 = func5(arg5, arg4)
        result = arg6 + arg4
        return result
    var18 = func3(arg4, arg5)
    var22 = func6(var18, arg4)
    var40 = func8(var22, arg4)
    var41 = var22 | var18 - var18
    var42 = (arg4 + -404 - var41) + var40
    var43 = (var40 ^ -971295221) ^ var22 & var22
    var44 = -154 - arg4
    var45 = var44 & (var44 ^ var41 - arg4)
    if var43 < var22:
        var46 = var42 | var40 ^ var18 ^ 276
    else:
        var46 = var44 & arg5
    if var22 < var22:
        var47 = (-1123320171 & var42) ^ var40
    else:
        var47 = (-144 ^ (var45 ^ var45)) | var45
    var48 = (var44 | -2076412078) + var42 + var44
    var49 = var22 | 1394015104
    var50 = var45 ^ var42
    var51 = -927 + var43 | var40
    var52 = var50 - (var44 - var22)
    var53 = var45 ^ var43 + var52 + var18
    var54 = ((var40 & var50) + var50) - var48
    if var43 < var42:
        var55 = ((var18 & var53) + -665) & var48
    else:
        var55 = var49 + var40 + var48 - var53
    var56 = var45 & var53
    result = var54 + ((var49 + var50) - var40 - (var48 + ((var42 ^ var49 + var54) | arg4)) ^ var49 & var45 | var44)
    return result
def func8(arg23, arg24):
    var25 = 109 & (-1361406619 ^ arg23) | arg24
    var26 = (arg24 + 814 | -177403774) - 610928430
    var27 = var25 | (var25 & var25) + arg23
    var28 = var25 - -1235055328 + var25 - var27
    var29 = var28 & var25 + var28 & var25
    var30 = arg24 - var29 ^ arg23 - arg24
    var31 = var25 & var29
    var32 = var29 | (var29 & var27 | var30)
    var33 = (var28 ^ arg24 | var32) & var30
    var34 = (var31 - var31) - (var25 - -1502743453)
    var35 = arg23 | arg24
    var36 = 293293950 ^ var34 & var28 + var33
    var37 = (var34 & var29 | 503) - var31
    var38 = var30 | var34 & var29
    var39 = var31 | var38 ^ var35 & var38
    result = (var26 & var34) ^ var33 + (var30 - (((var29 | arg24 & var36 + var28) ^ var28) ^ var31)) & var29 & var31
    return result
def func5(arg13, arg14):
    var15 = 0
    for var16 in range(28):
        var15 += var16 ^ arg13
    return var15
def func4(arg8, arg9):
    var10 = 0
    for var11 in xrange(6):
        var10 += arg9 + -4
    return var10
def func1(arg1, arg2):
    var3 = ((arg1 + (-669341669 & 296835656)) ^ (arg1 | (-177680297 + arg1 ^ (((arg2 + 134 - 196) | arg2 & arg2) + (arg2 | -670801956)))) + arg1) - (-969 & (arg1 ^ 268821731 + arg2 ^ arg2))
    result = arg2 | arg1
    return result
def func6(arg19, arg20):
    closure = [0]
    def func7(acc, rest):
        var21 = rest + (0 - -7) - (rest | -7) ^ closure[0] + 0
        closure[0] += var21
        if acc == 0:
            return var21
        else:
            result = func7(acc - 1, var21)
            return result
    result = func7(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: 5'
    print 'func_number: 9'
    print 'arg_number: 57'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,