\left(x + 100\right) - x
100
double code(double x) {
return ((double) (((double) (x + 100.0)) - x));
}
double code(double x) {
return 100.0;
}



Bits error versus x
Results
Initial program 29.4
Simplified0
Final simplification0
herbie shell --seed 2020153
(FPCore (x)
:name "(- (+ x 100) x)"
:precision binary64
(- (+ x 100.0) x))