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(arg25, arg26):
    var27 = func6()
    def func7(arg28, arg29):
        if arg28 < arg26:
            var30 = (arg26 & var27) - -790579124 | var27
        else:
            var30 = var27 + -1040358772
        var31 = 483 + var27 + var27
        if arg25 < arg26:
            var32 = ((arg26 & -2110083234) - 349) + -446200788
        else:
            var32 = ((var31 + -557) ^ var27) ^ arg26
        var33 = arg29 + arg25
        var34 = var27 + var31
        var35 = ((var34 & 203) ^ 848) + var27
        var36 = (var33 & arg28) + (arg25 & arg25)
        var37 = arg28 - (var35 & var27) | arg26
        var38 = (var33 - var37) | -613
        if var33 < var38:
            var39 = (var33 | var31) & -1771208661 - var35
        else:
            var39 = var27 & arg26
        if arg29 < arg29:
            var40 = (var36 | var38) + var31
        else:
            var40 = ((var38 - var27) | var27) - var31
        var41 = (var35 - -286906982) | -106
        var42 = var34 & arg25 - arg28
        var43 = arg28 | var27
        var44 = arg26 + var41 & var31 ^ var38
        var45 = var42 + arg29 ^ var34 - var27
        result = var41 - var43 + arg29 + ((((var27 + 708 - var37) - var41) | 1471339027 & var45 - var34) - var34) & arg29
        return result
    var46 = func7(arg26, var27)
    var47 = -1544757270 | -1946645806
    var48 = var27 ^ -142929869 & (var27 | var27 ^ var27) & var47 ^ (arg26 + var27)
    result = var47 | ((var47 + arg26 - (489 | -734355270) ^ -343223806 ^ 367 & var27 & var47 - 832) & var47 ^ var48)
    return result
def func6():
    func4()
    result = len([9 + i for i in (-8 & (9 & 9) for i in (((3 ^ i - -5) + -9) - -10 for i in xrange(6)))])
    func5()
    return result
def func5():
    global len
    del len
def func4():
    global len
    len = lambda x : -7
def func2(arg23, arg24):
    result = 1144537427 - -793
    return result
def func1(arg1, arg2):
    var3 = (-955 + (arg2 ^ arg1)) + 24
    var4 = (arg2 ^ -217325372) + -536
    var5 = (arg1 & (1427649987 - 9)) ^ -1894045033
    var6 = 661 | arg1
    var7 = arg1 ^ var5 & (var6 - -231012485)
    var8 = arg1 ^ 1148047594 - var3
    var9 = 2073236817 + (-1200376370 | 843982044)
    var10 = var5 + ((var5 & arg1) | var9)
    var11 = var5 & ((arg1 & var6) + var10)
    var12 = var6 & arg2 + var9 + var3
    var13 = var3 & (var9 & var10)
    var14 = (arg1 ^ var5 | 317) ^ var6
    if var10 < var9:
        var15 = (var3 ^ var7 ^ arg2) ^ var5
    else:
        var15 = var11 - -1006832209
    if var4 < var5:
        var16 = var7 | (var9 + (1487472652 | var12))
    else:
        var16 = (arg2 | var4) - var11
    if var3 < var11:
        var17 = var12 - -877908170
    else:
        var17 = var5 - var12
    var18 = (var11 + var11) & var14 + var14
    var19 = arg2 & (arg2 ^ var11) + var5
    var20 = var11 - var13
    var21 = (var19 + var3 & var20) & var18
    var22 = var5 & (var3 + var11)
    result = (((var5 + (var3 ^ var20 ^ var18) - var5 + arg1 + (var20 ^ var18) + -152) - var13) - var13) - var19
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 23'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 0'
    print 'func_number: 3'
    print 'arg_number: 25'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 8'
    print 'arg_number: 49'
    for i in xrange(25000):
        x = 5
        x = func3(x, i)
        print x,