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):
    var6 = func2(arg1, arg2)
    var21 = func4(arg2, arg1)
    var34 = func7(arg1, var6)
    var35 = var6 | arg1 + arg1
    var36 = ((-1041579239 | arg1) - (var6 & (-953 | arg2) ^ (1026049003 ^ 929 | var34))) + var35
    var37 = ((var36 + ((var6 ^ (var36 | var6) - -705) | ((var36 - var6 ^ arg2) ^ var21 & var34 ^ arg2 - var35 + var36 | -1049498516)) + 697 ^ arg2) & var6 ^ var6) - var35 - var35 | var6 & var6
    var38 = (arg2 + var6) & var34 & var36 | var35 ^ (343479845 + 416 | var34) ^ 1342972409 & var37 & ((var37 - (var21 + 229) | var35) - arg1) ^ (((var34 - (arg1 ^ arg2 ^ var6 + var21)) ^ var34) ^ 1835240293)
    var39 = arg1 ^ 1682285479
    result = (arg1 + arg1 | arg2 & var37) ^ var36 ^ arg2 ^ var21
    return result
def func7(arg22, arg23):
    var24 = (223 ^ arg22) | arg23 + arg22
    var25 = 291 | (arg23 - 1733148451) | var24
    var26 = arg22 | var24 + arg23
    var27 = var24 + (var25 + (var25 - var26))
    var28 = (var25 & arg22 ^ 1186114988) & arg22
    var29 = arg22 ^ (arg22 ^ -221236562)
    var30 = arg23 & 706
    var31 = var29 & var26
    var32 = (var31 & var25) & var27 ^ 950772326
    var33 = (var30 & -954892629) & arg22 | var25
    result = var27 - var27 | (var27 ^ (-132 ^ arg23 & var24 | arg23 | -645 ^ var31) + var26 & var26 - var26)
    return result
def func4(arg7, arg8):
    var14 = func5(arg7, arg8)
    var19 = func6(arg8, var14)
    var20 = var19 | var14 - (arg7 + 1401100207 & -777)
    result = ((-1609168421 + (var14 ^ var20 | var20 & (-222 | arg8) ^ 171 | -611)) - (arg8 - -1465676427)) + arg8 - var19
    return result
def func6(arg15, arg16):
    var17 = 0
    for var18 in range(27):
        var17 += arg16 | (var18 ^ arg16)
    return var17
def func5(arg9, arg10):
    var11 = -935 | 200006922 - (arg10 ^ (arg9 & 2033790006)) + -1449441327 - (arg9 + -1616210820 - ((-312669600 + (658564169 | (arg9 ^ (1459515910 + -470 ^ (arg10 | arg10)) | arg9) | (653428448 + 69) ^ 572884064 + arg10) - -986) | -203))
    var12 = 1195174886 & 1911584599 ^ arg9
    var13 = var12 - (arg9 ^ -1183642267 - arg10 + var11)
    result = arg9 | var13
    return result
def func2(arg3, arg4):
    closure = [0]
    def func3(acc, rest):
        var5 = (acc - (acc - -8 + rest) + 5 + 5) ^ 5
        closure[0] += var5
        if acc == 0:
            return var5
        else:
            result = func3(acc - 1, var5)
            return result
    result = func3(10, 0)
    return result
if __name__ == "__main__":
    print 'prog_size: 5'
    print 'func_number: 8'
    print 'arg_number: 40'
    for i in xrange(25000):
        x = 5
        x = func1(x, i)
        print x,