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 func2(arg15, arg16):
    var29 = func6()
    var34 = func7(arg16, arg15)
    var39 = func8(arg15, var34)
    var40 = var29 | var34
    var41 = var29 & -545578318
    var42 = -670 + -211
    var43 = (var40 - var40) ^ (var29 | arg15)
    var44 = (arg16 + var42 & var40) + 849
    var45 = arg16 ^ (-741 & var41) + arg16
    var46 = var45 | arg15
    var47 = (var34 ^ 98) & -223 - var29
    var48 = var45 ^ 1373079934 | -2034262238
    var49 = var34 & 717
    var50 = (var34 - var43) | var47 + var48
    var51 = arg15 | -1408667684
    var52 = (var46 ^ 1950528978 - var45) ^ var46
    var53 = var52 | var43 & var40 + -285
    var54 = var47 - var39
    var55 = var34 + var45
    var56 = arg16 ^ var41 - (var40 - var50)
    var57 = ((var39 + var51) - var53) ^ var55
    result = var54 + var43
    return result
def func8(arg35, arg36):
    var37 = 0
    for var38 in xrange(30):
        var37 += (var37 ^ -8) & var38
    return var37
def func7(arg30, arg31):
    var32 = 0
    for var33 in range(13):
        var32 += arg30 | -7 - var32
    return var32
def func6():
    func3()
    result = len([-2 + i for i in func5(-4, 1)])
    func4()
    return result
def func5(arg17, arg18):
    var19 = arg17 ^ -196989559
    yield var19
    var20 = 430 | var19
    yield var20
    var21 = (var20 + var19 ^ 1506010812) + 341428041
    yield var21
    var22 = var19 - (var19 & 94 + var21)
    yield var22
    var23 = -356 & var21 & var20
    yield var23
    var24 = var23 | arg18
    yield var24
    var25 = arg17 ^ var21 + var23
    yield var25
    var26 = (var24 - var24) - var23 | var19
    yield var26
    var27 = arg18 ^ -356 - var22 & -711
    yield var27
    var28 = var22 ^ (-805 - arg18) + var19
    yield var28
def func4():
    global len
    del len
def func3():
    global len
    len = lambda x : 1
def func1(arg1, arg2):
    var3 = 917315846 | arg1
    var4 = -40 & (695 | 1813913356) & -114
    var5 = -1204952409 ^ -1171381013 + arg2 ^ arg1
    if arg1 < var3:
        var6 = var5 ^ (-577114994 & var4 | var5)
    else:
        var6 = (var5 | var5) | arg1 ^ var3
    var7 = arg2 & var5 & -1542417168 + -1423287130
    if var3 < var7:
        var8 = arg1 ^ var3 & 878 ^ var7
    else:
        var8 = var5 + -841797754 ^ var3 ^ 1168320860
    var9 = (arg2 & arg2 - 2075013167) | 38
    var10 = var4 & var7
    var11 = var9 - arg1
    var12 = arg1 & 1054008796
    var13 = arg2 & 1371318218 + -859 + var5
    var14 = var12 | var11
    result = 1019712828 + var12
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 15'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 9'
    print 'arg_number: 58'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,