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)
    var12 = func3(var7, arg2)
    var37 = var15(arg2, arg1)
    var41 = func8(arg1, arg2)
    result = var37 + arg1
    return result
def func8(arg38, arg39):
    var40 = arg39 ^ ((arg39 & arg39) | (835902689 - arg39 ^ -251784019 & (arg38 & arg38 + (-605 + -543) - -644 | arg39)) ^ -494210071) | (553 + arg39)
    result = 142 + (-744348975 - (arg38 ^ (arg38 + (479 - 646836919 - (522 ^ arg39)))))
    return result
def func6(arg16, arg17):
    var22 = func7(arg16, arg17)
    var23 = var22 - -153
    var24 = -354 + arg17
    var25 = 1887270126 + (var24 ^ var24) + var24
    var26 = (var24 - var23 & var25) & var23
    var27 = (var24 - var24 + var22) | arg16
    if var22 < var23:
        var28 = (var26 | arg16 & arg16) + var24
    else:
        var28 = arg17 ^ var22
    var29 = var22 + -417 - arg16
    var30 = 1732658874 + var22
    var31 = var24 & arg16 & var26 ^ 639
    var32 = arg17 - (var26 - (var29 ^ var24))
    var33 = ((var23 | var27) + var26) + var23
    var34 = (var29 ^ -60 - var29) + arg16
    var35 = var23 - (var31 & -1697554163) - var24
    var36 = (1574284206 - var27) + var27 + var34
    result = var23 - arg17 & var22 + (var29 ^ (133338994 | arg16) & ((var32 ^ var36) ^ var27) | var33 + var30 - var22)
    return result
def func7(arg18, arg19):
    var20 = (-663954472 + -103) ^ ((-773 - 182) + arg18)
    var21 = -1287979879 + (arg18 + arg18 + -284)
    result = (var20 | arg18 | var21 + var21 + arg19) | (465 + ((-515 - arg18) + var20 & arg18 - arg19)) - 743
    return result
def func5():
    closure = [-1]
    def func4(arg13, arg14):
        closure[0] += func6(arg13, arg14)
        return closure[0]
    func = func4
    return func
var15 = func5()
def func3(arg8, arg9):
    var10 = 0
    for var11 in range(46):
        var10 += (var11 + arg8) - var11
    return var10
def func2(arg3, arg4):
    var5 = 0
    for var6 in xrange(11):
        var5 += var5 ^ var6
    return var5
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 9'
    print 'arg_number: 42'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,