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):
    var9 = func2(arg1, arg2)
    var14 = func3(var9, arg2)
    var19 = func4(arg1, arg2)
    var40 = func5(var19, arg1)
    var41 = func8()
    var42 = arg2 & var14
    result = var41 + var14 ^ var9 + var41
    return result
def func8():
    func6()
    result = len(xrange(10))
    func7()
    return result
def func7():
    global len
    del len
def func6():
    global len
    len = lambda x : 9
def func5(arg20, arg21):
    var22 = -1405163057 | -985
    var23 = 658631066 ^ var22 | 560 + var22
    var24 = 42051755 - (arg21 | arg20)
    var25 = (var23 - arg20) - arg20 - arg21
    var26 = -588 + (var25 ^ var22 ^ var25)
    var27 = var23 - (var23 ^ arg21) + var26
    var28 = var25 ^ var27 | (996 - var25)
    var29 = var28 & (var24 + arg20)
    if var23 < arg21:
        var30 = var29 ^ var25
    else:
        var30 = var28 | (var25 & var25) & var25
    var31 = var27 - var26 ^ -611 - arg20
    var32 = var27 & 156 - arg21 + var26
    var33 = -1721047938 & var22
    var34 = (var29 | arg20) + var24 & var32
    var35 = (var22 + var25 ^ var33) ^ var31
    var36 = var32 | (var32 ^ var23) + var28
    var37 = var29 - arg20
    var38 = -88 ^ var36 & 563
    var39 = var23 - (var32 ^ var33 & var34)
    result = var31 | ((var28 & var26) ^ (var36 - var36)) & (var33 | (-689 ^ var38 | arg20 - var39) & var23) | var38
    return result
def func4(arg15, arg16):
    var17 = 0
    for var18 in range(20):
        var17 += arg16 | arg16
    return var17
def func3(arg10, arg11):
    var12 = 0
    for var13 in range(9):
        var12 += -4 + (var12 | arg10)
    return var12
def func2(arg3, arg4):
    var5 = ((912847959 ^ (((102 & 2025868019) + -2112623609 - -1292296195) & (arg4 | arg4 & arg3) | (1528871011 & (-1229348717 + 1943185020) | -1058354730 ^ 588891715 & arg4 + 705 | arg3 | arg3 - 2026970109) & arg4)) & arg4 ^ arg3) + -1337885699
    if arg4 < arg3:
        var6 = -444 ^ ((-246085660 | -737277950) & arg3)
    else:
        var6 = -552 ^ (-327 + 1980735605) | (885 | 459) ^ arg3
    var7 = arg4 ^ arg3 + arg4
    var8 = arg4 ^ -1496077035 ^ var5 | ((arg4 + -814 | var7 + ((-708 ^ 966411195) + var7 - arg3)) & (-1804476640 ^ var5 ^ -116095429))
    result = (var5 ^ (-5904509 ^ 1581224013 + (560 - -500))) & arg3
    return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 9'
    print 'arg_number: 43'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,