Data.Octree.Internal:octantDistance from Octree-0.5.4.2

Time bar (total: 3.7s)

start0.0ms (0%)

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

analyze0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated; 0ms collecting garbage
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)

sample969.0ms (26.2%)

Memory
22.7MiB live, 1 154.0MiB allocated; 200ms collecting garbage
Samples
666.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 352.0ms
ival-hypot: 340.0ms (96.6% of total)
ival-true: 6.0ms (1.7% of total)
ival-assert: 3.0ms (0.9% of total)
adjust: 2.0ms (0.6% of total)
Bogosity

explain85.0ms (2.3%)

Memory
24.4MiB live, 170.6MiB allocated; 15ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1250-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-rescue1020
(*.f64 y y)overflow62
(*.f64 x x)overflow50
(+.f64 (*.f64 x x) (*.f64 y y))overflow102
sqrt.f64(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))uflow-rescue230
(*.f64 y y)underflow68
(*.f64 x x)underflow62
(+.f64 (*.f64 x x) (*.f64 y y))underflow23
Confusion
Predicted +Predicted -
+1250
-0131
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+12500
-00131
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0131
1125
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
34.0ms512×0valid
Compiler

Compiled 58 to 22 computations (62.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 20.0ms
ival-mult: 9.0ms (44.3% of total)
ival-hypot: 9.0ms (44.3% of total)
ival-add: 2.0ms (9.8% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess26.0ms (0.7%)

Memory
-19.7MiB live, 24.3MiB allocated; 15ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01642
14242
29242
311742
415542
068
0108
1218
2608
31178
41548
01543
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(hypot.f64 y x)
Symmetry

(abs y)

(abs x)

(sort x y)

Compiler

Compiled 8 to 6 computations (25% saved)

eval0.0ms (0%)

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

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
54.4%
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Compiler

Compiled 8 to 6 computations (25% saved)

simplify5.0ms (0.1%)

Memory
8.3MiB live, 8.3MiB allocated; 0ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 y y)
cost-diff0
(*.f64 x x)
cost-diff1
(+.f64 (*.f64 x x) (*.f64 y y))
cost-diff4
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0623
01023
12123
26023
311723
415423
015417
Stop Event
iter limit
saturated
iter limit
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)))
(hypot.f64 y x)
(+.f64 (*.f64 x x) (*.f64 y y))
(fma.f64 y y (*.f64 x x))
(*.f64 x x)
x
(*.f64 y y)
y

localize130.0ms (3.5%)

Memory
-29.3MiB live, 35.1MiB allocated; 81ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y y)
accuracy0.0
(*.f64 x x)
accuracy0.01171875
(+.f64 (*.f64 x x) (*.f64 y y))
accuracy29.185630171787462
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Samples
16.0ms256×0valid
Compiler

Compiled 25 to 8 computations (68% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-hypot: 4.0ms (44.8% of total)
ival-mult: 3.0ms (33.6% of total)
ival-add: 1.0ms (11.2% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series5.0ms (0.1%)

Memory
5.5MiB live, 5.5MiB allocated; 0ms collecting garbage
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))

simplify262.0ms (7.1%)

Memory
14.4MiB live, 203.0MiB allocated; 55ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0104441
1323441
21323435
36816435
08217396
Stop Event
iter limit
node limit
Counts
27 → 25
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
(+ y (* 1/2 (/ (pow x 2) y)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) y) y) (*.f64 x x) #s(literal 1/2 binary64)) y) (*.f64 x x) 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)))))
(fma.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (/.f64 x (pow.f64 y #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(pow y 2)
(*.f64 y y)
(+ (pow x 2) (pow y 2))
(fma.f64 y y (*.f64 x x))
(pow x 2)
(*.f64 x x)
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(fma.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) y) (/.f64 (/.f64 y x) x) x)
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 y x)) (/.f64 y x) #s(literal 1 binary64))) x)
(* 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)))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 y x)) (/.f64 y x) #s(literal 1 binary64)))) x)
(* (pow x 2) (+ 1 (/ (pow y 2) (pow x 2))))
(*.f64 (fma.f64 (/.f64 (/.f64 y x) x) y #s(literal 1 binary64)) (*.f64 x x))
(* -1 x)
(neg.f64 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(*.f64 (fma.f64 (/.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64))) x)
(* -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))))))))
(*.f64 (fma.f64 #s(literal -1/16 binary64) (/.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 x #s(literal 6 binary64))) (fma.f64 (/.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64)))) x)
(+ x (* 1/2 (/ (pow y 2) x)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) x) (*.f64 y y) x)
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) x) x) (*.f64 y y) #s(literal 1/2 binary64)) x) (*.f64 y y) 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)))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (/.f64 y (pow.f64 x #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 y y) (/.f64 #s(literal 1/2 binary64) x)) (*.f64 y y) x)
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(*.f64 (fma.f64 (/.f64 (/.f64 (*.f64 x x) y) y) #s(literal 1/2 binary64) #s(literal 1 binary64)) y)
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(*.f64 (fma.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) #s(literal -1/8 binary64) (fma.f64 (/.f64 (/.f64 (*.f64 x x) y) y) #s(literal 1/2 binary64) #s(literal 1 binary64))) y)
(* 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)))))))
(*.f64 (fma.f64 (pow.f64 x #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) #s(literal -1/8 binary64) (fma.f64 (/.f64 (/.f64 (*.f64 x x) y) y) #s(literal 1/2 binary64) #s(literal 1 binary64)))) y)
(* (pow y 2) (+ 1 (/ (pow x 2) (pow y 2))))
(*.f64 (fma.f64 (/.f64 (/.f64 (*.f64 x x) y) y) y y) y)
(* -1 y)
(neg.f64 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) y) (/.f64 (*.f64 x x) y) #s(literal -1 binary64)) y)
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(*.f64 (fma.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) y) (/.f64 (*.f64 x x) y) #s(literal -1 binary64))) y)
(* -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))))))))
(*.f64 (fma.f64 #s(literal -1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) y) (/.f64 (*.f64 x x) y) #s(literal -1 binary64)))) y)

rewrite83.0ms (2.3%)

Memory
25.0MiB live, 67.7MiB allocated; 11ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0621
01021
13921
034615
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
4 → 171
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
(*.f64 (pow.f64 (fma.f64 y y (*.f64 x x)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 y y (*.f64 x x)) #s(literal 1/4 binary64)))
(pow.f64 (fma.f64 y y (*.f64 x x)) #s(literal 1/2 binary64))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64)))) (sqrt.f64 (*.f64 (+.f64 x y) (-.f64 x y))))
(/.f64 (hypot.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (sqrt.f64 (+.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 x #s(literal 4 binary64)))))
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 (neg.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 x))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (fabs.f64 x))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) x)
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 (neg.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 y))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 y))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) y)
(hypot.f64 (neg.f64 (neg.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 y))
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 y))
(hypot.f64 (neg.f64 (neg.f64 x)) y)
(hypot.f64 (neg.f64 (fabs.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 y))
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 y))
(hypot.f64 (neg.f64 (fabs.f64 x)) y)
(hypot.f64 (neg.f64 (neg.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 x))
(hypot.f64 (neg.f64 (neg.f64 y)) (fabs.f64 x))
(hypot.f64 (neg.f64 (neg.f64 y)) x)
(hypot.f64 (neg.f64 (fabs.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 x))
(hypot.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 x))
(hypot.f64 (neg.f64 (fabs.f64 y)) x)
(hypot.f64 (fabs.f64 (fabs.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 y))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 y))
(hypot.f64 (fabs.f64 (fabs.f64 x)) y)
(hypot.f64 (fabs.f64 (fabs.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 x))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 x))
(hypot.f64 (fabs.f64 (fabs.f64 y)) x)
(hypot.f64 (neg.f64 y) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 y) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 y) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 y) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 y) (neg.f64 x))
(hypot.f64 (neg.f64 y) (fabs.f64 x))
(hypot.f64 (neg.f64 y) x)
(hypot.f64 (neg.f64 x) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 x) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 x) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 x) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 x) (neg.f64 y))
(hypot.f64 (neg.f64 x) (fabs.f64 y))
(hypot.f64 (neg.f64 x) y)
(hypot.f64 (fabs.f64 y) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 y) (neg.f64 (neg.f64 x)))
(hypot.f64 (fabs.f64 y) (neg.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 y) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 y) (neg.f64 x))
(hypot.f64 (fabs.f64 y) (fabs.f64 x))
(hypot.f64 (fabs.f64 y) x)
(hypot.f64 (fabs.f64 x) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 x) (neg.f64 (neg.f64 y)))
(hypot.f64 (fabs.f64 x) (neg.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 x) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 x) (neg.f64 y))
(hypot.f64 (fabs.f64 x) (fabs.f64 y))
(hypot.f64 (fabs.f64 x) y)
(hypot.f64 y (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 y (neg.f64 (neg.f64 x)))
(hypot.f64 y (neg.f64 (fabs.f64 x)))
(hypot.f64 y (fabs.f64 (fabs.f64 x)))
(hypot.f64 y (neg.f64 x))
(hypot.f64 y (fabs.f64 x))
(hypot.f64 y x)
(hypot.f64 x (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 x (neg.f64 (neg.f64 y)))
(hypot.f64 x (neg.f64 (fabs.f64 y)))
(hypot.f64 x (fabs.f64 (fabs.f64 y)))
(hypot.f64 x (neg.f64 y))
(hypot.f64 x (fabs.f64 y))
(hypot.f64 x y)
(exp.f64 (*.f64 (log.f64 (fma.f64 y y (*.f64 x x))) #s(literal 1/2 binary64)))
(/.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64))) (-.f64 (*.f64 y y) (*.f64 x x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 y) y) #s(literal 3 binary64))) (+.f64 (pow.f64 x #s(literal 4 binary64)) (+.f64 (pow.f64 y #s(literal 4 binary64)) (*.f64 (*.f64 x x) (*.f64 (neg.f64 y) y)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64)))) (neg.f64 (*.f64 (+.f64 x y) (-.f64 x y))))
(/.f64 (neg.f64 (+.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 x #s(literal 6 binary64)))) (neg.f64 (+.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 x #s(literal 4 binary64)))))
(/.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (*.f64 (+.f64 x y) (-.f64 x y)))
(/.f64 (+.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 x #s(literal 6 binary64))) (+.f64 (pow.f64 y #s(literal 4 binary64)) (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64)))))
(/.f64 (+.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 x #s(literal 6 binary64))) (+.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 x #s(literal 4 binary64))))
(fma.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)) (*.f64 x x))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 y y))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 y y))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 y y))
(fma.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y)) (*.f64 x x))
(fma.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 y)) (*.f64 x x))
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 y y))
(fma.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 y)) (*.f64 x x))
(fma.f64 (neg.f64 y) (neg.f64 y) (*.f64 x x))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 y y))
(fma.f64 (fabs.f64 y) (fabs.f64 y) (*.f64 x x))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 y y))
(fma.f64 y y (*.f64 x x))
(fma.f64 x x (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 x x (*.f64 y y))
(-.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (+.f64 x y) (-.f64 x y))) (/.f64 (pow.f64 y #s(literal 4 binary64)) (*.f64 (+.f64 x y) (-.f64 x y))))
(-.f64 (*.f64 y y) (*.f64 (neg.f64 (neg.f64 x)) (neg.f64 x)))
(-.f64 (*.f64 y y) (*.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x)))
(-.f64 (*.f64 y y) (*.f64 (neg.f64 x) x))
(-.f64 (*.f64 y y) (*.f64 x (neg.f64 x)))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 y) y))
(+.f64 (/.f64 (pow.f64 x #s(literal 6 binary64)) (+.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 x #s(literal 4 binary64)))) (/.f64 (pow.f64 y #s(literal 6 binary64)) (+.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 x #s(literal 4 binary64)))))
(+.f64 (*.f64 y y) (*.f64 x x))
(+.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 y)) y))
(+.f64 (*.f64 x x) (*.f64 y y))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 x x)
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(neg.f64 (*.f64 x (neg.f64 x)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
(*.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y)))
(*.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 y)))
(*.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 y)))
(*.f64 (neg.f64 y) (neg.f64 y))
(*.f64 (fabs.f64 y) (fabs.f64 y))
(*.f64 y y)
(pow.f64 (neg.f64 y) #s(literal 2 binary64))
(pow.f64 (fabs.f64 y) #s(literal 2 binary64))
(pow.f64 y #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 y) y))
(fabs.f64 (*.f64 y y))
(exp.f64 (*.f64 (log.f64 y) #s(literal 2 binary64)))

eval36.0ms (1%)

Memory
8.4MiB live, 50.9MiB allocated; 14ms collecting garbage
Compiler

Compiled 2 070 to 446 computations (78.5% saved)

prune23.0ms (0.6%)

Memory
-28.8MiB live, 16.2MiB allocated; 11ms collecting garbage
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1915196
Fresh000
Picked101
Done000
Total1925197
Accuracy
100.0%
Counts
197 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 y x)
54.4%
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
53.6%
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
95.8%
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
1.9%
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
Compiler

Compiled 100 to 70 computations (30% saved)

simplify13.0ms (0.3%)

Memory
31.7MiB live, 31.7MiB allocated; 0ms collecting garbage
Localize:

Found 13 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x x)
cost-diff0
(/.f64 #s(literal 1/2 binary64) y)
cost-diff0
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
cost-diff0
(*.f64 x x)
cost-diff0
(fma.f64 y y (*.f64 x x))
cost-diff4
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
cost-diff0
(*.f64 y y)
cost-diff0
#s(approx (+ (* x x) (* y y)) (*.f64 y y))
cost-diff0
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
cost-diff0
(neg.f64 x)
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
cost-diff0
(hypot.f64 y x)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01994
02882
14682
211782
327082
448782
564482
666882
066882
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(hypot.f64 y x)
y
x
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(neg.f64 x)
x
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (+ (* x x) (* y y)) (*.f64 y y))
(*.f64 y y)
y
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
(fma.f64 y y (*.f64 x x))
y
(*.f64 x x)
x
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(/.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
(*.f64 x x)
x
Outputs
(hypot.f64 y x)
(hypot.f64 x y)
y
x
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(neg.f64 x)
x
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (+ (* x x) (* y y)) (*.f64 y y))
(*.f64 y y)
y
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
(hypot.f64 x y)
(fma.f64 y y (*.f64 x x))
(fma.f64 x x (*.f64 y y))
y
(*.f64 x x)
x
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(/.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
(*.f64 x x)
x

localize53.0ms (1.4%)

Memory
-24.2MiB live, 82.3MiB allocated; 21ms collecting garbage
Localize:

Found 13 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(/.f64 #s(literal 1/2 binary64) y)
accuracy0.0
(*.f64 x x)
accuracy0.35408580928802946
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
accuracy2.337228503184897
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
accuracy0.0
(*.f64 x x)
accuracy0.00390625
(fma.f64 y y (*.f64 x x))
accuracy29.185630171787462
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
accuracy0.0
(*.f64 y y)
accuracy0.5264072859714378
#s(approx (+ (* x x) (* y y)) (*.f64 y y))
accuracy29.185630171787462
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
accuracy0.0
(neg.f64 x)
accuracy62.777784698892425
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
accuracy0.0
(hypot.f64 y x)
Samples
43.0ms256×0valid
Compiler

Compiled 88 to 15 computations (83% saved)

Precisions
Click to see histograms. Total time spent on operations: 32.0ms
ival-hypot: 14.0ms (44.3% of total)
ival-add: 10.0ms (31.7% of total)
ival-mult: 4.0ms (12.7% of total)
ival-div: 2.0ms (6.3% of total)
ival-neg: 1.0ms (3.2% 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)

series12.0ms (0.3%)

Memory
-24.7MiB live, 20.7MiB allocated; 10ms collecting garbage
Counts
12 → 32
Calls
Call 1
Inputs
(hypot.f64 y x)
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(neg.f64 x)
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (+ (* x x) (* y y)) (*.f64 y y))
(*.f64 y y)
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
(fma.f64 y y (*.f64 x x))
(*.f64 x x)
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(/.f64 #s(literal 1/2 binary64) 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)))))
(* -1 x)
(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/2 (/ (pow x 2) y))
(* (pow x 2) (+ (* 1/2 (/ 1 y)) (/ y (pow x 2))))
(* -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)))))
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(/ 1/2 y)
(* 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))))))))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
Calls

6 calls:

TimeVariablePointExpression
5.0ms
y
@-inf
((sqrt (+ (* y y) (* x x))) (sqrt (+ (* x x) (* y y))) (neg x) (sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* y y) (sqrt (+ (* y y) (* x x))) (+ (* y y) (* x x)) (* x x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (/ 1/2 y))
1.0ms
x
@inf
((sqrt (+ (* y y) (* x x))) (sqrt (+ (* x x) (* y y))) (neg x) (sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* y y) (sqrt (+ (* y y) (* x x))) (+ (* y y) (* x x)) (* x x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (/ 1/2 y))
1.0ms
y
@inf
((sqrt (+ (* y y) (* x x))) (sqrt (+ (* x x) (* y y))) (neg x) (sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* y y) (sqrt (+ (* y y) (* x x))) (+ (* y y) (* x x)) (* x x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (/ 1/2 y))
1.0ms
y
@0
((sqrt (+ (* y y) (* x x))) (sqrt (+ (* x x) (* y y))) (neg x) (sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* y y) (sqrt (+ (* y y) (* x x))) (+ (* y y) (* x x)) (* x x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (/ 1/2 y))
1.0ms
x
@-inf
((sqrt (+ (* y y) (* x x))) (sqrt (+ (* x x) (* y y))) (neg x) (sqrt (+ (* x x) (* y y))) (+ (* x x) (* y y)) (* y y) (sqrt (+ (* y y) (* x x))) (+ (* y y) (* x x)) (* x x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (/ 1/2 y))

simplify170.0ms (4.6%)

Memory
46.8MiB live, 228.1MiB allocated; 40ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0116478
1349478
21401460
35767459
08119421
Stop Event
iter limit
node limit
Counts
32 → 30
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)))))
(* -1 x)
(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/2 (/ (pow x 2) y))
(* (pow x 2) (+ (* 1/2 (/ 1 y)) (/ y (pow x 2))))
(* -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)))))
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(/ 1/2 y)
(* 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))))))))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
Outputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) y) y) (*.f64 x x) #s(literal 1/2 binary64)) y) (*.f64 x x) 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)))))
(fma.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (/.f64 x (pow.f64 y #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(* -1 x)
(neg.f64 x)
(pow y 2)
(*.f64 y y)
(+ (pow x 2) (pow y 2))
(fma.f64 x x (*.f64 y y))
(pow x 2)
(*.f64 x x)
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(fma.f64 (/.f64 x x) (*.f64 (/.f64 (*.f64 y y) x) #s(literal 1/2 binary64)) x)
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) x) y) x) y #s(literal 1 binary64))) x)
(* 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)))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) x) y) x) y #s(literal 1 binary64)))) x)
(* (pow x 2) (+ 1 (/ (pow y 2) (pow x 2))))
(*.f64 (fma.f64 (/.f64 y x) (/.f64 y x) #s(literal 1 binary64)) (*.f64 x x))
(* 1/2 (/ (pow x 2) y))
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
(* (pow x 2) (+ (* 1/2 (/ 1 y)) (/ y (pow x 2))))
(*.f64 (*.f64 (-.f64 (/.f64 y (*.f64 x x)) (/.f64 #s(literal -1/2 binary64) y)) x) x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(*.f64 (fma.f64 (/.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64))) x)
(* -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))))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) x) y) x) y #s(literal 1 binary64)))) (neg.f64 x))
(+ x (* 1/2 (/ (pow y 2) x)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) x) (*.f64 y y) x)
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) x) x) (*.f64 y y) #s(literal 1/2 binary64)) x) (*.f64 y y) 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)))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (/.f64 y (pow.f64 x #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 y y) (/.f64 #s(literal 1/2 binary64) x)) (*.f64 y y) x)
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(/ 1/2 y)
(/.f64 #s(literal 1/2 binary64) y)
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(fma.f64 (*.f64 (pow.f64 x #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 4 binary64)))) y (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(* 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)))))))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (pow.f64 x #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 4 binary64))) #s(literal 1 binary64))) y (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
(* (pow y 2) (+ 1 (/ (pow x 2) (pow y 2))))
(fma.f64 (/.f64 (*.f64 x x) y) y (*.f64 y y))
(* -1 y)
(neg.f64 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 x x) y) (neg.f64 y))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(neg.f64 (fma.f64 (*.f64 (pow.f64 x #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 4 binary64)))) y (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)))
(* -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))))))))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (pow.f64 x #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 4 binary64))) #s(literal 1 binary64))) (neg.f64 y) (*.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 x x) y)))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)

rewrite44.0ms (1.2%)

Memory
9.3MiB live, 54.0MiB allocated; 6ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01982
02870
18770
072270
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
12 → 325
Calls
Call 1
Inputs
(hypot.f64 y x)
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(neg.f64 x)
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (+ (* x x) (* y y)) (*.f64 y y))
(*.f64 y y)
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
(fma.f64 y y (*.f64 x x))
(*.f64 x x)
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(/.f64 #s(literal 1/2 binary64) y)
Outputs
(*.f64 (pow.f64 (fma.f64 x x (*.f64 y y)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 x x (*.f64 y y)) #s(literal 1/4 binary64)))
(pow.f64 (fma.f64 x x (*.f64 y y)) #s(literal 1/2 binary64))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64)))) (sqrt.f64 (*.f64 (+.f64 y x) (-.f64 y x))))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64)))) (sqrt.f64 (*.f64 (+.f64 x y) (-.f64 x y))))
(/.f64 (hypot.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (sqrt.f64 (+.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 y #s(literal 4 binary64)))))
(/.f64 (hypot.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (sqrt.f64 (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (pow.f64 (*.f64 x y) #s(literal 2 binary64)))))
(sqrt.f64 (fma.f64 x x (*.f64 y y)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 (neg.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (fabs.f64 x))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 x))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) x)
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 (neg.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 y))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 y))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) y)
(hypot.f64 (neg.f64 (neg.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (fabs.f64 x))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 x))
(hypot.f64 (neg.f64 (neg.f64 y)) x)
(hypot.f64 (neg.f64 (fabs.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 x))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 x))
(hypot.f64 (neg.f64 (fabs.f64 y)) x)
(hypot.f64 (neg.f64 (fabs.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 y))
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 y))
(hypot.f64 (neg.f64 (fabs.f64 x)) y)
(hypot.f64 (neg.f64 (neg.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 y))
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 y))
(hypot.f64 (neg.f64 (neg.f64 x)) y)
(hypot.f64 (fabs.f64 (fabs.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 x))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 x))
(hypot.f64 (fabs.f64 (fabs.f64 y)) x)
(hypot.f64 (fabs.f64 (fabs.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 y))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 y))
(hypot.f64 (fabs.f64 (fabs.f64 x)) y)
(hypot.f64 (neg.f64 y) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 y) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 y) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 y) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 y) (fabs.f64 x))
(hypot.f64 (neg.f64 y) (neg.f64 x))
(hypot.f64 (neg.f64 y) x)
(hypot.f64 (fabs.f64 y) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 y) (neg.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 y) (neg.f64 (neg.f64 x)))
(hypot.f64 (fabs.f64 y) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 y) (fabs.f64 x))
(hypot.f64 (fabs.f64 y) (neg.f64 x))
(hypot.f64 (fabs.f64 y) x)
(hypot.f64 (fabs.f64 x) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 x) (neg.f64 (neg.f64 y)))
(hypot.f64 (fabs.f64 x) (neg.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 x) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 x) (neg.f64 y))
(hypot.f64 (fabs.f64 x) (fabs.f64 y))
(hypot.f64 (fabs.f64 x) y)
(hypot.f64 (neg.f64 x) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 x) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 x) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 x) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 x) (neg.f64 y))
(hypot.f64 (neg.f64 x) (fabs.f64 y))
(hypot.f64 (neg.f64 x) y)
(hypot.f64 x (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 x (neg.f64 (neg.f64 y)))
(hypot.f64 x (neg.f64 (fabs.f64 y)))
(hypot.f64 x (fabs.f64 (fabs.f64 y)))
(hypot.f64 x (neg.f64 y))
(hypot.f64 x (fabs.f64 y))
(hypot.f64 x y)
(hypot.f64 y (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 y (neg.f64 (fabs.f64 x)))
(hypot.f64 y (neg.f64 (neg.f64 x)))
(hypot.f64 y (fabs.f64 (fabs.f64 x)))
(hypot.f64 y (fabs.f64 x))
(hypot.f64 y (neg.f64 x))
(hypot.f64 y x)
(exp.f64 (*.f64 (log.f64 (fma.f64 x x (*.f64 y y))) #s(literal 1/2 binary64)))
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(neg.f64 x)
(*.f64 (pow.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)) #s(literal 1/4 binary64)) (pow.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)) #s(literal 1/4 binary64)))
(pow.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)) #s(literal 1/2 binary64))
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
(exp.f64 (*.f64 (log.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y))) #s(literal 1/2 binary64)))
#s(approx (+ (* x x) (* y y)) (*.f64 y y))
(*.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y)))
(*.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 y)))
(*.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 y)))
(*.f64 (neg.f64 y) (neg.f64 y))
(*.f64 (fabs.f64 y) (fabs.f64 y))
(*.f64 y y)
(pow.f64 (neg.f64 y) #s(literal 2 binary64))
(pow.f64 (fabs.f64 y) #s(literal 2 binary64))
(pow.f64 y #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 y) y))
(fabs.f64 (*.f64 y y))
(exp.f64 (*.f64 (log.f64 y) #s(literal 2 binary64)))
(*.f64 (pow.f64 (fma.f64 x x (*.f64 y y)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 x x (*.f64 y y)) #s(literal 1/4 binary64)))
(pow.f64 (fma.f64 x x (*.f64 y y)) #s(literal 1/2 binary64))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64)))) (sqrt.f64 (*.f64 (+.f64 y x) (-.f64 y x))))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64)))) (sqrt.f64 (*.f64 (+.f64 x y) (-.f64 x y))))
(/.f64 (hypot.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (sqrt.f64 (+.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 y #s(literal 4 binary64)))))
(/.f64 (hypot.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (sqrt.f64 (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (pow.f64 (*.f64 x y) #s(literal 2 binary64)))))
(sqrt.f64 (fma.f64 x x (*.f64 y y)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 (neg.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (fabs.f64 x))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) (neg.f64 x))
(hypot.f64 (pow.f64 y #s(literal 1 binary64)) x)
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 (neg.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 y))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 y))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) y)
(hypot.f64 (neg.f64 (neg.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (neg.f64 y)) (fabs.f64 x))
(hypot.f64 (neg.f64 (neg.f64 y)) (neg.f64 x))
(hypot.f64 (neg.f64 (neg.f64 y)) x)
(hypot.f64 (neg.f64 (fabs.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 x))
(hypot.f64 (neg.f64 (fabs.f64 y)) (neg.f64 x))
(hypot.f64 (neg.f64 (fabs.f64 y)) x)
(hypot.f64 (neg.f64 (fabs.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 y))
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 y))
(hypot.f64 (neg.f64 (fabs.f64 x)) y)
(hypot.f64 (neg.f64 (neg.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 y))
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 y))
(hypot.f64 (neg.f64 (neg.f64 x)) y)
(hypot.f64 (fabs.f64 (fabs.f64 y)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 (neg.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 x))
(hypot.f64 (fabs.f64 (fabs.f64 y)) (neg.f64 x))
(hypot.f64 (fabs.f64 (fabs.f64 y)) x)
(hypot.f64 (fabs.f64 (fabs.f64 x)) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 (neg.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 y))
(hypot.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 y))
(hypot.f64 (fabs.f64 (fabs.f64 x)) y)
(hypot.f64 (neg.f64 y) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 y) (neg.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 y) (neg.f64 (neg.f64 x)))
(hypot.f64 (neg.f64 y) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (neg.f64 y) (fabs.f64 x))
(hypot.f64 (neg.f64 y) (neg.f64 x))
(hypot.f64 (neg.f64 y) x)
(hypot.f64 (fabs.f64 y) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 y) (neg.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 y) (neg.f64 (neg.f64 x)))
(hypot.f64 (fabs.f64 y) (fabs.f64 (fabs.f64 x)))
(hypot.f64 (fabs.f64 y) (fabs.f64 x))
(hypot.f64 (fabs.f64 y) (neg.f64 x))
(hypot.f64 (fabs.f64 y) x)
(hypot.f64 (fabs.f64 x) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 x) (neg.f64 (neg.f64 y)))
(hypot.f64 (fabs.f64 x) (neg.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 x) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (fabs.f64 x) (neg.f64 y))
(hypot.f64 (fabs.f64 x) (fabs.f64 y))
(hypot.f64 (fabs.f64 x) y)
(hypot.f64 (neg.f64 x) (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 (neg.f64 x) (neg.f64 (neg.f64 y)))
(hypot.f64 (neg.f64 x) (neg.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 x) (fabs.f64 (fabs.f64 y)))
(hypot.f64 (neg.f64 x) (neg.f64 y))
(hypot.f64 (neg.f64 x) (fabs.f64 y))
(hypot.f64 (neg.f64 x) y)
(hypot.f64 x (pow.f64 y #s(literal 1 binary64)))
(hypot.f64 x (neg.f64 (neg.f64 y)))
(hypot.f64 x (neg.f64 (fabs.f64 y)))
(hypot.f64 x (fabs.f64 (fabs.f64 y)))
(hypot.f64 x (neg.f64 y))
(hypot.f64 x (fabs.f64 y))
(hypot.f64 x y)
(hypot.f64 y (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 y (neg.f64 (fabs.f64 x)))
(hypot.f64 y (neg.f64 (neg.f64 x)))
(hypot.f64 y (fabs.f64 (fabs.f64 x)))
(hypot.f64 y (fabs.f64 x))
(hypot.f64 y (neg.f64 x))
(hypot.f64 y x)
(exp.f64 (*.f64 (log.f64 (fma.f64 x x (*.f64 y y))) #s(literal 1/2 binary64)))
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 y) y) #s(literal 3 binary64))) (+.f64 (pow.f64 x #s(literal 4 binary64)) (+.f64 (pow.f64 y #s(literal 4 binary64)) (*.f64 (*.f64 x x) (*.f64 (neg.f64 y) y)))))
(/.f64 (-.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 x) x) #s(literal 3 binary64))) (+.f64 (pow.f64 y #s(literal 4 binary64)) (+.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (*.f64 y y) (*.f64 (neg.f64 x) x)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64)))) (neg.f64 (*.f64 (+.f64 y x) (-.f64 y x))))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64)))) (neg.f64 (*.f64 (+.f64 x y) (-.f64 x y))))
(/.f64 (neg.f64 (+.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 x #s(literal 6 binary64)))) (neg.f64 (+.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 y #s(literal 4 binary64)))))
(/.f64 (neg.f64 (+.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 x #s(literal 6 binary64)))) (neg.f64 (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (pow.f64 (*.f64 x y) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 (+.f64 y x) (-.f64 y x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (*.f64 (+.f64 x y) (-.f64 x y)))
(/.f64 (+.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 x #s(literal 6 binary64))) (+.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 y #s(literal 4 binary64))))
(/.f64 (+.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 x #s(literal 6 binary64))) (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (pow.f64 (*.f64 x y) #s(literal 2 binary64))))
(fma.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)) (*.f64 (neg.f64 (neg.f64 x)) x))
(fma.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)) (*.f64 x x))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 y y))
(fma.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y)) (*.f64 (neg.f64 (neg.f64 x)) x))
(fma.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y)) (*.f64 x x))
(fma.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 y)) (*.f64 (neg.f64 (neg.f64 x)) x))
(fma.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 y)) (*.f64 x x))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 y y))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 y y))
(fma.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 y)) (*.f64 (neg.f64 (neg.f64 x)) x))
(fma.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 y)) (*.f64 x x))
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 y y))
(fma.f64 (neg.f64 y) (neg.f64 y) (*.f64 (neg.f64 (neg.f64 x)) x))
(fma.f64 (neg.f64 y) (neg.f64 y) (*.f64 x x))
(fma.f64 (fabs.f64 y) (fabs.f64 y) (*.f64 (neg.f64 (neg.f64 x)) x))
(fma.f64 (fabs.f64 y) (fabs.f64 y) (*.f64 x x))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 y y))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 y y))
(fma.f64 x x (*.f64 (neg.f64 (neg.f64 y)) y))
(fma.f64 x x (*.f64 y y))
(fma.f64 y y (*.f64 (neg.f64 (neg.f64 x)) x))
(fma.f64 y y (*.f64 x x))
(-.f64 (/.f64 (pow.f64 y #s(literal 4 binary64)) (*.f64 (+.f64 y x) (-.f64 y x))) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (+.f64 y x) (-.f64 y x))))
(-.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (+.f64 x y) (-.f64 x y))) (/.f64 (pow.f64 y #s(literal 4 binary64)) (*.f64 (+.f64 x y) (-.f64 x y))))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 y) y))
(-.f64 (*.f64 y y) (*.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x)))
(-.f64 (*.f64 y y) (*.f64 (neg.f64 (neg.f64 x)) (neg.f64 x)))
(-.f64 (*.f64 y y) (*.f64 (neg.f64 x) x))
(+.f64 (/.f64 (pow.f64 y #s(literal 6 binary64)) (+.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 y #s(literal 4 binary64)))) (/.f64 (pow.f64 x #s(literal 6 binary64)) (+.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 x y) #s(literal 2 binary64))) (pow.f64 y #s(literal 4 binary64)))))
(+.f64 (/.f64 (pow.f64 x #s(literal 6 binary64)) (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (pow.f64 (*.f64 x y) #s(literal 2 binary64)))) (/.f64 (pow.f64 y #s(literal 6 binary64)) (-.f64 (+.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (pow.f64 (*.f64 x y) #s(literal 2 binary64)))))
(+.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 y)) y))
(+.f64 (*.f64 x x) (*.f64 y y))
(+.f64 (*.f64 y y) (*.f64 (neg.f64 (neg.f64 x)) x))
(+.f64 (*.f64 y y) (*.f64 x x))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 x x)
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(/.f64 (-.f64 (*.f64 y y) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64))) (-.f64 y (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64)) (*.f64 y y))) (neg.f64 (-.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) y)))
(/.f64 (neg.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 3 binary64)))) (neg.f64 (fma.f64 y (-.f64 y (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64)) (*.f64 y y)) (-.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) y))
(/.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 3 binary64))) (fma.f64 y y (-.f64 (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64)) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) (*.f64 x y)))))
(/.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 3 binary64))) (fma.f64 y (-.f64 y (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64))))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (fabs.f64 x)) (fabs.f64 x) y)
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (neg.f64 x)) (neg.f64 x) y)
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y)
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) (/.f64 #s(literal 1/2 binary64) y)) y)
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(fma.f64 #s(literal 1/2 binary64) (/.f64 (*.f64 x x) y) y)
(fma.f64 (*.f64 x x) (/.f64 #s(literal 1/2 binary64) y) y)
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) (/.f64 #s(literal 1/2 binary64) y)) y)
(fma.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) y)
(-.f64 (/.f64 (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64)) (-.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) y)) (/.f64 (*.f64 y y) (-.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) y)))
(-.f64 y (*.f64 (neg.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x)) x))
(-.f64 y (*.f64 (neg.f64 (/.f64 #s(literal 1/2 binary64) y)) (*.f64 x x)))
(-.f64 y (*.f64 (*.f64 (neg.f64 x) x) (/.f64 #s(literal 1/2 binary64) y)))
(+.f64 (/.f64 (*.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (fma.f64 y (-.f64 y (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64)))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 y (-.f64 y (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) #s(literal 2 binary64)))))
(+.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x) y)
(+.f64 y (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x))
(/.f64 #s(literal -1/2 binary64) (neg.f64 y))
(/.f64 #s(literal 1/2 binary64) (neg.f64 (neg.f64 y)))
(/.f64 #s(literal 1/2 binary64) y)
(neg.f64 (/.f64 #s(literal -1/2 binary64) y))
(neg.f64 (/.f64 #s(literal 1/2 binary64) (neg.f64 y)))

eval107.0ms (2.9%)

Memory
-40.5MiB live, 117.7MiB allocated; 34ms collecting garbage
Compiler

Compiled 3 483 to 618 computations (82.3% saved)

prune10.0ms (0.3%)

Memory
-12.2MiB live, 33.5MiB allocated; 3ms collecting garbage
Pruning

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New2582260
Fresh000
Picked145
Done000
Total2596265
Accuracy
100.0%
Counts
265 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 y x)
54.4%
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
53.6%
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
99.4%
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
1.9%
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
3.9%
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
Compiler

Compiled 76 to 51 computations (32.9% saved)

simplify13.0ms (0.4%)

Memory
29.9MiB live, 29.9MiB allocated; 0ms collecting garbage
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(/.f64 #s(literal 1/2 binary64) y)
cost-diff0
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
cost-diff0
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y)
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
cost-diff0
(/.f64 (*.f64 x x) y)
cost-diff0
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
cost-diff0
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01997
02695
15195
213395
330495
452895
565395
666295
066285
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
(/.f64 (*.f64 x x) y)
(*.f64 x x)
x
y
#s(literal 1/2 binary64)
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
(/.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
x
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 x y) (*.f64 #s(literal 1/2 binary64) x))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 x y) (*.f64 #s(literal 1/2 binary64) x)))
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
(*.f64 (/.f64 x y) (*.f64 #s(literal 1/2 binary64) x))
(/.f64 (*.f64 x x) y)
(*.f64 x x)
x
y
#s(literal 1/2 binary64)
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 x y) (*.f64 #s(literal 1/2 binary64) x) y))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y)
(fma.f64 (/.f64 x y) (*.f64 #s(literal 1/2 binary64) x) y)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
(/.f64 #s(literal 1/2 binary64) y)
#s(literal 1/2 binary64)
y
x

localize66.0ms (1.8%)

Memory
-25.4MiB live, 72.6MiB allocated; 7ms collecting garbage
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y)
accuracy0.0
(/.f64 #s(literal 1/2 binary64) y)
accuracy0.19759750976844204
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
accuracy0.35408580928802946
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
accuracy0.0
(*.f64 x x)
accuracy0.35408580928802946
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
accuracy7.898829146171512
(/.f64 (*.f64 x x) y)
accuracy61.428947044184234
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
Samples
57.0ms256×0valid
Compiler

Compiled 65 to 15 computations (76.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 46.0ms
ival-mult: 25.0ms (54.4% of total)
ival-div: 14.0ms (30.5% of total)
ival-hypot: 5.0ms (10.9% of total)
ival-add: 2.0ms (4.4% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series10.0ms (0.3%)

Memory
16.8MiB live, 16.8MiB allocated; 0ms collecting garbage
Counts
9 → 30
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
(/.f64 (*.f64 x x) y)
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
(/.f64 #s(literal 1/2 binary64) y)
(*.f64 x x)
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)))))
(* 1/2 (/ (pow x 2) y))
(/ (pow x 2) y)
(* 1/2 (/ x y))
(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/2 (/ 1 y)) (/ y (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)))))
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(/ 1/2 y)
(* 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)))))))
(* -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))))))))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
Calls

6 calls:

TimeVariablePointExpression
2.0ms
y
@inf
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (/ (* x x) y) 1/2) (/ (* x x) y) (sqrt (+ (* x x) (* y y))) (+ (* (* (/ 1/2 y) x) x) y) (* (/ 1/2 y) x) (/ 1/2 y) (* x x))
2.0ms
x
@inf
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (/ (* x x) y) 1/2) (/ (* x x) y) (sqrt (+ (* x x) (* y y))) (+ (* (* (/ 1/2 y) x) x) y) (* (/ 1/2 y) x) (/ 1/2 y) (* x x))
1.0ms
x
@-inf
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (/ (* x x) y) 1/2) (/ (* x x) y) (sqrt (+ (* x x) (* y y))) (+ (* (* (/ 1/2 y) x) x) y) (* (/ 1/2 y) x) (/ 1/2 y) (* x x))
1.0ms
y
@-inf
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (/ (* x x) y) 1/2) (/ (* x x) y) (sqrt (+ (* x x) (* y y))) (+ (* (* (/ 1/2 y) x) x) y) (* (/ 1/2 y) x) (/ 1/2 y) (* x x))
1.0ms
y
@0
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (/ (* x x) y) 1/2) (/ (* x x) y) (sqrt (+ (* x x) (* y y))) (+ (* (* (/ 1/2 y) x) x) y) (* (/ 1/2 y) x) (/ 1/2 y) (* x x))

simplify212.0ms (5.7%)

Memory
23.5MiB live, 204.2MiB allocated; 28ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0113457
1332457
21346437
36764437
08624402
Stop Event
iter limit
node limit
Counts
30 → 28
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)))))
(* 1/2 (/ (pow x 2) y))
(/ (pow x 2) y)
(* 1/2 (/ x y))
(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/2 (/ 1 y)) (/ y (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)))))
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(/ 1/2 y)
(* 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)))))))
(* -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))))))))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
Outputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 (*.f64 x x) y) y) #s(literal -1/8 binary64) #s(literal 1/2 binary64)) y) (*.f64 x x) 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)))))
(fma.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (/.f64 x (pow.f64 y #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(* 1/2 (/ (pow x 2) y))
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
(/ (pow x 2) y)
(/.f64 (*.f64 x x) y)
(* 1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
(pow x 2)
(*.f64 x x)
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(fma.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) y) (/.f64 y (*.f64 x x)) x)
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 y x) #s(literal 1/2 binary64)) x) y #s(literal 1 binary64))) x)
(* 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)))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 y x) #s(literal 1/2 binary64)) x) y #s(literal 1 binary64)))) x)
(* (pow x 2) (+ (* 1/2 (/ 1 y)) (/ y (pow x 2))))
(*.f64 (*.f64 (-.f64 (/.f64 y (*.f64 x x)) (/.f64 #s(literal -1/2 binary64) y)) x) x)
(* -1 x)
(neg.f64 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(*.f64 (fma.f64 (/.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64))) x)
(* -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))))))))
(*.f64 (neg.f64 x) (fma.f64 (pow.f64 y #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 y x) #s(literal 1/2 binary64)) x) y #s(literal 1 binary64)))))
(+ x (* 1/2 (/ (pow y 2) x)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) x) (*.f64 y y) x)
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) x) x) (*.f64 y y) #s(literal 1/2 binary64)) x) (*.f64 y y) 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)))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (/.f64 y (pow.f64 x #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 y y) (/.f64 #s(literal 1/2 binary64) x)) (*.f64 y y) x)
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(/ 1/2 y)
(/.f64 #s(literal 1/2 binary64) y)
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(fma.f64 (*.f64 #s(literal -1/8 binary64) y) (/.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(* 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)))))))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (pow.f64 x #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 4 binary64))) #s(literal 1 binary64))) y (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
(* -1 y)
(neg.f64 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 x x) y) (neg.f64 y))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(neg.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) y) (/.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)))
(* -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))))))))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (pow.f64 x #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 4 binary64))) #s(literal 1 binary64))) (neg.f64 y) (*.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 x x) y)))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
(neg.f64 (fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 x x) y) (neg.f64 y)))

rewrite64.0ms (1.7%)

Memory
-7.7MiB live, 37.8MiB allocated; 5ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01991
02689
19789
062079
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
9 → 81
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
(/.f64 (*.f64 x x) y)
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
(/.f64 #s(literal 1/2 binary64) y)
(*.f64 x x)
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (neg.f64 x)) (neg.f64 x))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (fabs.f64 x)) (fabs.f64 x))
(*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) (/.f64 #s(literal 1/2 binary64) y)))
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) (/.f64 #s(literal 1/2 binary64) y)))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x))
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
(*.f64 #s(literal 1/2 binary64) (/.f64 (*.f64 x x) y))
(*.f64 (*.f64 x x) (/.f64 #s(literal 1/2 binary64) y))
(*.f64 x (*.f64 (/.f64 x y) #s(literal 1/2 binary64)))
(*.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) y) x))
(/.f64 (*.f64 (*.f64 (neg.f64 x) x) #s(literal 1/2 binary64)) (neg.f64 y))
(/.f64 (*.f64 #s(literal -1/2 binary64) (*.f64 x x)) (neg.f64 y))
(/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 x) x)) (neg.f64 y))
(/.f64 (*.f64 (*.f64 x x) #s(literal -1/2 binary64)) (neg.f64 y))
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 x x))) (neg.f64 y))
(/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 x x)) y)
(*.f64 (/.f64 x y) x)
(*.f64 (neg.f64 x) (/.f64 (neg.f64 x) y))
(*.f64 (fabs.f64 x) (/.f64 (fabs.f64 x) y))
(*.f64 x (/.f64 x y))
(/.f64 (*.f64 (neg.f64 x) x) (neg.f64 y))
(/.f64 (*.f64 x x) (neg.f64 (neg.f64 y)))
(/.f64 (*.f64 x x) y)
(neg.f64 (/.f64 (*.f64 (neg.f64 x) x) y))
(neg.f64 (/.f64 (*.f64 x x) (neg.f64 y)))
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y) y))
(/.f64 (-.f64 (*.f64 y y) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64))) (-.f64 y (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64)) (*.f64 y y))) (neg.f64 (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) y)))
(/.f64 (neg.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 3 binary64)))) (neg.f64 (fma.f64 y (-.f64 y (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64)) (*.f64 y y)) (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) y))
(/.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 3 binary64))) (fma.f64 y y (-.f64 (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64)) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) (*.f64 x y)))))
(/.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 3 binary64))) (fma.f64 y (-.f64 y (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64))))
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (neg.f64 x)) (neg.f64 x) y)
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (fabs.f64 x)) (fabs.f64 x) y)
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y) y)
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) (/.f64 #s(literal 1/2 binary64) y)) y)
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) (/.f64 #s(literal 1/2 binary64) y)) y)
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y)
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(fma.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64) y)
(fma.f64 #s(literal 1/2 binary64) (/.f64 (*.f64 x x) y) y)
(fma.f64 (*.f64 x x) (/.f64 #s(literal 1/2 binary64) y) y)
(fma.f64 x (*.f64 (/.f64 x y) #s(literal 1/2 binary64)) y)
(fma.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) y)
(-.f64 (/.f64 (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64)) (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) y)) (/.f64 (*.f64 y y) (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) y)))
(-.f64 y (*.f64 (neg.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x)) x))
(-.f64 y (*.f64 (neg.f64 (/.f64 #s(literal 1/2 binary64) y)) (*.f64 x x)))
(-.f64 y (*.f64 (*.f64 (neg.f64 x) x) (/.f64 #s(literal 1/2 binary64) y)))
(-.f64 y (*.f64 (neg.f64 x) (*.f64 (/.f64 #s(literal 1/2 binary64) y) x)))
(+.f64 (/.f64 (*.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (fma.f64 y (-.f64 y (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64)))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 y (-.f64 y (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) #s(literal 2 binary64)))))
(+.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)) y)
(+.f64 y (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)))
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(*.f64 x (/.f64 #s(literal 1/2 binary64) y))
(/.f64 (*.f64 #s(literal -1/2 binary64) x) (neg.f64 y))
(/.f64 (*.f64 x #s(literal -1/2 binary64)) (neg.f64 y))
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) x)) (neg.f64 y))
(/.f64 (*.f64 #s(literal 1/2 binary64) x) y)
(/.f64 #s(literal -1/2 binary64) (neg.f64 y))
(/.f64 #s(literal 1/2 binary64) (neg.f64 (neg.f64 y)))
(/.f64 #s(literal 1/2 binary64) y)
(neg.f64 (/.f64 #s(literal -1/2 binary64) y))
(neg.f64 (/.f64 #s(literal 1/2 binary64) (neg.f64 y)))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 x x)
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))

eval59.0ms (1.6%)

Memory
-14.3MiB live, 32.0MiB allocated; 4ms collecting garbage
Compiler

Compiled 2 773 to 432 computations (84.4% saved)

prune7.0ms (0.2%)

Memory
19.1MiB live, 19.1MiB allocated; 0ms collecting garbage
Pruning

7 alts after pruning (2 fresh and 5 done)

PrunedKeptTotal
New1062108
Fresh000
Picked112
Done044
Total1077114
Accuracy
100.0%
Counts
114 → 7
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 y x)
54.4%
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
53.6%
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
99.4%
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
1.9%
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
4.0%
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
4.0%
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
Compiler

Compiled 102 to 67 computations (34.3% saved)

simplify25.0ms (0.7%)

Memory
-36.5MiB live, 24.3MiB allocated; 5ms collecting garbage
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 (/.f64 x y) x)
cost-diff0
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))
cost-diff0
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64)))
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
cost-diff0
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
cost-diff0
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)
cost-diff0
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x))
cost-diff0
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
020122
026122
151122
2131122
3307122
4531122
5656122
6665122
0665108
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) 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 (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64)))
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))
(*.f64 (/.f64 x y) x)
(/.f64 x y)
x
y
#s(literal 1/2 binary64)
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)
(*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))
(*.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 (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64)))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)))
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))
(*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))
(*.f64 (/.f64 x y) x)
(/.f64 x y)
x
y
#s(literal 1/2 binary64)

localize100.0ms (2.7%)

Memory
40.7MiB live, 129.1MiB allocated; 9ms collecting garbage
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))
accuracy0.125
(*.f64 (/.f64 x y) x)
accuracy0.35408580928802946
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
accuracy61.428947044184234
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64)))
accuracy0.125
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)
accuracy0.19759750976844204
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
accuracy0.35408580928802946
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
accuracy61.428947044184234
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x))
Samples
65.0ms256×0valid
Compiler

Compiled 72 to 15 computations (79.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 55.0ms
ival-div: 40.0ms (72.5% of total)
ival-mult: 9.0ms (16.3% of total)
ival-hypot: 5.0ms (9.1% of total)
ival-add: 1.0ms (1.8% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series11.0ms (0.3%)

Memory
-31.3MiB live, 14.7MiB allocated; 3ms collecting garbage
Counts
8 → 28
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64)))
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))
(*.f64 (/.f64 x y) x)
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)))))
(* 1/2 (/ (pow x 2) y))
(* 1/2 (/ x y))
(/ (pow x 2) y)
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/2 (/ 1 y)) (/ y (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)))))
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(* 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)))))))
(* -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))))))))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
Calls

6 calls:

TimeVariablePointExpression
5.0ms
x
@-inf
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ 1/2 y) x) x) (* (/ 1/2 y) x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ x y) x) 1/2) (* (/ x y) x))
1.0ms
x
@inf
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ 1/2 y) x) x) (* (/ 1/2 y) x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ x y) x) 1/2) (* (/ x y) x))
1.0ms
y
@-inf
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ 1/2 y) x) x) (* (/ 1/2 y) x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ x y) x) 1/2) (* (/ x y) x))
1.0ms
x
@0
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ 1/2 y) x) x) (* (/ 1/2 y) x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ x y) x) 1/2) (* (/ x y) x))
1.0ms
y
@inf
((sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ 1/2 y) x) x) (* (/ 1/2 y) x) (sqrt (+ (* x x) (* y y))) (+ (* (/ 1/2 y) (* x x)) y) (* (* (/ x y) x) 1/2) (* (/ x y) x))

simplify360.0ms (9.7%)

Memory
22.2MiB live, 309.9MiB allocated; 64ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0112451
1332451
21346431
36754431
08614396
Stop Event
iter limit
node limit
Counts
28 → 26
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)))))
(* 1/2 (/ (pow x 2) y))
(* 1/2 (/ x y))
(/ (pow x 2) y)
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/2 (/ 1 y)) (/ y (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)))))
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(* 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)))))))
(* -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))))))))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
Outputs
y
(+ y (* 1/2 (/ (pow x 2) y)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(+ y (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 3))) (* 1/2 (/ 1 y)))))
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 (*.f64 x x) y) y) #s(literal -1/8 binary64) #s(literal 1/2 binary64)) y) (*.f64 x x) 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)))))
(fma.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (/.f64 x (pow.f64 y #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(* 1/2 (/ (pow x 2) y))
(*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))
(* 1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal 1/2 binary64))
(/ (pow x 2) y)
(/.f64 (*.f64 x x) y)
x
(* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2)))))
(fma.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) y) (/.f64 y (*.f64 x x)) x)
(* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 y x) #s(literal 1/2 binary64)) x) y #s(literal 1 binary64))) x)
(* 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)))))))
(*.f64 (fma.f64 (pow.f64 y #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 y x) #s(literal 1/2 binary64)) x) y #s(literal 1 binary64)))) x)
(* (pow x 2) (+ (* 1/2 (/ 1 y)) (/ y (pow x 2))))
(*.f64 (*.f64 (-.f64 (/.f64 y (*.f64 x x)) (/.f64 #s(literal -1/2 binary64) y)) x) x)
(* -1 x)
(neg.f64 x)
(* -1 (* x (+ 1 (* 1/2 (/ (pow y 2) (pow x 2))))))
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64)) x)
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 4) (pow x 4))) (* 1/2 (/ (pow y 2) (pow x 2)))))))
(*.f64 (fma.f64 (/.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 x #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (*.f64 y y) x) #s(literal -1 binary64))) x)
(* -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))))))))
(*.f64 (neg.f64 x) (fma.f64 (pow.f64 y #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 6 binary64))) (fma.f64 (pow.f64 y #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 y x) #s(literal 1/2 binary64)) x) y #s(literal 1 binary64)))))
(+ x (* 1/2 (/ (pow y 2) x)))
(fma.f64 (/.f64 #s(literal 1/2 binary64) x) (*.f64 y y) x)
(+ x (* (pow y 2) (+ (* -1/8 (/ (pow y 2) (pow x 3))) (* 1/2 (/ 1 x)))))
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) x) x) (*.f64 y y) #s(literal 1/2 binary64)) x) (*.f64 y y) 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)))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (/.f64 y (pow.f64 x #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 y y) (/.f64 #s(literal 1/2 binary64) x)) (*.f64 y y) x)
(/ (+ (* 1/2 (pow x 2)) (pow y 2)) y)
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2)))))
(fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)
(* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2))))))
(fma.f64 (*.f64 #s(literal -1/8 binary64) y) (/.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(* 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)))))))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (pow.f64 x #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 4 binary64))) #s(literal 1 binary64))) y (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64)))
(* -1 y)
(neg.f64 y)
(* -1 (* y (+ 1 (* 1/2 (/ (pow x 2) (pow y 2))))))
(fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 x x) y) (neg.f64 y))
(* -1 (* y (+ 1 (+ (* -1/8 (/ (pow x 4) (pow y 4))) (* 1/2 (/ (pow x 2) (pow y 2)))))))
(neg.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) y) (/.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y)))
(* -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))))))))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (pow.f64 x #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 y #s(literal 4 binary64))) #s(literal 1 binary64))) (neg.f64 y) (*.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 x x) y)))
(* -1 (* y (- (* -1/2 (/ (pow x 2) (pow y 2))) 1)))
(neg.f64 (fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 x x) y) (neg.f64 y)))

rewrite70.0ms (1.9%)

Memory
-6.7MiB live, 81.7MiB allocated; 11ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
020110
026110
183110
060196
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
8 → 57
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64)))
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))
(*.f64 (/.f64 x y) x)
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (neg.f64 x)) (neg.f64 x))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (fabs.f64 x)) (fabs.f64 x))
(*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) (/.f64 #s(literal 1/2 binary64) y)))
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) (/.f64 #s(literal 1/2 binary64) y)))
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))
(*.f64 (/.f64 x y) (*.f64 #s(literal 1/2 binary64) x))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x))
(*.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 x y) x))
(*.f64 (*.f64 x x) (/.f64 #s(literal 1/2 binary64) y))
(*.f64 x (*.f64 (/.f64 x y) #s(literal 1/2 binary64)))
(*.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) y) x))
(/.f64 (*.f64 #s(literal -1/2 binary64) (*.f64 x x)) (neg.f64 y))
(/.f64 (*.f64 (neg.f64 x) (*.f64 #s(literal 1/2 binary64) x)) (neg.f64 y))
(/.f64 (*.f64 (*.f64 x x) #s(literal -1/2 binary64)) (neg.f64 y))
(/.f64 (*.f64 x (*.f64 #s(literal 1/2 binary64) x)) y)
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 x x))) (neg.f64 y))
(/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 x x)) y)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) x)
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(*.f64 x (/.f64 #s(literal 1/2 binary64) y))
(/.f64 (*.f64 #s(literal -1/2 binary64) x) (neg.f64 y))
(/.f64 (*.f64 x #s(literal -1/2 binary64)) (neg.f64 y))
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) x)) (neg.f64 y))
(/.f64 (*.f64 #s(literal 1/2 binary64) x) y)
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))))
#s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y)))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (neg.f64 x)) (neg.f64 x))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) (fabs.f64 x)) (fabs.f64 x))
(*.f64 (*.f64 #s(literal 1/2 binary64) x) (/.f64 x y))
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) (/.f64 #s(literal 1/2 binary64) y)))
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) (/.f64 #s(literal 1/2 binary64) y)))
(*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))
(*.f64 (/.f64 x y) (*.f64 #s(literal 1/2 binary64) x))
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)
(*.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x))
(*.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 x y) x))
(*.f64 (*.f64 x x) (/.f64 #s(literal 1/2 binary64) y))
(*.f64 x (*.f64 (/.f64 x y) #s(literal 1/2 binary64)))
(*.f64 x (*.f64 (/.f64 #s(literal 1/2 binary64) y) x))
(/.f64 (*.f64 #s(literal -1/2 binary64) (*.f64 x x)) (neg.f64 y))
(/.f64 (*.f64 (neg.f64 x) (*.f64 #s(literal 1/2 binary64) x)) (neg.f64 y))
(/.f64 (*.f64 (*.f64 x x) #s(literal -1/2 binary64)) (neg.f64 y))
(/.f64 (*.f64 x (*.f64 #s(literal 1/2 binary64) x)) y)
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 x x))) (neg.f64 y))
(/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 x x)) y)
(*.f64 (neg.f64 x) (/.f64 (neg.f64 x) y))
(*.f64 (fabs.f64 x) (/.f64 (fabs.f64 x) y))
(*.f64 (/.f64 x y) x)
(*.f64 x (/.f64 x y))
(/.f64 (*.f64 (neg.f64 x) x) (neg.f64 y))
(/.f64 (*.f64 x (neg.f64 x)) (neg.f64 y))
(/.f64 (neg.f64 (*.f64 x x)) (neg.f64 y))
(/.f64 (*.f64 x x) y)

eval6.0ms (0.2%)

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

Compiled 1 659 to 268 computations (83.8% saved)

prune15.0ms (0.4%)

Memory
-20.1MiB live, 33.7MiB allocated; 11ms collecting garbage
Pruning

7 alts after pruning (0 fresh and 7 done)

PrunedKeptTotal
New61061
Fresh000
Picked022
Done055
Total61768
Accuracy
100.0%
Counts
68 → 7
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 y x)
54.4%
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
53.6%
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
99.4%
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
1.9%
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
4.0%
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
4.0%
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
Compiler

Compiled 255 to 107 computations (58% saved)

regimes35.0ms (0.9%)

Memory
-17.6MiB live, 74.1MiB allocated; 9ms collecting garbage
Counts
10 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(hypot.f64 y x)
Outputs
(hypot.f64 y x)
Calls

6 calls:

16.0ms
x
6.0ms
(*.f64 y y)
3.0ms
y
3.0ms
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
3.0ms
(+.f64 (*.f64 x x) (*.f64 y y))
Results
AccuracySegmentsBranch
100.0%1(*.f64 y y)
100.0%1(*.f64 x x)
100.0%1(+.f64 (*.f64 x x) (*.f64 y y))
100.0%1(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
100.0%1x
100.0%1y
Compiler

Compiled 23 to 21 computations (8.7% saved)

regimes36.0ms (1%)

Memory
3.6MiB live, 49.6MiB allocated; 7ms collecting garbage
Counts
9 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (/.f64 #s(literal 1/2 binary64) y) (*.f64 x x) y))
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Outputs
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
Calls

6 calls:

21.0ms
(*.f64 x x)
3.0ms
y
3.0ms
x
3.0ms
(*.f64 y y)
3.0ms
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Results
AccuracySegmentsBranch
99.4%1(*.f64 y y)
99.4%1(*.f64 x x)
99.4%1(+.f64 (*.f64 x x) (*.f64 y y))
99.4%1(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
99.4%1x
99.4%1y
Compiler

Compiled 23 to 21 computations (8.7% saved)

regimes36.0ms (1%)

Memory
-15.6MiB live, 39.0MiB allocated; 6ms collecting garbage
Counts
6 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
Outputs
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
Calls

6 calls:

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

Compiled 23 to 21 computations (8.7% saved)

regimes12.0ms (0.3%)

Memory
39.6MiB live, 39.6MiB allocated; 0ms collecting garbage
Counts
5 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x)))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (*.f64 (/.f64 x y) x) #s(literal 1/2 binary64))))
#s(approx (sqrt (+ (* x x) (* y y))) #s(approx (+ (* (/ 1/2 y) (* x x)) y) (*.f64 (/.f64 (*.f64 x x) y) #s(literal 1/2 binary64))))
Outputs
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
Calls

6 calls:

2.0ms
y
2.0ms
x
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
53.6%1y
53.6%1x
53.6%1(*.f64 y y)
53.6%1(*.f64 x x)
53.6%1(+.f64 (*.f64 x x) (*.f64 y y))
53.6%1(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Compiler

Compiled 23 to 21 computations (8.7% saved)

regimes9.0ms (0.2%)

Memory
-22.8MiB live, 23.0MiB allocated; 3ms collecting garbage
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

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

6 calls:

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

Compiled 23 to 21 computations (8.7% saved)

simplify13.0ms (0.3%)

Memory
-15.1MiB live, 31.3MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02050
13550
27550
313250
416950
Stop Event
saturated
Calls
Call 1
Inputs
(hypot.f64 y x)
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))
Outputs
(hypot.f64 y x)
#s(approx (sqrt (+ (* x x) (* y y))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) y) x) x y))
(sqrt.f64 (fma.f64 y y (*.f64 x x)))
(sqrt.f64 #s(approx (+ (* x x) (* y y)) (*.f64 y y)))
#s(approx (sqrt (+ (* x x) (* y y))) (neg.f64 x))

derivations415.0ms (11.2%)

Memory
13.5MiB live, 353.5MiB allocated; 44ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0621
01021
13921
034615
0104441
1323441
21323435
36816435
08217396
01982
02870
18770
072270
Stop Event
done
iter limit
iter limit
node limit
iter limit
iter limit
node limit
iter limit
iter limit
iter limit
unsound
iter limit
Compiler

Compiled 50 to 20 computations (60% saved)

preprocess91.0ms (2.5%)

Memory
28.0MiB live, 71.8MiB allocated; 7ms collecting garbage
Remove

(sort x y)

(abs x)

(abs y)

Compiler

Compiled 172 to 96 computations (44.2% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...