\[\sqrt{\left(x \cdot x + y \cdot y\right) + z \cdot z}\]
\sqrt{\left(x \cdot x + y \cdot y\right) + z \cdot z}
(FPCore (x y z) :precision binary64 (sqrt (+ (+ (* x x) (* y y)) (* z z))))
double code(double x, double y, double z) {
	return ((double) sqrt(((double) (((double) (((double) (x * x)) + ((double) (y * y)))) + ((double) (z * z))))));
}

Reproduce

Please include this information when filing a bug report:

herbie shell --seed 2020203 
(FPCore (x y z)
  :name "FRP.Yampa.Vector3:vector3Rho from Yampa-0.10.2"
  :precision binary64

  :herbie-target
  (if (< z -6.396479394109776e+136) (- z) (if (< z 7.320293694404182e+117) (sqrt (+ (+ (* z z) (* x x)) (* y y))) z))

  (sqrt (+ (+ (* x x) (* y y)) (* z z))))

Backtrace

first: contract violation expected: (and/c list? (not/c empty?)) given: '()LC
batch-eval-progs/data/pavpan/nightlies/herbie/cleanup/src/programs.rkt1070
batch-errors/data/pavpan/nightlies/herbie/cleanup/src/points.rkt1690
atab-add-altns/data/pavpan/nightlies/herbie/cleanup/src/core/alt-table.rkt1940
(unnamed)/opt/racket-7.5/collects/racket/contract/private/arrow-val-first.rkt48618
finalize-iter!/data/pavpan/nightlies/herbie/cleanup/src/mainloop.rkt2730
run-iter!/data/pavpan/nightlies/herbie/cleanup/src/mainloop.rkt3410
for-loop/data/pavpan/nightlies/herbie/cleanup/src/mainloop.rkt3794
run-improve41/data/pavpan/nightlies/herbie/cleanup/src/mainloop.rkt3600
.../more-scheme.rkt:261:28unknown
run/opt/racket-7.5/share/pkgs/profile-lib/main.rkt392
profile-thunk16/opt/racket-7.5/share/pkgs/profile-lib/main.rkt90
(unnamed)/opt/racket-7.5/collects/racket/private/more-scheme.rkt26128

Reproduce

herbie shell --seed 2020203 
(FPCore (x y z)
  :name "FRP.Yampa.Vector3:vector3Rho from Yampa-0.10.2"
  :precision binary64

  :herbie-target
  (if (< z -6.396479394109776e+136) (- z) (if (< z 7.320293694404182e+117) (sqrt (+ (+ (* z z) (* x x)) (* y y))) z))

  (sqrt (+ (+ (* x x) (* y y)) (* z z))))