Re:Please do not attempt to simplify this code
by Touche on Friday December 28, 2018 @07:45AM
(#18776429)
Compilers can only tell if programs are internally consistent, they can't help ensure that they are correct. Compilers don't know about inputs. Compilers don't know if the branch you wrote goes in the correct direction for a given input.
[ Parent
| on HN ]
Re:Please do not attempt to simplify this code
by mywittyname on Friday December 28, 2018 @11:45AM
(#18777806)
Well, the compiler can optimize away any superfluous branches which exist entirely to act as hints for the programmer.