bug329 (missed optimization)

Time bar (total: 1.5s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze25.0ms (1.7%)

Memory
-3.6MiB live, 38.9MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%50%50%0%0%0%0
0%0%50%50%0%0%0%1
50%25%25%50%0%0%0%2
50%25%25%50%0%0%0%3
75%37.5%12.5%50%0%0%0%4
75%37.5%12.5%50%0%0%0%5
87.5%43.7%6.2%50%0%0%0%6
87.5%43.7%6.2%50%0%0%0%7
93.8%46.8%3.1%50%0%0%0%8
93.8%46.8%3.1%50%0%0%0%9
96.9%48.4%1.6%50%0%0%0%10
96.9%48.4%1.6%50%0%0%0%11
98.4%49.2%0.8%50%0%0%0%12
Compiler

Compiled 8 to 7 computations (12.5% saved)

sample1.1s (73.5%)

Memory
11.7MiB live, 956.7MiB allocated
Samples
718.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 270.0ms
ival-div: 110.0ms (40.8% of total)
ival-atan: 99.0ms (36.7% of total)
ival->=: 46.0ms (17% of total)
exact: 10.0ms (3.7% of total)
ival-assert: 5.0ms (1.9% of total)
Bogosity

explain92.0ms (6.2%)

Memory
20.1MiB live, 78.1MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(/.f64 y x)
00-0-y
00-0-(atan.f64 (/.f64 y x))
00-0-x
Confusion
Predicted +Predicted -
+00
-0256
Precision
0/0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-00256
Precision?
0/0
Recall?
0/0
Freqs
test
numberfreq
0256
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-001
Precision?
0/0
Recall?
0/0
Samples
57.0ms512×0valid
Compiler

Compiled 26 to 16 computations (38.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 17.0ms
ival-div: 10.0ms (57.9% of total)
ival-atan: 7.0ms (40.5% of total)
ival-true: 1.0ms (5.8% of total)
ival-assert: 0.0ms (0% of total)

preprocess34.0ms (2.3%)

Memory
-29.3MiB live, 16.7MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01226
11426
044
064
064
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
Outputs
(atan.f64 (/.f64 y x))
Compiler

Compiled 4 to 4 computations (0% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(atan.f64 (/.f64 y x))
Compiler

Compiled 4 to 4 computations (0% saved)

simplify4.0ms (0.3%)

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

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(/.f64 y x)
cost-diff0
(atan.f64 (/.f64 y x))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
049
069
069
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
(/.f64 y x)
y
x
Outputs
(atan.f64 (/.f64 y x))
(/.f64 y x)
y
x

localize27.0ms (1.8%)

Memory
21.9MiB live, 21.9MiB allocated
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(/.f64 y x)
accuracy0.01171875
(atan.f64 (/.f64 y x))
Samples
18.0ms256×0valid
Compiler

Compiled 11 to 6 computations (45.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 8.0ms
ival-div: 4.0ms (50.3% of total)
ival-atan: 3.0ms (37.7% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series10.0ms (0.7%)

Memory
6.0MiB live, 6.0MiB allocated
Counts
2 → 2
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
(/.f64 y x)
Outputs
(atan (/ y x))
(/ y x)
Calls

6 calls:

TimeVariablePointExpression
3.0ms
y
@inf
((atan (/ y x)) (/ y x))
2.0ms
x
@-inf
((atan (/ y x)) (/ y x))
2.0ms
y
@-inf
((atan (/ y x)) (/ y x))
1.0ms
x
@0
((atan (/ y x)) (/ y x))
1.0ms
x
@inf
((atan (/ y x)) (/ y x))

simplify7.0ms (0.5%)

Memory
4.4MiB live, 4.4MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
047
047
Stop Event
iter limit
saturated
Counts
2 → 2
Calls
Call 1
Inputs
(atan (/ y x))
(/ y x)
Outputs
(atan (/ y x))
(atan.f64 (/.f64 y x))
(/ y x)
(/.f64 y x)

rewrite92.0ms (6.2%)

Memory
-14.7MiB live, 31.4MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
047
067
197
2167
3297
4307
0307
Stop Event
iter limit
saturated
iter limit
Counts
2 → 5
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
(/.f64 y x)
Outputs
(neg.f64 (atan.f64 (/.f64 (neg.f64 y) x)))
(atan.f64 (/.f64 y x))
(/.f64 (neg.f64 y) (neg.f64 x))
(/.f64 y x)
(neg.f64 (/.f64 (neg.f64 y) x))

eval3.0ms (0.2%)

Memory
2.4MiB live, 2.4MiB allocated
Compiler

Compiled 43 to 18 computations (58.1% saved)

prune2.0ms (0.1%)

Memory
2.0MiB live, 2.0MiB allocated
Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New707
Fresh000
Picked011
Done000
Total718
Accuracy
100.0%
Counts
8 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(atan.f64 (/.f64 y x))
Compiler

Compiled 8 to 8 computations (0% saved)

simplify23.0ms (1.5%)

Memory
13.0MiB live, 13.0MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
044
Stop Event
saturated
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
Outputs
(atan.f64 (/.f64 y x))

soundness1.0ms (0.1%)

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

Compiled 4 to 4 computations (0% saved)

preprocess74.0ms (4.9%)

Memory
-13.3MiB live, 32.4MiB allocated
Compiler

Compiled 22 to 22 computations (0% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...