Linear.Quaternion:$clog from linear-1.19.1.3

Time bar (total: 830.0ms)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze22.0ms (2.6%)

Memory
-15.1MiB live, 28.7MiB allocated
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
50%50%50%0.1%0%0%0%3
50%50%50%0.1%0%0%0%4
62.5%62.4%37.5%0.1%0%0%0%5
66.7%62.4%31.2%0.1%0%6.2%0%6
75%65.6%21.9%0.1%0%12.5%0%7
80%68.7%17.2%0.1%0%14%0%8
85.7%70.2%11.7%0.1%0%18%0%9
88.9%71.8%9%0.1%0%19.1%0%10
92.3%72.6%6%0.1%0%21.3%0%11
94.1%73.4%4.6%0.1%0%22%0%12
Compiler

Compiled 8 to 7 computations (12.5% saved)

sample630.0ms (75.9%)

Memory
-22.8MiB live, 1 025.7MiB allocated
Samples
384.0ms8 256×0valid
16.0ms336×0invalid
Precisions
Click to see histograms. Total time spent on operations: 211.0ms
ival-mult: 82.0ms (38.8% of total)
ival-sqrt: 66.0ms (31.2% of total)
ival-add: 55.0ms (26% of total)
ival-true: 6.0ms (2.8% of total)
ival-assert: 3.0ms (1.4% of total)
Bogosity

explain59.0ms (7.1%)

Memory
8.8MiB live, 90.3MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
800-0-(sqrt.f64 (+.f64 (*.f64 x x) y))
00-0-(+.f64 (*.f64 x x) y)
00-0-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) y))oflow-rescue800
(+.f64 (*.f64 x x) y)overflow80
(*.f64 x x)overflow80
Confusion
Predicted +Predicted -
+800
-0176
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+8000
-00176
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0176
180
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
23.0ms512×0valid
Compiler

Compiled 58 to 24 computations (58.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-sqrt: 5.0ms (41.9% of total)
ival-mult: 4.0ms (33.5% of total)
ival-add: 2.0ms (16.8% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess2.0ms (0.3%)

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

Compiled 6 to 5 computations (16.7% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 6 to 5 computations (16.7% saved)

simplify0.0ms (0%)

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

Found 3 expressions of interest:

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

localize19.0ms (2.3%)

Memory
-15.4MiB live, 21.3MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 x x)
accuracy0.00390625
(+.f64 (*.f64 x x) y)
accuracy18.594502607669273
(sqrt.f64 (+.f64 (*.f64 x x) y))
Samples
15.0ms256×0valid
Compiler

Compiled 34 to 12 computations (64.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 6.0ms (63.6% of total)
ival-sqrt: 2.0ms (21.2% of total)
ival-add: 1.0ms (10.6% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series5.0ms (0.6%)

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

6 calls:

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

simplify1.0ms (0.1%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.3MiB live, 1.3MiB allocated
Compiler

Compiled 53 to 11 computations (79.2% saved)

prune1.0ms (0.1%)

Memory
2.3MiB live, 2.3MiB allocated
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New426
Fresh000
Picked011
Done000
Total437
Accuracy
70.9%
Counts
7 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
70.9%
(sqrt.f64 (+.f64 (*.f64 x x) y))
7.0%
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y))
6.2%
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x))
Compiler

Compiled 28 to 20 computations (28.6% saved)

simplify0.0ms (0%)

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

Found 5 expressions of interest:

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

localize22.0ms (2.6%)

Memory
-10.7MiB live, 25.8MiB allocated
Localize:

Found 5 expressions of interest:

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

Compiled 64 to 16 computations (75% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-mult: 2.0ms (39% of total)
ival-sqrt: 2.0ms (39% of total)
ival-add: 1.0ms (19.5% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series2.0ms (0.3%)

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

6 calls:

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

simplify1.0ms (0.1%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.6MiB live, 1.6MiB allocated
Compiler

Compiled 92 to 11 computations (88% saved)

prune2.0ms (0.2%)

Memory
3.8MiB live, 3.8MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New707
Fresh000
Picked022
Done011
Total7310
Accuracy
70.9%
Counts
10 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
70.9%
(sqrt.f64 (+.f64 (*.f64 x x) y))
7.0%
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y))
6.2%
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x))
Compiler

Compiled 56 to 30 computations (46.4% saved)

regimes9.0ms (1.1%)

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

5 calls:

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

Compiled 16 to 16 computations (0% saved)

regimes11.0ms (1.3%)

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

5 calls:

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

Compiled 16 to 16 computations (0% saved)

regimes6.0ms (0.7%)

Memory
12.4MiB live, 12.4MiB allocated
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

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

5 calls:

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

Compiled 16 to 16 computations (0% saved)

simplify4.0ms (0.5%)

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

soundness1.0ms (0.1%)

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

Compiled 28 to 10 computations (64.3% saved)

preprocess31.0ms (3.8%)

Memory
-0.8MiB live, 43.8MiB allocated
Compiler

Compiled 126 to 62 computations (50.8% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...