Average Error: 0 → 0
Time: 794.0ms
Precision: 64
\[\left(\left(\left(x + x\right) + x\right) + x\right) + x\]
\[5 \cdot x\]
\left(\left(\left(x + x\right) + x\right) + x\right) + x
5 \cdot x
double f(double x) {
        double r144339 = x;
        double r144340 = r144339 + r144339;
        double r144341 = r144340 + r144339;
        double r144342 = r144341 + r144339;
        double r144343 = r144342 + r144339;
        return r144343;
}

double f(double x) {
        double r144344 = 5.0;
        double r144345 = x;
        double r144346 = r144344 * r144345;
        return r144346;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\left(\left(\left(x + x\right) + x\right) + x\right) + x\]
  2. Simplified0

    \[\leadsto \color{blue}{5 \cdot x}\]
  3. Final simplification0

    \[\leadsto 5 \cdot x\]

Reproduce

herbie shell --seed 2019174 
(FPCore (x)
  :name "Main:i from "
  (+ (+ (+ (+ x x) x) x) x))