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 func3(arg8, arg9):
    var40 = func4(arg8, arg9)
    if arg9 < var40:
        var45 = class9()
    else:
        var45 = class11()
    for var46 in range(21):
        var47 = var45.func10
        var47(arg8, var40)
    if var40 < arg9:
        var52 = class13()
    else:
        var52 = class15()
    for var53 in xrange(30):
        var52.func14(arg8, var53)
    var54 = var40 & arg9
    var55 = var54 ^ arg9
    var56 = 260 & var40
    var57 = (var55 | arg8 - var54) & var40
    var58 = var56 + var56
    var59 = var54 + var56
    var60 = (var57 & var57 & var57) + var56
    var61 = var57 ^ var54
    var62 = var60 - var56 & (var59 + arg9)
    var63 = (636 - var61 - var61) ^ var40
    var64 = (var54 | var57 ^ arg8) - var40
    var65 = -470127767 & var61
    var66 = var55 | var40 | var64
    if var62 < var63:
        var67 = arg9 ^ var54 ^ var59 & arg9
    else:
        var67 = 62 | 491
    var68 = arg9 - arg9 & arg8 - var66
    if var57 < var59:
        var69 = (arg8 & (var57 & var63)) - var58
    else:
        var69 = var55 | var55 | arg8 | 927
    var70 = (var64 | var63) + var57 - var55
    var71 = ((var54 + var60) & var55) - var59
    var72 = (var64 & var54) | var62 ^ var56
    var73 = var63 + var40 - var57 ^ var70
    var74 = var55 - (var62 - var66)
    var75 = var55 & var61
    var76 = var71 + var65
    var77 = (arg9 & var59) & var61 | var61
    result = (var68 | var56 | (var54 ^ var63) + var57 | (var68 & var63) - -881 & var74 - var68 & var68) - var74
    return result
class class15(object):
    def func14(self, arg50, arg51):
        result = -403288054 ^ ((-848672385 ^ -1 & ((arg50 & 42449871) - arg50)) & arg50)
        return result
class class13(class15):
    def func14(self, arg48, arg49):
        return 0
class class11(object):
    def func10(self, arg43, arg44):
        return 0
class class9(class11):
    def func10(self, arg41, arg42):
        return 0
def func4(arg10, arg11):
    var16 = func5(arg10, arg11)
    var17 = func8()
    var18 = 189934983 & 733154436 + arg10 | 1788322282
    var19 = var17 + var17 & -904
    var20 = (var18 ^ var17 - -2095113434) & var16
    var21 = var19 - arg10 - var18 & var19
    var22 = var16 ^ var21
    var23 = arg10 + var16 ^ var17
    if var19 < var20:
        var24 = var16 & arg11 & var16 - var20
    else:
        var24 = var21 - 47969994 - var16 | var20
    var25 = var23 - (arg10 ^ arg10) | var21
    var26 = var18 & (var25 & arg11 & var18)
    var27 = -968 | 1823727678
    var28 = var19 - arg11
    var29 = var23 | var22
    if var18 < var22:
        var30 = (arg11 | -855) - var17 & arg10
    else:
        var30 = var27 & var16
    var31 = ((var22 - var22) - var26) ^ var29
    var32 = var29 | var27
    var33 = var29 - var18
    var34 = (arg11 ^ var29) ^ var33 | var19
    var35 = var26 ^ var28
    var36 = var28 ^ (var25 | var26) + var18
    var37 = (var31 & 661 & -25106436) - var31
    var38 = (var26 - var17) & var37
    var39 = ((-603 | arg10) - var34) + var16
    result = (var16 | (var19 & ((var38 ^ var35) & (arg11 | (var17 ^ var23))) + var35) & var31 - var35 ^ -463450268) + var16
    return result
def func8():
    func6()
    result = len(xrange(7))
    func7()
    return result
def func7():
    global len
    del len
def func6():
    global len
    len = lambda x : -6
def func5(arg12, arg13):
    var14 = 0
    for var15 in xrange(15):
        var14 += (arg12 ^ 4) & var15
    return var14
def func2(arg3, arg4):
    var5 = ((-963498276 - -404) | -2081820597 | -845 | arg3) | ((((arg4 | (((-926692626 & 414) + ((-1924033817 ^ (arg4 | 371) - -929 & (-118075437 ^ -613) & -9959358) + -1508158757)) - 128181443)) & -589632032) ^ -666) + arg3 | -403573694 | arg3)
    var6 = var5 - arg4 & arg4 ^ -897005696
    var7 = (-551 ^ arg4 + var6 | 305) & (arg3 ^ arg4) - (((-696 + 792262453) | -561) - -1002196831) ^ ((arg4 | arg4) + (var5 & var5) - var5) - 310
    result = (1308524775 - var7 + (arg3 + (((var5 + var6) - var5 & arg3) ^ arg4 - var7 - (var5 & 912)))) | var7
    return result
def func1(arg1, arg2):
    result = (arg1 + -591354425) + arg2 - arg1 ^ (arg2 ^ (arg1 & ((arg1 + 184) + arg1) & arg2) - arg2) ^ arg1
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 3'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 0'
    print 'func_number: 3'
    print 'arg_number: 8'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 17'
    print 'arg_number: 78'
    for i in xrange(25000):
        x = 5
        x = func3(x, i)
        print x,