Data.Octree.Internal:octantDistance from Octree-0.5.4.2

Time bar (total: 755.0ms)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze0.0ms (0%)

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

Compiled 10 to 5 computations (50% saved)

sample486.0ms (64.4%)

Memory
-1.7MiB live, 707.3MiB allocated
Samples
306.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 154.0ms
ival-hypot: 146.0ms (94.7% of total)
ival-true: 5.0ms (3.2% of total)
ival-assert: 3.0ms (1.9% of total)
Bogosity

explain88.0ms (11.6%)

Memory
-29.9MiB live, 125.7MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1330-0-(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
00-0-(+.f64 (*.f64 x x) (*.f64 y y))
00-0-y
00-0-(*.f64 y y)
00-0-(*.f64 x x)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
sqrt.f64(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))oflow-rescue1170
(*.f64 y y)overflow64
(*.f64 x x)overflow72
(+.f64 (*.f64 x x) (*.f64 y y))overflow117
sqrt.f64(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))uflow-rescue160
(*.f64 y y)underflow60
(*.f64 x x)underflow64
(+.f64 (*.f64 x x) (*.f64 y y))underflow16
Confusion
Predicted +Predicted -
+1330
-0123
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+13300
-00123
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0123
1133
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
36.0ms512×0valid
Compiler

Compiled 81 to 28 computations (65.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 18.0ms
ival-hypot: 8.0ms (44.8% of total)
ival-mult: 7.0ms (39.2% of total)
ival-add: 2.0ms (11.2% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess3.0ms (0.3%)

Memory
5.2MiB live, 5.2MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Compiler

Compiled 8 to 6 computations (25% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0.1%)

Memory
0.7MiB live, 0.7MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
51.6%
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Compiler

Compiled 8 to 6 computations (25% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 y y)
cost-diff0
(*.f64 x x)
cost-diff0
(+.f64 (*.f64 x x) (*.f64 y y))
cost-diff0
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
x
(*.f64 y y)
y
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
x
(*.f64 y y)
y

localize24.0ms (3.1%)

Memory
-4.5MiB live, 33.6MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y y)
accuracy0.0
(*.f64 x x)
accuracy0.00390625
(+.f64 (*.f64 x x) (*.f64 y y))
accuracy30.978688180341347
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Samples
18.0ms256×0valid
Compiler

Compiled 48 to 14 computations (70.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-hypot: 8.0ms (65.9% of total)
ival-mult: 3.0ms (24.7% of total)
ival-add: 1.0ms (8.2% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series5.0ms (0.7%)

Memory
8.8MiB live, 8.8MiB allocated
Counts
4 → 27
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
(*.f64 y y)
Outputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
(pow y 2)
(+ (pow x 2) (pow y 2))
(pow x 2)
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* (pow x 2) (+ 1 (/ (pow y 2) (pow x 2))))
(* -1 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2))))))))
(+ x (* 1/2 (/ (pow y 2) x)))
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(+ x (* (pow y 2) (+ (* (pow y 2) (- (* 1/16 (/ (pow y 2) (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x)))))
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* (pow y 2) (+ 1 (/ (pow x 2) (pow y 2))))
(* -1 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2))))))))
Calls

6 calls:

TimeVariablePointExpression
1.0ms
x
@0
((sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* x x) (* y y))
1.0ms
x
@inf
((sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* x x) (* y y))
1.0ms
y
@inf
((sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* x x) (* y y))
1.0ms
x
@-inf
((sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* x x) (* y y))
1.0ms
y
@0
((sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* x x) (* y y))

simplify0.0ms (0.1%)

Memory
1.0MiB live, 1.0MiB allocated
Algorithm
egg-herbie
Counts
27 → 4
Calls
Call 1
Inputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
(pow y 2)
(+ (pow x 2) (pow y 2))
(pow x 2)
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* (pow x 2) (+ 1 (/ (pow y 2) (pow x 2))))
(* -1 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2))))))))
(+ x (* 1/2 (/ (pow y 2) x)))
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(+ x (* (pow y 2) (+ (* (pow y 2) (- (* 1/16 (/ (pow y 2) (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x)))))
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* (pow y 2) (+ 1 (/ (pow x 2) (pow y 2))))
(* -1 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2))))))))
Outputs
y
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(+ y (* 1/2 (/ (pow x 2) y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(*.f64 x x)
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
(*.f64 y y)

rewrite0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Counts
4 → 4
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
(*.f64 y y)
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
(*.f64 y y)

eval1.0ms (0.1%)

Memory
1.6MiB live, 1.6MiB allocated
Compiler

Compiled 89 to 14 computations (84.3% saved)

prune1.0ms (0.2%)

Memory
3.1MiB live, 3.1MiB allocated
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New538
Fresh000
Picked011
Done000
Total549
Accuracy
51.8%
Counts
9 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
51.6%
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
6.7%
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
5.7%
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
5.6%
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
Compiler

Compiled 48 to 32 computations (33.3% saved)

simplify2.0ms (0.2%)

Memory
-37.9MiB live, 0.9MiB allocated
Algorithm
egg-herbie
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 y y)
cost-diff0
(*.f64 x x)
cost-diff0
(+.f64 (*.f64 x x) (*.f64 y y))
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
cost-diff0
(*.f64 y y)
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
cost-diff0
(*.f64 x x)
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
(*.f64 x x)
x
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
(*.f64 y y)
y
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
x
(*.f64 y y)
y
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
(*.f64 x x)
x
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
(*.f64 y y)
y
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
x
(*.f64 y y)
y

localize23.0ms (3%)

Memory
35.4MiB live, 35.4MiB allocated
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y y)
accuracy0.0
(*.f64 x x)
accuracy0.00390625
(+.f64 (*.f64 x x) (*.f64 y y))
accuracy59.68176899238098
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
accuracy0.0
(*.f64 y y)
accuracy60.37912890938229
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
accuracy0.0
(*.f64 x x)
accuracy60.41903460481583
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
Samples
17.0ms256×0valid
Compiler

Compiled 112 to 20 computations (82.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-hypot: 5.0ms (55.4% of total)
ival-mult: 3.0ms (33.3% of total)
ival-add: 1.0ms (11.1% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series6.0ms (0.8%)

Memory
-37.9MiB live, 5.0MiB allocated
Counts
6 → 27
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
(*.f64 x x)
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
(*.f64 y y)
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
Outputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
(pow x 2)
(pow y 2)
(+ (pow x 2) (pow y 2))
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* (pow x 2) (+ 1 (/ (pow y 2) (pow x 2))))
(* -1 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2))))))))
(+ x (* 1/2 (/ (pow y 2) x)))
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(+ x (* (pow y 2) (+ (* (pow y 2) (- (* 1/16 (/ (pow y 2) (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x)))))
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* (pow y 2) (+ 1 (/ (pow x 2) (pow y 2))))
(* -1 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2))))))))
Calls

6 calls:

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

simplify1.0ms (0.1%)

Memory
0.8MiB live, 0.8MiB allocated
Algorithm
egg-herbie
Counts
27 → 6
Calls
Call 1
Inputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
(pow x 2)
(pow y 2)
(+ (pow x 2) (pow y 2))
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* (pow x 2) (+ 1 (/ (pow y 2) (pow x 2))))
(* -1 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2))))))))
(+ x (* 1/2 (/ (pow y 2) x)))
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(+ x (* (pow y 2) (+ (* (pow y 2) (- (* 1/16 (/ (pow y 2) (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x)))))
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* (pow y 2) (+ 1 (/ (pow x 2) (pow y 2))))
(* -1 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2))))))))
Outputs
y
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
(+ y (* 1/2 (/ (pow x 2) y)))
(*.f64 x x)
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
(*.f64 y y)
(pow x 2)
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
(pow y 2)
(+.f64 (*.f64 x x) (*.f64 y y))

rewrite0.0ms (0.1%)

Memory
0.8MiB live, 0.8MiB allocated
Counts
6 → 6
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
(*.f64 x x)
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
(*.f64 y y)
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
(*.f64 x x)
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
(*.f64 y y)
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))

eval1.0ms (0.2%)

Memory
2.4MiB live, 2.4MiB allocated
Compiler

Compiled 240 to 20 computations (91.7% saved)

prune2.0ms (0.3%)

Memory
3.9MiB live, 3.9MiB allocated
Pruning

5 alts after pruning (1 fresh and 4 done)

PrunedKeptTotal
New12113
Fresh000
Picked033
Done011
Total12517
Accuracy
51.8%
Counts
17 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
51.6%
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
6.7%
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
6.7%
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
5.7%
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
5.6%
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
Compiler

Compiled 81 to 45 computations (44.4% saved)

simplify1.0ms (0.1%)

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

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
cost-diff0
#s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y))))
cost-diff0
(+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y))
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
(+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y))
#s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y))))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
x
(*.f64 y y)
y
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
(+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y))
#s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y))))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
x
(*.f64 y y)
y

localize23.0ms (3.1%)

Memory
-4.1MiB live, 34.1MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.00390625
(+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y))
accuracy59.68176899238098
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
accuracy59.68176899238098
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
accuracy60.41903460481583
#s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y))))
Samples
16.0ms256×0valid
Compiler

Compiled 151 to 21 computations (86.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-hypot: 5.0ms (55.5% of total)
ival-mult: 3.0ms (33.3% of total)
ival-add: 1.0ms (11.1% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series3.0ms (0.3%)

Memory
4.2MiB live, 4.2MiB allocated
Counts
4 → 27
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
(+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y))
#s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y))))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
Outputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
(pow y 2)
(+ (pow x 2) (pow y 2))
(pow x 2)
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* (pow x 2) (+ 1 (/ (pow y 2) (pow x 2))))
(* -1 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2))))))))
(+ x (* 1/2 (/ (pow y 2) x)))
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(+ x (* (pow y 2) (+ (* (pow y 2) (- (* 1/16 (/ (pow y 2) (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x)))))
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* (pow y 2) (+ 1 (/ (pow x 2) (pow y 2))))
(* -1 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2))))))))
Calls

6 calls:

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

simplify1.0ms (0.1%)

Memory
0.8MiB live, 0.8MiB allocated
Algorithm
egg-herbie
Counts
27 → 4
Calls
Call 1
Inputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
(pow y 2)
(+ (pow x 2) (pow y 2))
(pow x 2)
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* (pow x 2) (+ 1 (/ (pow y 2) (pow x 2))))
(* -1 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (+ (* 1/16 (/ (pow y 6) (pow x 6))) (* 1/2 (/ (pow y 2) (pow x 2))))))))
(+ x (* 1/2 (/ (pow y 2) x)))
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(+ x (* (pow y 2) (+ (* (pow y 2) (- (* 1/16 (/ (pow y 2) (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x)))))
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* (pow y 2) (+ 1 (/ (pow x 2) (pow y 2))))
(* -1 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (+ (* 1/16 (/ (pow x 6) (pow y 6))) (* 1/2 (/ (pow x 2) (pow y 2))))))))
Outputs
y
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
(+ y (* 1/2 (/ (pow x 2) y)))
(+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y))
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
#s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y))))
(+ y (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow y 5))) (* 1/8 (/ 1 (pow y 3))))) (* 1/2 (/ 1 y)))))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))

rewrite0.0ms (0.1%)

Memory
0.7MiB live, 0.7MiB allocated
Counts
4 → 4
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
(+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y))
#s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y))))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
(+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y))
#s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y))))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))

eval1.0ms (0.1%)

Memory
1.4MiB live, 1.4MiB allocated
Compiler

Compiled 228 to 16 computations (93% saved)

prune2.0ms (0.3%)

Memory
4.5MiB live, 4.5MiB allocated
Pruning

5 alts after pruning (0 fresh and 5 done)

PrunedKeptTotal
New707
Fresh000
Picked011
Done044
Total7512
Accuracy
51.8%
Counts
12 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
51.6%
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
6.7%
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
6.7%
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
5.7%
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
5.6%
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
Compiler

Compiled 162 to 61 computations (62.3% saved)

regimes15.0ms (2%)

Memory
-9.2MiB live, 29.4MiB allocated
Counts
5 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Calls

6 calls:

4.0ms
x
2.0ms
y
2.0ms
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
2.0ms
(+.f64 (*.f64 x x) (*.f64 y y))
2.0ms
(*.f64 y y)
Results
AccuracySegmentsBranch
51.6%1x
51.6%1y
51.6%1(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
51.6%1(+.f64 (*.f64 x x) (*.f64 y y))
51.6%1(*.f64 x x)
51.6%1(*.f64 y y)
Compiler

Compiled 23 to 21 computations (8.7% saved)

regimes12.0ms (1.6%)

Memory
29.6MiB live, 29.6MiB allocated
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 #s(approx (* x x) #s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))) (*.f64 y y)))
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
Calls

6 calls:

2.0ms
x
2.0ms
y
2.0ms
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
2.0ms
(+.f64 (*.f64 x x) (*.f64 y y))
2.0ms
(*.f64 y y)
Results
AccuracySegmentsBranch
6.7%1x
6.7%1(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
6.7%1(+.f64 (*.f64 x x) (*.f64 y y))
6.7%1(*.f64 x x)
6.7%1y
6.7%1(*.f64 y y)
Compiler

Compiled 23 to 21 computations (8.7% saved)

regimes9.0ms (1.2%)

Memory
-15.8MiB live, 23.3MiB allocated
Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
Calls

6 calls:

2.0ms
(*.f64 y y)
1.0ms
x
1.0ms
y
1.0ms
(+.f64 (*.f64 x x) (*.f64 y y))
1.0ms
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Results
AccuracySegmentsBranch
5.7%1(*.f64 x x)
5.7%1x
5.7%1(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
5.7%1(+.f64 (*.f64 x x) (*.f64 y y))
5.7%1(*.f64 y y)
5.7%1y
Compiler

Compiled 23 to 21 computations (8.7% saved)

regimes7.0ms (0.9%)

Memory
17.2MiB live, 17.2MiB allocated
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
Calls

6 calls:

1.0ms
x
1.0ms
y
1.0ms
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
1.0ms
(+.f64 (*.f64 x x) (*.f64 y y))
1.0ms
(*.f64 y y)
Results
AccuracySegmentsBranch
5.6%1(*.f64 y y)
5.6%1(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
5.6%1(+.f64 (*.f64 x x) (*.f64 y y))
5.6%1(*.f64 x x)
5.6%1x
5.6%1y
Compiler

Compiled 23 to 21 computations (8.7% saved)

simplify6.0ms (0.8%)

Memory
-30.4MiB live, 10.5MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) (+.f64 (*.f64 x x) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 y y))
#s(approx (sqrt (+ (* x x) (* y y))) (*.f64 x x))

soundness1.0ms (0.1%)

Memory
1.5MiB live, 1.5MiB allocated
Stop Event
done
Compiler

Compiled 48 to 13 computations (72.9% saved)

preprocess31.0ms (4.2%)

Memory
34.2MiB live, 70.6MiB allocated
Compiler

Compiled 150 to 64 computations (57.3% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...