Optimisation.CirclePacking:place from circle-packing-0.1.0.4, A

Time bar (total: 2.4s)

start0.0ms (0%)

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

analyze17.0ms (0.7%)

Memory
36.6MiB live, 36.6MiB allocated; 0ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%99.9%0.1%0%0%0%1
0%0%99.9%0.1%0%0%0%2
25%25%74.9%0.1%0%0%0%3
28.6%25%62.4%0.1%0%12.5%0%4
46.2%37.5%43.7%0.1%0%18.7%0%5
52.2%37.5%34.3%0.1%0%28.1%0%6
65.1%43.7%23.4%0.1%0%32.8%0%7
70.9%43.7%18%0.1%0%38.2%0%8
79.5%46.8%12.1%0.1%0%41%0%9
83.6%46.8%9.2%0.1%0%43.9%0%10
88.7%48.4%6.1%0.1%0%45.4%0%11
91.3%48.4%4.6%0.1%0%46.9%0%12
Compiler

Compiled 6 to 6 computations (0% saved)

sample930.0ms (39%)

Memory
-14.0MiB live, 1 210.2MiB allocated; 388ms collecting garbage
Samples
592.0ms8 256×0valid
24.0ms491×0invalid
Precisions
Click to see histograms. Total time spent on operations: 201.0ms
ival-add: 126.0ms (62.7% of total)
ival-sqrt: 63.0ms (31.4% of total)
ival-true: 6.0ms (3% of total)
ival-assert: 4.0ms (2% of total)
adjust: 3.0ms (1.5% of total)
Bogosity

explain42.0ms (1.8%)

Memory
21.8MiB live, 66.8MiB allocated; 7ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(sqrt.f64 (+.f64 x y))
00-0-y
00-0-(+.f64 x y)
00-0-x
Confusion
Predicted +Predicted -
+00
-0256
Precision
0/0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-00256
Precision?
0/0
Recall?
0/0
Freqs
test
numberfreq
0256
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-001
Precision?
0/0
Recall?
0/0
Samples
19.0ms512×0valid
Compiler

Compiled 26 to 16 computations (38.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 8.0ms
ival-sqrt: 4.0ms (53.3% of total)
ival-add: 3.0ms (40% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess14.0ms (0.6%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01226
11526
044
064
174
074
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 x y))
Outputs
(sqrt.f64 (+.f64 x y))
(sqrt.f64 (+.f64 y x))
Symmetry

(sort x y)

Compiler

Compiled 4 to 4 computations (0% saved)

eval0.0ms (0%)

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

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 4 to 4 computations (0% saved)

simplify3.0ms (0.1%)

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

Found 2 expressions of interest:

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

Useful iterations: 0 (0.0ms)

IterNodesCost
049
069
179
079
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 x y))
(+.f64 x y)
x
y
Outputs
(sqrt.f64 (+.f64 x y))
(sqrt.f64 (+.f64 y x))
(+.f64 x y)
(+.f64 y x)
x
y

localize41.0ms (1.7%)

Memory
-18.4MiB live, 26.3MiB allocated; 10ms collecting garbage
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x y)
accuracy0.0078125
(sqrt.f64 (+.f64 x y))
Samples
11.0ms256×0valid
Compiler

Compiled 11 to 6 computations (45.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 4.0ms
ival-add: 2.0ms (52.6% of total)
ival-sqrt: 2.0ms (52.6% 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.2%)

Memory
9.9MiB live, 9.9MiB allocated; 0ms collecting garbage
Counts
2 → 29
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 x y))
(+.f64 x y)
Outputs
(sqrt y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
y
(+ x y)
(sqrt x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
x
(* x (+ 1 (/ y x)))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(* y (+ 1 (/ x y)))
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Calls

6 calls:

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

simplify171.0ms (7.2%)

Memory
8.5MiB live, 154.4MiB allocated; 64ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0156603
1496573
22002533
05838495
Stop Event
iter limit
iter limit
node limit
Counts
29 → 27
Calls
Call 1
Inputs
(sqrt y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
y
(+ x y)
(sqrt x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
x
(* x (+ 1 (/ y x)))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(* y (+ 1 (/ x y)))
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Outputs
(sqrt y)
(sqrt.f64 y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (sqrt.f64 y))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 y))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) #s(literal -1/8 binary64))) x (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 y))
y
(+ x y)
(+.f64 y x)
(sqrt x)
(sqrt.f64 x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(*.f64 (fma.f64 y (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) #s(literal -1/8 binary64)) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
(*.f64 (fma.f64 (*.f64 y y) (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64)))) #s(literal 1/16 binary64)) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) #s(literal -1/8 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x)
x
(* x (+ 1 (/ y x)))
(fma.f64 (/.f64 y x) x x)
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(sqrt.f64 x)
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(*.f64 (fma.f64 (*.f64 (*.f64 y y) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x)
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(*.f64 (fma.f64 (*.f64 (*.f64 y y) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/16 binary64) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64))))) (pow.f64 y #s(literal 3 binary64)) (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))))) x)
(* -1 (* x (- (* -1 (/ y x)) 1)))
(*.f64 (neg.f64 x) (fma.f64 #s(literal -1 binary64) (/.f64 y x) #s(literal -1 binary64)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) (sqrt.f64 x))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 x))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal -1/8 binary64))) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 x))
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y)
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(*.f64 (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y)
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(*.f64 (fma.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/16 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) y)
(* y (+ 1 (/ x y)))
(fma.f64 (/.f64 x y) y y)
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(sqrt.f64 y)
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y)
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(*.f64 (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y)
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(*.f64 (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/16 binary64) (pow.f64 x #s(literal 3 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) y)
(* -1 (* y (- (* -1 (/ x y)) 1)))
(*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))

rewrite69.0ms (2.9%)

Memory
-21.0MiB live, 127.7MiB allocated; 13ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
047
067
1227
21407
013677
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
2 → 67
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 x y))
(+.f64 x y)
Outputs
(*.f64 (neg.f64 (pow.f64 (+.f64 y x) #s(literal 1/4 binary64))) (neg.f64 (pow.f64 (+.f64 y x) #s(literal 1/4 binary64))))
(*.f64 (fabs.f64 (pow.f64 (+.f64 y x) #s(literal 1/4 binary64))) (fabs.f64 (pow.f64 (+.f64 y x) #s(literal 1/4 binary64))))
(*.f64 (pow.f64 (+.f64 y x) #s(literal 1/4 binary64)) (pow.f64 (+.f64 y x) #s(literal 1/4 binary64)))
(pow.f64 (exp.f64 (log.f64 (+.f64 y x))) #s(literal 1/2 binary64))
(pow.f64 (*.f64 (+.f64 y x) (+.f64 y x)) #s(literal 1/4 binary64))
(pow.f64 (pow.f64 (+.f64 y x) #s(literal 1/4 binary64)) #s(literal 2 binary64))
(pow.f64 (+.f64 y x) #s(literal 1/2 binary64))
(/.f64 (neg.f64 (sqrt.f64 (*.f64 (-.f64 x y) (+.f64 y x)))) (neg.f64 (sqrt.f64 (-.f64 x y))))
(/.f64 (neg.f64 (hypot.f64 (pow.f64 y #s(literal 3/2 binary64)) (pow.f64 x #s(literal 3/2 binary64)))) (neg.f64 (sqrt.f64 (fma.f64 (-.f64 y x) y (*.f64 x x)))))
(/.f64 (sqrt.f64 (*.f64 (+.f64 y x) (-.f64 y x))) (sqrt.f64 (-.f64 y x)))
(/.f64 (sqrt.f64 (*.f64 (neg.f64 (+.f64 y x)) (-.f64 x y))) (sqrt.f64 (neg.f64 (-.f64 x y))))
(/.f64 (sqrt.f64 (neg.f64 (+.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))))) (sqrt.f64 (neg.f64 (fma.f64 (-.f64 y x) y (*.f64 x x)))))
(/.f64 (sqrt.f64 (*.f64 (-.f64 x y) (+.f64 y x))) (sqrt.f64 (-.f64 x y)))
(/.f64 (hypot.f64 (pow.f64 y #s(literal 3/2 binary64)) (pow.f64 x #s(literal 3/2 binary64))) (sqrt.f64 (fma.f64 (-.f64 y x) y (*.f64 x x))))
(sqrt.f64 (+.f64 y x))
(exp.f64 (*.f64 (log.f64 (+.f64 y x)) #s(literal 1/2 binary64)))
(+.f64 (cosh.f64 (*.f64 (log.f64 (+.f64 y x)) #s(literal 1/2 binary64))) (sinh.f64 (*.f64 (log.f64 (+.f64 y x)) #s(literal 1/2 binary64))))
(*.f64 (/.f64 (*.f64 (-.f64 x y) (+.f64 y x)) (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 y (+.f64 y x) (*.f64 x x)))
(*.f64 (/.f64 (*.f64 (-.f64 x y) (+.f64 y x)) (*.f64 (-.f64 x y) (+.f64 y x))) (+.f64 y x))
(*.f64 (/.f64 (+.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 (-.f64 y x) y) #s(literal 2 binary64)))) (-.f64 (*.f64 x x) (*.f64 (-.f64 y x) y)))
(*.f64 (/.f64 (+.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (+.f64 (pow.f64 (*.f64 (-.f64 y x) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)))) (fma.f64 (*.f64 (-.f64 y x) y) (-.f64 (*.f64 (-.f64 y x) y) (*.f64 x x)) (pow.f64 x #s(literal 4 binary64))))
(*.f64 (fma.f64 (-.f64 y x) y (*.f64 x x)) (/.f64 (+.f64 y x) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(*.f64 (+.f64 y x) (/.f64 (-.f64 x y) (-.f64 x y)))
(/.f64 (-.f64 (*.f64 (*.f64 x (/.f64 x (-.f64 x y))) (*.f64 x (/.f64 x (-.f64 x y)))) (*.f64 (*.f64 y (/.f64 y (-.f64 x y))) (*.f64 y (/.f64 y (-.f64 x y))))) (fma.f64 x (/.f64 x (-.f64 x y)) (*.f64 y (/.f64 y (-.f64 x y)))))
(/.f64 (-.f64 (*.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x)))) (*.f64 (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))) (-.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x)))))
(/.f64 (-.f64 (pow.f64 (*.f64 x (/.f64 x (-.f64 x y))) #s(literal 3 binary64)) (pow.f64 (*.f64 y (/.f64 y (-.f64 x y))) #s(literal 3 binary64))) (fma.f64 (*.f64 x (/.f64 x (-.f64 x y))) (*.f64 x (/.f64 x (-.f64 x y))) (fma.f64 (*.f64 y (/.f64 y (-.f64 x y))) (*.f64 y (/.f64 y (-.f64 x y))) (*.f64 (*.f64 x (/.f64 x (-.f64 x y))) (*.f64 y (/.f64 y (-.f64 x y)))))))
(/.f64 (+.f64 (pow.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) #s(literal 3 binary64)) (pow.f64 (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) #s(literal 3 binary64))) (fma.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (-.f64 (*.f64 (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x)))) (*.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x)))))))
(/.f64 (neg.f64 (*.f64 (+.f64 y x) (-.f64 y x))) (neg.f64 (-.f64 y x)))
(/.f64 (neg.f64 (*.f64 (neg.f64 (+.f64 y x)) (-.f64 x y))) (neg.f64 (neg.f64 (-.f64 x y))))
(/.f64 (neg.f64 (neg.f64 (+.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))))) (neg.f64 (neg.f64 (fma.f64 (-.f64 y x) y (*.f64 x x)))))
(/.f64 (-.f64 (*.f64 (*.f64 x x) (-.f64 x y)) (*.f64 (-.f64 x y) (*.f64 y y))) (*.f64 (-.f64 x y) (-.f64 x y)))
(/.f64 (fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x)) (*.f64 (fma.f64 (-.f64 y x) y (*.f64 x x)) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (fma.f64 (-.f64 y x) y (*.f64 x x)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(/.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (*.f64 (fma.f64 y y (*.f64 x x)) (-.f64 x y)))
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64))) (*.f64 (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64))) (-.f64 x y)))
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64))) (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(/.f64 (*.f64 (+.f64 y x) (-.f64 y x)) (-.f64 y x))
(/.f64 (+.f64 (pow.f64 y #s(literal 9 binary64)) (pow.f64 x #s(literal 9 binary64))) (*.f64 (-.f64 (+.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64))) (pow.f64 (*.f64 y x) #s(literal 3 binary64))) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(/.f64 (*.f64 (neg.f64 (+.f64 y x)) (-.f64 x y)) (neg.f64 (-.f64 x y)))
(/.f64 (neg.f64 (+.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64)))) (neg.f64 (fma.f64 (-.f64 y x) y (*.f64 x x))))
(/.f64 (*.f64 (-.f64 x y) (+.f64 y x)) (-.f64 x y))
(/.f64 (+.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 (-.f64 y x) y (*.f64 x x)))
(neg.f64 (/.f64 (*.f64 (neg.f64 (+.f64 y x)) (-.f64 x y)) (-.f64 x y)))
(neg.f64 (/.f64 (neg.f64 (+.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64)))) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(neg.f64 (/.f64 (*.f64 (-.f64 x y) (+.f64 y x)) (neg.f64 (-.f64 x y))))
(neg.f64 (/.f64 (+.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (neg.f64 (fma.f64 (-.f64 y x) y (*.f64 x x)))))
(fma.f64 (/.f64 (*.f64 x x) (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 y (+.f64 y x) (*.f64 x x)) (/.f64 (*.f64 (neg.f64 y) y) (-.f64 x y)))
(fma.f64 (/.f64 (*.f64 x x) (*.f64 (-.f64 x y) (+.f64 y x))) (+.f64 y x) (/.f64 (*.f64 (neg.f64 y) y) (-.f64 x y)))
(fma.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 (-.f64 y x) y) #s(literal 2 binary64)))) (-.f64 (*.f64 x x) (*.f64 (-.f64 y x) y)) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (+.f64 (pow.f64 (*.f64 (-.f64 y x) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)))) (fma.f64 (*.f64 (-.f64 y x) y) (-.f64 (*.f64 (-.f64 y x) y) (*.f64 x x)) (pow.f64 x #s(literal 4 binary64))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 (/.f64 (pow.f64 y #s(literal 3 binary64)) (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 (*.f64 (-.f64 y x) y) #s(literal 2 binary64)))) (-.f64 (*.f64 x x) (*.f64 (-.f64 y x) y)) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 (/.f64 (pow.f64 y #s(literal 3 binary64)) (+.f64 (pow.f64 (*.f64 (-.f64 y x) y) #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64)))) (fma.f64 (*.f64 (-.f64 y x) y) (-.f64 (*.f64 (-.f64 y x) y) (*.f64 x x)) (pow.f64 x #s(literal 4 binary64))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 (pow.f64 y #s(literal 3/2 binary64)) (/.f64 (pow.f64 y #s(literal 3/2 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 (pow.f64 x #s(literal 3/2 binary64)) (/.f64 (pow.f64 x #s(literal 3/2 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 (neg.f64 x) (/.f64 (neg.f64 x) (-.f64 x y)) (/.f64 (*.f64 (neg.f64 y) y) (-.f64 x y)))
(fma.f64 (fabs.f64 x) (/.f64 (fabs.f64 x) (-.f64 x y)) (/.f64 (*.f64 (neg.f64 y) y) (-.f64 x y)))
(fma.f64 (*.f64 y y) (/.f64 y (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 y (/.f64 (*.f64 y y) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(fma.f64 x (/.f64 x (-.f64 x y)) (/.f64 (*.f64 (neg.f64 y) y) (-.f64 x y)))
(fma.f64 x (/.f64 (*.f64 x x) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(-.f64 (/.f64 (*.f64 y y) (-.f64 y x)) (/.f64 (*.f64 x x) (-.f64 y x)))
(-.f64 (*.f64 x (/.f64 x (-.f64 x y))) (*.f64 y (/.f64 y (-.f64 x y))))
(+.f64 (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(+.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 y x) y (*.f64 x x))))
(+.f64 (*.f64 x (/.f64 x (-.f64 x y))) (/.f64 (*.f64 (neg.f64 y) y) (-.f64 x y)))
(+.f64 y x)
(+.f64 x y)

eval12.0ms (0.5%)

Memory
-2.6MiB live, 42.4MiB allocated; 3ms collecting garbage
Compiler

Compiled 2 172 to 395 computations (81.8% saved)

prune3.0ms (0.1%)

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

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New89392
Fresh000
Picked011
Done000
Total89493
Accuracy
100.0%
Counts
93 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(sqrt.f64 (+.f64 x y))
74.1%
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
100.0%
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))))
98.1%
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
Compiler

Compiled 36 to 27 computations (25% saved)

simplify110.0ms (4.6%)

Memory
-21.0MiB live, 210.8MiB allocated; 27ms collecting garbage
Localize:

Found 10 expressions of interest:

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

Useful iterations: 4 (0.0ms)

IterNodesCost
01792
028101
151101
212288
333688
4104164
5439364
0806964
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
(sqrt.f64 y)
y
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))))
#s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))))
(*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))
(neg.f64 y)
y
(fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))
(/.f64 x y)
x
#s(literal -1 binary64)
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
#s(approx (+ x y) (fma.f64 (/.f64 y x) x x))
(fma.f64 (/.f64 y x) x x)
(/.f64 y x)
y
x
Outputs
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
(sqrt.f64 y)
y
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))))
(sqrt.f64 #s(approx (+ x y) (+.f64 y x)))
#s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))))
#s(approx (+ x y) (+.f64 y x))
(*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))
(+.f64 y x)
(neg.f64 y)
y
(fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))
(-.f64 #s(literal -1 binary64) (/.f64 x y))
(/.f64 x y)
x
#s(literal -1 binary64)
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
(sqrt.f64 #s(approx (+ x y) (+.f64 y x)))
#s(approx (+ x y) (fma.f64 (/.f64 y x) x x))
#s(approx (+ x y) (+.f64 y x))
(fma.f64 (/.f64 y x) x x)
(+.f64 y x)
(/.f64 y x)
y
x

localize67.0ms (2.8%)

Memory
-2.2MiB live, 97.7MiB allocated; 14ms collecting garbage
Localize:

Found 10 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(/.f64 y x)
accuracy0.0
#s(approx (+ x y) (fma.f64 (/.f64 y x) x x))
accuracy0.0078125
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
accuracy16.14128039863488
(fma.f64 (/.f64 y x) x x)
accuracy0.0
(neg.f64 y)
accuracy0.0
#s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))))
accuracy0.0078125
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))))
accuracy0.0234375
(*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))
accuracy0.0
(sqrt.f64 y)
accuracy1.0480348665727162
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
Samples
44.0ms255×0valid
1.0ms5exit
Compiler

Compiled 60 to 16 computations (73.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 21.0ms
ival-mult: 5.0ms (23.3% of total)
ival-neg: 5.0ms (23.3% of total)
ival-div: 4.0ms (18.7% of total)
ival-sqrt: 4.0ms (18.7% of total)
ival-add: 4.0ms (18.7% 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)

series9.0ms (0.4%)

Memory
19.4MiB live, 19.4MiB allocated; 0ms collecting garbage
Counts
11 → 36
Calls
Call 1
Inputs
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
(sqrt.f64 y)
(*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))
(fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))))
#s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))))
(fma.f64 (/.f64 y x) x x)
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
#s(approx (+ x y) (fma.f64 (/.f64 y x) x x))
(/.f64 y x)
(neg.f64 y)
Outputs
(sqrt y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
y
(+ x y)
-1
(- (* -1 (/ x y)) 1)
(/ y x)
(sqrt x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
x
(* x (+ 1 (/ y x)))
(* -1 (/ x y))
(* -1 (* x (+ (/ 1 x) (/ 1 y))))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(/ (+ (* -1 x) (* -1 y)) y)
(* -1 y)
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(* y (+ 1 (/ x y)))
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Calls

6 calls:

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

simplify233.0ms (9.8%)

Memory
-3.6MiB live, 144.4MiB allocated; 41ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0163617
1526587
22108544
07150508
Stop Event
iter limit
iter limit
node limit
Counts
36 → 34
Calls
Call 1
Inputs
(sqrt y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
y
(+ x y)
-1
(- (* -1 (/ x y)) 1)
(/ y x)
(sqrt x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
x
(* x (+ 1 (/ y x)))
(* -1 (/ x y))
(* -1 (* x (+ (/ 1 x) (/ 1 y))))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(/ (+ (* -1 x) (* -1 y)) y)
(* -1 y)
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(* y (+ 1 (/ x y)))
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Outputs
(sqrt y)
(sqrt.f64 y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (sqrt.f64 y))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 y))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) #s(literal -1/8 binary64))) x (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 y))
y
(+ x y)
(+.f64 y x)
-1
#s(literal -1 binary64)
(- (* -1 (/ x y)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 x y))
(/ y x)
(/.f64 y x)
(sqrt x)
(sqrt.f64 x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(*.f64 (fma.f64 y (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) #s(literal -1/8 binary64)) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
(*.f64 (fma.f64 (*.f64 y y) (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64)))) #s(literal 1/16 binary64)) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) #s(literal -1/8 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x)
x
(* x (+ 1 (/ y x)))
(+.f64 y x)
(* -1 (/ x y))
(/.f64 (neg.f64 x) y)
(* -1 (* x (+ (/ 1 x) (/ 1 y))))
(-.f64 #s(literal -1 binary64) (/.f64 x y))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(sqrt.f64 x)
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(*.f64 (fma.f64 (*.f64 (*.f64 y y) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x)
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(*.f64 (fma.f64 (*.f64 (*.f64 y y) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/16 binary64) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64))))) (pow.f64 y #s(literal 3 binary64)) (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))))) x)
(* -1 (* x (- (* -1 (/ y x)) 1)))
(*.f64 (neg.f64 x) (fma.f64 (/.f64 y x) #s(literal -1 binary64) #s(literal -1 binary64)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) (sqrt.f64 x))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 x))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal -1/8 binary64))) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 x))
(/ (+ (* -1 x) (* -1 y)) y)
(-.f64 #s(literal -1 binary64) (/.f64 x y))
(* -1 y)
(neg.f64 y)
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y)
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(*.f64 (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y)
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(*.f64 (fma.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/16 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) y)
(* y (+ 1 (/ x y)))
(+.f64 y x)
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(sqrt.f64 y)
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y)
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(*.f64 (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y)
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(*.f64 (fma.f64 (*.f64 #s(literal -1/16 binary64) (pow.f64 x #s(literal 3 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) y)
(* -1 (* y (- (* -1 (/ x y)) 1)))
(+.f64 y x)

rewrite76.0ms (3.2%)

Memory
-7.0MiB live, 37.6MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01783
02883
19483
062683
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
11 → 80
Calls
Call 1
Inputs
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
(sqrt.f64 y)
(*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))
(fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64)))))
#s(approx (+ x y) (*.f64 (neg.f64 y) (fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))))
(fma.f64 (/.f64 y x) x x)
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
#s(approx (+ x y) (fma.f64 (/.f64 y x) x x))
(/.f64 y x)
(neg.f64 y)
Outputs
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
(*.f64 (pow.f64 y #s(literal 1/4 binary64)) (pow.f64 y #s(literal 1/4 binary64)))
(pow.f64 y #s(literal 1/2 binary64))
(sqrt.f64 y)
(exp.f64 (*.f64 (log.f64 y) #s(literal 1/2 binary64)))
(*.f64 (*.f64 (neg.f64 y) (-.f64 (/.f64 x y) #s(literal -1 binary64))) #s(literal -1 binary64))
(*.f64 (-.f64 (/.f64 x y) #s(literal -1 binary64)) (neg.f64 (neg.f64 y)))
(*.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)) (neg.f64 y))
(*.f64 (neg.f64 y) (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)))
(*.f64 y (neg.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64))))
(/.f64 (*.f64 (-.f64 (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)) #s(literal 1 binary64)) (neg.f64 y)) (-.f64 (neg.f64 (/.f64 x y)) #s(literal -1 binary64)))
(/.f64 (*.f64 (fma.f64 (pow.f64 (/.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) #s(literal -1 binary64)) (neg.f64 y)) (+.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 x y) #s(literal 1 binary64))) (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64))))
(/.f64 (*.f64 (neg.f64 y) (-.f64 (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)) #s(literal 1 binary64))) (-.f64 (neg.f64 (/.f64 x y)) #s(literal -1 binary64)))
(/.f64 (*.f64 (neg.f64 y) (fma.f64 (pow.f64 (/.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) #s(literal -1 binary64))) (+.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 x y) #s(literal 1 binary64))) (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64))))
(/.f64 (-.f64 (*.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y))) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y)))) (-.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (neg.f64 (neg.f64 y))))
(/.f64 (+.f64 (pow.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) #s(literal 3 binary64)) (pow.f64 (neg.f64 (neg.f64 y)) #s(literal 3 binary64))) (fma.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (-.f64 (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y))) (*.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (neg.f64 (neg.f64 y))))))
(neg.f64 (*.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)) y))
(fma.f64 (*.f64 (neg.f64 y) (/.f64 x y)) #s(literal -1 binary64) (neg.f64 (neg.f64 y)))
(fma.f64 (neg.f64 (neg.f64 y)) (/.f64 x y) (neg.f64 (neg.f64 y)))
(fma.f64 (neg.f64 (/.f64 x y)) (neg.f64 y) (neg.f64 (neg.f64 y)))
(fma.f64 #s(literal -1 binary64) (*.f64 (/.f64 x y) (neg.f64 y)) (neg.f64 (neg.f64 y)))
(fma.f64 #s(literal -1 binary64) (neg.f64 y) (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)))
(fma.f64 (/.f64 x y) (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y)))
(fma.f64 (neg.f64 y) (neg.f64 (/.f64 x y)) (neg.f64 (neg.f64 y)))
(fma.f64 (neg.f64 y) #s(literal -1 binary64) (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)))
(-.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (*.f64 y #s(literal -1 binary64)))
(-.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (*.f64 #s(literal 1 binary64) (neg.f64 y)))
(-.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (*.f64 (neg.f64 (neg.f64 y)) #s(literal -1 binary64)))
(+.f64 (neg.f64 (neg.f64 y)) (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)))
(+.f64 (*.f64 (neg.f64 (/.f64 x y)) (neg.f64 y)) (neg.f64 (neg.f64 y)))
(*.f64 (-.f64 (/.f64 x y) #s(literal -1 binary64)) #s(literal -1 binary64))
(*.f64 #s(literal -1 binary64) (-.f64 (/.f64 x y) #s(literal -1 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64))) (-.f64 #s(literal -1 binary64) (neg.f64 (/.f64 x y))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)) #s(literal 1 binary64))) (neg.f64 (-.f64 (neg.f64 (/.f64 x y)) #s(literal -1 binary64))))
(/.f64 (neg.f64 (fma.f64 (pow.f64 (/.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) #s(literal -1 binary64))) (neg.f64 (+.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 x y) #s(literal 1 binary64))) (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)) #s(literal 1 binary64)) (-.f64 (neg.f64 (/.f64 x y)) #s(literal -1 binary64)))
(/.f64 (fma.f64 (pow.f64 (/.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) #s(literal -1 binary64)) (+.f64 #s(literal 1 binary64) (-.f64 (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)) (*.f64 (/.f64 x y) #s(literal 1 binary64)))))
(/.f64 (fma.f64 (pow.f64 (/.f64 x y) #s(literal 3 binary64)) #s(literal -1 binary64) #s(literal -1 binary64)) (+.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 x y) #s(literal 1 binary64))) (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64))))
(fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64))
(fma.f64 (/.f64 x y) #s(literal -1 binary64) #s(literal -1 binary64))
(fma.f64 x (/.f64 #s(literal -1 binary64) y) #s(literal -1 binary64))
(-.f64 (/.f64 (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)) (-.f64 (neg.f64 (/.f64 x y)) #s(literal -1 binary64))) (/.f64 #s(literal 1 binary64) (-.f64 (neg.f64 (/.f64 x y)) #s(literal -1 binary64))))
(-.f64 #s(literal -1 binary64) (*.f64 #s(literal 1 binary64) (/.f64 x y)))
(-.f64 #s(literal -1 binary64) (*.f64 (/.f64 x y) #s(literal 1 binary64)))
(+.f64 (/.f64 (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 3 binary64)) (+.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 x y) #s(literal 1 binary64))) (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)))) (/.f64 #s(literal -1 binary64) (+.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 x y) #s(literal 1 binary64))) (pow.f64 (neg.f64 (/.f64 x y)) #s(literal 2 binary64)))))
(+.f64 (neg.f64 (/.f64 x y)) #s(literal -1 binary64))
(+.f64 #s(literal -1 binary64) (neg.f64 (/.f64 x y)))
(*.f64 (pow.f64 #s(approx (+ x y) (*.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)) (neg.f64 y))) #s(literal 1/4 binary64)) (pow.f64 #s(approx (+ x y) (*.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)) (neg.f64 y))) #s(literal 1/4 binary64)))
(pow.f64 #s(approx (+ x y) (*.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)) (neg.f64 y))) #s(literal 1/2 binary64))
(sqrt.f64 #s(approx (+ x y) (*.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)) (neg.f64 y))))
(exp.f64 (*.f64 (log.f64 #s(approx (+ x y) (*.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)) (neg.f64 y)))) #s(literal 1/2 binary64)))
#s(approx (+ x y) (*.f64 (fma.f64 #s(literal -1 binary64) (/.f64 x y) #s(literal -1 binary64)) (neg.f64 y)))
(*.f64 (-.f64 (/.f64 y x) #s(literal -1 binary64)) x)
(*.f64 x (-.f64 (/.f64 y x) #s(literal -1 binary64)))
(/.f64 (-.f64 (*.f64 x x) (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64))) (-.f64 x (*.f64 (/.f64 y x) x)))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64)) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 (/.f64 y x) x) x)))
(/.f64 (neg.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 x (-.f64 x (*.f64 (/.f64 y x) x)) (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64)) (*.f64 x x)) (-.f64 (*.f64 (/.f64 y x) x) x))
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 3 binary64))) (fma.f64 x x (-.f64 (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64)) (*.f64 (*.f64 (/.f64 y x) x) x))))
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 3 binary64))) (fma.f64 x (-.f64 x (*.f64 (/.f64 y x) x)) (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64))))
(fma.f64 (/.f64 y x) x x)
(fma.f64 y (/.f64 x x) x)
(fma.f64 x (/.f64 y x) x)
(-.f64 (/.f64 (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64)) (-.f64 (*.f64 (/.f64 y x) x) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 (/.f64 y x) x) x)))
(-.f64 x (*.f64 (neg.f64 (/.f64 y x)) x))
(-.f64 x (*.f64 (neg.f64 x) (/.f64 y x)))
(+.f64 (/.f64 (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 3 binary64)) (fma.f64 x (-.f64 x (*.f64 (/.f64 y x) x)) (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64)))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x (-.f64 x (*.f64 (/.f64 y x) x)) (pow.f64 (*.f64 (/.f64 y x) x) #s(literal 2 binary64)))))
(+.f64 (*.f64 (/.f64 y x) x) x)
(+.f64 x (*.f64 (/.f64 y x) x))
(*.f64 (pow.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)) #s(literal 1/4 binary64)) (pow.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)) #s(literal 1/4 binary64)))
(pow.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)) #s(literal 1/2 binary64))
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
(exp.f64 (*.f64 (log.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x))) #s(literal 1/2 binary64)))
#s(approx (+ x y) (fma.f64 (/.f64 y x) x x))
(/.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 x)))
(/.f64 (neg.f64 y) (neg.f64 x))
(/.f64 y x)
(neg.f64 (/.f64 (neg.f64 y) x))
(neg.f64 (/.f64 y (neg.f64 x)))
(neg.f64 y)

eval12.0ms (0.5%)

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

Compiled 2 203 to 468 computations (78.8% saved)

prune6.0ms (0.3%)

Memory
-34.9MiB live, 9.7MiB allocated; 9ms collecting garbage
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New1051106
Fresh000
Picked123
Done011
Total1064110
Accuracy
100.0%
Counts
110 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(sqrt.f64 (+.f64 x y))
74.1%
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
100.0%
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))))
98.1%
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
Compiler

Compiled 43 to 32 computations (25.6% saved)

simplify164.0ms (6.9%)

Memory
24.3MiB live, 170.8MiB allocated; 21ms collecting garbage
Localize:

Found 4 expressions of interest:

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

Useful iterations: 2 (0.0ms)

IterNodesCost
01483
01983
13079
24975
37975
416075
543375
6245075
7780375
0801175
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))))
#s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))))
(*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))
(neg.f64 y)
y
#s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))
(-.f64 #s(literal -1 binary64) (/.f64 x y))
#s(literal -1 binary64)
(/.f64 x y)
x
Outputs
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))))
(sqrt.f64 #s(approx (+ x y) (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y))))
#s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))))
#s(approx (+ x y) (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y)))
(*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))
(*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y))
(neg.f64 y)
y
#s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))
(-.f64 #s(literal -1 binary64) (/.f64 x y))
#s(literal -1 binary64)
(/.f64 x y)
x

localize31.0ms (1.3%)

Memory
-4.7MiB live, 87.6MiB allocated; 6ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
#s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))
accuracy0.0
#s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))))
accuracy0.0078125
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))))
accuracy0.0234375
(*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))
Samples
22.0ms255×0valid
0.0ms5exit
Compiler

Compiled 39 to 13 computations (66.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 13.0ms
ival-mult: 3.0ms (23.3% of total)
ival-add: 3.0ms (23.3% of total)
ival-div: 2.0ms (15.5% of total)
ival-sqrt: 2.0ms (15.5% of total)
ival-sub: 1.0ms (7.8% of total)
ival-neg: 1.0ms (7.8% 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)

series4.0ms (0.1%)

Memory
15.1MiB live, 15.1MiB allocated; 0ms collecting garbage
Counts
5 → 35
Calls
Call 1
Inputs
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))))
#s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))))
(*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))
(neg.f64 y)
#s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))
Outputs
(sqrt y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
y
(+ x y)
-1
(- (* -1 (/ x y)) 1)
(sqrt x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
x
(* x (+ 1 (/ y x)))
(* -1 (/ x y))
(* -1 (* x (+ (/ 1 x) (/ 1 y))))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(* -1 y)
(/ (+ (* -1 x) (* -1 y)) y)
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(* y (+ 1 (/ x y)))
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Calls

6 calls:

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

simplify202.0ms (8.5%)

Memory
-19.8MiB live, 312.3MiB allocated; 29ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0163614
1526584
22106541
07164505
Stop Event
iter limit
iter limit
node limit
Counts
35 → 33
Calls
Call 1
Inputs
(sqrt y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
y
(+ x y)
-1
(- (* -1 (/ x y)) 1)
(sqrt x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
x
(* x (+ 1 (/ y x)))
(* -1 (/ x y))
(* -1 (* x (+ (/ 1 x) (/ 1 y))))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(* -1 y)
(/ (+ (* -1 x) (* -1 y)) y)
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(* y (+ 1 (/ x y)))
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Outputs
(sqrt y)
(sqrt.f64 y)
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y)))))
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (sqrt.f64 y))
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 y))
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5))))))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) #s(literal -1/8 binary64))) x (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 y))
y
(+ x y)
(+.f64 y x)
-1
#s(literal -1 binary64)
(- (* -1 (/ x y)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 x y))
(sqrt x)
(sqrt.f64 x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))
(*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))
(*.f64 (fma.f64 y (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) #s(literal -1/8 binary64)) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))))
(*.f64 (fma.f64 (*.f64 y y) (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64)))) #s(literal 1/16 binary64)) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) #s(literal -1/8 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x)
x
(* x (+ 1 (/ y x)))
(+.f64 y x)
(* -1 (/ x y))
(/.f64 (neg.f64 x) y)
(* -1 (* x (+ (/ 1 x) (/ 1 y))))
(-.f64 #s(literal -1 binary64) (/.f64 x y))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(sqrt.f64 x)
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x)
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(*.f64 (fma.f64 (*.f64 (*.f64 y y) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x)
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
(*.f64 (fma.f64 (*.f64 (*.f64 y y) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/16 binary64) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64))))) (pow.f64 y #s(literal 3 binary64)) (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))))) x)
(* -1 (* x (- (* -1 (/ y x)) 1)))
(*.f64 (neg.f64 x) (fma.f64 (/.f64 y x) #s(literal -1 binary64) #s(literal -1 binary64)))
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y)))
(fma.f64 (*.f64 #s(literal 1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) (sqrt.f64 x))
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x))))))
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 x))
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y)))))))
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal -1/8 binary64))) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 x))
(* -1 y)
(neg.f64 y)
(/ (+ (* -1 x) (* -1 y)) y)
(-.f64 #s(literal -1 binary64) (/.f64 x y))
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))
(*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y)
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))
(*.f64 (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y)
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))))
(*.f64 (fma.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/16 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) y)
(* y (+ 1 (/ x y)))
(+.f64 y x)
(* -1 (* (sqrt y) (pow (sqrt -1) 2)))
(sqrt.f64 y)
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y)
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))
(*.f64 (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y)
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))))
(*.f64 (fma.f64 (*.f64 #s(literal -1/16 binary64) (pow.f64 x #s(literal 3 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) y)
(* -1 (* y (- (* -1 (/ x y)) 1)))
(+.f64 y x)

rewrite80.0ms (3.4%)

Memory
-3.3MiB live, 96.9MiB allocated; 22ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01472
01972
16968
046668
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
5 → 11
Calls
Call 1
Inputs
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))))
#s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))))
(*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))
(neg.f64 y)
#s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))
Outputs
(*.f64 (pow.f64 #s(approx (+ x y) (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y))) #s(literal 1/4 binary64)) (pow.f64 #s(approx (+ x y) (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y))) #s(literal 1/4 binary64)))
(pow.f64 #s(approx (+ x y) (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y))) #s(literal 1/2 binary64))
(sqrt.f64 #s(approx (+ x y) (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y))))
(exp.f64 (*.f64 (log.f64 #s(approx (+ x y) (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y)))) #s(literal 1/2 binary64)))
#s(approx (+ x y) (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y)))
(*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) (neg.f64 y))
(*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))
(*.f64 y (neg.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))))
(neg.f64 (*.f64 #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))) y))
(neg.f64 y)
#s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y)))

eval4.0ms (0.2%)

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

Compiled 898 to 170 computations (81.1% saved)

prune3.0ms (0.1%)

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

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New36036
Fresh000
Picked011
Done033
Total36440
Accuracy
100.0%
Counts
40 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(sqrt.f64 (+.f64 x y))
74.1%
(sqrt.f64 #s(approx (+ x y) (fma.f64 (/.f64 y x) x x)))
100.0%
(sqrt.f64 #s(approx (+ x y) (*.f64 (neg.f64 y) #s(approx (+ (* (/ x y) -1) -1) (-.f64 #s(literal -1 binary64) (/.f64 x y))))))
98.1%
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
Compiler

Compiled 100 to 60 computations (40% saved)

regimes11.0ms (0.5%)

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

4 calls:

5.0ms
(sqrt.f64 (+.f64 x y))
2.0ms
(+.f64 x y)
2.0ms
y
2.0ms
x
Results
AccuracySegmentsBranch
100.0%1(+.f64 x y)
100.0%1(sqrt.f64 (+.f64 x y))
100.0%1x
100.0%1y
Compiler

Compiled 9 to 11 computations (-22.2% saved)

regimes4.0ms (0.2%)

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

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

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

4 calls:

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

Compiled 9 to 11 computations (-22.2% saved)

simplify13.0ms (0.6%)

Memory
-10.0MiB live, 32.6MiB allocated; 8ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0811
1911
Stop Event
saturated
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 x y))
#s(approx (sqrt (+ x y)) (sqrt.f64 y))
Outputs
(sqrt.f64 (+.f64 x y))
#s(approx (sqrt (+ x y)) (sqrt.f64 y))

derivations33.0ms (1.4%)

Memory
-4.5MiB live, 39.2MiB allocated; 8ms collecting garbage
Stop Event
done
Compiler

Compiled 11 to 8 computations (27.3% saved)

preprocess13.0ms (0.5%)

Memory
44.4MiB live, 44.4MiB allocated; 0ms collecting garbage
Remove

(sort x y)

Compiler

Compiled 46 to 40 computations (13% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...