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 func7(arg35, arg36):
    var54 = func8(arg36, arg35)
    var78 = func9(arg36, var54)
    var82 = func10(arg36, var54)
    result = -355 - 1504056397
    return result
def func9(arg55, arg56):
    if arg55 < arg56:
        var57 = (arg55 & arg55) & -1876420707
    else:
        var57 = arg55 + arg56 ^ (arg55 ^ arg55)
    var58 = -776 + -987 & arg55
    var59 = arg56 ^ -925 | -179
    var60 = 535 + arg55 + -104680242
    if var58 < arg55:
        var61 = 274779366 - 1557185214
    else:
        var61 = -655 | arg56 | arg55
    var62 = (var60 ^ arg56 | var58) ^ var60
    var63 = arg56 - var59
    var64 = var60 - 719 & arg56 ^ var59
    var65 = var60 ^ arg55 | (arg55 ^ var60)
    var66 = var64 - (17 ^ var62 - -906)
    var67 = var58 | (arg56 & var65)
    var68 = var65 ^ (arg55 & arg56 ^ var65)
    var69 = (arg55 | (var65 & var67)) ^ var63
    var70 = (var59 - 245879176) - arg55 & var59
    var71 = var58 & var66
    var72 = ((var69 | var63) - var64) - var63
    var73 = (var68 | (var58 ^ var71)) + var62
    var74 = -1463853571 & -34 ^ var67 | var65
    var75 = ((var71 - var67) | var67) | var67
    var76 = arg56 - var66 ^ (arg56 - var70)
    var77 = var64 - var73 ^ var73 | var66
    result = 319365785 - -812
    return result
def func8(arg37, arg38):
    var39 = (-756 | arg37 ^ arg38) | arg38
    if arg37 < arg38:
        var40 = arg38 + var39
    else:
        var40 = var39 - -180486232
    var41 = -163417873 + arg37
    var42 = arg38 ^ -350
    if var39 < arg37:
        var43 = var42 + arg38
    else:
        var43 = ((-734476789 + var42) + arg37) + var42
    var44 = -181295120 & var41
    var45 = -107470685 ^ arg38 ^ var42
    var46 = (var44 ^ var39 - var42) ^ arg37
    var47 = var42 | (349 + var45) | arg38
    var48 = arg37 | (6 | 525158551)
    var49 = var48 ^ (-2049277360 + var47) + var44
    var50 = var39 + var42
    var51 = arg37 ^ arg38
    var52 = var42 ^ var47 & var46 - 417
    var53 = var46 | (var41 | var39) & var49
    result = var53 - arg37
    return result
def func4(arg28, arg29):
    var33 = func5(arg28, arg29)
    var34 = (1396982657 | (arg28 + 325) ^ (arg29 + (arg29 & (((659 ^ -465 ^ -494 + (var33 - arg28)) & ((((arg29 ^ 438171921) - var33) ^ 841) - 584 - -901 & arg29)) ^ arg29)) | 1276294347 | 381)) & arg29 & var33
    result = var33 + arg29
    return result
def func1(arg1, arg2):
    var5 = class2()
    for var6 in range(29):
        var5.func3(arg2, arg2)
    var7 = -535 + 276
    if var7 < arg1:
        var8 = arg1 - var7
    else:
        var8 = 29 - ((-737 + var7) + var7)
    if arg2 < arg2:
        var9 = (arg1 & 55 + 684) - -1038429737
    else:
        var9 = -411 & (arg1 ^ var7) ^ 715
    var10 = 1520635250 ^ (arg2 | var7 - -935216164)
    var11 = (-437 | var10) | var7 | var10
    var12 = ((-265 + -1049017930) & var10) - var10
    var13 = arg2 - (var10 ^ -718)
    var14 = (677 & var12 & var13) - arg1
    var15 = arg1 & 1942781347
    var16 = arg2 - var10 | var11 + var12
    var17 = (var12 & 652448077 ^ -159) - var7
    var18 = -862 + var14 & var7
    var19 = (var12 ^ var10) + var14 & 994243845
    var20 = (var12 - var14) + (var19 & var17)
    var21 = var14 + 1155226364
    var22 = var17 | (var10 - arg2)
    var23 = (arg1 | var15) ^ 1438892999 & var11
    var24 = var13 - var12 ^ (arg1 - var11)
    var25 = arg1 + (var13 ^ var18 ^ 491)
    var26 = (var7 + (var24 - var23)) | arg2
    var27 = var24 & var25
    result = arg1 ^ var7
    return result
class class2(object):
    def func3(self, arg3, arg4):
        result = (arg4 - (0 - -117784243) & arg4) - arg3
        return result
def func5(arg30, arg31):
    def func6(acc, rest):
        var32 = 7 + (3 + 7)
        if acc == 0:
            return var32
        else:
            result = func6(acc - 1, var32)
            return result
    result = func6(10, 0)
    return result
def func10(arg79, arg80):
    def func11(acc, rest):
        var81 = acc - -1 + 0
        if acc == 0:
            return var81
        else:
            result = func11(acc - 1, var81)
            return result
    result = func11(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 1'
    print 'func_number: 4'
    print 'arg_number: 28'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 2'
    print 'func_number: 7'
    print 'arg_number: 35'
    for i in xrange(25000):
        x = 5
        x = func4(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 12'
    print 'arg_number: 83'
    for i in xrange(25000):
        x = 5
        x = func7(x, i)
        print x,