sqrt A (should all be same)

Time bar (total: 869.0ms)

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 4 computations (60% saved)

sample505.0ms (58.1%)

Memory
7.3MiB live, 807.0MiB allocated; 150ms collecting garbage
Samples
359.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 161.0ms
ival-hypot: 159.0ms (98.9% of total)
adjust: 1.0ms (0.6% of total)
Bogosity

preprocess57.0ms (6.5%)

Memory
-23.7MiB live, 21.1MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0919
13819
211719
320919
460119
5324719
Stop Event
node-limit
Alt Table
Click to see full alt table
StatusAccuracyProgram
51.4%
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
Symmetry

(abs x)

Compiler

Compiled 10 to 8 computations (20% saved)

series3.0ms (0.3%)

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

3 calls:

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

rewrite53.0ms (6.1%)

Memory
-9.3MiB live, 42.2MiB allocated; 36ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01970
02259
06650
Stop Event
iter-limit
iter-limit
iter-limit
unsound
iter-limit
Counts
9 → 44
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
(+.f64 (*.f64 x x) (*.f64 x x))
(*.f64 x x)
x
#s(approx (sqrt (+ (* x x) (* x x))) #s(hole binary64 (* x (sqrt 2))))
#s(approx (+ (* x x) (* x x)) #s(hole binary64 (* 2 (pow x 2))))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt (+ (* x x) (* x x))) #s(hole binary64 (* -1 (* x (sqrt 2)))))
Outputs
(pow.f64 (*.f64 x (+.f64 x x)) #s(literal 1/2 binary64))
(sqrt.f64 (*.f64 x (+.f64 x x)))
(fabs.f64 (sqrt.f64 (*.f64 x (+.f64 x 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)) (fabs.f64 x))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 x))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x)
(hypot.f64 (fabs.f64 x) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 x) (fabs.f64 x))
(hypot.f64 (fabs.f64 x) (neg.f64 x))
(hypot.f64 (fabs.f64 x) x)
(hypot.f64 (neg.f64 x) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 x) (fabs.f64 x))
(hypot.f64 (neg.f64 x) (neg.f64 x))
(hypot.f64 (neg.f64 x) x)
(hypot.f64 x (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 x (fabs.f64 x))
(hypot.f64 x (neg.f64 x))
(hypot.f64 x x)
(*.f64 (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x x) (*.f64 x x))) (*.f64 x x))
(*.f64 #s(literal 2 binary64) (*.f64 x x))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 x (+.f64 x x))
(/.f64 (-.f64 (*.f64 (*.f64 x x) (*.f64 x x)) (*.f64 (*.f64 x x) (*.f64 x x))) (-.f64 (*.f64 x x) (*.f64 x x)))
(/.f64 (+.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) (pow.f64 (*.f64 x x) #s(literal 3 binary64))) (fma.f64 (*.f64 x x) (*.f64 x x) (-.f64 (*.f64 (*.f64 x x) (*.f64 x x)) (*.f64 (*.f64 x 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 (fabs.f64 x) (fabs.f64 x) (*.f64 x x))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 x x))
(fma.f64 x x (*.f64 x x))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 x) x))
(-.f64 (*.f64 x x) (neg.f64 (*.f64 x x)))
(+.f64 (*.f64 x x) (*.f64 x x))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 x x)
(pow.f64 x #s(literal 2 binary64))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
x
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(approx (+ (* x x) (* x x)) (*.f64 x (+.f64 x x)))
#s(approx (* x x) (*.f64 x x))
#s(approx x x)
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))

eval8.0ms (1%)

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

Compiled 202 to 96 computations (52.5% saved)

prune2.0ms (0.2%)

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

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New37441
Fresh000
Picked101
Done000
Total38442
Accuracy
100.0%
Counts
42 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
51.4%
(sqrt.f64 (*.f64 x (+.f64 x x)))
99.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
2.2%
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
Compiler

Compiled 25 to 23 computations (8% saved)

series5.0ms (0.6%)

Memory
10.1MiB live, 10.1MiB allocated; 0ms collecting garbage
Counts
11 → 5
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
(neg.f64 (*.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 (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(sqrt.f64 (*.f64 x (+.f64 x x)))
(*.f64 x (+.f64 x x))
(+.f64 x x)
(hypot.f64 x x)
Outputs
#s(approx (sqrt (+ (* x x) (* x x))) #s(hole binary64 (* x (sqrt 2))))
#s(approx (neg (* (sqrt 2) x)) #s(hole binary64 (* -1 (* x (sqrt 2)))))
#s(approx x #s(hole binary64 x))
#s(approx (* x (+ x x)) #s(hole binary64 (* 2 (pow x 2))))
#s(approx (+ x x) #s(hole binary64 (* 2 x)))
Calls

3 calls:

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

rewrite41.0ms (4.8%)

Memory
-21.0MiB live, 25.3MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03088
03884
010184
Stop Event
iter-limit
iter-limit
iter-limit
unsound
iter-limit
Counts
16 → 81
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
(neg.f64 (*.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 (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(sqrt.f64 (*.f64 x (+.f64 x x)))
(*.f64 x (+.f64 x x))
(+.f64 x x)
(hypot.f64 x x)
#s(approx (sqrt (+ (* x x) (* x x))) #s(hole binary64 (* x (sqrt 2))))
#s(approx (neg (* (sqrt 2) x)) #s(hole binary64 (* -1 (* x (sqrt 2)))))
#s(approx x #s(hole binary64 x))
#s(approx (* x (+ x x)) #s(hole binary64 (* 2 (pow x 2))))
#s(approx (+ x x) #s(hole binary64 (* 2 x)))
Outputs
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
(*.f64 (*.f64 #s(literal -1 binary64) x) (sqrt.f64 #s(literal 2 binary64)))
(*.f64 (neg.f64 (sqrt.f64 #s(literal 2 binary64))) x)
(*.f64 #s(literal -1 binary64) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #s(literal -1 binary64))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x))
(neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64))
(sqrt.f64 #s(literal 2 binary64))
(fabs.f64 (sqrt.f64 #s(literal 2 binary64)))
#s(literal 2 binary64)
x
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(pow.f64 (*.f64 (+.f64 x x) x) #s(literal 1/2 binary64))
(sqrt.f64 (*.f64 (+.f64 x x) x))
(fabs.f64 (sqrt.f64 (*.f64 (+.f64 x x) 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)) (fabs.f64 x))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 x))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x)
(hypot.f64 (fabs.f64 x) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 x) (fabs.f64 x))
(hypot.f64 (fabs.f64 x) (neg.f64 x))
(hypot.f64 (fabs.f64 x) x)
(hypot.f64 (neg.f64 x) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 x) (fabs.f64 x))
(hypot.f64 (neg.f64 x) (neg.f64 x))
(hypot.f64 (neg.f64 x) x)
(hypot.f64 x (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 x (fabs.f64 x))
(hypot.f64 x (neg.f64 x))
(hypot.f64 x x)
(*.f64 (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x x) (*.f64 x x))) (*.f64 x x))
(*.f64 (+.f64 x x) x)
(*.f64 #s(literal 2 binary64) (*.f64 x x))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 x (+.f64 x x))
(/.f64 (-.f64 (*.f64 (*.f64 x x) (*.f64 x x)) (*.f64 (*.f64 x x) (*.f64 x x))) (-.f64 (*.f64 x x) (*.f64 x x)))
(/.f64 (+.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) (pow.f64 (*.f64 x x) #s(literal 3 binary64))) (fma.f64 (*.f64 x x) (*.f64 x x) (-.f64 (*.f64 (*.f64 x x) (*.f64 x x)) (*.f64 (*.f64 x 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 (fabs.f64 x) (fabs.f64 x) (*.f64 x x))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 x x))
(fma.f64 x x (*.f64 x x))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 x) x))
(-.f64 (*.f64 x x) (neg.f64 (*.f64 x x)))
(+.f64 (*.f64 x x) (*.f64 x x))
(*.f64 (+.f64 #s(literal 1 binary64) (/.f64 x x)) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 x #s(literal 2 binary64))
(/.f64 (-.f64 (*.f64 x x) (*.f64 x x)) (-.f64 x x))
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x (-.f64 (*.f64 x x) (*.f64 x x))))
(-.f64 x (neg.f64 x))
(+.f64 x x)
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(pow.f64 (*.f64 (+.f64 x x) x) #s(literal 1/2 binary64))
(sqrt.f64 (*.f64 (+.f64 x x) x))
(fabs.f64 (sqrt.f64 (*.f64 (+.f64 x x) 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)) (fabs.f64 x))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 x))
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x)
(hypot.f64 (fabs.f64 x) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (fabs.f64 x) (fabs.f64 x))
(hypot.f64 (fabs.f64 x) (neg.f64 x))
(hypot.f64 (fabs.f64 x) x)
(hypot.f64 (neg.f64 x) (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 (neg.f64 x) (fabs.f64 x))
(hypot.f64 (neg.f64 x) (neg.f64 x))
(hypot.f64 (neg.f64 x) x)
(hypot.f64 x (pow.f64 x #s(literal 1 binary64)))
(hypot.f64 x (fabs.f64 x))
(hypot.f64 x (neg.f64 x))
(hypot.f64 x x)
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(approx (neg (* (sqrt 2) x)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
#s(approx x x)
#s(approx (* x (+ x x)) (*.f64 (+.f64 x x) x))
#s(approx (+ x x) (+.f64 x x))

eval5.0ms (0.6%)

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

Compiled 265 to 144 computations (45.7% saved)

prune3.0ms (0.3%)

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

5 alts after pruning (1 fresh and 4 done)

PrunedKeptTotal
New56157
Fresh000
Picked044
Done000
Total56561
Accuracy
100.0%
Counts
61 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.5%
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
51.4%
(sqrt.f64 (*.f64 x (+.f64 x x)))
99.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
2.2%
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
Compiler

Compiled 30 to 28 computations (6.7% saved)

series3.0ms (0.4%)

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

3 calls:

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

rewrite39.0ms (4.5%)

Memory
-22.5MiB live, 23.1MiB allocated; 5ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
036121
041114
0118114
Stop Event
iter-limit
iter-limit
iter-limit
unsound
iter-limit
Counts
15 → 28
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(sqrt.f64 x)
x
(sqrt.f64 (+.f64 x x))
(+.f64 x x)
#s(approx (* (sqrt x) (sqrt (+ x x))) #s(hole binary64 (* (sqrt x) (sqrt (* 2 x)))))
#s(approx (sqrt x) #s(hole binary64 (sqrt x)))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt (+ x x)) #s(hole binary64 (sqrt (* 2 x))))
#s(approx (+ x x) #s(hole binary64 (* 2 x)))
#s(approx (* (sqrt x) (sqrt (+ x x))) #s(hole binary64 (* (pow x 2) (* (sqrt (/ 1 x)) (sqrt (/ 2 x))))))
#s(approx (sqrt x) #s(hole binary64 (* x (sqrt (/ 1 x)))))
#s(approx (sqrt (+ x x)) #s(hole binary64 (* x (sqrt (/ 2 x)))))
#s(approx (sqrt x) #s(hole binary64 (* -1 (* x (sqrt (/ 1 x))))))
#s(approx (sqrt (+ x x)) #s(hole binary64 (* -1 (* x (sqrt (/ 2 x))))))
Outputs
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(sqrt.f64 (*.f64 x (+.f64 x x)))
(pow.f64 x #s(literal 1/2 binary64))
(sqrt.f64 x)
(fabs.f64 (sqrt.f64 x))
x
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x))
(pow.f64 (+.f64 x x) #s(literal 1/2 binary64))
(sqrt.f64 (+.f64 x x))
(fabs.f64 (sqrt.f64 (+.f64 x x)))
(*.f64 (+.f64 #s(literal 1 binary64) (/.f64 x x)) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 x #s(literal 2 binary64))
(/.f64 (-.f64 (*.f64 x x) (*.f64 x x)) (-.f64 x x))
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x (-.f64 (*.f64 x x) (*.f64 x x))))
(-.f64 x (neg.f64 x))
(+.f64 x x)
#s(approx (* (sqrt x) (sqrt (+ x x))) (sqrt.f64 (*.f64 x (+.f64 x x))))
#s(approx (sqrt x) (sqrt.f64 x))
#s(approx x x)
#s(approx (sqrt (+ x x)) (sqrt.f64 (+.f64 x x)))
#s(approx (+ x x) (+.f64 x x))
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (sqrt.f64 (*.f64 (/.f64 #s(literal 1 binary64) x) (/.f64 #s(literal 2 binary64) x))) (*.f64 x x)))
#s(approx (sqrt x) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x))
#s(approx (sqrt (+ x x)) (*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) x)) x))
#s(approx (sqrt x) (neg.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)))
#s(approx (sqrt (+ x x)) (neg.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) x)) x)))

eval4.0ms (0.5%)

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

Compiled 129 to 86 computations (33.3% saved)

prune2.0ms (0.2%)

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

6 alts after pruning (1 fresh and 5 done)

PrunedKeptTotal
New21122
Fresh000
Picked011
Done044
Total21627
Accuracy
100.0%
Counts
27 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.5%
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
51.4%
(sqrt.f64 (*.f64 x (+.f64 x x)))
47.8%
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (sqrt.f64 (*.f64 (/.f64 #s(literal 1 binary64) x) (/.f64 #s(literal 2 binary64) x))) (*.f64 x x)))
99.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
2.2%
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
Compiler

Compiled 44 to 42 computations (4.5% saved)

series5.0ms (0.5%)

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

3 calls:

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

rewrite37.0ms (4.3%)

Memory
-10.6MiB live, 34.8MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
046196
054169
0154169
Stop Event
iter-limit
iter-limit
iter-limit
unsound
iter-limit
Counts
21 → 47
Calls
Call 1
Inputs
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (sqrt.f64 (*.f64 (/.f64 #s(literal 1 binary64) x) (/.f64 #s(literal 2 binary64) x))) (*.f64 x x)))
(*.f64 (sqrt.f64 (*.f64 (/.f64 #s(literal 1 binary64) x) (/.f64 #s(literal 2 binary64) x))) (*.f64 x x))
(sqrt.f64 (*.f64 (/.f64 #s(literal 1 binary64) x) (/.f64 #s(literal 2 binary64) x)))
(*.f64 (/.f64 #s(literal 1 binary64) x) (/.f64 #s(literal 2 binary64) x))
(/.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
x
(/.f64 #s(literal 2 binary64) x)
#s(literal 2 binary64)
(*.f64 x x)
#s(approx (* (sqrt x) (sqrt (+ x x))) #s(hole binary64 (* (sqrt x) (sqrt (* 2 x)))))
#s(approx (* (sqrt (* (/ 1 x) (/ 2 x))) (* x x)) #s(hole binary64 (* x (sqrt 2))))
#s(approx (sqrt (* (/ 1 x) (/ 2 x))) #s(hole binary64 (/ (sqrt 2) x)))
#s(approx (* (/ 1 x) (/ 2 x)) #s(hole binary64 (/ 2 (pow x 2))))
#s(approx (/ 1 x) #s(hole binary64 (/ 1 x)))
#s(approx x #s(hole binary64 x))
#s(approx (/ 2 x) #s(hole binary64 (/ 2 x)))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#s(approx (* (sqrt x) (sqrt (+ x x))) #s(hole binary64 (* (pow x 2) (* (sqrt (/ 1 x)) (sqrt (/ 2 x))))))
#s(approx (* (sqrt (* (/ 1 x) (/ 2 x))) (* x x)) #s(hole binary64 (* -1 (* x (sqrt 2)))))
#s(approx (sqrt (* (/ 1 x) (/ 2 x))) #s(hole binary64 (* -1 (/ (sqrt 2) x))))
Outputs
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (*.f64 x x) (sqrt.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x)))))
(*.f64 (*.f64 (*.f64 x x) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))
(*.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x))) x) x)
(*.f64 (*.f64 x x) (sqrt.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x))))
(*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x))) (*.f64 x x))
(*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)))
(*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))
(pow.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x)) #s(literal 1/2 binary64))
(sqrt.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x)))
(fabs.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x))))
(*.f64 (/.f64 #s(literal 2 binary64) x) (/.f64 #s(literal 1 binary64) x))
(*.f64 (/.f64 #s(literal 1 binary64) x) (/.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x x)))
(/.f64 (*.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 2 binary64)) x)
(/.f64 (*.f64 #s(literal 1 binary64) (/.f64 #s(literal 2 binary64) x)) x)
(/.f64 #s(literal -2 binary64) (neg.f64 (*.f64 x x)))
(/.f64 #s(literal 2 binary64) (*.f64 x x))
(/.f64 #s(literal 1 binary64) (/.f64 (*.f64 x x) #s(literal 2 binary64)))
(*.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) x))
(pow.f64 x #s(literal -1 binary64))
(/.f64 #s(literal -1 binary64) (neg.f64 x))
(/.f64 #s(literal 1 binary64) (/.f64 x #s(literal 1 binary64)))
(/.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
x
(*.f64 #s(literal 2 binary64) (/.f64 #s(literal 1 binary64) x))
(/.f64 #s(literal -2 binary64) (neg.f64 x))
(/.f64 #s(literal 2 binary64) x)
(/.f64 #s(literal 1 binary64) (/.f64 x #s(literal 2 binary64)))
#s(literal 2 binary64)
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 x x)
(pow.f64 x #s(literal 2 binary64))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
#s(approx (* (sqrt x) (sqrt (+ x x))) (sqrt.f64 (*.f64 x (+.f64 x x))))
#s(approx (* (sqrt (* (/ 1 x) (/ 2 x))) (* x x)) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(approx (sqrt (* (/ 1 x) (/ 2 x))) (/.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(approx (* (/ 1 x) (/ 2 x)) (/.f64 #s(literal 2 binary64) (*.f64 x x)))
#s(approx (/ 1 x) (/.f64 #s(literal 1 binary64) x))
#s(approx x x)
#s(approx (/ 2 x) (/.f64 #s(literal 2 binary64) x))
#s(approx (* x x) (*.f64 x x))
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (*.f64 x x) (sqrt.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x)))))
#s(approx (* (sqrt (* (/ 1 x) (/ 2 x))) (* x x)) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
#s(approx (sqrt (* (/ 1 x) (/ 2 x))) (neg.f64 (/.f64 (sqrt.f64 #s(literal 2 binary64)) x)))

eval3.0ms (0.3%)

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

Compiled 275 to 180 computations (34.5% saved)

prune3.0ms (0.4%)

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

6 alts after pruning (1 fresh and 5 done)

PrunedKeptTotal
New38139
Fresh000
Picked101
Done055
Total39645
Accuracy
100.0%
Counts
45 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.5%
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
51.4%
(sqrt.f64 (*.f64 x (+.f64 x x)))
48.7%
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) (*.f64 x x))) x) x))
99.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
2.2%
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
Compiler

Compiled 90 to 76 computations (15.6% saved)

regimes10.0ms (1.2%)

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

4 calls:

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

Compiled 12 to 10 computations (16.7% saved)

regimes30.0ms (3.5%)

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

4 calls:

24.0ms
(+.f64 (*.f64 x x) (*.f64 x x))
2.0ms
x
2.0ms
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
2.0ms
(*.f64 x x)
Results
AccuracySegmentsBranch
99.5%1(*.f64 x x)
99.5%1(+.f64 (*.f64 x x) (*.f64 x x))
99.5%1(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
99.5%1x
Compiler

Compiled 12 to 10 computations (16.7% saved)

regimes6.0ms (0.6%)

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

Total -62.1b remaining (-14203.7%)

Threshold costs -62.1b (-14203.7%)

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

4 calls:

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

Compiled 12 to 10 computations (16.7% saved)

derivations3.0ms (0.4%)

Memory
5.0MiB live, 5.1MiB allocated; 0ms collecting garbage
Stop Event
fuel
Compiler

Compiled 14 to 13 computations (7.1% saved)

preprocess41.0ms (4.8%)

Memory
12.8MiB live, 58.9MiB allocated; 4ms collecting garbage
Compiler

Compiled 51 to 47 computations (7.8% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...