bug500 (missed optimization)

Time bar (total: 1.4s)

start0.0ms (0%)

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

analyze0.0ms (0%)

Memory
1.0MiB live, 1.0MiB allocated; 0ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%50.4%49.6%0%0%0%0
100%50.4%0%49.6%0%0%0%1
Compiler

Compiled 12 to 9 computations (25% saved)

sample1.1s (76.3%)

Memory
28.8MiB live, 1 329.5MiB allocated; 249ms collecting garbage
Samples
627.0ms7 102×1valid
173.0ms835×2valid
15.0ms319×0valid
Precisions
Click to see histograms. Total time spent on operations: 605.0ms
ival-sin: 294.0ms (48.6% of total)
adjust: 154.0ms (25.5% of total)
ival-sub: 93.0ms (15.4% of total)
ival-<: 39.0ms (6.5% of total)
ival-and: 11.0ms (1.8% of total)
exact: 10.0ms (1.7% of total)
ival-assert: 3.0ms (0.5% of total)
Bogosity

explain94.0ms (6.5%)

Memory
-9.8MiB live, 100.6MiB allocated; 44ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
890-0-(-.f64 (sin.f64 x) x)
00-0-(sin.f64 x)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (sin.f64 x) x)cancellation890
Confusion
Predicted +Predicted -
+890
-0167
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+8900
-00167
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0167
189
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
47.0ms448×1valid
20.0ms54×2valid
0.0ms10×0valid
Compiler

Compiled 22 to 13 computations (40.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 53.0ms
ival-sin: 27.0ms (51% of total)
ival-sub: 17.0ms (32.1% of total)
adjust: 9.0ms (17% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

preprocess93.0ms (6.5%)

Memory
-10.9MiB live, 33.8MiB allocated; 13ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0513
1713
21413
32213
43513
56313
612213
736613
8142813
9519713
034
034
034
Stop Event
saturated
saturated
saturated
node limit
Calls
Call 1
Inputs
(-.f64 (sin.f64 x) x)
Outputs
(-.f64 (sin.f64 x) x)
Compiler

Compiled 4 to 3 computations (25% saved)

eval0.0ms (0%)

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

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
68.6%
(-.f64 (sin.f64 x) x)
Compiler

Compiled 4 to 3 computations (25% saved)

simplify3.0ms (0.2%)

Memory
5.5MiB live, 5.5MiB allocated; 0ms collecting garbage
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(sin.f64 x)
cost-diff0
(-.f64 (sin.f64 x) x)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
037
037
037
Stop Event
saturated
saturated
saturated
Calls
Call 1
Inputs
(-.f64 (sin.f64 x) x)
(sin.f64 x)
x
Outputs
(-.f64 (sin.f64 x) x)
(sin.f64 x)
x

localize32.0ms (2.2%)

Memory
13.5MiB live, 59.5MiB allocated; 6ms collecting garbage
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(sin.f64 x)
accuracy20.12647780240547
(-.f64 (sin.f64 x) x)
Samples
22.0ms224×1valid
5.0ms27×2valid
0.0ms0valid
Compiler

Compiled 9 to 5 computations (44.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 20.0ms
ival-sin: 12.0ms (59.9% of total)
adjust: 5.0ms (25% of total)
ival-sub: 3.0ms (15% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series1.0ms (0.1%)

Memory
4.2MiB live, 4.2MiB allocated; 0ms collecting garbage
Counts
2 → 12
Calls
Call 1
Inputs
(-.f64 (sin.f64 x) x)
(sin.f64 x)
Outputs
(* -1/6 (pow x 3))
(* (pow x 3) (- (* 1/120 (pow x 2)) 1/6))
(* (pow x 3) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))
(* (pow x 3) (- (* (pow x 2) (+ 1/120 (* (pow x 2) (- (* 1/362880 (pow x 2)) 1/5040)))) 1/6))
x
(* x (+ 1 (* -1/6 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 1/120 (pow x 2)) 1/6))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))))
(* -1 x)
(* x (- (/ (sin x) x) 1))
(sin x)
(* -1 (* x (+ 1 (* -1 (/ (sin x) x)))))
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@0
((- (sin x) x) (sin x))
0.0ms
x
@inf
((- (sin x) x) (sin x))
0.0ms
x
@-inf
((- (sin x) x) (sin x))

simplify57.0ms (4%)

Memory
8.6MiB live, 54.2MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
047122
1130116
2389116
31500108
46237108
08446108
Stop Event
saturated
node limit
Counts
12 → 0
Calls
Call 1
Inputs
(* -1/6 (pow x 3))
(* (pow x 3) (- (* 1/120 (pow x 2)) 1/6))
(* (pow x 3) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))
(* (pow x 3) (- (* (pow x 2) (+ 1/120 (* (pow x 2) (- (* 1/362880 (pow x 2)) 1/5040)))) 1/6))
x
(* x (+ 1 (* -1/6 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 1/120 (pow x 2)) 1/6))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))))
(* -1 x)
(* x (- (/ (sin x) x) 1))
(sin x)
(* -1 (* x (+ 1 (* -1 (/ (sin x) x)))))
Outputs
(* -1/6 (pow x 3))
(* (pow x 3) (- (* 1/120 (pow x 2)) 1/6))
(* (pow x 3) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))
(* (pow x 3) (- (* (pow x 2) (+ 1/120 (* (pow x 2) (- (* 1/362880 (pow x 2)) 1/5040)))) 1/6))
x
(* x (+ 1 (* -1/6 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 1/120 (pow x 2)) 1/6))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))))
(* -1 x)
(* x (- (/ (sin x) x) 1))
(sin x)
(* -1 (* x (+ 1 (* -1 (/ (sin x) x)))))

rewrite24.0ms (1.7%)

Memory
-25.4MiB live, 31.3MiB allocated; 6ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
036
036
036
Stop Event
saturated
saturated
saturated
Counts
2 → 2
Calls
Call 1
Inputs
(-.f64 (sin.f64 x) x)
(sin.f64 x)
Outputs
(-.f64 (sin.f64 x) x)
(sin.f64 x)

eval0.0ms (0%)

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

Compiled 8 to 3 computations (62.5% saved)

prune1.0ms (0%)

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

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New202
Fresh000
Picked011
Done000
Total213
Accuracy
68.6%
Counts
3 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
68.6%
(-.f64 (sin.f64 x) x)
Compiler

Compiled 8 to 6 computations (25% saved)

simplify8.0ms (0.6%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
034
154
2104
3114
Stop Event
saturated
Calls
Call 1
Inputs
(-.f64 (sin.f64 x) x)
Outputs
(-.f64 (sin.f64 x) x)

derivations0.0ms (0%)

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

Compiled 4 to 3 computations (25% saved)

preprocess27.0ms (1.8%)

Memory
-20.5MiB live, 23.4MiB allocated; 14ms collecting garbage
Compiler

Compiled 70 to 56 computations (20% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...