(FPCore (a b) :precision binary64 (* (+ a b) (+ a b)))
double code(double a, double b) {
return (a + b) * (a + b);
}
real(8) function code(a, b)
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (a + b) * (a + b)
end function
public static double code(double a, double b) {
return (a + b) * (a + b);
}
def code(a, b): return (a + b) * (a + b)
function code(a, b) return Float64(Float64(a + b) * Float64(a + b)) end
function tmp = code(a, b) tmp = (a + b) * (a + b); end
code[a_, b_] := N[(N[(a + b), $MachinePrecision] * N[(a + b), $MachinePrecision]), $MachinePrecision]
\left(a + b\right) \cdot \left(a + b\right)
Please include this information when filing a bug report:
herbie shell --seed 2023096
(FPCore (a b)
:name "Expression 4, p15"
:precision binary64
:pre (and (and (<= 5.0 a) (<= a 10.0)) (and (<= 0.0 b) (<= b 0.001)))
:herbie-target
(+ (+ (+ (* b a) (* b b)) (* b a)) (* a a))
(* (+ a b) (+ a b)))
| match-define: no matching clause for '((x +.f64 (*.f64 a (+.f64 a b)) (*.f64 b (+.f64 a b)))) | L | C | |
|---|---|---|---|
| program-body | /home/nightlies/herbie/remove-change/src/programs.rkt | 21 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/contract/private/arrow-higher-order.rkt | 379 | 33 |
| gen-rewrites! | /home/nightlies/herbie/remove-change/src/patch.rkt | 145 | 0 |
| patch-table-run | /home/nightlies/herbie/remove-change/src/patch.rkt | 296 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt | 486 | 18 |
| run-iter! | /home/nightlies/herbie/remove-change/src/mainloop.rkt | 267 | 0 |
| mutate! | /home/nightlies/herbie/remove-change/src/mainloop.rkt | 377 | 0 |
| run-improve! | /home/nightlies/herbie/remove-change/src/mainloop.rkt | 325 | 0 |
| run-herbie | /home/nightlies/herbie/remove-change/src/sandbox.rkt | 57 | 0 |
| (unnamed) | /home/nightlies/herbie/remove-change/src/sandbox.rkt | 133 | 6 |
| (unnamed) | /usr/share/racket/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/share/racket/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |