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 func1(arg1, arg2):
    var7 = func2(arg1, arg2)
    def func3(arg8, arg9):
        var10 = (arg1 + 845 + arg2) | arg9
        if arg2 < arg9:
            var11 = -814 | (var7 - -1295332680 & var7)
        else:
            var11 = (-450 - (arg1 - arg2)) - arg8
        var12 = arg2 - -888
        var13 = ((var7 & arg8) | var10) - -958296567
        var14 = (arg9 + var13 ^ var7) & var10
        var15 = (var10 & (701 - var7)) ^ var7
        var16 = var15 ^ (arg2 - var7)
        var17 = arg8 & 686 + arg2 & arg8
        var18 = (var15 | var14 & var13) ^ var12
        var19 = (534 + (var13 + arg8)) ^ 1896447257
        var20 = var17 | arg9
        var21 = (-198806188 ^ var20) - var20 & 796
        var22 = var19 & var10
        var23 = (var22 | var7 + var21) ^ var12
        if arg1 < arg9:
            var24 = var18 + var15
        else:
            var24 = (var19 | var17) & var20
        result = (-547 | var20) ^ arg1
        return result
    var25 = func3(arg1, arg2)
    if var25 < arg1:
        var30 = class4()
    else:
        var30 = class6()
    for var31 in range(20):
        var30.func5(var25, var31)
    var36 = func8(arg2, arg1)
    var61 = func9(arg1, var36)
    var62 = var25 & var61
    var63 = var7 - var25
    var64 = -1760105544 - arg2 | var36 - arg1
    var65 = var7 | (var61 | var63) | arg2
    var66 = var62 & var25
    var67 = var64 & var66 & arg2 | var64
    var68 = var25 + (519 & var61) & arg2
    var69 = (var25 - (arg1 + arg2)) | -491
    var70 = ((arg2 & var67) ^ var63) & -605794498
    var71 = var66 ^ (var25 + var65) ^ var66
    var72 = (var68 | var67) & var67
    var73 = var62 - arg1
    var74 = var61 + (var7 + var71)
    var75 = (-98018967 & var72 | var25) & var67
    var76 = var36 ^ var25
    var77 = arg2 - -246 | var69 - var25
    var78 = var61 - (arg2 ^ var67 | -542)
    result = var74 ^ var25 + var76
    return result
def func9(arg37, arg38):
    var39 = 3 & arg37 | arg38
    var40 = arg37 + (-1991343844 | arg37) + 934473935
    var41 = -200 | -911
    if var39 < var39:
        var42 = var40 | var39 + -220
    else:
        var42 = (arg37 & (var41 - var40)) + var40
    var43 = 135 & var41 + arg37 ^ 676016944
    var44 = var39 + (arg37 & 60 ^ var39)
    if var40 < var44:
        var45 = -479 ^ 2015426976 & var39 ^ var40
    else:
        var45 = var40 & (var44 & var39) | var44
    var46 = (var44 & arg37) + var44 ^ -69
    var47 = (arg37 + var46) - 230 - var46
    var48 = var41 & (arg38 ^ var47) + arg38
    var49 = var43 ^ 602
    var50 = (var44 - var43) & arg37 + var41
    var51 = var46 | arg37
    var52 = var39 - var49
    var53 = var47 | var52
    var54 = (var48 | var43) + var43
    var55 = var52 - arg38
    var56 = -855 - (var40 | arg37) ^ var47
    var57 = var46 ^ var52
    var58 = var57 ^ var40
    var59 = var56 ^ var46
    var60 = (var51 - (var48 + var51)) & var43
    result = (var55 & (var39 | var54 | var59 - (-703 + var47) ^ var40 ^ var60 & 771 | 43 - var39)) + var53
    return result
def func8(arg32, arg33):
    var34 = 0
    for var35 in xrange(32):
        var34 += arg32 | 4
    return var34
class class6(object):
    def func5(self, arg28, arg29):
        result = arg28 | 0 + arg29 | -1
        return result
class class4(object):
    def func5(self, arg26, arg27):
        result = (arg27 | -1 ^ (arg26 ^ (-1 - -609896967)) + 0) - -1
        return result
def func2(arg3, arg4):
    var5 = 0
    for var6 in range(39):
        var5 += (arg4 - var5) ^ -6
    return var5
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 10'
    print 'arg_number: 79'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,