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 func11(arg35, arg36):
    var44 = func12(arg36, arg35)
    if var44 < arg36:
        var49 = class13()
    else:
        var49 = class15()
    for var50 in xrange(11):
        var51 = var49.func14
        var51(var50, arg36)
    var52 = 742795982 & -377 ^ var44
    var53 = var44 ^ 359 + var52 & arg36
    var54 = (-682 | arg36) & -338
    var55 = var54 | arg36 + var44
    var56 = arg36 ^ var53 - var52
    var57 = arg35 ^ (var56 & 793) + var54
    var58 = arg36 + var57
    var59 = var44 + (arg35 & var44 ^ arg35)
    var60 = var59 - (var53 ^ -745) | -866
    var61 = arg35 ^ (var53 & (var58 | -65))
    var62 = (var60 + 221 - var52) | arg36
    var63 = (var44 & var58 & var62) & var55
    var64 = -909230602 + var58
    var65 = var53 - 401
    if var62 < var62:
        var66 = var53 - var54
    else:
        var66 = (var57 ^ var65) | var52 & var52
    var67 = (var56 ^ var64) + var59 | var63
    var68 = var64 - var64
    var69 = (arg35 ^ 183 ^ var62) - var55
    result = var52 + var61
    return result
class class15(object):
    def func14(self, arg47, arg48):
        return 0
class class13(object):
    def func14(self, arg45, arg46):
        return 0
def func12(arg37, arg38):
    var39 = arg38 + (((557818470 | 1812371073) - arg38) + arg37 - arg37) & arg38 + arg38
    if arg37 < arg38:
        var40 = arg38 - (arg38 ^ 204 | 1184920794)
    else:
        var40 = arg38 ^ var39
    var41 = -912097637 & ((914 & (-896 & (var39 + 529)) + arg38 - arg37) & (-494 | (1066603671 | var39 | arg37 ^ arg38 ^ arg37 | -338 - -177) - (-1885603109 + 218 & 334883985) ^ -1462965546) - -25) + arg38 & 589
    var42 = (var39 + (var39 & var41)) + (arg38 + arg37 & var41 - (-770 & arg38 | (arg38 | (arg37 ^ var41) - (arg38 | var39 ^ var41 & (arg37 & var41 + var41))))) + -264870127
    var43 = var42 ^ var39
    result = 751109433 | var43
    return result
def func10(arg29, arg30):
    if arg30 < arg30:
        var31 = arg29 & -340
    else:
        var31 = 2133430064 ^ arg30 ^ (((616 | ((arg30 | (-315 & (340 ^ (((arg30 + arg29) - -1086813661) | arg30)))) ^ (1480455817 ^ arg29) ^ 1513651896)) | 252 & arg30 & (arg29 ^ 321492866) - arg30) & arg29 ^ (arg29 ^ arg29)) - arg30
    var32 = -147981749 & 707671393 + arg30
    var33 = (var32 ^ 40 ^ var32 + (arg30 + (((((arg29 + arg29) + arg29) | arg30) - -866 & arg29) + arg29 & (-28053566 & (arg29 ^ (arg29 | var32 ^ arg29 - (arg29 + -1122201603)) | -464492083 - arg30)))) - var32) + -46892740
    var34 = (var32 ^ (((var33 + arg30 - 1649997754) & var33) + -963) - var33) & (var33 | (arg29 | (((var32 ^ (var33 - arg29)) & (arg30 ^ arg29)) - -376677522 ^ (arg29 + arg30 | arg30)) ^ var33) | arg29 ^ 704) | var33
    result = (arg29 | var32) - arg29 - (arg30 | arg29 | -1515689176 ^ -1910102656 ^ var34 | arg30 - var32) + var32 | var32
    return result
def func1(arg1, arg2):
    if arg2 < arg2:
        var7 = class2()
    else:
        var7 = class4()
    for var8 in [(arg2 | -8) + arg1 for i in xrange(4)]:
        var9 = var7.func3
        var9(arg2, arg1)
    if arg2 < arg1:
        var14 = class6()
    else:
        var14 = class8()
    for var15 in range(47):
        var16 = var14.func7
        var16(arg2, arg1)
    var17 = arg1 & (-1494106468 ^ arg2)
    var18 = arg2 | 579 ^ 825459081
    var19 = 1785808934 & var17 | 883
    var20 = arg1 + (var18 + arg1 | arg1)
    var21 = -533550740 - -1656145174 & var18
    if var18 < arg2:
        var22 = ((180 | 602) | -47010705) + -175
    else:
        var22 = arg1 ^ var17 ^ -1965931667 ^ var19
    var23 = (370 - arg1) & (1918232076 - var18)
    var24 = var19 + arg2
    var25 = (var23 - var20) ^ var23 + var19
    var26 = var24 & arg1
    var27 = (var21 | var25) + var25 + var26
    var28 = var24 ^ var26 | var26 & var25
    result = var23 + ((var28 & ((var25 + (var26 & var26 - var28) ^ var17 | var23) - var18)) ^ 635)
    return result
class class8(object):
    def func7(self, arg12, arg13):
        result = 197735903 | (1 - (((arg12 | arg13) ^ 1) ^ arg13 + arg12))
        return result
class class6(class8):
    def func7(self, arg10, arg11):
        result = arg11 & (603385395 - 1 | arg11) - arg10 ^ arg11 & 1012361625
        return result
class class4(object):
    def func3(self, arg5, arg6):
        return 0
class class2(class4):
    def func3(self, arg3, arg4):
        result = arg3 ^ arg4 ^ -726933359 | ((arg3 ^ 1) | arg3 | arg4)
        return result
if __name__ == "__main__":
    print 'prog_size: 3'
    print 'func_number: 10'
    print 'arg_number: 29'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 3'
    print 'func_number: 11'
    print 'arg_number: 35'
    for i in xrange(25000):
        x = 5
        x = func10(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 17'
    print 'arg_number: 70'
    for i in xrange(25000):
        x = 5
        x = func11(x, i)
        print x,