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(arg8, arg9):
    var32 = func3(arg8, arg9)
    var37 = func7(arg8, arg9)
    var42 = func8(arg8, var37)
    var43 = arg9 & (var32 - var37 & arg9)
    var44 = var37 | var32 ^ arg9 + arg8
    var45 = ((var44 - -690) & var44) & 678
    var46 = var45 + 309 & var32 + arg8
    var47 = (833 & 838 | var46) | var32
    var48 = -1623706877 ^ (-2037368170 - arg9) ^ -703555995
    var49 = (1188023722 | -1905214331 & var37) | var44
    if var43 < var46:
        var50 = var46 | var43 | -581 - var32
    else:
        var50 = var48 ^ (var43 & -681)
    var51 = var32 ^ (-902 & arg9)
    var52 = var46 + var49 ^ var32 + var44
    var53 = var47 & arg8 ^ (var52 ^ var47)
    var54 = var51 | (arg8 ^ var52) - var43
    var55 = var51 + var47 & (var54 + var48)
    var56 = (var51 | var53) | (var32 + arg9)
    var57 = var53 + (var46 | var44) ^ var51
    var58 = var52 & arg8 - var48 ^ var46
    var59 = ((var44 & var46) & var58) & 2019970564
    var60 = ((var48 + var32) + var59) & arg8
    var61 = var48 | var59 ^ (var52 | -632731111)
    var62 = (arg8 ^ var48) | 816
    result = var57 + (var56 + (var59 - var37) + var58 + var53)
    return result
def func8(arg38, arg39):
    var40 = 0
    for var41 in xrange(15):
        var40 += arg39 + arg38
    return var40
def func7(arg33, arg34):
    var35 = 0
    for var36 in range(42):
        var35 += var35 + arg34 + arg34
    return var35
def func3(arg10, arg11):
    var14 = class4()
    for var15 in range(28):
        var14.func5(arg11, arg10)
    def func6(arg16, arg17):
        result = arg11 + (arg16 | 247 + -928 | -720 ^ arg17)
        return result
    var18 = func6(arg10, arg11)
    var19 = arg11 - arg10
    if arg11 < arg11:
        var20 = arg11 ^ arg10
    else:
        var20 = (-259 - var18 - 2121732136) | 1853938556
    var21 = (-207 - 1534828736 ^ arg10) | var18
    var22 = var19 ^ (82 | var21)
    var23 = 544319714 | arg11
    var24 = -151316952 & ((var23 ^ arg10) & -595)
    var25 = (arg10 & arg10) + var24 ^ var23
    var26 = (var18 & var22 & var19) + arg10
    var27 = (var25 | var26 | var19) + var23
    var28 = ((arg11 | var21) & var22) & arg10
    var29 = -969 | var27
    var30 = (72 | var27 & var23) | var23
    if arg11 < arg10:
        var31 = (arg11 + (var29 & var18)) ^ var23
    else:
        var31 = 1714505522 ^ (var27 & var30 ^ var30)
    result = (737 + (var22 ^ var19 & 1967391892) & (var19 | (-36 | var18 + var28)) - (var19 | var25)) - 1107148825
    return result
class class4(object):
    def func5(self, arg12, arg13):
        return 0
def func1(arg1, arg2):
    var3 = 260 & (arg1 | 584) | 672
    var4 = -422 | -1552111845
    if arg1 < arg1:
        var5 = arg1 - var3 | var3
    else:
        var5 = -2096075436 | var3
    var6 = (arg2 + arg1) & arg1
    if var3 < arg2:
        var7 = arg1 & 39 + arg2 ^ arg1 ^ var4 & var6 - (arg2 + (var3 & arg2))
    else:
        var7 = arg1 & (arg2 ^ (-577 - 1004558798)) & arg2
    result = 637 - 511668486
    return result
if __name__ == "__main__":
    print 'prog_size: 0'
    print 'func_number: 2'
    print 'arg_number: 8'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,
    print 'prog_size: 5'
    print 'func_number: 9'
    print 'arg_number: 63'
    for i in xrange(25000):
        x = 5
        x = func2(x, i)
        print x,