We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9941b commit daed095Copy full SHA for daed095
Lib/test/test_capi/test_opt.py
@@ -1504,7 +1504,8 @@ def f(n):
1504
trace = []
1505
for i in range(n):
1506
# zero is always (int) 0, but we can only prove that it's a integer:
1507
- zero = i - i
+ false = i == TIER2_THRESHOLD # this will always be false, while hopefully still fooling optimizer improvements
1508
+ zero = false + 0 # this should always set the variable zero equal to 0
1509
trace.append("A")
1510
if not zero: # Kept.
1511
trace.append("B")
0 commit comments