trace_commentor/experiment.py
Yuyao Huang 49651168e3 If()
2024-04-20 02:01:26 +08:00

27 lines
358 B
Python

from tests.test_utils import *
def test():
@Commentor()
def target():
x = 2
if x > 3:
x = 2 * x
y = 1
elif x > 2:
x = 4 * x
y = 2
elif x > 3:
x = 4 * x
y = 3
else:
x = 8 * x
y = 5
print(target())
test()