Data.Octree.Internal:octantDistance from Octree-0.5.4.2

Time bar (total: 1.5s)

analyze1.0ms (0%)

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
100%99.9%0%0.1%0%0%0%3
Compiler

Compiled 11 to 7 computations (36.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 0.0ms
ival-add: 0.0ms (0% of total)
ival-mult: 0.0ms (0% of total)
const: 0.0ms (0% of total)
ival-sqrt: 0.0ms (0% of total)

sample1.2s (81.8%)

Results
985.0ms8256×0valid
Precisions
Click to see histograms. Total time spent on operations: 264.0ms
ival-mult: 130.0ms (49.3% of total)
ival-sqrt: 71.0ms (26.9% of total)
ival-add: 52.0ms (19.7% of total)
const: 8.0ms (3% of total)
backward-pass: 3.0ms (1.1% of total)
Bogosity

preprocess75.0ms (5%)

Algorithm
egg-herbie
Rules
52×fma-neg
45×fma-define
15×distribute-lft-neg-in
15×neg-sub0
14×unsub-neg
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02499
15199
29899
318599
428299
532199
633199
Stop Event
saturated
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(sqrt.f64 (+.f64 (*.f64 (neg.f64 x) (neg.f64 x)) (*.f64 y y)))
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 (neg.f64 y) (neg.f64 y))))
(neg.f64 (sqrt.f64 (+.f64 (*.f64 (neg.f64 x) (neg.f64 x)) (*.f64 y y))))
(neg.f64 (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 (neg.f64 y) (neg.f64 y)))))
(sqrt.f64 (+.f64 (*.f64 y y) (*.f64 x x)))
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(hypot.f64 x y)
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
(hypot.f64 x y)
(sqrt.f64 (+.f64 (*.f64 (neg.f64 x) (neg.f64 x)) (*.f64 y y)))
(hypot.f64 x y)
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 (neg.f64 y) (neg.f64 y))))
(hypot.f64 x y)
(neg.f64 (sqrt.f64 (+.f64 (*.f64 (neg.f64 x) (neg.f64 x)) (*.f64 y y))))
(neg.f64 (hypot.f64 x y))
(neg.f64 (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 (neg.f64 y) (neg.f64 y)))))
(neg.f64 (hypot.f64 x y))
(sqrt.f64 (+.f64 (*.f64 y y) (*.f64 x x)))
(hypot.f64 x y)
Symmetry

(abs x)

(abs y)

(sort x y)

explain76.0ms (5.1%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1270-2(1.7424543998158204e-176 2.348111551823495e-162)(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
00-0-x
00-0-(*.f64 x x)
00-0-(*.f64 y y)
00-0-y
00-0-(+.f64 (*.f64 x x) (*.f64 y y))
Results
51.0ms512×256valid
Compiler

Compiled 62 to 20 computations (67.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 17.0ms
ival-mult: 8.0ms (46.9% of total)
ival-sqrt: 5.0ms (29.3% of total)
ival-add: 4.0ms (23.5% of total)
const: 0.0ms (0% of total)

eval0.0ms (0%)

Compiler

Compiled 5 to 3 computations (40% saved)

prune2.0ms (0.1%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x y)
Compiler

Compiled 5 to 3 computations (40% saved)

localize39.0ms (2.7%)

Results
33.0ms256×256valid
Compiler

Compiled 8 to 4 computations (50% saved)

Precisions
Click to see histograms. Total time spent on operations: 17.0ms
composed: 9.0ms (53.7% of total)
ival-mult: 4.0ms (23.9% of total)
ival-sqrt: 3.0ms (17.9% of total)
ival-add: 1.0ms (6% of total)
const: 0.0ms (0% of total)

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune1.0ms (0.1%)

Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done000
Total011
Accuracy
100.0%
Counts
1 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x y)
Compiler

Compiled 18 to 10 computations (44.4% saved)

regimes8.0ms (0.5%)

Accuracy

Total -29.2b remaining (-∞%)

Threshold costs -29.2b (-∞%)

Counts
2 → 1
Calls
Call 1
Inputs
(hypot.f64 x y)
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y)))
Outputs
(hypot.f64 x y)
Calls

6 calls:

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

Compiled 35 to 21 computations (40% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0813
Stop Event
saturated
Calls
Call 1
Inputs
(hypot.f64 x y)
Outputs
(hypot.f64 x y)

soundness22.0ms (1.5%)

Rules
52×fma-neg
45×fma-define
15×distribute-lft-neg-in
15×neg-sub0
14×unsub-neg
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02499
15199
29899
318599
428299
532199
633199
Stop Event
done
saturated
Compiler

Compiled 18 to 10 computations (44.4% saved)

preprocess44.0ms (2.9%)

Remove

(sort x y)

(abs y)

(abs x)

Compiler

Compiled 132 to 80 computations (39.4% saved)

end0.0ms (0%)

Profiling

Loading profile data...