sqrt A (should all be same)

Time bar (total: 872.0ms)

start0.0ms (0%)

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

analyze0.0ms (0%)

Memory
0.4MiB live, 0.4MiB 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)

sample556.0ms (63.8%)

Memory
-4.4MiB live, 592.3MiB allocated; 214ms collecting garbage
Samples
410.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 155.0ms
ival-hypot: 153.0ms (98.9% of total)
adjust: 1.0ms (0.6% of total)
Bogosity

preprocess61.0ms (7%)

Memory
-32.4MiB live, 63.8MiB allocated; 16ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

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

(abs x)

Compiler

Compiled 16 to 8 computations (50% saved)

series5.0ms (0.6%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01640
Stop Event
iter-limit
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))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
#s(approx (+ (* x x) (* x x)) (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 2 binary64))))
#s(approx (* x x) (pow.f64 x #s(literal 2 binary64)))
#s(approx x x)
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))
Calls

3 calls:

TimeVariablePoint
1.0ms
x
inf
1.0ms
x
-inf
1.0ms
x
0

rewrite20.0ms (2.3%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0419
0715
03612
Stop Event
iter-limit
iter-limit
iter-limit
unsound
iter-limit
Counts
4 → 28
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
(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 (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) (fabs.f64 x))
(hypot.f64 (neg.f64 x) (neg.f64 x))
(hypot.f64 (neg.f64 x) x)
(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 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 (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 (fabs.f64 x) (fabs.f64 x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 x x)
(pow.f64 x #s(literal 2 binary64))
x

eval3.0ms (0.3%)

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

Compiled 293 to 78 computations (73.4% saved)

prune8.0ms (0.9%)

Memory
-39.5MiB live, 6.1MiB allocated; 7ms collecting garbage
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New26430
Fresh000
Picked101
Done000
Total27431
Accuracy
100.0%
Counts
31 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
55.0%
(sqrt.f64 (*.f64 x (+.f64 x x)))
99.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
2.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))
Compiler

Compiled 37 to 24 computations (35.1% saved)

series6.0ms (0.7%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01942
Stop Event
iter-limit
Counts
12 → 5
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))
(*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
#s(literal -1 binary64)
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
x
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
(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))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
#s(approx (* -1 (* x (sqrt 2))) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))
#s(approx x x)
#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))
Calls

3 calls:

TimeVariablePoint
2.0ms
x
inf
2.0ms
x
0
2.0ms
x
-inf

rewrite19.0ms (2.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01550
02145
07245
Stop Event
iter-limit
iter-limit
iter-limit
unsound
iter-limit
Counts
12 → 58
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))
(*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
#s(literal -1 binary64)
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
x
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
(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))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
(*.f64 (*.f64 #s(literal -1 binary64) x) (sqrt.f64 #s(literal 2 binary64)))
(*.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #s(literal -1 binary64))
(*.f64 #s(literal -1 binary64) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(literal -1 binary64)
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(*.f64 x (sqrt.f64 #s(literal 2 binary64)))
x
(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)
#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 (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) (fabs.f64 x))
(hypot.f64 (neg.f64 x) (neg.f64 x))
(hypot.f64 (neg.f64 x) x)
(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 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 (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 (-.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 (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) (fabs.f64 x))
(hypot.f64 (neg.f64 x) (neg.f64 x))
(hypot.f64 (neg.f64 x) x)
(hypot.f64 x (fabs.f64 x))
(hypot.f64 x (neg.f64 x))
(hypot.f64 x x)

eval4.0ms (0.5%)

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

Compiled 526 to 128 computations (75.7% saved)

prune3.0ms (0.3%)

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

5 alts after pruning (2 fresh and 3 done)

PrunedKeptTotal
New45247
Fresh000
Picked134
Done000
Total46551
Accuracy
100.0%
Counts
51 → 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)))
55.0%
(sqrt.f64 (*.f64 x (+.f64 x x)))
99.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
2.3%
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
Compiler

Compiled 43 to 28 computations (34.9% saved)

series60.0ms (6.9%)

Memory
-33.8MiB live, 13.6MiB allocated; 2ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
042124
Stop Event
iter-limit
Counts
10 → 12
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
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(sqrt.f64 x)
(sqrt.f64 (+.f64 x x))
(+.f64 x x)
Outputs
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
#s(approx (neg (* (sqrt 2) x)) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))))
#s(approx x x)
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))))
#s(approx (sqrt x) (sqrt.f64 x))
#s(approx (sqrt (+ x x)) (sqrt.f64 (*.f64 #s(literal 2 binary64) x)))
#s(approx (+ x x) (*.f64 #s(literal 2 binary64) x))
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))))
#s(approx (sqrt x) (*.f64 x (sqrt.f64 (/.f64 #s(literal 1 binary64) x))))
#s(approx (sqrt (+ x x)) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x))))
#s(approx (sqrt x) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))))
#s(approx (sqrt (+ x x)) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))))
Calls

3 calls:

TimeVariablePoint
55.0ms
x
-inf
2.0ms
x
0
1.0ms
x
inf

rewrite18.0ms (2.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01343
02040
07134
Stop Event
iter-limit
iter-limit
iter-limit
unsound
iter-limit
Counts
10 → 37
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
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(sqrt.f64 x)
(sqrt.f64 (+.f64 x x))
(+.f64 x x)
Outputs
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)))
(*.f64 (neg.f64 (sqrt.f64 #s(literal 2 binary64))) x)
(*.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
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(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 (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) (fabs.f64 x))
(hypot.f64 (neg.f64 x) (neg.f64 x))
(hypot.f64 (neg.f64 x) x)
(hypot.f64 x (fabs.f64 x))
(hypot.f64 x (neg.f64 x))
(hypot.f64 x x)
(pow.f64 x #s(literal 1/2 binary64))
(sqrt.f64 x)
(fabs.f64 (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 (-.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)

eval3.0ms (0.3%)

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

Compiled 417 to 122 computations (70.7% saved)

prune2.0ms (0.3%)

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

6 alts after pruning (1 fresh and 5 done)

PrunedKeptTotal
New37138
Fresh000
Picked022
Done033
Total37643
Accuracy
100.0%
Counts
43 → 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)))
99.4%
(*.f64 (sqrt.f64 x) #s(approx (sqrt (+ x x)) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))))
55.0%
(sqrt.f64 (*.f64 x (+.f64 x x)))
99.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
2.3%
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
Compiler

Compiled 57 to 38 computations (33.3% saved)

series5.0ms (0.6%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
035124
Stop Event
iter-limit
Counts
8 → 12
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 x) #s(approx (sqrt (+ x x)) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))))
(sqrt.f64 x)
x
#s(approx (sqrt (+ x x)) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x))))
(*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))
(sqrt.f64 (/.f64 #s(literal 2 binary64) x))
(/.f64 #s(literal 2 binary64) x)
#s(literal 2 binary64)
Outputs
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))))
#s(approx (sqrt x) (sqrt.f64 x))
#s(approx x x)
#s(approx (sqrt (+ x x)) (sqrt.f64 (*.f64 #s(literal 2 binary64) x)))
#s(approx (sqrt (/ 2 x)) (/.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) x))
#s(approx (/ 2 x) (/.f64 #s(literal 2 binary64) x))
#s(approx (* (sqrt x) (sqrt (+ x x))) (*.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))))
#s(approx (sqrt x) (*.f64 x (sqrt.f64 (/.f64 #s(literal 1 binary64) x))))
#s(approx (sqrt (+ x x)) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x))))
#s(approx (sqrt (/ 2 x)) (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))
#s(approx (sqrt x) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))))
#s(approx (sqrt (+ x x)) (*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))))
Calls

3 calls:

TimeVariablePoint
1.0ms
x
-inf
1.0ms
x
inf
1.0ms
x
0

rewrite24.0ms (2.8%)

Memory
-22.0MiB live, 23.9MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01042
01542
05042
Stop Event
iter-limit
iter-limit
iter-limit
unsound
iter-limit
Counts
8 → 18
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 x) #s(approx (sqrt (+ x x)) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))))
(sqrt.f64 x)
x
#s(approx (sqrt (+ x x)) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x))))
(*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))
(sqrt.f64 (/.f64 #s(literal 2 binary64) x))
(/.f64 #s(literal 2 binary64) x)
#s(literal 2 binary64)
Outputs
(*.f64 #s(approx (sqrt (+ x x)) (*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) x)) x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) #s(approx (sqrt (+ x x)) (*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) x)) x)))
(pow.f64 x #s(literal 1/2 binary64))
(sqrt.f64 x)
(fabs.f64 (sqrt.f64 x))
x
#s(approx (sqrt (+ x x)) (*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) x)) x))
(*.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) x)) x)
(*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))
(pow.f64 (/.f64 #s(literal 2 binary64) x) #s(literal 1/2 binary64))
(/.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x))
(sqrt.f64 (/.f64 #s(literal 2 binary64) x))
(fabs.f64 (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))
(*.f64 #s(literal 2 binary64) (/.f64 #s(literal 1 binary64) x))
(/.f64 #s(literal 1 binary64) (/.f64 x #s(literal 2 binary64)))
(/.f64 #s(literal -2 binary64) (neg.f64 x))
(/.f64 #s(literal 2 binary64) x)
#s(literal 2 binary64)

eval2.0ms (0.2%)

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

Compiled 381 to 100 computations (73.8% saved)

prune2.0ms (0.2%)

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

6 alts after pruning (0 fresh and 6 done)

PrunedKeptTotal
New23023
Fresh000
Picked011
Done055
Total23629
Accuracy
100.0%
Counts
29 → 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)))
99.4%
(*.f64 (sqrt.f64 x) #s(approx (sqrt (+ x x)) (*.f64 x (sqrt.f64 (/.f64 #s(literal 2 binary64) x)))))
55.0%
(sqrt.f64 (*.f64 x (+.f64 x x)))
99.3%
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))
2.3%
#s(approx (sqrt (+ (* x x) (* x x))) (neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)))
Compiler

Compiled 57 to 38 computations (33.3% saved)

regimes42.0ms (4.9%)

Memory
-14.8MiB live, 36.1MiB allocated; 7ms collecting garbage
Accuracy

Total -62.1b remaining (-7673.9%)

Threshold costs -62.1b (-7673.9%)

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

12 calls:

17.0ms
x
3.0ms
x
2.0ms
x
2.0ms
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
2.0ms
(+.f64 (*.f64 x x) (*.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
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
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 137 to 61 computations (55.5% saved)

derivations3.0ms (0.3%)

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

Compiled 23 to 13 computations (43.5% saved)

preprocess25.0ms (2.9%)

Memory
-3.2MiB live, 43.0MiB allocated; 3ms collecting garbage
Compiler

Compiled 77 to 47 computations (39% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...