bug329 (missed optimization)

Time bar (total: 1.6s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze8.0ms (0.5%)

Memory
12.0MiB live, 12.0MiB 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.2s (77.9%)

Memory
-180.5MiB live, 889.2MiB allocated
Samples
661.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 420.0ms
ival-div: 335.0ms (79.8% of total)
ival-atan: 51.0ms (12.1% of total)
ival->=: 24.0ms (5.7% of total)
exact: 7.0ms (1.7% of total)
ival-assert: 4.0ms (1% of total)
Bogosity

explain74.0ms (4.8%)

Memory
-33.4MiB live, 42.9MiB 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
19.0ms512×0valid
Compiler

Compiled 35 to 20 computations (42.9% saved)

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

preprocess13.0ms (0.8%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01226
12426
23626
34626
45426
56826
68826
79826
810026
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.2MiB live, 0.2MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

simplify2.0ms (0.2%)

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

localize13.0ms (0.8%)

Memory
14.6MiB live, 14.6MiB allocated
Localize:

Found 2 expressions of interest:

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

Compiled 20 to 10 computations (50% saved)

Precisions
Click to see histograms. Total time spent on operations: 3.0ms
ival-div: 2.0ms (57.2% of total)
ival-atan: 1.0ms (28.6% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series4.0ms (0.2%)

Memory
5.1MiB live, 5.1MiB allocated
Counts
2 → 48
Calls
Call 1
Inputs
#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())
#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())
Outputs
#s(alt (atan (/ y x)) (taylor 0 y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor 0 y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor 0 y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor 0 y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor 0 y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor 0 y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor 0 y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor 0 y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor inf y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor inf y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor inf y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor inf y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor inf y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor inf y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor inf y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor inf y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor -inf y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor -inf y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor -inf y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor -inf y) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor -inf y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor -inf y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor -inf y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor -inf y) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor 0 x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor 0 x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor 0 x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor 0 x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor 0 x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor 0 x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor 0 x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor 0 x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor inf x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor inf x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor inf x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor inf x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor inf x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor inf x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor inf x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor inf x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor -inf x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor -inf x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor -inf x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (atan (/ y x)) (taylor -inf x) (#s(alt (atan.f64 (/.f64 y x)) (patch (atan.f64 (/.f64 y x)) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor -inf x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor -inf x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor -inf x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
#s(alt (/ y x) (taylor -inf x) (#s(alt (/.f64 y x) (patch (/.f64 y x) #<representation binary64>) () ())) ())
Calls

6 calls:

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

simplify3.0ms (0.2%)

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

Useful iterations: 0 (0.0ms)

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

rewrite118.0ms (7.6%)

Memory
-47.4MiB live, 42.8MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
047
067
1147
2497
32247
012187
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
2 → 62
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
(/.f64 y x)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval15.0ms (1%)

Memory
16.2MiB live, 16.2MiB allocated
Compiler

Compiled 850 to 199 computations (76.6% saved)

prune5.0ms (0.3%)

Memory
10.8MiB live, 10.8MiB allocated
Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New1100110
Fresh000
Picked011
Done000
Total1101111
Accuracy
100.0%
Counts
111 → 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)

simplify44.0ms (2.8%)

Memory
-5.5MiB live, 32.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))

soundness0.0ms (0%)

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

Compiled 4 to 4 computations (0% saved)

preprocess46.0ms (2.9%)

Memory
-5.4MiB live, 33.4MiB allocated
Compiler

Compiled 22 to 22 computations (0% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...