sqrt E (should all be same)

Time bar (total: 1.4s)

start0.0ms (0%)

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

analyze0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated; 0ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 10 to 6 computations (40% saved)

sample475.0ms (33.8%)

Memory
26.1MiB live, 163.2MiB allocated; 50ms collecting garbage
Samples
294.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 172.0ms
ival-pow2: 99.0ms (57.6% of total)
ival-sqrt: 52.0ms (30.2% of total)
ival-add!: 20.0ms (11.6% of total)
adjust: 1.0ms (0.6% of total)
Bogosity

preprocess59.0ms (4.2%)

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

Useful iterations: 1 (0.0ms)

IterNodesCost
01020
11919
24619
313819
431419
5171719
Stop Event
node-limit
Alt Table
Click to see full alt table
StatusAccuracyProgram
56.1%
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
Symmetry

(abs x)

Compiler

Compiled 14 to 10 computations (28.6% saved)

series4.0ms (0.3%)

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

3 calls:

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

rewrite565.0ms (40.2%)

Memory
-42.1MiB live, 196.5MiB allocated; 109ms collecting garbage
Counts
10 → 113
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))))
(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))
(pow.f64 x #s(literal 2 binary64))
x
#s(literal 2 binary64)
#s(approx (sqrt (+ (pow x 2) (pow x 2))) #s(hole binary64 (* x (sqrt 2))))
#s(approx (+ (pow x 2) (pow x 2)) #s(hole binary64 (* 2 (pow x 2))))
#s(approx (pow x 2) #s(hole binary64 (pow x 2)))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt (+ (pow x 2) (pow x 2))) #s(hole binary64 (* -1 (* x (sqrt 2)))))
Outputs
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (pow.f64 (*.f64 x x) #s(literal 1/2 binary64)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 (*.f64 x x)))
(*.f64 (pow.f64 (*.f64 x x) #s(literal 1/2 binary64)) (sqrt.f64 #s(literal 2 binary64)))
(*.f64 (sqrt.f64 (*.f64 x x)) (sqrt.f64 #s(literal 2 binary64)))
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (/.f64 #s(literal 1/2 binary64) #s(literal 2 binary64))) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (/.f64 #s(literal 1/2 binary64) #s(literal 2 binary64))))
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64)))
(/.f64 (sqrt.f64 (*.f64 (fma.f64 (*.f64 (*.f64 x x) x) x #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (sqrt.f64 (fma.f64 (*.f64 (*.f64 x x) x) x #s(literal 0 binary64))))
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #s(literal 1/2 binary64)))
(hypot.f64 x x)
(hypot.f64 (neg.f64 x) x)
(hypot.f64 (neg.f64 x) (neg.f64 x))
(hypot.f64 (neg.f64 x) (fabs.f64 x))
(hypot.f64 (fabs.f64 x) x)
(hypot.f64 (fabs.f64 x) (neg.f64 x))
(hypot.f64 (fabs.f64 x) (fabs.f64 x))
(hypot.f64 x (neg.f64 x))
(hypot.f64 x (fabs.f64 x))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x)
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (exp.f64 (log.f64 x)))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 x))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 x))
(hypot.f64 (exp.f64 (log.f64 x)) x)
(hypot.f64 (exp.f64 (log.f64 x)) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)))
(hypot.f64 (exp.f64 (log.f64 x)) (neg.f64 x))
(hypot.f64 (exp.f64 (log.f64 x)) (fabs.f64 x))
(hypot.f64 x (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 x (exp.f64 (log.f64 x)))
(hypot.f64 (neg.f64 x) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 x) (exp.f64 (log.f64 x)))
(hypot.f64 (fabs.f64 x) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 x) (exp.f64 (log.f64 x)))
(hypot.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) x)
(hypot.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (exp.f64 (log.f64 x)))
(hypot.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (neg.f64 x))
(hypot.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (neg.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (fabs.f64 x))
(hypot.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (fabs.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) x)
(hypot.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (exp.f64 (log.f64 x)))
(hypot.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (neg.f64 x))
(hypot.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (neg.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (fabs.f64 x))
(hypot.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (fabs.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 x (neg.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (exp.f64 (log.f64 x)) (neg.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (neg.f64 x) (neg.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (fabs.f64 x) (neg.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 x (fabs.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (exp.f64 (log.f64 x)) (fabs.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (neg.f64 x) (fabs.f64 (pow.f64 x #s(literal 1 binary64))))
(hypot.f64 (fabs.f64 x) (fabs.f64 (pow.f64 x #s(literal 1 binary64))))
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64))
(sqrt.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal 2 binary64) (*.f64 x x))
(*.f64 x (+.f64 x x))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 (*.f64 #s(literal 2 binary64) x) x)
(*.f64 x (*.f64 x #s(literal 2 binary64)))
(*.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 1 binary64))) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (+.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64))))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (*.f64 (pow.f64 x #s(literal 1 binary64)) #s(literal 2 binary64)))
(+.f64 (*.f64 x x) (*.f64 x x))
(+.f64 (*.f64 #s(literal 1 binary64) (*.f64 x x)) (*.f64 #s(literal 1 binary64) (*.f64 x x)))
(+.f64 (*.f64 (*.f64 x x) #s(literal 1 binary64)) (*.f64 (*.f64 x x) #s(literal 1 binary64)))
(+.f64 (/.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) (*.f64 x x)) (fma.f64 (*.f64 (*.f64 x x) x) x #s(literal 0 binary64))) (/.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) (*.f64 x x)) (fma.f64 (*.f64 (*.f64 x x) x) x #s(literal 0 binary64))))
(-.f64 (/.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (/.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 x) x))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (pow.f64 x #s(literal 1 binary64))))
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64))
(/.f64 (neg.f64 #s(literal 0 binary64)) (neg.f64 #s(literal 0 binary64)))
(/.f64 (*.f64 (fma.f64 (*.f64 (*.f64 x x) x) x #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) (fma.f64 (*.f64 (*.f64 x x) x) x #s(literal 0 binary64)))
(/.f64 (neg.f64 (*.f64 (fma.f64 (*.f64 (*.f64 x x) x) x #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (neg.f64 (fma.f64 (*.f64 (*.f64 x x) x) x #s(literal 0 binary64))))
(fma.f64 x x (*.f64 x x))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 x x))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 x x))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) x (*.f64 x x))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 x x))
(fma.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)) (*.f64 x x))
(fma.f64 #s(literal 1 binary64) (*.f64 x x) (*.f64 #s(literal 1 binary64) (*.f64 x x)))
(fma.f64 (*.f64 x x) #s(literal 1 binary64) (*.f64 (*.f64 x x) #s(literal 1 binary64)))
(fma.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (neg.f64 (pow.f64 x #s(literal 1 binary64))) (*.f64 x x))
(fma.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (*.f64 x x))
(*.f64 x x)
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)))
(*.f64 (pow.f64 x #s(literal 1 binary64)) x)
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (pow.f64 x #s(literal 1 binary64))) (neg.f64 (pow.f64 x #s(literal 1 binary64))))
(*.f64 (fabs.f64 (pow.f64 x #s(literal 1 binary64))) (fabs.f64 (pow.f64 x #s(literal 1 binary64))))
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
(pow.f64 x #s(literal 2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1 binary64))
(pow.f64 (pow.f64 x #s(literal 1 binary64)) #s(literal 2 binary64))
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 2 binary64))
x
#s(literal 2 binary64)
(*.f64 #s(literal 2 binary64) #s(literal 1 binary64))
(+.f64 #s(literal 1 binary64) #s(literal 1 binary64))
(/.f64 (-.f64 (*.f64 #s(literal 1 binary64) #s(literal 1 binary64)) (*.f64 #s(literal 1 binary64) #s(literal 1 binary64))) (-.f64 #s(literal 1 binary64) #s(literal 1 binary64)))
(/.f64 (+.f64 (pow.f64 #s(literal 1 binary64) #s(literal 3 binary64)) (pow.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (fma.f64 #s(literal 1 binary64) #s(literal 1 binary64) (-.f64 (*.f64 #s(literal 1 binary64) #s(literal 1 binary64)) (*.f64 #s(literal 1 binary64) #s(literal 1 binary64)))))
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(approx (/ 0 0) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
#s(approx (* x x) (*.f64 x x))
#s(approx x x)
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))

eval10.0ms (0.7%)

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

Compiled 587 to 238 computations (59.5% saved)

prune4.0ms (0.3%)

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

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New1064110
Fresh000
Picked101
Done000
Total1074111
Accuracy
100.0%
Counts
111 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
56.2%
(sqrt.f64 (*.f64 x (+.f64 x x)))
2.3%
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
99.2%
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
Compiler

Compiled 23 to 23 computations (0% saved)

series5.0ms (0.3%)

Memory
4.2MiB live, 4.2MiB allocated; 0ms collecting garbage
Counts
12 → 10
Calls
Call 1
Inputs
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
x
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x))
(neg.f64 x)
(sqrt.f64 (*.f64 x (+.f64 x x)))
(*.f64 x (+.f64 x x))
(+.f64 x x)
(hypot.f64 x x)
Outputs
#s(approx (* (sqrt 2) x) #s(hole binary64 (* x (sqrt 2))))
#s(approx x #s(hole binary64 x))
#s(approx (* (sqrt 2) (neg x)) #s(hole binary64 (* -1 (* x (sqrt 2)))))
#s(approx (neg x) #s(hole binary64 (* -1 x)))
#s(approx (sqrt (* x (+ x x))) #s(hole binary64 (* x (sqrt 2))))
#s(approx (* x (+ x x)) #s(hole binary64 (* 2 (pow x 2))))
#s(approx (+ x x) #s(hole binary64 (* 2 x)))
#s(approx (sqrt (+ (* x x) (* x x))) #s(hole binary64 (* x (sqrt 2))))
#s(approx (sqrt (* x (+ x x))) #s(hole binary64 (* -1 (* x (sqrt 2)))))
#s(approx (sqrt (+ (* x x) (* x x))) #s(hole binary64 (* -1 (* x (sqrt 2)))))
Calls

3 calls:

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

rewrite242.0ms (17.2%)

Memory
-7.3MiB live, 38.8MiB allocated; 4ms collecting garbage
Counts
22 → 23
Calls
Call 1
Inputs
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
x
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x))
(neg.f64 x)
(sqrt.f64 (*.f64 x (+.f64 x x)))
(*.f64 x (+.f64 x x))
(+.f64 x x)
(hypot.f64 x x)
#s(approx (* (sqrt 2) x) #s(hole binary64 (* x (sqrt 2))))
#s(approx x #s(hole binary64 x))
#s(approx (* (sqrt 2) (neg x)) #s(hole binary64 (* -1 (* x (sqrt 2)))))
#s(approx (neg x) #s(hole binary64 (* -1 x)))
#s(approx (sqrt (* x (+ x x))) #s(hole binary64 (* x (sqrt 2))))
#s(approx (* x (+ x x)) #s(hole binary64 (* 2 (pow x 2))))
#s(approx (+ x x) #s(hole binary64 (* 2 x)))
#s(approx (sqrt (+ (* x x) (* x x))) #s(hole binary64 (* x (sqrt 2))))
#s(approx (sqrt (* x (+ x x))) #s(hole binary64 (* -1 (* x (sqrt 2)))))
#s(approx (sqrt (+ (* x x) (* x x))) #s(hole binary64 (* -1 (* x (sqrt 2)))))
Outputs
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
x
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x))
(neg.f64 x)
(sqrt.f64 (*.f64 x (+.f64 x x)))
(*.f64 x (+.f64 x x))
(+.f64 x x)
(hypot.f64 x x)
(sqrt.f64 (fma.f64 x x (*.f64 x x)))
#s(approx (* (sqrt 2) x) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
#s(approx x x)
#s(approx (* (sqrt 2) (neg x)) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))
#s(approx (neg x) (*.f64 #s(literal -1 binary64) x))
#s(approx (sqrt (* x (+ x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
#s(approx (* x (+ x x)) (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 2 binary64))))
#s(approx (+ x x) (*.f64 #s(literal 2 binary64) x))
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
#s(approx (sqrt (* x (+ x x))) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))

eval2.0ms (0.1%)

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

Compiled 88 to 53 computations (39.8% saved)

prune3.0ms (0.2%)

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

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New14014
Fresh000
Picked044
Done000
Total14418
Accuracy
100.0%
Counts
18 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
56.2%
(sqrt.f64 (*.f64 x (+.f64 x x)))
2.3%
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
99.2%
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
Compiler

Compiled 46 to 41 computations (10.9% saved)

regimes10.0ms (0.7%)

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

4 calls:

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

Compiled 17 to 13 computations (23.5% saved)

regimes7.0ms (0.5%)

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

Total -62.1b remaining (-12920.2%)

Threshold costs -62.1b (-12920.2%)

Counts
3 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
(sqrt.f64 (*.f64 x (+.f64 x x)))
Outputs
#s(approx (sqrt (/ 0 0)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
Calls

4 calls:

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

Compiled 17 to 13 computations (23.5% saved)

derivations1.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated; 0ms collecting garbage
Stop Event
done
Compiler

Compiled 9 to 9 computations (0% saved)

preprocess21.0ms (1.5%)

Memory
-26.7MiB live, 19.3MiB allocated; 3ms collecting garbage
Compiler

Compiled 36 to 34 computations (5.6% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...