gratilup
Joined 10 years ago
Karma
164
Submissions
14
Member since
May 5
Joined 10 years ago
initial: (106 * 17) / 17 = 10 (overflow) / 17 = 0
optimized: 106 * (17 / 17) = 106 * 1 = 106
So in this case the optimized version gives the expected result - it's still different than the initial expression, so it falls under the "undefined overflow" optimizations category.