Average Error: 0.0 → 0.0
Time: 14.7s
Precision: 64
\[\left(x + y\right) + x\]
\[x + \left(y + x\right)\]
\left(x + y\right) + x
x + \left(y + x\right)
double f(double x, double y) {
        double r28656123 = x;
        double r28656124 = y;
        double r28656125 = r28656123 + r28656124;
        double r28656126 = r28656125 + r28656123;
        return r28656126;
}

double f(double x, double y) {
        double r28656127 = x;
        double r28656128 = y;
        double r28656129 = r28656128 + r28656127;
        double r28656130 = r28656127 + r28656129;
        return r28656130;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0
Herbie0.0
\[y + 2 \cdot x\]

Derivation

  1. Initial program 0.0

    \[\left(x + y\right) + x\]
  2. Final simplification0.0

    \[\leadsto x + \left(y + x\right)\]

Reproduce

herbie shell --seed 2019170 
(FPCore (x y)
  :name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"

  :herbie-target
  (+ y (* 2.0 x))

  (+ (+ x y) x))