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(arg22, arg23):
    var28 = func4(arg22, arg23)
    var46 = var31(arg22, var28)
    def func8(arg47, arg48):
        var49 = arg47 - (var46 - -7628272 - arg22)
        var50 = 463 + var28
        if var50 < var50:
            var51 = arg23 + var28
        else:
            var51 = var50 & var46
        var52 = (arg48 | arg47) - arg47 | var28
        var53 = arg23 | arg47 + var49 & var49
        var54 = -374 | arg23
        var55 = (var54 | arg47 ^ var49) | arg47
        var56 = arg48 | var50 ^ 642074322
        var57 = var54 & var53 ^ var28 - arg47
        if var50 < var52:
            var58 = (120843545 + var57 | var49) & var55
        else:
            var58 = var28 ^ arg23 - var54 & arg22
        var59 = 715378714 ^ 878 + arg47 ^ -653
        var60 = (var57 & var59 & arg23) - arg47
        var61 = (var28 & -846) - arg47
        var62 = var54 - var54 - arg23
        var63 = var53 ^ -814 - arg48 + var61
        result = (arg47 + (var52 & arg47) + arg23 ^ (var54 | var54) & 820902795) + (var28 | arg22) & var59 + var50 & var61
        return result
    var64 = func8(var46, arg22)
    var65 = (var46 ^ 899 & arg22 ^ -423819944 ^ arg22 & var46) ^ (var28 | var28 + -819 + 53) & arg22
    result = (((var46 | arg23) & var64 - 375354477 - var65 ^ arg22) ^ var28 ^ var65 & arg22 & (-1028387940 | var65)) | var46
    return result
def func7(arg32, arg33):
    var34 = -2007306961 ^ (-1523255959 ^ 1770103741 ^ -1471974074)
    var35 = ((656 - 603) ^ var34) ^ 1327387953
    var36 = (arg33 ^ var34) ^ arg33 - 229
    var37 = (var34 | var36 - 650) & var34
    var38 = (arg32 & arg33) + 1148399244
    var39 = (var38 & -627) - -256 - var38
    if var34 < var34:
        var40 = (var38 & var39 ^ var37) | 803
    else:
        var40 = ((var36 | -139535416) | var36) + -110677259
    var41 = ((var38 & arg32) & -1411701822) - var35
    var42 = (var36 & var39 + 665) ^ 195
    var43 = (var38 & var41) & var39 - var37
    var44 = arg32 | var43
    var45 = (var43 - var36) + (var39 ^ arg32)
    result = var39 | var39 ^ var44 ^ var37 | arg32 - arg33 ^ -54 ^ var35 | var39 ^ -563
    return result
def func6():
    closure = [4]
    def func5(arg29, arg30):
        closure[0] += func7(arg29, arg30)
        return closure[0]
    func = func5
    return func
var31 = func6()
def func4(arg24, arg25):
    var26 = 0
    for var27 in range(21):
        var26 += var26 | var27 ^ var26
    return var26
def func1(arg1, arg2):
    var7 = func2(arg1, arg2)
    var8 = arg2 ^ var7
    var9 = 867 - var8
    var10 = ((var9 - var7) - var9) & arg2
    var11 = var8 ^ var7
    var12 = -645 ^ arg2
    var13 = var10 - arg1
    var14 = (var13 + var12 & var8) - arg2
    var15 = (959 + var13) & (var8 ^ var13)
    var16 = 1209027412 + 304133744 - var10
    var17 = var16 + ((arg1 | var13) | var16)
    var18 = (var12 | (var9 - var16)) & var13
    var19 = var7 + var8 - var8
    var20 = (var17 & var16 - var16) - var9
    if var14 < var15:
        var21 = var17 + var14 ^ var7 - var13
    else:
        var21 = (var18 | var7 & var16) + var9
    result = (var10 & var11) ^ (arg2 | var12) ^ (var10 & var12) & var18 ^ var13 + (var18 ^ 206) | arg2 & var10
    return result
def func2(arg3, arg4):
    var5 = 0
    for var6 in [(i + arg3) - i for i in xrange(42)]:
        var5 += -6 ^ arg3
    return var5
if __name__ == "__main__":
    print 'prog_size: 2'
    print 'func_number: 3'
    print 'arg_number: 22'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 9'
    print 'arg_number: 66'
    for i in xrange(25000):
        x = 5
        x = func3(x, i)
        print x,