\[1 - \frac{\left(1 - x\right) \cdot y}{y + 1}\]
1 - \frac{\left(1 - x\right) \cdot y}{y + 1}
double code(double x, double y) {
	return ((double) (1.0 - ((double) (((double) (((double) (1.0 - x)) * y)) / ((double) (y + 1.0))))));
}

Reproduce

Please include this information when filing a bug report:

herbie shell --seed 2020169 
(FPCore (x y)
  :name "Diagrams.Trail:splitAtParam  from diagrams-lib-1.3.0.3, D"
  :precision binary64

  :herbie-target
  (if (< y -3693.8482788297247) (- (/ 1.0 y) (- (/ x y) x)) (if (< y 6799310503.41891) (- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))) (- (/ 1.0 y) (- (/ x y) x))))

  (- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))))

Backtrace

match-define: no matching clause for '(== branch2124 -374746873.07342046)LC
match:error/opt/racket-7.5/collects/racket/match/runtime.rkt240
program-body/data/pavpan/nightlies/herbie/ival-find-range/src/programs.rkt250
(unnamed)/opt/racket-7.5/collects/racket/contract/private/arrow-higher-order.rkt37933
prepare-points/data/pavpan/nightlies/herbie/ival-find-range/src/points.rkt1300
pred/data/pavpan/nightlies/herbie/ival-find-range/src/core/regimes.rkt2044
.../more-scheme.rkt:261:28unknown
for-loop/data/pavpan/nightlies/herbie/ival-find-range/src/core/regimes.rkt2403
sindices->spoints/data/pavpan/nightlies/herbie/ival-find-range/src/core/regimes.rkt1940
f37unknown
get-final-combination/data/pavpan/nightlies/herbie/ival-find-range/src/mainloop.rkt3890
.../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 2020169 
(FPCore (x y)
  :name "Diagrams.Trail:splitAtParam  from diagrams-lib-1.3.0.3, D"
  :precision binary64

  :herbie-target
  (if (< y -3693.8482788297247) (- (/ 1.0 y) (- (/ x y) x)) (if (< y 6799310503.41891) (- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))) (- (/ 1.0 y) (- (/ x y) x))))

  (- 1.0 (/ (* (- 1.0 x) y) (+ y 1.0))))