Found by gpt-5.6 sol, repro: ```cs using System.Runtime.CompilerServices; internal static class Program { [MethodImpl(MethodImplOptions.NoInlining)] private static int Test(int iterationCount) { int result = 0; int iteration = 0; for (int i = -1; (i < 0) && (iteration < iterationCount); i *= 2) { if (i < -2) result++; iteration++; } return result; } private static int Main() { int result = Test(3); Console.WriteLine($"Result: {result}; expected: 1"); return result == 1 ? 100 : 1; } } ``` **Tier0**: `Result: 1; expected: 1` **Tier1**: `Result: 0; expected: 1`
Activity
dotnet-policy-service commentedon Jul 9, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
Fix monotonicity analysis for multiplication
Fix range-check monotonicity for multiplication (#130426)
Fix range-check monotonicity for multiplication (#130426)