sqrt E (should all be same)

Time bar (total: 964.0ms)

analyze0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 10 to 6 computations (40% saved)

sample523.0ms (54.3%)

Memory
48.6MiB live, 651.8MiB allocated
Samples
365.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 225.0ms
ival-pow2: 108.0ms (47.9% of total)
ival-sqrt: 71.0ms (31.5% of total)
ival-add: 39.0ms (17.3% of total)
ival-true: 5.0ms (2.2% of total)
ival-assert: 3.0ms (1.3% of total)
Bogosity

preprocess20.0ms (2.1%)

Memory
-17.6MiB live, 20.3MiB allocated
Algorithm
egg-herbie
Rules
52×unsub-neg
50×associate-*r*
30×distribute-rgt-neg-out
26×distribute-lft-neg-out
26×associate-*l*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01020
12019
24319
314619
426119
529019
629219
056
176
2126
3156
0153
Stop Event
iter limit
saturated
saturated
Calls
Call 1
Inputs
(sqrt (+ (pow x 2) (pow x 2)))
Outputs
(sqrt (+ (pow x 2) (pow x 2)))
(hypot.f64 x x)
Call 2
Inputs
(sqrt (+ (pow x 2) (pow x 2)))
(sqrt (+ (pow (neg x) 2) (pow (neg x) 2)))
(neg (sqrt (+ (pow (neg x) 2) (pow (neg x) 2))))
Outputs
(sqrt (+ (pow x 2) (pow x 2)))
(sqrt (* x (+ x x)))
(sqrt (+ (pow (neg x) 2) (pow (neg x) 2)))
(sqrt (* x (+ x x)))
(neg (sqrt (+ (pow (neg x) 2) (pow (neg x) 2))))
(neg (sqrt (* x (+ x x))))
Symmetry

(abs x)

explain80.0ms (8.4%)

Memory
-1.0MiB live, 134.2MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1170-9(1.7010306538644048e-159)(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
00-0-(pow.f64 x #s(literal 2 binary64))
00-0-#s(literal 2 binary64)
00-0-(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
sqrt.f64(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))uflow-rescue570
(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))underflow57
(pow.f64 x #s(literal 2 binary64))underflow114
sqrt.f64(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))oflow-rescue510
(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))overflow51
(pow.f64 x #s(literal 2 binary64))overflow102
Confusion
Predicted +Predicted -
+1089
-0139
Precision
1.0
Recall
0.9230769230769231
Confusion?
Predicted +Predicted MaybePredicted -
+10809
-00139
Precision?
1.0
Recall?
0.9230769230769231
Freqs
test
numberfreq
0148
1108
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
24.0ms512×0valid
Compiler

Compiled 62 to 24 computations (61.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-pow2: 5.0ms (41.1% of total)
ival-sqrt: 4.0ms (32.9% of total)
ival-add: 2.0ms (16.5% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

eval0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Compiler

Compiled 1 to 1 computations (0% saved)

prune1.0ms (0.1%)

Memory
1.1MiB live, 1.1MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
59.1%
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
Compiler

Compiled 9 to 5 computations (44.4% saved)

simplify3.0ms (0.3%)

Memory
4.1MiB live, 4.1MiB allocated
Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff128
(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))
cost-diff192
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
cost-diff6336
(pow.f64 x #s(literal 2 binary64))
Rules
14×*-lowering-*.f32
14×*-lowering-*.f64
*-commutative
+-lowering-+.f64
count-2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0516
1716
21216
31516
01513
Stop Event
iter limit
saturated
Calls
Call 1
Inputs
(sqrt (+ (pow x 2) (pow x 2)))
(+ (pow x 2) (pow x 2))
(pow x 2)
x
2
Outputs
(sqrt (+ (pow x 2) (pow x 2)))
(hypot.f64 x x)
(+ (pow x 2) (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(pow x 2)
(*.f64 x x)
x
2
#s(literal 2 binary64)

localize23.0ms (2.4%)

Memory
-11.8MiB live, 25.2MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy100.0%
(pow.f64 x #s(literal 2 binary64))
accuracy100.0%
(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))
accuracy59.1%
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
Samples
16.0ms256×0valid
Compiler

Compiled 22 to 7 computations (68.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 11.0ms
ival-pow2: 7.0ms (65.7% of total)
ival-sqrt: 2.0ms (18.8% of total)
ival-add: 1.0ms (9.4% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series3.0ms (0.3%)

Memory
3.6MiB live, 3.6MiB allocated
Counts
3 → 36
Calls
Call 1
Inputs
#<alt (pow x 2)>
#<alt (sqrt (+ (pow x 2) (pow x 2)))>
#<alt (+ (pow x 2) (pow x 2))>
Outputs
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (pow x 2)>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* -1 (* x (sqrt 2)))>
#<alt (* -1 (* x (sqrt 2)))>
#<alt (* -1 (* x (sqrt 2)))>
#<alt (* -1 (* x (sqrt 2)))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
#<alt (* 2 (pow x 2))>
Calls

9 calls:

TimeVariablePointExpression
1.0ms
x
@0
(sqrt (+ (pow x 2) (pow x 2)))
0.0ms
x
@0
(+ (pow x 2) (pow x 2))
0.0ms
x
@inf
(pow x 2)
0.0ms
x
@inf
(sqrt (+ (pow x 2) (pow x 2)))
0.0ms
x
@0
(pow x 2)

rewrite40.0ms (4.2%)

Memory
21.7MiB live, 59.1MiB allocated
Algorithm
batch-egg-rewrite
Rules
70×*-lowering-*.f32
70×*-lowering-*.f64
44×accelerator-lowering-fma.f32
44×accelerator-lowering-fma.f64
34×pow-lowering-pow.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0514
12510
01679
Stop Event
iter limit
iter limit
iter limit
unsound
Counts
3 → 33
Calls
Call 1
Inputs
(pow x 2)
(sqrt (+ (pow x 2) (pow x 2)))
(+ (pow x 2) (pow x 2))
Outputs
(exp.f64 (*.f64 #s(literal 2 binary64) (log.f64 x)))
(pow.f64 x #s(literal 2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1 binary64))
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 2 binary64))
(*.f64 x x)
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)))
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #s(literal 1/2 binary64)))
(hypot.f64 x x)
(hypot.f64 x (exp.f64 (log.f64 x)))
(hypot.f64 (exp.f64 (log.f64 x)) x)
(hypot.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)))
(sqrt.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (sqrt.f64 (*.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (sqrt.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64))))
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64)))
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) (pow.f64 (*.f64 x x) #s(literal 1/2 binary64)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 (*.f64 x x)))
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)))
(+.f64 (*.f64 x x) (*.f64 x x))
(-.f64 (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)))
(fma.f64 x x (*.f64 x x))
(fma.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)) (*.f64 x x))
(/.f64 (*.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)))
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64))
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (*.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))))
(/.f64 (neg.f64 (*.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (neg.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64))))
(*.f64 x (+.f64 x x))
(*.f64 #s(literal 2 binary64) (*.f64 x x))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 (*.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64))))
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64)))
(*.f64 (*.f64 #s(literal 2 binary64) x) x)

simplify13.0ms (1.3%)

Memory
-25.3MiB live, 18.4MiB allocated
Algorithm
egg-herbie
Rules
38×*-lowering-*.f32
38×*-lowering-*.f64
38×accelerator-lowering-fma.f32
38×accelerator-lowering-fma.f64
36×+-lowering-+.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08148
115148
232148
338148
442148
554148
666148
777148
897148
9102148
0102148
Stop Event
iter limit
saturated
Counts
36 → 36
Calls
Call 1
Inputs
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* -1 (* x (sqrt 2)))
(* -1 (* x (sqrt 2)))
(* -1 (* x (sqrt 2)))
(* -1 (* x (sqrt 2)))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
Outputs
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* -1 (* x (sqrt 2)))
(-.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
(* -1 (* x (sqrt 2)))
(-.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
(* -1 (* x (sqrt 2)))
(-.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
(* -1 (* x (sqrt 2)))
(-.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(* 2 (pow x 2))
(*.f64 x (*.f64 x #s(literal 2 binary64)))

eval8.0ms (0.8%)

Memory
16.5MiB live, 16.5MiB allocated
Compiler

Compiled 718 to 105 computations (85.4% saved)

prune7.0ms (0.7%)

Memory
-28.2MiB live, 10.7MiB allocated
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New85287
Fresh000
Picked101
Done000
Total86288
Accuracy
100.0%
Counts
88 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.3%
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
Compiler

Compiled 9 to 6 computations (33.3% saved)

simplify4.0ms (0.4%)

Memory
4.7MiB live, 4.7MiB allocated
Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(hypot.f64 x x)
cost-diff0
(sqrt.f64 #s(literal 2 binary64))
cost-diff0
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
Rules
18×*-lowering-*.f32
18×*-lowering-*.f64
*-commutative
sqrt-lowering-sqrt.f64
+-lowering-+.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0715
11115
21415
31715
01712
Stop Event
iter limit
saturated
Calls
Call 1
Inputs
(* x (sqrt 2))
x
(sqrt 2)
2
(sqrt (+ (* x x) (* x x)))
x
Outputs
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
x
(sqrt 2)
(sqrt.f64 #s(literal 2 binary64))
2
#s(literal 2 binary64)
(sqrt (+ (* x x) (* x x)))
(hypot.f64 x x)
x

localize20.0ms (2.1%)

Memory
28.8MiB live, 28.8MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy100.0%
(hypot.f64 x x)
accuracy100.0%
(sqrt.f64 #s(literal 2 binary64))
accuracy99.3%
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
Samples
13.0ms256×0valid
Compiler

Compiled 14 to 7 computations (50% saved)

Precisions
Click to see histograms. Total time spent on operations: 8.0ms
ival-hypot: 4.0ms (51.5% of total)
ival-mult: 2.0ms (25.8% of total)
ival-sqrt: 2.0ms (25.8% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series1.0ms (0.1%)

Memory
1.0MiB live, 1.0MiB allocated
Counts
3 → 24
Calls
Call 1
Inputs
#<alt (* x (sqrt 2))>
#<alt (sqrt 2)>
#<alt (sqrt (+ (* x x) (* x x)))>
Outputs
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* -1 (* x (sqrt 2)))>
#<alt (* -1 (* x (sqrt 2)))>
#<alt (* -1 (* x (sqrt 2)))>
#<alt (* -1 (* x (sqrt 2)))>
Calls

6 calls:

TimeVariablePointExpression
0.0ms
x
@-inf
(* x (sqrt 2))
0.0ms
x
@0
(* x (sqrt 2))
0.0ms
x
@0
(sqrt (+ (* x x) (* x x)))
0.0ms
x
@inf
(sqrt (+ (* x x) (* x x)))
0.0ms
x
@inf
(* x (sqrt 2))

rewrite27.0ms (2.8%)

Memory
-13.5MiB live, 24.5MiB allocated
Algorithm
batch-egg-rewrite
Rules
74×*-lowering-*.f32
74×*-lowering-*.f64
42×accelerator-lowering-fma.f32
42×accelerator-lowering-fma.f64
34×pow-lowering-pow.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0712
12410
01649
Stop Event
iter limit
iter limit
iter limit
unsound
Counts
3 → 20
Calls
Call 1
Inputs
(* x (sqrt 2))
(sqrt 2)
(sqrt (+ (* x x) (* x x)))
Outputs
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))
(sqrt.f64 #s(literal 2 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #s(literal 1/2 binary64)))
(hypot.f64 x x)
(hypot.f64 x (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x)
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(sqrt.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (sqrt.f64 (*.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (sqrt.f64 (+.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64))))
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64)))
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (pow.f64 (*.f64 x x) #s(literal 1/2 binary64)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 (*.f64 x x)))
(*.f64 (pow.f64 x #s(literal 1/2 binary64)) (pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/2 binary64)))
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x)))
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)))

simplify7.0ms (0.7%)

Memory
10.4MiB live, 10.4MiB allocated
Algorithm
egg-herbie
Rules
24×+-lowering-+.f64
24×*-lowering-*.f32
24×*-lowering-*.f64
24×+-lowering-+.f32
24×accelerator-lowering-fma.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06100
111100
224100
328100
432100
544100
656100
767100
879100
980100
080100
Stop Event
iter limit
saturated
Counts
24 → 24
Calls
Call 1
Inputs
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* -1 (* x (sqrt 2)))
(* -1 (* x (sqrt 2)))
(* -1 (* x (sqrt 2)))
(* -1 (* x (sqrt 2)))
Outputs
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* -1 (* x (sqrt 2)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (-.f64 #s(literal 0 binary64) x))
(* -1 (* x (sqrt 2)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (-.f64 #s(literal 0 binary64) x))
(* -1 (* x (sqrt 2)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (-.f64 #s(literal 0 binary64) x))
(* -1 (* x (sqrt 2)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (-.f64 #s(literal 0 binary64) x))

eval4.0ms (0.4%)

Memory
7.5MiB live, 7.5MiB allocated
Compiler

Compiled 246 to 54 computations (78% saved)

prune6.0ms (0.7%)

Memory
-30.1MiB live, 7.9MiB allocated
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New43144
Fresh000
Picked022
Done000
Total43346
Accuracy
100.0%
Counts
46 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.3%
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
99.1%
(*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))
Compiler

Compiled 17 to 13 computations (23.5% saved)

simplify4.0ms (0.4%)

Memory
4.8MiB live, 4.8MiB allocated
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(log.f64 #s(literal 2 binary64))
cost-diff0
(*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))
cost-diff0
(*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))
cost-diff6528
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))
Rules
*-lowering-*.f32
*-lowering-*.f64
*-commutative
pow-lowering-pow.f64
exp-lowering-exp.f32
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0717
11215
21615
01615
Stop Event
iter limit
saturated
Calls
Call 1
Inputs
(* x (exp (* (log 2) 1/2)))
x
(exp (* (log 2) 1/2))
(* (log 2) 1/2)
(log 2)
2
1/2
Outputs
(* x (exp (* (log 2) 1/2)))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
x
(exp (* (log 2) 1/2))
(sqrt.f64 #s(literal 2 binary64))
(* (log 2) 1/2)
(*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))
(log 2)
(log.f64 #s(literal 2 binary64))
2
#s(literal 2 binary64)
1/2
#s(literal 1/2 binary64)

localize28.0ms (2.9%)

Memory
-4.9MiB live, 36.0MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy100.0%
(*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))
accuracy100.0%
(log.f64 #s(literal 2 binary64))
accuracy99.3%
(*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))
accuracy98.4%
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))
Samples
20.0ms256×0valid
Compiler

Compiled 23 to 9 computations (60.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 13.0ms
ival-log: 6.0ms (44.7% of total)
ival-mult: 4.0ms (29.8% of total)
ival-exp: 3.0ms (22.3% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Counts
4 → 12
Calls
Call 1
Inputs
#<alt (exp (* (log 2) 1/2))>
#<alt (* x (exp (* (log 2) 1/2)))>
#<alt (* (log 2) 1/2)>
#<alt (log 2)>
Outputs
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
#<alt (* x (sqrt 2))>
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@0
(* x (exp (* (log 2) 1/2)))
0.0ms
x
@-inf
(* x (exp (* (log 2) 1/2)))
0.0ms
x
@inf
(* x (exp (* (log 2) 1/2)))

rewrite51.0ms (5.3%)

Memory
20.2MiB live, 57.8MiB allocated
Algorithm
batch-egg-rewrite
Rules
264×*-lowering-*.f32
264×*-lowering-*.f64
84×pow-lowering-pow.f64
84×pow-lowering-pow.f32
78×/-lowering-/.f32
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0714
11212
22312
34512
411412
040912
Stop Event
iter limit
iter limit
iter limit
unsound
Counts
4 → 63
Calls
Call 1
Inputs
(exp (* (log 2) 1/2))
(* x (exp (* (log 2) 1/2)))
(* (log 2) 1/2)
(log 2)
Outputs
(exp.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))
(exp.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 4 binary64))))
(exp.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1 binary64))))
(exp.f64 (*.f64 (log.f64 (exp.f64 #s(literal 1 binary64))) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64))))
(sqrt.f64 #s(literal 2 binary64))
(pow.f64 (sqrt.f64 #s(literal 2 binary64)) #s(literal 1 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64))
(pow.f64 (exp.f64 #s(literal 1/2 binary64)) (log.f64 #s(literal 2 binary64)))
(pow.f64 (exp.f64 #s(literal 1/2 binary64)) (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1 binary64)))
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
(pow.f64 #s(literal 4 binary64) #s(literal 1/4 binary64))
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) #s(literal 4 binary64))
(pow.f64 (exp.f64 #s(literal 1 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))
(pow.f64 (pow.f64 (exp.f64 #s(literal 1 binary64)) (log.f64 #s(literal 2 binary64))) #s(literal 1/2 binary64))
(pow.f64 (pow.f64 (exp.f64 #s(literal 1 binary64)) #s(literal 1/2 binary64)) (log.f64 #s(literal 2 binary64)))
(pow.f64 #s(literal 16 binary64) #s(literal 1/8 binary64))
(pow.f64 (exp.f64 (log.f64 #s(literal 4 binary64))) #s(literal 1/4 binary64))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))))
(*.f64 (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (*.f64 (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)))
(*.f64 (pow.f64 (exp.f64 #s(literal 1/2 binary64)) (/.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1 binary64)) #s(literal 2 binary64))) (pow.f64 (exp.f64 #s(literal 1/2 binary64)) (/.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1 binary64)) #s(literal 2 binary64))))
(*.f64 (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))))) (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))))
(*.f64 (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))))
(*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)))))
(*.f64 (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (*.f64 (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))))
(*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)))
(*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))))
(*.f64 (*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))))) (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))))
(*.f64 (*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)))
(+.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))
(fma.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))
(fma.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))
(fma.f64 #s(literal 2 binary64) (log.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))
(fma.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))
(fma.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))
(fma.f64 #s(literal 1/8 binary64) (log.f64 #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))
(neg.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal -2 binary64)))
(/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64))
(/.f64 (log.f64 #s(literal 1/2 binary64)) #s(literal -2 binary64))
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 2 binary64) (log.f64 #s(literal 2 binary64))))
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 #s(literal 2 binary64) (log.f64 #s(literal 2 binary64))) #s(literal 1 binary64)))
(/.f64 #s(literal -1 binary64) (neg.f64 (/.f64 #s(literal 2 binary64) (log.f64 #s(literal 2 binary64)))))
(/.f64 (neg.f64 (log.f64 #s(literal 1/2 binary64))) #s(literal 2 binary64))
(/.f64 (+.f64 (pow.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) #s(literal 3 binary64)) (pow.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) #s(literal 3 binary64))) (+.f64 (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) (-.f64 (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))))))
(/.f64 (-.f64 (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (-.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))))
(pow.f64 (/.f64 #s(literal 2 binary64) (log.f64 #s(literal 2 binary64))) #s(literal -1 binary64))
(*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))
(*.f64 #s(literal 1/2 binary64) (log.f64 #s(literal 2 binary64)))
(*.f64 #s(literal 2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))
(*.f64 #s(literal 1/4 binary64) (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))
(*.f64 #s(literal 1/4 binary64) (+.f64 (log.f64 #s(literal 2 binary64)) (log.f64 #s(literal 2 binary64))))
(*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) #s(literal 2 binary64))
(*.f64 (log.f64 #s(literal 1/2 binary64)) #s(literal -1/2 binary64))
(*.f64 #s(literal 1 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))
(log.f64 #s(literal 2 binary64))

simplify4.0ms (0.4%)

Memory
10.1MiB live, 10.1MiB allocated
Algorithm
egg-herbie
Rules
*-lowering-*.f32
*-lowering-*.f64
*-commutative
sqrt-lowering-sqrt.f64
sqrt-lowering-sqrt.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0448
1548
0548
Stop Event
iter limit
saturated
Counts
12 → 12
Calls
Call 1
Inputs
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
(* x (sqrt 2))
Outputs
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(* x (sqrt 2))
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))

eval11.0ms (1.2%)

Memory
-20.2MiB live, 17.1MiB allocated
Compiler

Compiled 723 to 195 computations (73% saved)

prune8.0ms (0.8%)

Memory
17.9MiB live, 17.9MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New75075
Fresh000
Picked011
Done022
Total75378
Accuracy
100.0%
Counts
78 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.3%
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
99.1%
(*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))
Compiler

Compiled 40 to 26 computations (35% saved)

regimes11.0ms (1.1%)

Memory
-21.8MiB live, 16.0MiB allocated
Accuracy

Total -26.6b remaining (-85019.2%)

Threshold costs -26.6b (-85019.2%)

Counts
4 → 1
Calls
Call 1
Inputs
(hypot.f64 x x)
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
Outputs
(hypot.f64 x x)
Calls

4 calls:

5.0ms
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
2.0ms
x
2.0ms
(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))
2.0ms
(pow.f64 x #s(literal 2 binary64))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
100.0%1(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))
100.0%1(pow.f64 x #s(literal 2 binary64))
Compiler

Compiled 23 to 13 computations (43.5% saved)

simplify6.0ms (0.7%)

Memory
11.9MiB live, 11.9MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
023
Stop Event
saturated
Calls
Call 1
Inputs
(hypot.f64 x x)
Outputs
(hypot.f64 x x)

soundness31.0ms (3.2%)

Memory
-12.3MiB live, 29.9MiB allocated
Rules
70×*-lowering-*.f32
70×*-lowering-*.f64
44×accelerator-lowering-fma.f32
44×accelerator-lowering-fma.f64
34×pow-lowering-pow.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0514
12510
01679
Stop Event
done
iter limit
iter limit
iter limit
unsound
Compiler

Compiled 8 to 4 computations (50% saved)

preprocess20.0ms (2.1%)

Memory
4.1MiB live, 42.2MiB allocated
Remove

(abs x)

Compiler

Compiled 34 to 18 computations (47.1% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...