Logistic regression 2

Time bar (total: 9.7s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated; 0ms collecting garbage

analyze87.0ms (0.9%)

Memory
-28.8MiB live, 169.4MiB allocated; 25ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%99.9%0.1%0%0%0%1
50%50%50%0.1%0%0%0%2
50%50%50%0.1%0%0%0%3
75%74.9%25%0.1%0%0%0%4
75%74.9%25%0.1%0%0%0%5
75%74.9%25%0.1%0%0%0%6
75%74.9%25%0.1%0%0%0%7
75%74.9%25%0.1%0%0%0%8
75%74.9%25%0.1%0%0%0%9
75%74.9%25%0.1%0%0%0%10
75%74.9%25%0.1%0%0%0%11
75%74.9%25%0.1%0%0%0%12
Compiler

Compiled 11 to 8 computations (27.3% saved)

sample3.4s (35.5%)

Memory
-71.2MiB live, 3 094.7MiB allocated; 1.7s collecting garbage
Samples
2.3s2 709×5exit
533.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 2.4s
ival-log1p: 1.1s (47.1% of total)
adjust: 872.0ms (36.4% of total)
ival-exp: 152.0ms (6.3% of total)
ival-sub: 123.0ms (5.1% of total)
ival-mult: 106.0ms (4.4% of total)
ival-true: 9.0ms (0.4% of total)
ival-assert: 5.0ms (0.2% of total)
Bogosity

explain161.0ms (1.7%)

Memory
-22.0MiB live, 142.3MiB allocated; 56ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
170(-1.5498271937166156e+55 1.1603435332320504e+170)0-(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
00-0-(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
00-0-(+.f64 #s(literal 1 binary64) (exp.f64 x))
00-0-y
00-0-#s(literal 1 binary64)
00-0-(exp.f64 x)
00-0-(*.f64 x y)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
log.f64(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))sensitivity710
Confusion
Predicted +Predicted -
+00
-71185
Precision
0.0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-710185
Precision?
0.0
Recall?
0/0
Freqs
test
numberfreq
0185
171
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-100
Precision?
0.0
Recall?
0/0
Samples
70.0ms512×0valid
Compiler

Compiled 65 to 28 computations (56.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 54.0ms
ival-sub: 37.0ms (68.4% of total)
ival-log1p: 5.0ms (9.2% of total)
ival-exp: 4.0ms (7.4% of total)
ival-mult: 4.0ms (7.4% of total)
ival-add: 3.0ms (5.5% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess510.0ms (5.3%)

Memory
3.4MiB live, 509.4MiB allocated; 103ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02251
15249
212349
328549
4117049
5569449
089
0139
1239
2469
3979
43169
529159
081067
Stop Event
iter limit
node limit
iter limit
node limit
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Outputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
Compiler

Compiled 9 to 8 computations (11.1% saved)

eval0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated; 0ms collecting garbage
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
1.2MiB live, 1.2MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 9 to 8 computations (11.1% saved)

simplify718.0ms (7.4%)

Memory
30.6MiB live, 503.1MiB allocated; 86ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(exp.f64 x)
cost-diff0
(+.f64 #s(literal 1 binary64) (exp.f64 x))
cost-diff0
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
cost-diff2
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0826
01326
12326
24626
39726
431626
5291526
0810622
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x
(*.f64 x y)
y
Outputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(log1p.f64 (exp.f64 x))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(-.f64 (exp.f64 x) #s(literal -1 binary64))
#s(literal 1 binary64)
(exp.f64 x)
x
(*.f64 x y)
(*.f64 y x)
y

localize27.0ms (0.3%)

Memory
-12.6MiB live, 31.7MiB allocated; 6ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(exp.f64 x)
accuracy0.0078125
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
accuracy0.0078125
(+.f64 #s(literal 1 binary64) (exp.f64 x))
accuracy0.0761671362934735
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
Samples
21.0ms256×0valid
Compiler

Compiled 28 to 10 computations (64.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
ival-log1p: 3.0ms (30.3% of total)
ival-exp: 2.0ms (20.2% of total)
ival-mult: 2.0ms (20.2% of total)
ival-add: 1.0ms (10.1% of total)
ival-sub: 1.0ms (10.1% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series63.0ms (0.7%)

Memory
20.9MiB live, 73.3MiB allocated; 19ms collecting garbage
Counts
4 → 24
Calls
Call 1
Inputs
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)
Outputs
(log 2)
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(log (+ 1 (exp x)))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(+ 1 (exp x))
(exp x)
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
Calls

6 calls:

TimeVariablePointExpression
29.0ms
x
@-inf
((log (+ 1 (exp x))) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)) (exp x))
27.0ms
x
@inf
((log (+ 1 (exp x))) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)) (exp x))
3.0ms
y
@0
((log (+ 1 (exp x))) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)) (exp x))
1.0ms
y
@-inf
((log (+ 1 (exp x))) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)) (exp x))
1.0ms
y
@inf
((log (+ 1 (exp x))) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)) (exp x))

simplify193.0ms (2%)

Memory
3.4MiB live, 188.9MiB allocated; 38ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
067193
1212192
2673192
32213192
45571192
08531158
Stop Event
iter limit
node limit
Counts
24 → 24
Calls
Call 1
Inputs
(log 2)
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(log (+ 1 (exp x)))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(+ 1 (exp x))
(exp x)
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
Outputs
(log 2)
(log1p.f64 #s(literal 1 binary64))
(+ (log 2) (* 1/2 x))
(fma.f64 #s(literal 1/2 binary64) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
(fma.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal -1/192 binary64) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(+ (log 2) (* x (- 1/2 y)))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/192 binary64) (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))) x (log1p.f64 #s(literal 1 binary64)))
2
#s(literal 2 binary64)
(+ 2 x)
(-.f64 x #s(literal -2 binary64))
(+ 2 (* x (+ 1 (* 1/2 x))))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 2 binary64))
1
#s(literal 1 binary64)
(+ 1 x)
(+.f64 #s(literal 1 binary64) x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 1 binary64))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 1 binary64))
(log (+ 1 (exp x)))
(log1p.f64 (exp.f64 x))
(* -1 (* x y))
(*.f64 (neg.f64 x) y)
(* x (- (/ (log (+ 1 (exp x))) x) y))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x)
(+ 1 (exp x))
(+.f64 (exp.f64 x) #s(literal 1 binary64))
(exp x)
(exp.f64 x)
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x)
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)

rewrite52.0ms (0.5%)

Memory
-0.4MiB live, 45.1MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0820
01320
14920
035716
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
4 → 48
Calls
Call 1
Inputs
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)
Outputs
(log1p.f64 (exp.f64 x))
(-.f64 (log.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 x) #s(literal 2 binary64)))) (log.f64 (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(-.f64 (log1p.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64))) (log1p.f64 (*.f64 (exp.f64 x) (expm1.f64 x))))
(log.f64 (-.f64 (exp.f64 x) #s(literal -1 binary64)))
(/.f64 (+.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (pow.f64 (*.f64 (neg.f64 x) y) #s(literal 3 binary64))) (+.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (-.f64 (pow.f64 (*.f64 y x) #s(literal 2 binary64)) (*.f64 (log1p.f64 (exp.f64 x)) (*.f64 (neg.f64 x) y)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (pow.f64 (*.f64 y x) #s(literal 2 binary64)))) (neg.f64 (fma.f64 y x (log1p.f64 (exp.f64 x)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (pow.f64 (*.f64 y x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (pow.f64 (*.f64 y x) #s(literal 2 binary64))) (fma.f64 y x (log1p.f64 (exp.f64 x))))
(/.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (pow.f64 (*.f64 y x) #s(literal 3 binary64))) (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64))))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(fma.f64 y (neg.f64 x) (log1p.f64 (exp.f64 x)))
(-.f64 (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)) (fma.f64 y x (log1p.f64 (exp.f64 x)))) (/.f64 (pow.f64 (*.f64 y x) #s(literal 2 binary64)) (fma.f64 y x (log1p.f64 (exp.f64 x)))))
(-.f64 (/.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))) (/.f64 (pow.f64 (*.f64 y x) #s(literal 3 binary64)) (fma.f64 (*.f64 y x) (fma.f64 y x (log1p.f64 (exp.f64 x))) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 2 binary64)))))
(-.f64 (log1p.f64 (exp.f64 x)) (*.f64 (neg.f64 (neg.f64 x)) y))
(-.f64 (log1p.f64 (exp.f64 x)) (*.f64 y x))
(+.f64 (*.f64 (neg.f64 x) y) (log1p.f64 (exp.f64 x)))
(+.f64 (log1p.f64 (exp.f64 x)) (*.f64 (neg.f64 y) x))
(+.f64 (log1p.f64 (exp.f64 x)) (*.f64 (neg.f64 x) y))
(/.f64 (expm1.f64 (+.f64 x x)) (expm1.f64 x))
(/.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 x) #s(literal 2 binary64)))) (neg.f64 (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(/.f64 (neg.f64 (+.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) #s(literal 1 binary64))) (neg.f64 (fma.f64 (exp.f64 x) (expm1.f64 x) #s(literal 1 binary64))))
(/.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 x) #s(literal 2 binary64))) (-.f64 #s(literal 1 binary64) (exp.f64 x)))
(/.f64 (+.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 (exp.f64 x) (exp.f64 x) (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(/.f64 (+.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 (exp.f64 x) (expm1.f64 x) #s(literal 1 binary64)))
(fma.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (pow.f64 #s(literal 1 binary64) #s(literal 3/2 binary64)) (exp.f64 x))
(fma.f64 #s(literal -1 binary64) #s(literal -1 binary64) (exp.f64 x))
(fma.f64 (exp.f64 x) #s(literal 1 binary64) #s(literal 1 binary64))
(fma.f64 #s(literal 1 binary64) (exp.f64 x) #s(literal 1 binary64))
(fma.f64 #s(literal 1 binary64) #s(literal 1 binary64) (exp.f64 x))
(-.f64 (/.f64 #s(literal 1 binary64) (-.f64 #s(literal 1 binary64) (exp.f64 x))) (/.f64 (pow.f64 (exp.f64 x) #s(literal 2 binary64)) (-.f64 #s(literal 1 binary64) (exp.f64 x))))
(-.f64 (exp.f64 x) #s(literal -1 binary64))
(+.f64 (+.f64 #s(literal 1 binary64) (cosh.f64 x)) (sinh.f64 x))
(+.f64 (/.f64 #s(literal 1 binary64) (fma.f64 (exp.f64 x) (expm1.f64 x) #s(literal 1 binary64))) (/.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (fma.f64 (exp.f64 x) (expm1.f64 x) #s(literal 1 binary64))))
(+.f64 (cosh.f64 x) (+.f64 (sinh.f64 x) #s(literal 1 binary64)))
(+.f64 (exp.f64 x) #s(literal 1 binary64))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(*.f64 (exp.f64 x) #s(literal 1 binary64))
(*.f64 #s(literal 1 binary64) (exp.f64 x))
(/.f64 (-.f64 (*.f64 (cosh.f64 x) (cosh.f64 x)) (*.f64 (sinh.f64 x) (sinh.f64 x))) (-.f64 (cosh.f64 x) (sinh.f64 x)))
(/.f64 (+.f64 (pow.f64 (cosh.f64 x) #s(literal 3 binary64)) (pow.f64 (sinh.f64 x) #s(literal 3 binary64))) (fma.f64 (cosh.f64 x) (cosh.f64 x) (-.f64 (*.f64 (sinh.f64 x) (sinh.f64 x)) (*.f64 (cosh.f64 x) (sinh.f64 x)))))
(fma.f64 (cosh.f64 x) #s(literal 1 binary64) (*.f64 (sinh.f64 x) #s(literal 1 binary64)))
(fma.f64 #s(literal 1 binary64) (cosh.f64 x) (*.f64 #s(literal 1 binary64) (sinh.f64 x)))
(exp.f64 (+.f64 #s(literal 0 binary64) x))
(exp.f64 x)
(+.f64 (*.f64 (cosh.f64 x) #s(literal 1 binary64)) (*.f64 (sinh.f64 x) #s(literal 1 binary64)))
(+.f64 (*.f64 #s(literal 1 binary64) (cosh.f64 x)) (*.f64 #s(literal 1 binary64) (sinh.f64 x)))
(+.f64 (sinh.f64 x) (cosh.f64 x))
(+.f64 (cosh.f64 x) (sinh.f64 x))

eval13.0ms (0.1%)

Memory
-26.3MiB live, 19.0MiB allocated; 7ms collecting garbage
Compiler

Compiled 1 099 to 291 computations (73.5% saved)

prune7.0ms (0.1%)

Memory
13.1MiB live, 13.0MiB allocated; 0ms collecting garbage
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New64670
Fresh000
Picked101
Done000
Total65671
Accuracy
100.0%
Counts
71 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
84.2%
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
94.0%
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
79.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
87.0%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
43.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
Compiler

Compiled 172 to 142 computations (17.4% saved)

simplify572.0ms (5.9%)

Memory
3.4MiB live, 498.6MiB allocated; 73ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 19 expressions of interest:

NewMetricScoreProgram
cost-diff0
(-.f64 #s(literal 1/2 binary64) y)
cost-diff0
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
cost-diff0
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
cost-diff0
(log1p.f64 #s(literal 1 binary64))
cost-diff0
(-.f64 #s(literal 1/2 binary64) y)
cost-diff0
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
cost-diff0
(*.f64 x y)
cost-diff0
#s(approx (+ 1 (exp x)) #s(literal 2 binary64))
cost-diff0
(log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64)))
cost-diff0
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
cost-diff0
(neg.f64 x)
cost-diff0
(*.f64 (neg.f64 x) y)
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
cost-diff0
(exp.f64 x)
cost-diff0
(log1p.f64 (exp.f64 x))
cost-diff0
(neg.f64 x)
cost-diff0
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
028141
045141
165141
2118141
3258141
4708141
54774141
08425141
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(neg.f64 x)
x
y
(log1p.f64 (exp.f64 x))
(exp.f64 x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
(*.f64 (neg.f64 x) y)
(neg.f64 x)
x
y
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
(log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64)))
#s(approx (+ 1 (exp x)) #s(literal 2 binary64))
#s(literal 2 binary64)
(*.f64 x y)
x
y
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(-.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
x
(log1p.f64 #s(literal 1 binary64))
#s(literal 1 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
#s(literal 1/8 binary64)
x
(-.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
(log1p.f64 #s(literal 1 binary64))
#s(literal 1 binary64)
Outputs
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(fma.f64 (neg.f64 y) x (log1p.f64 (exp.f64 x)))
(neg.f64 x)
x
y
(log1p.f64 (exp.f64 x))
(exp.f64 x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 y (neg.f64 x)))
(*.f64 (neg.f64 x) y)
(*.f64 y (neg.f64 x))
(neg.f64 x)
x
y
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
(fma.f64 (neg.f64 y) x (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))))
(log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64)))
#s(approx (+ 1 (exp x)) #s(literal 2 binary64))
#s(literal 2 binary64)
(*.f64 x y)
(*.f64 y x)
x
y
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(-.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
x
(log1p.f64 #s(literal 1 binary64))
#s(literal 1 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
#s(literal 1/8 binary64)
x
(-.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
(log1p.f64 #s(literal 1 binary64))
#s(literal 1 binary64)

localize361.0ms (3.7%)

Memory
-9.4MiB live, 82.6MiB allocated; 8ms collecting garbage
Localize:

Found 19 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(log1p.f64 #s(literal 1 binary64))
accuracy0.00390625
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
accuracy0.01171875
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
accuracy12.985524366857009
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
accuracy0.0
(-.f64 #s(literal 1/2 binary64) y)
accuracy0.0
(log1p.f64 #s(literal 1 binary64))
accuracy0.0078125
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
accuracy8.325468006631157
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
accuracy0.0
(*.f64 x y)
accuracy0.0078125
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
accuracy0.0761671362934735
(log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64)))
accuracy15.75417771976828
#s(approx (+ 1 (exp x)) #s(literal 2 binary64))
accuracy0.0
(*.f64 (neg.f64 x) y)
accuracy0.0
(neg.f64 x)
accuracy36.132487805743466
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
accuracy0.0
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
accuracy0.0
(neg.f64 x)
accuracy0.0
(exp.f64 x)
accuracy0.01171875
(log1p.f64 (exp.f64 x))
Samples
345.0ms255×0valid
0.0ms1valid
Compiler

Compiled 136 to 24 computations (82.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 330.0ms
ival-add: 309.0ms (93.5% of total)
ival-mult: 9.0ms (2.7% of total)
ival-log1p: 5.0ms (1.5% of total)
ival-exp: 2.0ms (0.6% of total)
ival-sub: 2.0ms (0.6% of total)
exact: 1.0ms (0.3% of total)
ival-neg: 1.0ms (0.3% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series39.0ms (0.4%)

Memory
22.1MiB live, 64.3MiB allocated; 12ms collecting garbage
Counts
17 → 60
Calls
Call 1
Inputs
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(neg.f64 x)
(log1p.f64 (exp.f64 x))
(exp.f64 x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
(*.f64 (neg.f64 x) y)
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
(log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64)))
#s(approx (+ 1 (exp x)) #s(literal 2 binary64))
(*.f64 x y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(-.f64 #s(literal 1/2 binary64) y)
(log1p.f64 #s(literal 1 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
Outputs
(log 2)
(+ (log 2) (* x (+ 1/2 (* -1 y))))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* 1/8 x)))))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* x (+ 1/8 (* -1/192 (pow x 2))))))))
(* -1 x)
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(* -1 (* x y))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(* x y)
(- 1/2 y)
(- (+ 1/2 (* 1/8 x)) y)
(* x (+ (* -1 y) (/ (log (+ 1 (exp x))) x)))
(log (+ 1 (exp x)))
(exp x)
(* x (- (/ (log (+ 1 (exp x))) x) y))
(+ 1 (exp x))
(* x (- 1/2 y))
(* x (- (+ 1/2 (/ (log 2) x)) y))
(* 1/8 (pow x 2))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
(* 1/8 x)
(* x (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* -1 (* x (+ y (* -1 (/ (log (+ 1 (exp x))) x)))))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(* -1 (* x (- (* -1 (/ (- 1/2 y) x)) 1/8)))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
1/2
(+ 1/2 (* -1 y))
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(+ 1/2 (* 1/8 x))
(+ 1/2 (+ (* -1 y) (* 1/8 x)))
(* y (+ (* -1 x) (/ (log (+ 1 (exp x))) y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(* -1 y)
(* y (- (* 1/2 (/ 1 y)) 1))
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(* y (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(* -1 (* y (+ x (* -1 (/ (log (+ 1 (exp x))) y)))))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(* -1 (* y (+ 1 (* -1 (/ (+ 1/2 (* 1/8 x)) y)))))
Calls

6 calls:

TimeVariablePointExpression
15.0ms
x
@-inf
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (* (neg x) y) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (* x y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)))
9.0ms
x
@inf
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (* (neg x) y) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (* x y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)))
4.0ms
x
@0
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (* (neg x) y) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (* x y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)))
4.0ms
y
@0
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (* (neg x) y) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (* x y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)))
3.0ms
y
@inf
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (* (neg x) y) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (* x y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)))

simplify169.0ms (1.7%)

Memory
-3.1MiB live, 167.8MiB allocated; 52ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0159548
1555519
21942514
36802514
08110452
Stop Event
iter limit
node limit
Counts
60 → 60
Calls
Call 1
Inputs
(log 2)
(+ (log 2) (* x (+ 1/2 (* -1 y))))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* 1/8 x)))))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* x (+ 1/8 (* -1/192 (pow x 2))))))))
(* -1 x)
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(* -1 (* x y))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(* x y)
(- 1/2 y)
(- (+ 1/2 (* 1/8 x)) y)
(* x (+ (* -1 y) (/ (log (+ 1 (exp x))) x)))
(log (+ 1 (exp x)))
(exp x)
(* x (- (/ (log (+ 1 (exp x))) x) y))
(+ 1 (exp x))
(* x (- 1/2 y))
(* x (- (+ 1/2 (/ (log 2) x)) y))
(* 1/8 (pow x 2))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
(* 1/8 x)
(* x (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* -1 (* x (+ y (* -1 (/ (log (+ 1 (exp x))) x)))))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(* -1 (* x (- (* -1 (/ (- 1/2 y) x)) 1/8)))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
1/2
(+ 1/2 (* -1 y))
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(+ 1/2 (* 1/8 x))
(+ 1/2 (+ (* -1 y) (* 1/8 x)))
(* y (+ (* -1 x) (/ (log (+ 1 (exp x))) y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(* -1 y)
(* y (- (* 1/2 (/ 1 y)) 1))
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(* y (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(* -1 (* y (+ x (* -1 (/ (log (+ 1 (exp x))) y)))))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(* -1 (* y (+ 1 (* -1 (/ (+ 1/2 (* 1/8 x)) y)))))
Outputs
(log 2)
(log1p.f64 #s(literal 1 binary64))
(+ (log 2) (* x (+ 1/2 (* -1 y))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* 1/8 x)))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* x (+ 1/8 (* -1/192 (pow x 2))))))))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/192 binary64) (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))) x (log1p.f64 #s(literal 1 binary64)))
(* -1 x)
(neg.f64 x)
(+ (log 2) (* 1/2 x))
(fma.f64 #s(literal 1/2 binary64) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
1
#s(literal 1 binary64)
(+ 1 x)
(-.f64 x #s(literal -1 binary64))
(+ 1 (* x (+ 1 (* 1/2 x))))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 1 binary64))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 1 binary64))
(+ (log 2) (* x (- 1/2 y)))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/192 binary64) (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))) x (log1p.f64 #s(literal 1 binary64)))
(* -1 (* x y))
(*.f64 (neg.f64 y) x)
2
#s(literal 2 binary64)
(+ 2 x)
(-.f64 x #s(literal -2 binary64))
(+ 2 (* x (+ 1 (* 1/2 x))))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(* x y)
(*.f64 y x)
(- 1/2 y)
(-.f64 #s(literal 1/2 binary64) y)
(- (+ 1/2 (* 1/8 x)) y)
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
(* x (+ (* -1 y) (/ (log (+ 1 (exp x))) x)))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x)
(log (+ 1 (exp x)))
(log1p.f64 (exp.f64 x))
(exp x)
(exp.f64 x)
(* x (- (/ (log (+ 1 (exp x))) x) y))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x)
(+ 1 (exp x))
(-.f64 (exp.f64 x) #s(literal -1 binary64))
(* x (- 1/2 y))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(* x (- (+ 1/2 (/ (log 2) x)) y))
(*.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x)
(* 1/8 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 1/8 binary64))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
(*.f64 (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (-.f64 (+.f64 #s(literal -1/2 binary64) y) (/.f64 (log1p.f64 #s(literal 1 binary64)) x)) x)) x) x)
(* 1/8 x)
(*.f64 #s(literal 1/8 binary64) x)
(* x (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) x)
(* -1 (* x (+ y (* -1 (/ (log (+ 1 (exp x))) x)))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x)
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x)
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(*.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x)
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(*.f64 (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (-.f64 (+.f64 #s(literal -1/2 binary64) y) (/.f64 (log1p.f64 #s(literal 1 binary64)) x)) x)) x) x)
(* -1 (* x (- (* -1 (/ (- 1/2 y) x)) 1/8)))
(*.f64 (neg.f64 x) (-.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) #s(literal 1/8 binary64)))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* -1 y))
(-.f64 #s(literal 1/2 binary64) y)
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(+ 1/2 (* 1/8 x))
(fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64))
(+ 1/2 (+ (* -1 y) (* 1/8 x)))
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
(* y (+ (* -1 x) (/ (log (+ 1 (exp x))) y)))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* y (- (/ (log (+ 1 (exp x))) y) x))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(*.f64 (-.f64 (/.f64 (fma.f64 #s(literal 1/2 binary64) x (log1p.f64 #s(literal 1 binary64))) y) x) y)
(* -1 y)
(neg.f64 y)
(* y (- (* 1/2 (/ 1 y)) 1))
(*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(*.f64 (-.f64 (/.f64 (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))) y) x) y)
(* y (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(*.f64 (-.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) #s(literal 1 binary64)) y)
(* -1 (* y (+ x (* -1 (/ (log (+ 1 (exp x))) y)))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(*.f64 (-.f64 (/.f64 (fma.f64 #s(literal 1/2 binary64) x (log1p.f64 #s(literal 1 binary64))) y) x) y)
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(*.f64 (-.f64 (/.f64 (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))) y) x) y)
(* -1 (* y (+ 1 (* -1 (/ (+ 1/2 (* 1/8 x)) y)))))
(*.f64 (-.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) #s(literal 1 binary64)) y)

rewrite26.0ms (0.3%)

Memory
33.9MiB live, 33.9MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
028118
045118
0163118
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
17 → 52
Calls
Call 1
Inputs
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(neg.f64 x)
(log1p.f64 (exp.f64 x))
(exp.f64 x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
(*.f64 (neg.f64 x) y)
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
(log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64)))
#s(approx (+ 1 (exp x)) #s(literal 2 binary64))
(*.f64 x y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(-.f64 #s(literal 1/2 binary64) y)
(log1p.f64 #s(literal 1 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
Outputs
(/.f64 (-.f64 (*.f64 (log1p.f64 (exp.f64 x)) (log1p.f64 (exp.f64 x))) (*.f64 (*.f64 y x) (*.f64 y x))) (+.f64 (log1p.f64 (exp.f64 x)) (*.f64 y x)))
(/.f64 (-.f64 (*.f64 (*.f64 y (neg.f64 x)) (*.f64 y (neg.f64 x))) (*.f64 (log1p.f64 (exp.f64 x)) (log1p.f64 (exp.f64 x)))) (-.f64 (*.f64 y (neg.f64 x)) (log1p.f64 (exp.f64 x))))
(/.f64 (-.f64 (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64)) (pow.f64 (*.f64 y x) #s(literal 3 binary64))) (fma.f64 (log1p.f64 (exp.f64 x)) (log1p.f64 (exp.f64 x)) (fma.f64 (*.f64 y x) (*.f64 y x) (*.f64 (log1p.f64 (exp.f64 x)) (*.f64 y x)))))
(/.f64 (+.f64 (pow.f64 (*.f64 y (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (log1p.f64 (exp.f64 x)) #s(literal 3 binary64))) (fma.f64 (*.f64 y (neg.f64 x)) (*.f64 y (neg.f64 x)) (-.f64 (*.f64 (log1p.f64 (exp.f64 x)) (log1p.f64 (exp.f64 x))) (*.f64 (*.f64 y (neg.f64 x)) (log1p.f64 (exp.f64 x))))))
(fma.f64 y (neg.f64 x) (log1p.f64 (exp.f64 x)))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(-.f64 (log1p.f64 (exp.f64 x)) (*.f64 y x))
(+.f64 (*.f64 y (neg.f64 x)) (log1p.f64 (exp.f64 x)))
(+.f64 (log1p.f64 (exp.f64 x)) (*.f64 y (neg.f64 x)))
(neg.f64 x)
(log1p.f64 (exp.f64 x))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(exp.f64 x)
(+.f64 (cosh.f64 x) (sinh.f64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 y (neg.f64 x)))
(*.f64 y (neg.f64 x))
(*.f64 (neg.f64 x) y)
(neg.f64 (*.f64 y x))
(/.f64 (-.f64 (*.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64)))) (*.f64 (*.f64 y x) (*.f64 y x))) (+.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 y x)))
(/.f64 (-.f64 (pow.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) #s(literal 3 binary64)) (pow.f64 (*.f64 y x) #s(literal 3 binary64))) (fma.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (fma.f64 (*.f64 y x) (*.f64 y x) (*.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 y x)))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 y x))
(+.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 y (neg.f64 x)))
(log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64)))
#s(approx (+ 1 (exp x)) #s(literal 2 binary64))
(*.f64 y x)
(*.f64 x y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
(/.f64 (-.f64 (*.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)) (*.f64 (log1p.f64 #s(literal 1 binary64)) (log1p.f64 #s(literal 1 binary64)))) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log1p.f64 #s(literal 1 binary64))))
(/.f64 (+.f64 (pow.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal 3 binary64)) (pow.f64 (log1p.f64 #s(literal 1 binary64)) #s(literal 3 binary64))) (fma.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (-.f64 (*.f64 (log1p.f64 #s(literal 1 binary64)) (log1p.f64 #s(literal 1 binary64))) (*.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log1p.f64 #s(literal 1 binary64))))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 x (-.f64 #s(literal 1/2 binary64) y) (log1p.f64 #s(literal 1 binary64)))
(+.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) x) (log1p.f64 #s(literal 1 binary64)))
(+.f64 (log1p.f64 #s(literal 1 binary64)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
(/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y))
(/.f64 (-.f64 (pow.f64 #s(literal 1/2 binary64) #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (+.f64 #s(literal 1/4 binary64) (fma.f64 y y (*.f64 #s(literal 1/2 binary64) y))))
(-.f64 #s(literal 1/2 binary64) y)
(log1p.f64 #s(literal 1 binary64))
(log.f64 #s(literal 2 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
(/.f64 (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)) (*.f64 (log1p.f64 #s(literal 1 binary64)) (log1p.f64 #s(literal 1 binary64)))) (-.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) (log1p.f64 #s(literal 1 binary64))))
(/.f64 (+.f64 (pow.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) #s(literal 3 binary64)) (pow.f64 (log1p.f64 #s(literal 1 binary64)) #s(literal 3 binary64))) (fma.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) (-.f64 (*.f64 (log1p.f64 #s(literal 1 binary64)) (log1p.f64 #s(literal 1 binary64))) (*.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) (log1p.f64 #s(literal 1 binary64))))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 x (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) (log1p.f64 #s(literal 1 binary64)))
(+.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) (log1p.f64 #s(literal 1 binary64)))
(+.f64 (log1p.f64 #s(literal 1 binary64)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x))
(/.f64 (-.f64 (*.f64 (*.f64 #s(literal 1/8 binary64) x) (*.f64 #s(literal 1/8 binary64) x)) (*.f64 (-.f64 #s(literal 1/2 binary64) y) (-.f64 #s(literal 1/2 binary64) y))) (-.f64 (*.f64 #s(literal 1/8 binary64) x) (-.f64 #s(literal 1/2 binary64) y)))
(/.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/8 binary64) x) #s(literal 3 binary64)) (pow.f64 (-.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64))) (fma.f64 (*.f64 #s(literal 1/8 binary64) x) (*.f64 #s(literal 1/8 binary64) x) (-.f64 (*.f64 (-.f64 #s(literal 1/2 binary64) y) (-.f64 #s(literal 1/2 binary64) y)) (*.f64 (*.f64 #s(literal 1/8 binary64) x) (-.f64 #s(literal 1/2 binary64) y)))))
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
(fma.f64 x #s(literal 1/8 binary64) (-.f64 #s(literal 1/2 binary64) y))
(-.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y)
(+.f64 (*.f64 #s(literal 1/8 binary64) x) (-.f64 #s(literal 1/2 binary64) y))
(+.f64 (-.f64 #s(literal 1/2 binary64) y) (*.f64 #s(literal 1/8 binary64) x))

eval150.0ms (1.5%)

Memory
-29.9MiB live, 84.0MiB allocated; 106ms collecting garbage
Compiler

Compiled 2 341 to 369 computations (84.2% saved)

prune10.0ms (0.1%)

Memory
-19.5MiB live, 27.4MiB allocated; 2ms collecting garbage
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1027109
Fresh011
Picked325
Done000
Total10510115
Accuracy
100.0%
Counts
115 → 10
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
94.0%
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
84.2%
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
60.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
58.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
43.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
31.3%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
16.6%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
5.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
58.1%
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
Compiler

Compiled 365 to 287 computations (21.4% saved)

simplify536.0ms (5.5%)

Memory
58.1MiB live, 414.2MiB allocated; 55ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 20 expressions of interest:

NewMetricScoreProgram
cost-diff0
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
cost-diff0
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
cost-diff0
(log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))))
cost-diff0
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
cost-diff0
(log1p.f64 #s(literal 1 binary64))
cost-diff0
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
cost-diff0
(fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
cost-diff0
(-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))
cost-diff0
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))
cost-diff0
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
cost-diff0
(-.f64 #s(literal 1/2 binary64) y)
cost-diff0
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
cost-diff0
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
cost-diff0
#s(approx (exp x) #s(literal 1 binary64))
cost-diff0
(log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))
cost-diff0
(neg.f64 x)
cost-diff0
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
046262
068262
1108262
2221262
3543262
41813262
08635250
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
(neg.f64 x)
x
y
(log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))
#s(approx (exp x) #s(literal 1 binary64))
#s(literal 1 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(-.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x)))
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))
(-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))
#s(literal 1/8 binary64)
(/.f64 (+.f64 #s(literal -1/2 binary64) y) x)
(+.f64 #s(literal -1/2 binary64) y)
#s(literal -1/2 binary64)
y
x
(*.f64 x x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(literal 1/2 binary64)
x
(log1p.f64 #s(literal 1 binary64))
#s(literal 1 binary64)
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
(log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))))
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64))
#s(literal 1/2 binary64)
x
#s(literal 1 binary64)
#s(literal 2 binary64)
(*.f64 x y)
y
Outputs
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
(fma.f64 (neg.f64 y) x (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
(neg.f64 x)
x
y
(log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))
#s(approx (exp x) #s(literal 1 binary64))
#s(literal 1 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(-.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) x) x)))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x)))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) x) x))
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))
(*.f64 (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) x) x)
(-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))
#s(literal 1/8 binary64)
(/.f64 (+.f64 #s(literal -1/2 binary64) y) x)
(+.f64 #s(literal -1/2 binary64) y)
#s(literal -1/2 binary64)
y
x
(*.f64 x x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(literal 1/2 binary64)
x
(log1p.f64 #s(literal 1 binary64))
#s(literal 1 binary64)
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
(fma.f64 (neg.f64 y) x (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))))
(log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))))
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64))
#s(literal 1/2 binary64)
x
#s(literal 1 binary64)
#s(literal 2 binary64)
(*.f64 x y)
(*.f64 y x)
y

localize91.0ms (0.9%)

Memory
-16.4MiB live, 127.1MiB allocated; 35ms collecting garbage
Localize:

Found 20 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 x y)
accuracy0.0078125
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
accuracy0.0761671362934735
(log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))))
accuracy17.505899921256795
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
accuracy0.0
(log1p.f64 #s(literal 1 binary64))
accuracy0.0078125
(fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
accuracy8.325468006631157
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
accuracy27.885365742453708
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
accuracy0.0078125
(/.f64 (+.f64 #s(literal -1/2 binary64) y) x)
accuracy12.985524366857009
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
accuracy23.960267319413312
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))
accuracy35.91404446294096
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x)))
accuracy0.0
(-.f64 #s(literal 1/2 binary64) y)
accuracy0.0078125
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
accuracy8.325468006631157
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
accuracy35.92966946295431
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
accuracy0.0
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
accuracy0.0
(neg.f64 x)
accuracy0.01171875
(log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))
accuracy18.54438161915046
#s(approx (exp x) #s(literal 1 binary64))
Samples
72.0ms256×0valid
Compiler

Compiled 179 to 34 computations (81% saved)

Precisions
Click to see histograms. Total time spent on operations: 46.0ms
ival-mult: 14.0ms (30.3% of total)
ival-log1p: 10.0ms (21.6% of total)
ival-add: 9.0ms (19.5% of total)
ival-exp: 6.0ms (13% of total)
ival-sub: 3.0ms (6.5% of total)
ival-div: 2.0ms (4.3% of total)
exact: 1.0ms (2.2% of total)
ival-neg: 1.0ms (2.2% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series55.0ms (0.6%)

Memory
3.5MiB live, 49.0MiB allocated; 9ms collecting garbage
Counts
22 → 80
Calls
Call 1
Inputs
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
(neg.f64 x)
(log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))
#s(approx (exp x) #s(literal 1 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(-.f64 #s(literal 1/2 binary64) y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x)))
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))
(-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
(log1p.f64 #s(literal 1 binary64))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
(log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))))
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(/.f64 (+.f64 #s(literal -1/2 binary64) y) x)
(*.f64 x y)
Outputs
(log 2)
(+ (log 2) (* x (+ 1/2 (* -1 y))))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* 1/8 x)))))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* x (+ 1/8 (* -1/192 (pow x 2))))))))
(* -1 x)
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(* x (- 1/2 y))
(* x (- (+ 1/2 (* 1/8 x)) y))
(/ (- 1/2 y) x)
(/ (- (+ 1/2 (* 1/8 x)) y) x)
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(/ (- y 1/2) x)
(* x y)
(* -1 (* x y))
(* x (+ (* -1 y) (/ (log (+ 1 (exp x))) x)))
(log (+ 1 (exp x)))
(exp x)
(* x (- (/ (log (+ 1 (exp x))) x) y))
(* x (- (+ 1/2 (/ (log 2) x)) y))
(* 1/8 (pow x 2))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
1/8
(- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x))
(+ 1 (exp x))
(* 1/2 (pow x 2))
(* (pow x 2) (+ 1/2 (/ 1 x)))
(* (pow x 2) (+ 1/2 (+ (/ 1 x) (/ 2 (pow x 2)))))
(* -1 (* x (+ y (* -1 (/ (log (+ 1 (exp x))) x)))))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(* (pow x 2) (+ 1/8 (* -1 (/ (- y 1/2) x))))
(+ 1/8 (* -1 (/ (- y 1/2) x)))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
(* 1/2 x)
(+ (* -1 (* x y)) (* 1/2 x))
1/2
(+ 1/2 (* -1 y))
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x))))
(+ (* -1 (* x y)) (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))))
(+ 1/8 (* 1/2 (/ 1 x)))
(+ 1/8 (+ (* -1 (/ y x)) (* 1/2 (/ 1 x))))
(/ -1/2 x)
(- (/ y x) (* 1/2 (/ 1 x)))
(* y (+ (* -1 x) (/ (log (+ 1 (exp x))) y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(* y (+ (* -1 x) (* 1/2 (/ x y))))
(* -1 y)
(* y (- (* 1/2 (/ 1 y)) 1))
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(* y (+ (* -1 x) (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))
(* -1 (/ y x))
(* y (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(/ y x)
(* y (- (/ 1 x) (* 1/2 (/ 1 (* x y)))))
(* -1 (* y (+ x (* -1 (/ (log (+ 1 (exp x))) y)))))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(* -1 (* y (+ x (* -1/2 (/ x y)))))
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(* -1 (* y (+ x (* -1 (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))))
(* -1 (* y (+ (* -1 (/ (+ 1/8 (* 1/2 (/ 1 x))) y)) (/ 1 x))))
(* -1 (* y (- (* 1/2 (/ 1 (* x y))) (/ 1 x))))
Calls

6 calls:

TimeVariablePointExpression
29.0ms
x
@-inf
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (+ (* (+ (* 1/2 x) 1) x) 2) (/ (+ -1/2 y) x) (* x y))
9.0ms
x
@inf
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (+ (* (+ (* 1/2 x) 1) x) 2) (/ (+ -1/2 y) x) (* x y))
4.0ms
y
@0
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (+ (* (+ (* 1/2 x) 1) x) 2) (/ (+ -1/2 y) x) (* x y))
4.0ms
y
@-inf
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (+ (* (+ (* 1/2 x) 1) x) 2) (/ (+ -1/2 y) x) (* x y))
4.0ms
y
@inf
((+ (* (neg x) y) (log (+ 1 (exp x)))) (neg x) (log (+ 1 (exp x))) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (- 1/2 y) (log (+ 1 1)) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (+ (* (+ (* 1/2 x) 1) x) 2) (/ (+ -1/2 y) x) (* x y))

simplify261.0ms (2.7%)

Memory
-37.8MiB live, 191.9MiB allocated; 29ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0196719
1698689
22484657
08190588
Stop Event
iter limit
node limit
Counts
80 → 80
Calls
Call 1
Inputs
(log 2)
(+ (log 2) (* x (+ 1/2 (* -1 y))))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* 1/8 x)))))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* x (+ 1/8 (* -1/192 (pow x 2))))))))
(* -1 x)
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(* x (- 1/2 y))
(* x (- (+ 1/2 (* 1/8 x)) y))
(/ (- 1/2 y) x)
(/ (- (+ 1/2 (* 1/8 x)) y) x)
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(/ (- y 1/2) x)
(* x y)
(* -1 (* x y))
(* x (+ (* -1 y) (/ (log (+ 1 (exp x))) x)))
(log (+ 1 (exp x)))
(exp x)
(* x (- (/ (log (+ 1 (exp x))) x) y))
(* x (- (+ 1/2 (/ (log 2) x)) y))
(* 1/8 (pow x 2))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
1/8
(- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x))
(+ 1 (exp x))
(* 1/2 (pow x 2))
(* (pow x 2) (+ 1/2 (/ 1 x)))
(* (pow x 2) (+ 1/2 (+ (/ 1 x) (/ 2 (pow x 2)))))
(* -1 (* x (+ y (* -1 (/ (log (+ 1 (exp x))) x)))))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(* (pow x 2) (+ 1/8 (* -1 (/ (- y 1/2) x))))
(+ 1/8 (* -1 (/ (- y 1/2) x)))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
(* 1/2 x)
(+ (* -1 (* x y)) (* 1/2 x))
1/2
(+ 1/2 (* -1 y))
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x))))
(+ (* -1 (* x y)) (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))))
(+ 1/8 (* 1/2 (/ 1 x)))
(+ 1/8 (+ (* -1 (/ y x)) (* 1/2 (/ 1 x))))
(/ -1/2 x)
(- (/ y x) (* 1/2 (/ 1 x)))
(* y (+ (* -1 x) (/ (log (+ 1 (exp x))) y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(* y (+ (* -1 x) (* 1/2 (/ x y))))
(* -1 y)
(* y (- (* 1/2 (/ 1 y)) 1))
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(* y (+ (* -1 x) (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))
(* -1 (/ y x))
(* y (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(/ y x)
(* y (- (/ 1 x) (* 1/2 (/ 1 (* x y)))))
(* -1 (* y (+ x (* -1 (/ (log (+ 1 (exp x))) y)))))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(* -1 (* y (+ x (* -1/2 (/ x y)))))
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(* -1 (* y (+ x (* -1 (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))))
(* -1 (* y (+ (* -1 (/ (+ 1/8 (* 1/2 (/ 1 x))) y)) (/ 1 x))))
(* -1 (* y (- (* 1/2 (/ 1 (* x y))) (/ 1 x))))
Outputs
(log 2)
(log1p.f64 #s(literal 1 binary64))
(+ (log 2) (* x (+ 1/2 (* -1 y))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* 1/8 x)))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (+ (* -1 y) (* x (+ 1/8 (* -1/192 (pow x 2))))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(* -1 x)
(neg.f64 x)
(+ (log 2) (* 1/2 x))
(fma.f64 #s(literal 1/2 binary64) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
1
#s(literal 1 binary64)
(+ 1 x)
(-.f64 x #s(literal -1 binary64))
(+ 1 (* x (+ 1 (* 1/2 x))))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 1 binary64))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 1 binary64))
(+ (log 2) (* x (- 1/2 y)))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(* x (- 1/2 y))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(* x (- (+ 1/2 (* 1/8 x)) y))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(/ (- 1/2 y) x)
(/.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(/ (- (+ 1/2 (* 1/8 x)) y) x)
(-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64))
2
#s(literal 2 binary64)
(+ 2 x)
(-.f64 x #s(literal -2 binary64))
(+ 2 (* x (+ 1 (* 1/2 x))))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(/ (- y 1/2) x)
(/.f64 (-.f64 y #s(literal 1/2 binary64)) x)
(* x y)
(*.f64 y x)
(* -1 (* x y))
(*.f64 (neg.f64 y) x)
(* x (+ (* -1 y) (/ (log (+ 1 (exp x))) x)))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(log (+ 1 (exp x)))
(log1p.f64 (exp.f64 x))
(exp x)
(exp.f64 x)
(* x (- (/ (log (+ 1 (exp x))) x) y))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(* x (- (+ 1/2 (/ (log 2) x)) y))
(*.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x)
(* 1/8 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 1/8 binary64))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
(fma.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x (*.f64 (*.f64 x x) #s(literal 1/8 binary64)))
1/8
#s(literal 1/8 binary64)
(- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x))
(-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64))
(+ 1 (exp x))
(-.f64 (exp.f64 x) #s(literal -1 binary64))
(* 1/2 (pow x 2))
(*.f64 (*.f64 #s(literal 1/2 binary64) x) x)
(* (pow x 2) (+ 1/2 (/ 1 x)))
(*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x)
(* (pow x 2) (+ 1/2 (+ (/ 1 x) (/ 2 (pow x 2)))))
(*.f64 (fma.f64 (-.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x)) #s(literal -1/2 binary64)) x #s(literal 1 binary64)) x)
(* -1 (* x (+ y (* -1 (/ (log (+ 1 (exp x))) x)))))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(*.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x)
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(fma.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x (*.f64 (*.f64 x x) #s(literal 1/8 binary64)))
(* (pow x 2) (+ 1/8 (* -1 (/ (- y 1/2) x))))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(+ 1/8 (* -1 (/ (- y 1/2) x)))
(-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(* 1/2 x)
(*.f64 #s(literal 1/2 binary64) x)
(+ (* -1 (* x y)) (* 1/2 x))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* -1 y))
(-.f64 #s(literal 1/2 binary64) y)
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x))))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x)
(+ (* -1 (* x y)) (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(+ 1/8 (* 1/2 (/ 1 x)))
(-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64))
(+ 1/8 (+ (* -1 (/ y x)) (* 1/2 (/ 1 x))))
(-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64))
(/ -1/2 x)
(/.f64 #s(literal -1/2 binary64) x)
(- (/ y x) (* 1/2 (/ 1 x)))
(/.f64 (-.f64 y #s(literal 1/2 binary64)) x)
(* y (+ (* -1 x) (/ (log (+ 1 (exp x))) y)))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* y (- (/ (log (+ 1 (exp x))) y) x))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(*.f64 (-.f64 (/.f64 (fma.f64 #s(literal 1/2 binary64) x (log1p.f64 #s(literal 1 binary64))) y) x) y)
(* y (+ (* -1 x) (* 1/2 (/ x y))))
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
(* -1 y)
(neg.f64 y)
(* y (- (* 1/2 (/ 1 y)) 1))
(*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(*.f64 (-.f64 (/.f64 (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))) y) x) y)
(* y (+ (* -1 x) (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
(* -1 (/ y x))
(/.f64 (neg.f64 y) x)
(* y (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(fma.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) y (/.f64 (neg.f64 y) x))
(/ y x)
(/.f64 y x)
(* y (- (/ 1 x) (* 1/2 (/ 1 (* x y)))))
(fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x))
(* -1 (* y (+ x (* -1 (/ (log (+ 1 (exp x))) y)))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(*.f64 (-.f64 (/.f64 (fma.f64 #s(literal 1/2 binary64) x (log1p.f64 #s(literal 1 binary64))) y) x) y)
(* -1 (* y (+ x (* -1/2 (/ x y)))))
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(*.f64 (-.f64 (/.f64 (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))) y) x) y)
(* -1 (* y (+ x (* -1 (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))))
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
(* -1 (* y (+ (* -1 (/ (+ 1/8 (* 1/2 (/ 1 x))) y)) (/ 1 x))))
(fma.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) y (/.f64 (neg.f64 y) x))
(* -1 (* y (- (* 1/2 (/ 1 (* x y))) (/ 1 x))))
(*.f64 (-.f64 (/.f64 (/.f64 #s(literal 1/2 binary64) y) x) (/.f64 #s(literal 1 binary64) x)) (neg.f64 y))

rewrite37.0ms (0.4%)

Memory
-4.2MiB live, 39.6MiB allocated; 6ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
046234
068234
0276222
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
22 → 54
Calls
Call 1
Inputs
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
(neg.f64 x)
(log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))
#s(approx (exp x) #s(literal 1 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(-.f64 #s(literal 1/2 binary64) y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x)))
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))
(-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
(log1p.f64 #s(literal 1 binary64))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
(log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))))
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(/.f64 (+.f64 #s(literal -1/2 binary64) y) x)
(*.f64 x y)
Outputs
(/.f64 (-.f64 (*.f64 (*.f64 y (neg.f64 x)) (*.f64 y (neg.f64 x))) (*.f64 (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))) (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))) (-.f64 (*.f64 y (neg.f64 x)) (log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))))
(/.f64 (+.f64 (pow.f64 (*.f64 y (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))) #s(literal 3 binary64))) (fma.f64 (*.f64 y (neg.f64 x)) (*.f64 y (neg.f64 x)) (-.f64 (*.f64 (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))) (log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))) (*.f64 (*.f64 y (neg.f64 x)) (log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))))))
(fma.f64 y (neg.f64 x) (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
(+.f64 (*.f64 y (neg.f64 x)) (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
(+.f64 (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))) (*.f64 y (neg.f64 x)))
(neg.f64 x)
(log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))
(log.f64 (+.f64 #s(approx (exp x) #s(literal 1 binary64)) #s(literal 1 binary64)))
#s(approx (exp x) #s(literal 1 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(*.f64 x (-.f64 #s(literal 1/2 binary64) y))
(/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y))
(/.f64 (-.f64 (pow.f64 #s(literal 1/2 binary64) #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (+.f64 #s(literal 1/4 binary64) (fma.f64 y y (*.f64 #s(literal 1/2 binary64) y))))
(-.f64 #s(literal 1/2 binary64) y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) x) x)))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) x) x))
(*.f64 (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) x) x)
(*.f64 (*.f64 x x) (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)))
(*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))
(/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)))
(/.f64 (-.f64 (pow.f64 #s(literal 1/8 binary64) #s(literal 3 binary64)) (pow.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) #s(literal 3 binary64))) (+.f64 #s(literal 1/64 binary64) (fma.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (*.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)))))
(-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(/.f64 (-.f64 (*.f64 (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)) (*.f64 (log1p.f64 #s(literal 1 binary64)) (log1p.f64 #s(literal 1 binary64)))) (-.f64 (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x) (log1p.f64 #s(literal 1 binary64))))
(/.f64 (+.f64 (pow.f64 (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x) #s(literal 3 binary64)) (pow.f64 (log1p.f64 #s(literal 1 binary64)) #s(literal 3 binary64))) (fma.f64 (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x) (-.f64 (*.f64 (log1p.f64 #s(literal 1 binary64)) (log1p.f64 #s(literal 1 binary64))) (*.f64 (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x) (log1p.f64 #s(literal 1 binary64))))))
(fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 x #s(approx (- 1/2 y) #s(literal 1/2 binary64)) (log1p.f64 #s(literal 1 binary64)))
(+.f64 (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x) (log1p.f64 #s(literal 1 binary64)))
(+.f64 (log1p.f64 #s(literal 1 binary64)) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
(log1p.f64 #s(literal 1 binary64))
(log.f64 #s(literal 2 binary64))
(/.f64 (-.f64 (*.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))))) (*.f64 (*.f64 y x) (*.f64 y x))) (+.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 y x)))
(/.f64 (-.f64 (pow.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) #s(literal 3 binary64)) (pow.f64 (*.f64 y x) #s(literal 3 binary64))) (fma.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (fma.f64 (*.f64 y x) (*.f64 y x) (*.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 y x)))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 y x))
(+.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 y (neg.f64 x)))
(log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))))
#s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))
(/.f64 (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x) (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x)) #s(literal 4 binary64)) (-.f64 (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x) #s(literal 2 binary64)))
(/.f64 (+.f64 (pow.f64 (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x) #s(literal 3 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 3 binary64))) (fma.f64 (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x) (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x) (-.f64 #s(literal 4 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x) #s(literal 2 binary64)))))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64))
(fma.f64 #s(literal 2 binary64) #s(literal 1 binary64) (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x))
(fma.f64 x (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) #s(literal 2 binary64))
(+.f64 (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 1 binary64)) #s(literal 1 binary64))
(+.f64 (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x) #s(literal 2 binary64))
(+.f64 #s(literal 2 binary64) (*.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x))
(/.f64 (neg.f64 (+.f64 #s(literal -1/2 binary64) y)) (neg.f64 x))
(/.f64 (+.f64 #s(literal -1/2 binary64) y) x)
(+.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 y x))
(*.f64 y x)
(*.f64 x y)

eval13.0ms (0.1%)

Memory
20.5MiB live, 20.5MiB allocated; 0ms collecting garbage
Compiler

Compiled 3 069 to 455 computations (85.2% saved)

prune32.0ms (0.3%)

Memory
-6.1MiB live, 47.9MiB allocated; 5ms collecting garbage
Pruning

20 alts after pruning (14 fresh and 6 done)

PrunedKeptTotal
New10011111
Fresh033
Picked145
Done022
Total10120121
Accuracy
100.0%
Counts
121 → 20
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
94.0%
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
84.2%
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
60.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
58.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
43.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
20.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
31.3%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
31.3%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
3.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
31.2%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
11.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
16.0%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
16.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
5.3%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
5.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
24.1%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
23.8%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
5.4%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
58.1%
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
Compiler

Compiled 1 102 to 772 computations (29.9% saved)

simplify378.0ms (3.9%)

Memory
-9.3MiB live, 216.2MiB allocated; 39ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 20 expressions of interest:

NewMetricScoreProgram
cost-diff0
#s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))
cost-diff0
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
cost-diff2
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
cost-diff0
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
cost-diff0
#s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))
cost-diff0
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
cost-diff0
#s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))
cost-diff0
(*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))
cost-diff0
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
cost-diff0
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
cost-diff0
(*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)
cost-diff0
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
cost-diff0
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
cost-diff0
(fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
cost-diff0
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056462
075458
1123458
2252458
3593458
41526450
56792450
08070432
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
#s(literal 1/8 binary64)
x
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(literal 1/2 binary64)
(log1p.f64 #s(literal 1 binary64))
#s(literal 1 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x))
(*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(literal 1/2 binary64)
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x)))
(*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))
#s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))
(/.f64 (neg.f64 y) x)
(neg.f64 y)
y
x
(*.f64 x x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)))
#s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
(-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x)
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
(/.f64 x y)
x
y
#s(literal 1/2 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)))
#s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
(fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x))
(/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y)
(fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64))
#s(literal 1/8 binary64)
x
#s(literal 1/2 binary64)
y
(neg.f64 x)
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
#s(literal 1/8 binary64)
x
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(literal 1/2 binary64)
(log1p.f64 #s(literal 1 binary64))
#s(literal 1 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x))
(*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(literal 1/2 binary64)
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x)))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))))
(*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))
(*.f64 (*.f64 x x) #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)))
#s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))
(/.f64 (neg.f64 y) x)
(neg.f64 y)
y
x
(*.f64 x x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (fma.f64 (/.f64 #s(literal 1/2 binary64) y) x (neg.f64 x)) y))))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (fma.f64 (/.f64 #s(literal 1/2 binary64) y) x (neg.f64 x)) y)))
#s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))
#s(approx (* (- 1/2 y) x) (*.f64 (fma.f64 (/.f64 #s(literal 1/2 binary64) y) x (neg.f64 x)) y))
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
(*.f64 (fma.f64 (/.f64 #s(literal 1/2 binary64) y) x (neg.f64 x)) y)
(-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x)
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
(/.f64 x y)
x
y
#s(literal 1/2 binary64)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (-.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) #s(literal 1 binary64)) y) x))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (-.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) #s(literal 1 binary64)) y) x)))
#s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))
#s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (-.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) #s(literal 1 binary64)) y) x))
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
(*.f64 (-.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) #s(literal 1 binary64)) y) x)
(fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x))
(/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y)
(fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64))
#s(literal 1/8 binary64)
x
#s(literal 1/2 binary64)
y
(neg.f64 x)

localize121.0ms (1.2%)

Memory
30.8MiB live, 117.6MiB allocated; 11ms collecting garbage
Localize:

Found 20 expressions of interest:

NewMetricScoreProgram
accuracy0.1171875
(fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x))
accuracy2.3836948518161516
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
accuracy12.985524366857009
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
accuracy35.91404446294096
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)))
accuracy0.20281039438061302
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
accuracy4.3252730395302805
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
accuracy8.325468006631157
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
accuracy35.92966946295431
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)))
accuracy12.985524366857009
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
accuracy23.960267319413312
(*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))
accuracy35.91404446294096
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x)))
accuracy40.25358740019652
#s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))
accuracy0.0078125
(*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)
accuracy8.325468006631157
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
accuracy27.885365742453708
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
accuracy35.92966946295431
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x))
accuracy0.00390625
(fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
accuracy0.01171875
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64)))
accuracy12.985524366857009
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
accuracy27.885365742453708
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
Samples
99.0ms255×0valid
0.0ms1valid
Compiler

Compiled 253 to 37 computations (85.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 43.0ms
ival-mult: 15.0ms (34.5% of total)
ival-div: 7.0ms (16.1% of total)
ival-add: 7.0ms (16.1% of total)
ival-sub: 5.0ms (11.5% of total)
ival-log1p: 5.0ms (11.5% of total)
ival-exp: 2.0ms (4.6% of total)
ival-neg: 2.0ms (4.6% of total)
exact: 1.0ms (2.3% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series35.0ms (0.4%)

Memory
-8.8MiB live, 53.8MiB allocated; 8ms collecting garbage
Counts
21 → 79
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x))
(*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x)))
(*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))
#s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)))
#s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)))
#s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
(fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x))
Outputs
(log 2)
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(- 1/2 y)
(- (+ 1/2 (* 1/8 x)) y)
(* x (- 1/2 y))
(* x (- (+ 1/2 (* 1/8 x)) y))
(/ (- 1/2 y) x)
(/ (- (+ 1/2 (* 1/8 x)) y) x)
(* x (* y (- (* 1/2 (/ 1 y)) 1)))
(* x (+ (* 1/8 x) (* y (- (* 1/2 (/ 1 y)) 1))))
(* 1/2 (/ x y))
(* x (- (* 1/2 (/ 1 y)) 1))
(* x (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(* 1/8 (pow x 2))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
(* 1/8 x)
(* x (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* x (- (+ 1/2 (/ (log 2) x)) y))
1/8
(- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x))
(* (pow x 2) (+ 1/8 (/ (* y (- (* 1/2 (/ 1 y)) 1)) x)))
(* 1/8 (/ (pow x 2) y))
(* (pow x 2) (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(* -1 (* x (- (* -1 (/ (- 1/2 y) x)) 1/8)))
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(* (pow x 2) (+ 1/8 (* -1 (/ (- y 1/2) x))))
(+ 1/8 (* -1 (/ (- y 1/2) x)))
(* -1 (* x (* y (- 1 (* 1/2 (/ 1 y))))))
(* (pow x 2) (+ 1/8 (* -1 (/ (* y (- 1 (* 1/2 (/ 1 y)))) x))))
(* (pow x 2) (+ (* -1 (/ (- 1 (* 1/2 (/ 1 y))) x)) (* 1/8 (/ 1 y))))
(log (+ 1 (exp x)))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(+ 1/2 (* 1/8 x))
(+ 1/2 (+ (* -1 y) (* 1/8 x)))
1/2
(+ 1/2 (* -1 y))
(+ (log 2) (* 1/2 x))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
(* 1/2 x)
(+ (* -1 (* x y)) (* 1/2 x))
(* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x))))
(+ (* -1 (* x y)) (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))))
(+ 1/8 (* 1/2 (/ 1 x)))
(+ 1/8 (+ (* -1 (/ y x)) (* 1/2 (/ 1 x))))
(* x (+ 1/2 (* 1/8 x)))
(+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x))))
(/ (* x (+ 1/2 (* 1/8 x))) y)
(/ (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))) y)
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(* -1 y)
(* y (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(* y (- (* 1/2 (/ 1 y)) 1))
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(* y (+ (* -1 x) (* 1/2 (/ x y))))
(* y (+ (* -1 x) (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))
(* -1 (/ y x))
(* y (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(* y (+ (* -1 x) (/ (* x (+ 1/2 (* 1/8 x))) y)))
(* -1 x)
(- (/ (* x (+ 1/2 (* 1/8 x))) y) x)
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(* -1 (* y (+ 1 (* -1 (/ (+ 1/2 (* 1/8 x)) y)))))
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(* -1 (* y (+ x (* -1/2 (/ x y)))))
(* -1 (* y (+ x (* -1 (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))))
(* -1 (* y (+ (* -1 (/ (+ 1/8 (* 1/2 (/ 1 x))) y)) (/ 1 x))))
(* -1 (* y (+ x (* -1 (/ (* x (+ 1/2 (* 1/8 x))) y)))))
Calls

6 calls:

TimeVariablePointExpression
10.0ms
x
@inf
((- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (* (- (* (/ x y) 1/2) x) y) (* (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (* (/ x y) 1/2) (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)))
5.0ms
x
@-inf
((- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (* (- (* (/ x y) 1/2) x) y) (* (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (* (/ x y) 1/2) (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)))
5.0ms
y
@0
((- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (* (- (* (/ x y) 1/2) x) y) (* (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (* (/ x y) 1/2) (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)))
5.0ms
y
@-inf
((- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (* (- (* (/ x y) 1/2) x) y) (* (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (* (/ x y) 1/2) (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)))
4.0ms
y
@inf
((- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (+ (* 1/8 x) (- 1/2 y)) (- 1/2 y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (- 1/8 (/ (+ -1/2 y) x)) (- (log (+ 1 (exp x))) (* x y)) (+ (* (- 1/2 y) x) (log (+ 1 1))) (* (- 1/2 y) x) (* (- (* (/ x y) 1/2) x) y) (* (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) y) (- (log (+ 1 (exp x))) (* x y)) (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (* (/ x y) 1/2) (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)))

simplify152.0ms (1.6%)

Memory
0.8MiB live, 140.3MiB allocated; 7ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0189673
1655665
22362651
08287601
Stop Event
iter limit
node limit
Counts
79 → 79
Calls
Call 1
Inputs
(log 2)
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(- 1/2 y)
(- (+ 1/2 (* 1/8 x)) y)
(* x (- 1/2 y))
(* x (- (+ 1/2 (* 1/8 x)) y))
(/ (- 1/2 y) x)
(/ (- (+ 1/2 (* 1/8 x)) y) x)
(* x (* y (- (* 1/2 (/ 1 y)) 1)))
(* x (+ (* 1/8 x) (* y (- (* 1/2 (/ 1 y)) 1))))
(* 1/2 (/ x y))
(* x (- (* 1/2 (/ 1 y)) 1))
(* x (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(* 1/8 (pow x 2))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
(* 1/8 x)
(* x (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(* x (- (+ 1/2 (/ (log 2) x)) y))
1/8
(- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x))
(* (pow x 2) (+ 1/8 (/ (* y (- (* 1/2 (/ 1 y)) 1)) x)))
(* 1/8 (/ (pow x 2) y))
(* (pow x 2) (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(* -1 (* x (- (* -1 (/ (- 1/2 y) x)) 1/8)))
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(* (pow x 2) (+ 1/8 (* -1 (/ (- y 1/2) x))))
(+ 1/8 (* -1 (/ (- y 1/2) x)))
(* -1 (* x (* y (- 1 (* 1/2 (/ 1 y))))))
(* (pow x 2) (+ 1/8 (* -1 (/ (* y (- 1 (* 1/2 (/ 1 y)))) x))))
(* (pow x 2) (+ (* -1 (/ (- 1 (* 1/2 (/ 1 y))) x)) (* 1/8 (/ 1 y))))
(log (+ 1 (exp x)))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(+ 1/2 (* 1/8 x))
(+ 1/2 (+ (* -1 y) (* 1/8 x)))
1/2
(+ 1/2 (* -1 y))
(+ (log 2) (* 1/2 x))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
(* 1/2 x)
(+ (* -1 (* x y)) (* 1/2 x))
(* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x))))
(+ (* -1 (* x y)) (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))))
(+ 1/8 (* 1/2 (/ 1 x)))
(+ 1/8 (+ (* -1 (/ y x)) (* 1/2 (/ 1 x))))
(* x (+ 1/2 (* 1/8 x)))
(+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x))))
(/ (* x (+ 1/2 (* 1/8 x))) y)
(/ (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))) y)
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(* -1 y)
(* y (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(* y (- (* 1/2 (/ 1 y)) 1))
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(* y (+ (* -1 x) (* 1/2 (/ x y))))
(* y (+ (* -1 x) (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))
(* -1 (/ y x))
(* y (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(* y (+ (* -1 x) (/ (* x (+ 1/2 (* 1/8 x))) y)))
(* -1 x)
(- (/ (* x (+ 1/2 (* 1/8 x))) y) x)
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(* -1 (* y (+ 1 (* -1 (/ (+ 1/2 (* 1/8 x)) y)))))
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(* -1 (* y (+ x (* -1/2 (/ x y)))))
(* -1 (* y (+ x (* -1 (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))))
(* -1 (* y (+ (* -1 (/ (+ 1/8 (* 1/2 (/ 1 x))) y)) (/ 1 x))))
(* -1 (* y (+ x (* -1 (/ (* x (+ 1/2 (* 1/8 x))) y)))))
Outputs
(log 2)
(log1p.f64 #s(literal 1 binary64))
(+ (log 2) (* x (- 1/2 y)))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(fma.f64 (fma.f64 (fma.f64 (*.f64 x x) #s(literal -1/192 binary64) #s(literal 1/8 binary64)) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(- 1/2 y)
(-.f64 #s(literal 1/2 binary64) y)
(- (+ 1/2 (* 1/8 x)) y)
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
(* x (- 1/2 y))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(* x (- (+ 1/2 (* 1/8 x)) y))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(/ (- 1/2 y) x)
(/.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(/ (- (+ 1/2 (* 1/8 x)) y) x)
(/.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(* x (* y (- (* 1/2 (/ 1 y)) 1)))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(* x (+ (* 1/8 x) (* y (- (* 1/2 (/ 1 y)) 1))))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(* 1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
(* x (- (* 1/2 (/ 1 y)) 1))
(*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)
(* x (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(/.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) y)
(* -1 (* x y))
(*.f64 (neg.f64 x) y)
(* x (- (/ (log (+ 1 (exp x))) x) y))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x)
(* 1/8 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 1/8 binary64))
(* (pow x 2) (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(*.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64)) (*.f64 x x))
(* (pow x 2) (- (+ 1/8 (+ (* 1/2 (/ 1 x)) (/ (log 2) (pow x 2)))) (/ y x)))
(*.f64 (*.f64 (-.f64 (/.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x) #s(literal -1/8 binary64)) x) x)
(* 1/8 x)
(*.f64 #s(literal 1/8 binary64) x)
(* x (- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x)))
(*.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64)) x)
(* x (- (+ 1/2 (/ (log 2) x)) y))
(*.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x)
1/8
#s(literal 1/8 binary64)
(- (+ 1/8 (* 1/2 (/ 1 x))) (/ y x))
(-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64))
(* (pow x 2) (+ 1/8 (/ (* y (- (* 1/2 (/ 1 y)) 1)) x)))
(*.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64)) (*.f64 x x))
(* 1/8 (/ (pow x 2) y))
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))
(* (pow x 2) (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) x) y) x)
(* (pow x 2) (+ 1/8 (* -1 (/ (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x))) x))))
(*.f64 (*.f64 (-.f64 (/.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x) #s(literal -1/8 binary64)) x) x)
(* -1 (* x (- (* -1 (/ (- 1/2 y) x)) 1/8)))
(*.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64)) x)
(* -1 (* x (+ (* -1 (- 1/2 y)) (* -1 (/ (log 2) x)))))
(*.f64 (-.f64 (-.f64 (/.f64 (log1p.f64 #s(literal 1 binary64)) x) #s(literal -1/2 binary64)) y) x)
(* (pow x 2) (+ 1/8 (* -1 (/ (- y 1/2) x))))
(*.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64)) (*.f64 x x))
(+ 1/8 (* -1 (/ (- y 1/2) x)))
(-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64))
(* -1 (* x (* y (- 1 (* 1/2 (/ 1 y))))))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(* (pow x 2) (+ 1/8 (* -1 (/ (* y (- 1 (* 1/2 (/ 1 y)))) x))))
(*.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64)) (*.f64 x x))
(* (pow x 2) (+ (* -1 (/ (- 1 (* 1/2 (/ 1 y))) x)) (* 1/8 (/ 1 y))))
(*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))
(log (+ 1 (exp x)))
(log1p.f64 (exp.f64 x))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(+ 1/2 (* 1/8 x))
(fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64))
(+ 1/2 (+ (* -1 y) (* 1/8 x)))
(fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y))
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* -1 y))
(-.f64 #s(literal 1/2 binary64) y)
(+ (log 2) (* 1/2 x))
(fma.f64 #s(literal 1/2 binary64) x (log1p.f64 #s(literal 1 binary64)))
(+ (log 2) (+ (* -1 (* x y)) (* 1/2 x)))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(* 1/2 x)
(*.f64 #s(literal 1/2 binary64) x)
(+ (* -1 (* x y)) (* 1/2 x))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x))))
(*.f64 (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) x) x)
(+ (* -1 (* x y)) (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))))
(*.f64 x (-.f64 (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) x) y))
(+ 1/8 (* 1/2 (/ 1 x)))
(-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64))
(+ 1/8 (+ (* -1 (/ y x)) (* 1/2 (/ 1 x))))
(-.f64 (/.f64 (-.f64 #s(literal 1/2 binary64) y) x) #s(literal -1/8 binary64))
(* x (+ 1/2 (* 1/8 x)))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x)
(+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x))))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(/ (* x (+ 1/2 (* 1/8 x))) y)
(*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)
(/ (+ (* -1 (* x y)) (* x (+ 1/2 (* 1/8 x)))) y)
(/.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) y)
(* y (- (/ (log (+ 1 (exp x))) y) x))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* y (+ (* -1 x) (+ (/ (log 2) y) (/ (* x (+ 1/2 (* 1/8 x))) y))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(* -1 y)
(neg.f64 y)
(* y (- (+ (* 1/8 (/ x y)) (* 1/2 (/ 1 y))) 1))
(neg.f64 (fma.f64 (fma.f64 #s(literal -1/8 binary64) x #s(literal -1/2 binary64)) #s(literal 1 binary64) y))
(* y (- (* 1/2 (/ 1 y)) 1))
(*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)
(* y (+ (* -1 x) (+ (* 1/2 (/ x y)) (/ (log 2) y))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(* y (+ (* -1 x) (* 1/2 (/ x y))))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(* y (+ (* -1 x) (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))
(*.f64 x (-.f64 (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) x) y))
(* -1 (/ y x))
(/.f64 (neg.f64 y) x)
(* y (- (+ (/ 1/2 (* x y)) (* 1/8 (/ 1 y))) (/ 1 x)))
(neg.f64 (fma.f64 (-.f64 (/.f64 #s(literal -1/2 binary64) x) #s(literal 1/8 binary64)) #s(literal 1 binary64) (/.f64 y x)))
(* y (+ (* -1 x) (/ (* x (+ 1/2 (* 1/8 x))) y)))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)
(* -1 x)
(neg.f64 x)
(- (/ (* x (+ 1/2 (* 1/8 x))) y) x)
(/.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x) y)
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
(*.f64 (-.f64 (/.f64 (log1p.f64 (exp.f64 x)) y) x) y)
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* x (+ 1/2 (* 1/8 x)))) y)))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))
(* -1 (* y (+ 1 (* -1 (/ (+ 1/2 (* 1/8 x)) y)))))
(neg.f64 (fma.f64 (fma.f64 #s(literal -1/8 binary64) x #s(literal -1/2 binary64)) #s(literal 1 binary64) y))
(* -1 (* y (- 1 (* 1/2 (/ 1 y)))))
(*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)
(* -1 (* y (+ x (* -1 (/ (+ (log 2) (* 1/2 x)) y)))))
(fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))
(* -1 (* y (+ x (* -1/2 (/ x y)))))
(*.f64 (-.f64 #s(literal 1/2 binary64) y) x)
(* -1 (* y (+ x (* -1 (/ (* (pow x 2) (+ 1/8 (* 1/2 (/ 1 x)))) y)))))
(*.f64 x (-.f64 (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) x) y))
(* -1 (* y (+ (* -1 (/ (+ 1/8 (* 1/2 (/ 1 x))) y)) (/ 1 x))))
(neg.f64 (fma.f64 (-.f64 (/.f64 #s(literal -1/2 binary64) x) #s(literal 1/8 binary64)) #s(literal 1 binary64) (/.f64 y x)))
(* -1 (* y (+ x (* -1 (/ (* x (+ 1/2 (* 1/8 x))) y)))))
(*.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x)

rewrite106.0ms (1.1%)

Memory
-32.8MiB live, 68.5MiB allocated; 16ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056409
075405
0281387
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
21 → 43
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x))
(*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x)))
(*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))
#s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)))
#s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)))
#s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
(fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
(/.f64 (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x)) (*.f64 (log1p.f64 #s(literal 1 binary64)) (log1p.f64 #s(literal 1 binary64)))) (-.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x) (log1p.f64 #s(literal 1 binary64))))
(/.f64 (+.f64 (pow.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x) #s(literal 3 binary64)) (pow.f64 (log1p.f64 #s(literal 1 binary64)) #s(literal 3 binary64))) (fma.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x) (-.f64 (*.f64 (log1p.f64 #s(literal 1 binary64)) (log1p.f64 #s(literal 1 binary64))) (*.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x) (log1p.f64 #s(literal 1 binary64))))))
(fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64)))
(fma.f64 x (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) (log1p.f64 #s(literal 1 binary64)))
(+.f64 (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x) (log1p.f64 #s(literal 1 binary64)))
(+.f64 (log1p.f64 #s(literal 1 binary64)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x))
(/.f64 (-.f64 (*.f64 (*.f64 #s(literal 1/8 binary64) x) (*.f64 #s(literal 1/8 binary64) x)) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) #s(approx (- 1/2 y) #s(literal 1/2 binary64)))) (-.f64 (*.f64 #s(literal 1/8 binary64) x) #s(approx (- 1/2 y) #s(literal 1/2 binary64))))
(/.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/8 binary64) x) #s(literal 3 binary64)) (pow.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) #s(literal 3 binary64))) (fma.f64 (*.f64 #s(literal 1/8 binary64) x) (*.f64 #s(literal 1/8 binary64) x) (-.f64 (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) #s(approx (- 1/2 y) #s(literal 1/2 binary64))) (*.f64 (*.f64 #s(literal 1/8 binary64) x) #s(approx (- 1/2 y) #s(literal 1/2 binary64))))))
(fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
(fma.f64 x #s(literal 1/8 binary64) #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
(+.f64 (*.f64 #s(literal 1/8 binary64) x) #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
(+.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) (*.f64 #s(literal 1/8 binary64) x))
#s(approx (- 1/2 y) #s(literal 1/2 binary64))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x))
(*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)
(*.f64 x #s(approx (- 1/2 y) #s(literal 1/2 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))))
(*.f64 (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) x) x)
(*.f64 (*.f64 x x) #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)))
(*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))
#s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)))
#s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))
(*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y)
(*.f64 y (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)
(*.f64 y (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y)))
#s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(/.f64 (*.f64 x #s(literal 1/2 binary64)) y)
(/.f64 (-.f64 (*.f64 (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) (*.f64 x x)) (-.f64 (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x) (neg.f64 x)))
(/.f64 (+.f64 (pow.f64 (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x) #s(literal 3 binary64)) (pow.f64 (neg.f64 x) #s(literal 3 binary64))) (fma.f64 (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x) (-.f64 (*.f64 x x) (*.f64 (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x) (neg.f64 x)))))
(fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x))
(fma.f64 x (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) (neg.f64 x))
(+.f64 (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x) (neg.f64 x))
(+.f64 (neg.f64 x) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x))

eval10.0ms (0.1%)

Memory
16.9MiB live, 16.9MiB allocated; 0ms collecting garbage
Compiler

Compiled 3 573 to 401 computations (88.8% saved)

prune19.0ms (0.2%)

Memory
-17.7MiB live, 29.1MiB allocated; 2ms collecting garbage
Pruning

23 alts after pruning (14 fresh and 9 done)

PrunedKeptTotal
New89695
Fresh189
Picked145
Done156
Total9223115
Accuracy
100.0%
Counts
115 → 23
Alt Table
Click to see full alt table
StatusAccuracyProgram
94.0%
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
84.2%
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
60.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
58.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
43.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
58.9%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 (exp.f64 x)))
58.1%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64)))
20.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
31.3%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
31.3%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
3.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
31.2%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
11.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
16.0%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
16.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
5.3%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
5.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
24.1%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
5.4%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
5.3%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
20.0%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
31.2%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
5.5%
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
Compiler

Compiled 1 758 to 738 computations (58% saved)

regimes25.0ms (0.3%)

Memory
25.2MiB live, 25.3MiB allocated; 0ms collecting garbage
Counts
31 → 1
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 (exp.f64 x)))
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Outputs
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
Calls

3 calls:

8.0ms
y
8.0ms
x
7.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
100.0%1(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
100.0%1x
100.0%1y
Compiler

Compiled 11 to 12 computations (-9.1% saved)

regimes52.0ms (0.5%)

Memory
-19.9MiB live, 26.8MiB allocated; 3ms collecting garbage
Counts
29 → 2
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 2 binary64)))) (*.f64 x y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 (exp.f64 x)))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64))))
Calls

3 calls:

36.0ms
x
8.0ms
y
7.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
98.3%2(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
99.7%2x
94.0%1y
Compiler

Compiled 11 to 12 computations (-9.1% saved)

regimes9.0ms (0.1%)

Memory
8.2MiB live, 8.2MiB allocated; 0ms collecting garbage
Counts
26 → 2
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x #s(approx (- 1/2 y) #s(literal 1/2 binary64))) x (log1p.f64 #s(literal 1 binary64))))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64))))
Calls

1 calls:

7.0ms
x
Results
AccuracySegmentsBranch
99.5%2x
Compiler

Compiled 1 to 2 computations (-100% saved)

regimes8.0ms (0.1%)

Memory
7.6MiB live, 7.6MiB allocated; 0ms collecting garbage
Counts
24 → 2
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
(fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64))))
Calls

1 calls:

6.0ms
x
Results
AccuracySegmentsBranch
99.0%2x
Compiler

Compiled 1 to 2 computations (-100% saved)

regimes8.0ms (0.1%)

Memory
7.6MiB live, 7.6MiB allocated; 0ms collecting garbage
Counts
23 → 2
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
(-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y))
Calls

1 calls:

6.0ms
x
Results
AccuracySegmentsBranch
99.0%2x
Compiler

Compiled 1 to 2 computations (-100% saved)

regimes21.0ms (0.2%)

Memory
-36.6MiB live, 14.1MiB allocated; 4ms collecting garbage
Counts
22 → 3
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
Calls

2 calls:

6.0ms
x
5.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
98.5%3(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
85.9%2x
Compiler

Compiled 10 to 10 computations (0% saved)

regimes9.0ms (0.1%)

Memory
22.3MiB live, 22.3MiB allocated; 0ms collecting garbage
Counts
21 → 3
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64)))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
Calls

1 calls:

5.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
98.0%3(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 9 to 8 computations (11.1% saved)

regimes65.0ms (0.7%)

Memory
-15.3MiB live, 27.5MiB allocated; 9ms collecting garbage
Counts
19 → 1
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/2 binary64) y) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (*.f64 x x) #s(literal 1/8 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/8 (/ (+ -1/2 y) x)) (/.f64 (neg.f64 y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 #s(literal -1/2 binary64) x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (/.f64 y x))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) #s(approx (* (- 1/2 y) x) (*.f64 (-.f64 (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 1 binary64)) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/8 binary64))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x)) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 y y)) (+.f64 #s(literal 1/2 binary64) y)) x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) x #s(literal 1/2 binary64)) y) x (neg.f64 x)) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (-.f64 #s(literal 1/8 binary64) #s(approx (/ (+ -1/2 y) x) (fma.f64 (/.f64 (/.f64 #s(literal -1/2 binary64) y) x) y (/.f64 y x)))) (*.f64 x x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) #s(approx (* (- 1/8 (/ (+ -1/2 y) x)) (* x x)) (*.f64 #s(approx (+ (* (/ (+ (* 1/8 x) 1/2) y) x) (neg x)) (*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1/8 binary64)) y) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x))) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (+ (* 1/8 x) (- 1/2 y)) x) (log (+ 1 1))) (*.f64 (/.f64 (-.f64 #s(literal 1/64 binary64) (*.f64 (/.f64 (+.f64 #s(literal -1/2 binary64) y) x) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (+.f64 #s(literal 1/8 binary64) (/.f64 (+.f64 #s(literal -1/2 binary64) y) x))) (*.f64 x x))))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
Calls

3 calls:

5.0ms
x
5.0ms
y
5.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
43.5%1x
43.5%1y
43.5%1(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 11 to 12 computations (-9.1% saved)

regimes3.0ms (0%)

Memory
7.0MiB live, 7.0MiB allocated; 0ms collecting garbage
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
Calls

3 calls:

1.0ms
y
1.0ms
x
1.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
3.5%1(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
3.5%1x
3.5%1y
Compiler

Compiled 11 to 12 computations (-9.1% saved)

bsearch18.0ms (0.2%)

Memory
15.0MiB live, 15.0MiB allocated; 0ms collecting garbage
Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
16.0ms
-5.106658481665346e+40
-9702.157820860619
Samples
9.0ms176×0valid
Compiler

Compiled 386 to 330 computations (14.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-exp: 2.0ms (37.1% of total)
ival-sub: 1.0ms (18.6% of total)
ival-log1p: 1.0ms (18.6% of total)
ival-mult: 1.0ms (18.6% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

bsearch2.0ms (0%)

Memory
1.6MiB live, 1.6MiB allocated; 0ms collecting garbage
Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
1.0ms
-5.106658481665346e+40
-9702.157820860619
Compiler

Compiled 353 to 308 computations (12.7% saved)

bsearch1.0ms (0%)

Memory
1.3MiB live, 1.4MiB allocated; 0ms collecting garbage
Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
1.0ms
-5.106658481665346e+40
-9702.157820860619
Compiler

Compiled 265 to 242 computations (8.7% saved)

bsearch1.0ms (0%)

Memory
1.4MiB live, 1.4MiB allocated; 0ms collecting garbage
Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
1.0ms
-5.106658481665346e+40
-9702.157820860619
Compiler

Compiled 287 to 264 computations (8% saved)

bsearch1.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated; 0ms collecting garbage
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
0.693267601768939
0.7204212665307489
0.0ms
3.3572735064598995e-65
0.6931413563001118
Compiler

Compiled 12 to 13 computations (-8.3% saved)

bsearch1.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated; 0ms collecting garbage
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
0.693267601768939
0.7204212665307489
0.0ms
3.3572735064598995e-65
0.6931413563001118
Compiler

Compiled 12 to 13 computations (-8.3% saved)

simplify70.0ms (0.7%)

Memory
-5.1MiB live, 39.4MiB allocated; 10ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
063285
193285
2130285
3226285
4816285
56914285
Stop Event
node limit
Calls
Call 1
Inputs
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(if (<=.f64 x #s(literal -10000 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))))
(if (<=.f64 x #s(literal -10000 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))))
(if (<=.f64 x #s(literal -10000 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) (fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))))
(if (<=.f64 x #s(literal -10000 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) (-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y)))
(if (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 5928554968950589/118571099379011784113736688648896417641748464297615937576404566024103044751294464 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) (if (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 3152519739159347/4503599627370496 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))))
(if (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 5928554968950589/118571099379011784113736688648896417641748464297615937576404566024103044751294464 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) (if (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 3152519739159347/4503599627370496 binary64)) #s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64))) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))
Outputs
(fma.f64 (neg.f64 x) y (log1p.f64 (exp.f64 x)))
(if (<=.f64 x #s(literal -10000 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (fma.f64 #s(literal 1/8 binary64) x (-.f64 #s(literal 1/2 binary64) y)) x (log1p.f64 #s(literal 1 binary64)))))
(if (<=.f64 x #s(literal -10000 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 (-.f64 #s(literal 1/2 binary64) y) x (log1p.f64 #s(literal 1 binary64)))))
(if (<=.f64 x #s(literal -10000 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) (fma.f64 (neg.f64 x) y (log1p.f64 #s(approx (exp x) #s(literal 1 binary64)))))
(if (<=.f64 x #s(literal -10000 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) (-.f64 (log.f64 #s(approx (+ 1 (exp x)) #s(literal 2 binary64))) (*.f64 x y)))
(if (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 5928554968950589/118571099379011784113736688648896417641748464297615937576404566024103044751294464 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) (if (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 3152519739159347/4503599627370496 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))))
(if (or (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 5928554968950589/118571099379011784113736688648896417641748464297615937576404566024103044751294464 binary64)) (not (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 3152519739159347/4503599627370496 binary64)))) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (fma.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x (log1p.f64 #s(literal 1 binary64)))))
(if (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 5928554968950589/118571099379011784113736688648896417641748464297615937576404566024103044751294464 binary64)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) (if (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 3152519739159347/4503599627370496 binary64)) #s(approx (+ (* (neg x) y) (log (+ 1 (exp x)))) (log1p.f64 #s(literal 1 binary64))) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))))
(if (or (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 5928554968950589/118571099379011784113736688648896417641748464297615937576404566024103044751294464 binary64)) (not (<=.f64 (-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y)) #s(literal 3152519739159347/4503599627370496 binary64)))) #s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y)) #s(approx (- (log (+ 1 (exp x))) (* x y)) (log1p.f64 #s(literal 1 binary64))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (*.f64 (neg.f64 x) y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) #s(approx (+ (* (- 1/2 y) x) (log (+ 1 1))) (*.f64 #s(approx (- 1/2 y) #s(literal 1/2 binary64)) x)))

derivations846.0ms (8.7%)

Memory
23.4MiB live, 455.3MiB allocated; 52ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0159548
1555519
21942514
36802514
08110452
0820
01320
14920
035716
067193
1212192
2673192
32213192
45571192
08531158
0196719
1698689
22484657
08190588
Stop Event
fuel
iter limit
node limit
iter limit
node limit
iter limit
iter limit
iter limit
unsound
iter limit
iter limit
node limit
Compiler

Compiled 287 to 62 computations (78.4% saved)

preprocess114.0ms (1.2%)

Memory
-27.8MiB live, 119.7MiB allocated; 18ms collecting garbage
Compiler

Compiled 644 to 176 computations (72.7% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated; 0ms collecting garbage

Profiling

Loading profile data...