Average Error: 45.4 → 0
Time: 5.0s
Precision: 64
Internal Precision: 128
\[(x \cdot y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
\[-1\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original45.4
Target0
Herbie0
\[-1\]

Derivation

  1. Initial program 45.4

    \[(x \cdot y + z)_* - \left(1 + \left(x \cdot y + z\right)\right)\]
  2. Simplified0

    \[\leadsto \color{blue}{-1}\]
  3. Final simplification0

    \[\leadsto -1\]

Reproduce

herbie shell --seed 2019010 +o rules:numerics
(FPCore (x y z)
  :name "simple fma test"

  :herbie-target
  -1

  (- (fma x y z) (+ 1 (+ (* x y) z))))

Details

Time bar (total: 4.4s)Debug log

sample92.0ms

Algorithm
intervals

simplify486.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
486.0ms
(- (fma x y z) (+ 1 (+ (* x y) z)))

prune7.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize0.0ms

Local error

Found 0 expressions with local error:

rewrite0.0ms

Algorithm
rewrite-expression-head
Rules
Counts
0 → 0
Calls
0 calls:
Slowest

series0.0ms

Counts
0 → 0
Calls
0 calls:
Slowest

simplify0.0ms

Counts
0 → 0
Calls
0 calls:
Slowest

prune2.0ms

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

end0.0ms

sample3.8s

Algorithm
intervals