from __future__ import print_function
class C:
def compiled_method(self, a,b,c,d,e,f):
return a, b, c, d, e, f
def getUnknownValue():
return 8
def calledRepeatedly():
a = getUnknownValue()
b = getUnknownValue()
c = getUnknownValue()
d = getUnknownValue()
e = getUnknownValue()
f = getUnknownValue()
inst = C()
# This is supposed to make a call to a compiled method, which is
# being optimized separately.
# construct_begin
inst.compiled_method(a, b, c, d, e, f)
inst.compiled_method(a, c, b, d, e, f)
inst.compiled_method(a, b, c, d, f, e)
# construct_alternative
import itertools
for x in itertools.repeat(None, 50000):
calledRepeatedly()
print("OK.")
from __future__ import print_function
class C:
def compiled_method(self, a,b,c,d,e,f):
return a, b, c, d, e, f
def getUnknownValue():
return 8
def calledRepeatedly():
a = getUnknownValue()
b = getUnknownValue()
c = getUnknownValue()
d = getUnknownValue()
e = getUnknownValue()
f = getUnknownValue()
inst = C()
# This is supposed to make a call to a compiled method, which is
# being optimized separately.
# construct_begin
# construct_alternative
pass
# construct_end
import itertools
for x in itertools.repeat(None, 50000):
calledRepeatedly()
print("OK.")