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 func6(arg42, arg43):
    var48 = func7(arg42, arg43)
    var74 = func8(arg42, arg43)
    result = arg42 ^ -972
    return result
def func8(arg49, arg50):
    var51 = arg49 & (1152586393 | (736 - 1576785954))
    var52 = (arg50 + var51) + var51
    var53 = -1352794268 & var52
    var54 = 386974683 + var53 + var52 ^ -1310103047
    var55 = var51 & var53 & arg49 | arg49
    var56 = var53 + var52 ^ 212 | arg49
    if var56 < var56:
        var57 = arg49 - var53
    else:
        var57 = var55 + var53 & -532 | arg50
    var58 = var55 + var52 ^ arg49 + var56
    if var51 < var53:
        var59 = var52 | var53
    else:
        var59 = arg49 & var52 - var51
    var60 = arg49 & var55 ^ 1800627095 | var55
    var61 = (arg49 & var58 ^ 56) - var53
    var62 = (var54 + -936) & arg49
    var63 = arg50 - var61
    var64 = ((var53 & var53) - var53) | var55
    if arg50 < var52:
        var65 = var64 + 539 & var56 ^ arg49
    else:
        var65 = var64 & 993 | var53 ^ var62
    var66 = var62 + 1816094993
    var67 = var52 - var64 + var62 + var64
    var68 = (var61 | arg49 + arg49) + var55
    var69 = (var64 ^ arg50 + var51) ^ arg49
    var70 = (arg49 & var68 & var52) & arg49
    var71 = var60 + -181 | var67 + var51
    var72 = (var71 | var67 | var64) | var52
    var73 = var63 - var66
    result = arg49 | var62
    return result
def func7(arg44, arg45):
    var46 = 0
    for var47 in range(50):
        var46 += arg44 - -3 - var46
    return var46
def func5(arg37, arg38):
    var39 = ((-982 + 27 + -1023570773) & 575 + -1987667722 ^ (arg37 & arg38) - arg38) | ((-733 + arg38) ^ -818) - arg37 ^ ((((552894188 | arg38) + arg38) | arg38 & -633) - arg38) ^ arg38 - (arg37 - 1015290641 + arg38)
    var40 = (arg38 ^ var39 | (var39 & var39 & (arg38 - -24122969) ^ var39 | 484 | (arg37 & -1753541334 ^ -164 | arg38)) + (arg38 + arg38 - var39) | 1421277240) - arg38 + var39 - arg37
    var41 = (arg38 & -298155063 ^ var39) - var39
    result = 1870436885 ^ (var41 - -1690832603 - var40)
    return result
def func1(arg1, arg2):
    var17 = func2(arg2, arg1)
    var22 = func4(arg2, var17)
    var23 = arg2 - -319721393
    var24 = arg1 & var22 & 1913199986 + 106159755
    var25 = var22 + (222856420 | arg1)
    var26 = arg2 & var25
    var27 = (arg2 + -518) & arg2 | var23
    var28 = var25 - -1152685911
    var29 = 595 - arg1
    var30 = var25 - var26
    var31 = ((-373 ^ var29) - var24) & var29
    var32 = (-899275526 - var24) & var31 - arg2
    var33 = arg2 - (var28 & var27 & var22)
    var34 = var31 | var24
    var35 = arg1 - var17 & (arg1 | var32)
    var36 = arg2 - var34 - var23
    result = var33 ^ var33 + var25 + ((var24 - (var30 | var33 + var32 ^ var30) ^ var17 | var32) + var29) - var36
    return result
def func4(arg18, arg19):
    var20 = 0
    for var21 in range(41):
        var20 += var21 & (var21 ^ 2)
    return var20
def func2(arg3, arg4):
    def func3(arg5, arg6):
        var7 = ((arg3 ^ (arg3 - arg4 & arg3 - 527)) - arg4 & arg3 | ((arg4 - (arg4 | arg6 | 600106304 + arg5) + arg4 ^ arg3) + -1238669061 & arg6 | arg4) - -182 | 1344087507 - 289026497 & arg6) & arg3
        if arg6 < arg6:
            var8 = arg6 ^ (arg5 ^ arg5 ^ 976 | (arg4 - arg3))
        else:
            var8 = (arg4 ^ arg5) ^ -721486556 - arg3
        if arg5 < var7:
            var9 = -249 - arg5 ^ arg6
        else:
            var9 = arg4 & (((1032936574 - -268 - (var7 | var7 - arg5 ^ var7 + 108 | (arg6 | var7 ^ (var7 | arg6 - -1622392464)) ^ arg3 - -98) - arg6 ^ -51 - (arg4 ^ arg6)) | 1166219868) - arg4) & arg6
        var10 = arg4 + arg6
        result = (arg6 - arg4) & 121
        return result
    var11 = func3(arg4, arg3)
    var12 = 673604450 + (arg4 ^ 719381260 + arg4) ^ (424136431 + ((692002262 & (arg3 ^ arg3)) + 908922162 + (var11 & (-829 & 643)) ^ (arg4 | var11 ^ (arg4 | (arg3 - (arg4 | 259))) ^ arg3 | -1242233808) & var11) | 756)
    var13 = -34007682 ^ var12 ^ (1161585754 ^ var11 & ((arg4 & 500 | (1436029202 & (-269967132 ^ (arg3 + arg3 | ((arg3 ^ var12 & (arg3 & ((arg4 - ((var12 & var11) ^ var11)) - 1721682131 - 153180037) ^ -48518289)) & var12))))) & 455))
    if var13 < var12:
        var14 = (((((var11 ^ (arg3 & (66 - arg3) | arg3 & 46)) + var13) | var11 & var13) | (((131 & arg4) | (((arg4 ^ 1859748575) - var13) - var11 + var13) + var13 - var13) + 69)) ^ -1894828986) | arg4 | arg3
    else:
        var14 = -610 | (arg4 - var12)
    var15 = -74891801 ^ var13 - arg3
    var16 = (((-2001529057 + -2084012775 ^ -67 - var11 + 1407550878 - (((var13 - ((((807758482 & var15) & arg3 ^ arg3 + arg4) ^ var11) ^ var13)) - -462803784 - var12) ^ -694) + 40 - arg4) | var15) & var12) ^ -1820553944 | arg3
    result = arg3 & var11 | -997 + (var11 | -782)
    return result
if __name__ == "__main__":
    print 'prog_size: 3'
    print 'func_number: 5'
    print 'arg_number: 37'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 3'
    print 'func_number: 6'
    print 'arg_number: 42'
    for i in xrange(25000):
        x = 5
        x = func5(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 9'
    print 'arg_number: 75'
    for i in xrange(25000):
        x = 5
        x = func6(x, i)
        print x,