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):
    if arg1 < arg2:
        var7 = class2()
    else:
        var7 = class4()
    for var8 in range(49):
        var9 = var7.func3
        var9(arg1, var8)
    var14 = func6(arg2, arg1)
    if arg2 < arg1:
        var19 = class7()
    else:
        var19 = class9()
    for var20 in range(48):
        var21 = var19.func8
        var21(arg2, arg2)
    var39 = var24(var14, arg1)
    if arg2 < var14:
        var44 = class14()
    else:
        var44 = class16()
    for var45 in xrange(25):
        var46 = var44.func15
        var46(var14, var39)
    var47 = (var14 ^ arg2 ^ arg1) + var39
    var48 = (1988535672 + -1168482374) ^ var14 & var47
    var49 = (arg2 ^ var48 - var14) + 460
    var50 = ((-323364498 ^ arg2) | arg2) ^ arg2
    var51 = (var14 - var49) + var50 - var49
    var52 = var39 + (var47 | 615846616 - var50)
    if var52 < arg1:
        var53 = (arg2 ^ var39 ^ arg2) - arg1
    else:
        var53 = var51 + var14
    var54 = (-734 & (var49 & -535829506)) | var51
    var55 = (var54 - var39) | arg1 + arg1
    var56 = ((var51 & var49) ^ var39) - var47
    var57 = ((var50 ^ 2006014136) - var39) - var56
    var58 = (var49 ^ var51) - var51 - var54
    var59 = var57 + ((var49 ^ var14) & var51)
    var60 = 1301789762 - var50
    result = var52 | var57 | var48
    return result
class class16(object):
    def func15(self, arg42, arg43):
        return 0
class class14(class16):
    def func15(self, arg40, arg41):
        return 0
def func13(arg25, arg26):
    if arg26 < arg25:
        var27 = (-917 | 27 & arg25) ^ -1836780908
    else:
        var27 = ((-1231668843 ^ 159560986) & -875) & -994
    var28 = arg25 & 781 | arg25
    var29 = arg25 - (arg25 | var28) ^ arg25
    var30 = 945 + (arg25 & arg25) + arg25
    var31 = arg25 & var28
    var32 = var28 | (var30 | (1070606178 - arg26))
    var33 = (var32 | var29) - var31 & arg25
    var34 = arg26 ^ var28
    var35 = var31 | var33
    var36 = var28 ^ (var28 - var33) + arg25
    var37 = var31 - -164
    var38 = -1865406587 - -7
    result = (var37 & 982273283) & var34 | var28 ^ var34 + (var36 | 1075942987) & var34 - var36 | -228 - arg25 - var34
    return result
def func12():
    closure = [-1]
    def func11(arg22, arg23):
        closure[0] += func13(arg22, arg23)
        return closure[0]
    func = func11
    return func
var24 = func12()
class class9(object):
    def func8(self, arg17, arg18):
        return 0
class class7(class9):
    def func8(self, arg15, arg16):
        return 0
def func6(arg10, arg11):
    var12 = 0
    for var13 in xrange(29):
        var12 += arg11 ^ -10
    return var12
class class4(object):
    def func3(self, arg5, arg6):
        return 0
class class2(object):
    def func3(self, arg3, arg4):
        result = arg4 & (-1638624805 | arg3)
        return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 18'
    print 'arg_number: 61'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,