Graphics.Rasterific.CubicBezier:isSufficientlyFlat from Rasterific-0.6.1

Time bar (total: 854.0ms)

analyze0.0ms (0%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 7 to 5 computations (28.6% saved)

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

sample513.0ms (60.1%)

Results
346.0ms8256×0valid
Precisions
Click to see histograms. Total time spent on operations: 159.0ms
ival-mult: 146.0ms (91.6% of total)
const: 10.0ms (6.3% of total)
backward-pass: 3.0ms (1.9% of total)
Bogosity

preprocess15.0ms (1.8%)

Algorithm
egg-herbie
Rules
44×distribute-lft-neg-in
40×associate-*r*
32×distribute-lft-in
24×cancel-sign-sub-inv
22×distribute-rgt-neg-in
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0818
12715
26815
316715
421915
523115
045
175
2105
0105
Stop Event
iter limit
saturated
saturated
Calls
Call 1
Inputs
(* (* x 16) x)
Outputs
(* (* x 16) x)
(*.f64 #s(literal 16 binary64) (*.f64 x x))
Call 2
Inputs
(* (* x 16) x)
(* (* (neg x) 16) (neg x))
(neg (* (* (neg x) 16) (neg x)))
Outputs
(* (* x 16) x)
(* x (* x 16))
(* (* (neg x) 16) (neg x))
(* x (* x 16))
(neg (* (* (neg x) 16) (neg x)))
(* -16 (* x x))
Symmetry

(abs x)

explain48.0ms (5.6%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-x
00-0-(*.f64 x #s(literal 16 binary64))
00-0-(*.f64 (*.f64 x #s(literal 16 binary64)) x)
00-0-#s(literal 16 binary64)
Results
30.0ms512×0valid
Compiler

Compiled 30 to 20 computations (33.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 16.0ms
ival-mult: 15.0ms (93.2% of total)
const: 1.0ms (6.2% of total)
backward-pass: 0.0ms (0% of total)

eval0.0ms (0%)

Compiler

Compiled 6 to 4 computations (33.3% saved)

prune2.0ms (0.2%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (*.f64 x #s(literal 16 binary64)) x)
Compiler

Compiled 6 to 4 computations (33.3% saved)

localize30.0ms (3.5%)

Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x #s(literal 16 binary64))
cost-diff0
(*.f64 (*.f64 x #s(literal 16 binary64)) x)
accuracy100.0%
(*.f64 (*.f64 x #s(literal 16 binary64)) x)
accuracy100.0%
(*.f64 x #s(literal 16 binary64))
Rules
14×*-lowering-*.f32
14×*-lowering-*.f64
*-commutative
associate-*l*
associate-*r*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0410
1710
21010
01010
Stop Event
iter limit
saturated
Calls
Call 1
Inputs
(* (* x 16) x)
(* x 16)
x
16
Outputs
(* (* x 16) x)
(*.f64 #s(literal 16 binary64) (*.f64 x x))
(* x 16)
(*.f64 x #s(literal 16 binary64))
x
16
#s(literal 16 binary64)
Results
15.0ms256×0valid
Compiler

Compiled 12 to 8 computations (33.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 8.0ms
ival-mult: 7.0ms (88.7% of total)
const: 1.0ms (12.7% of total)
backward-pass: 0.0ms (0% of total)

series3.0ms (0.4%)

Counts
2 → 24
Calls
Call 1
Inputs
#<alt (* x 16)>
#<alt (* (* x 16) x)>
Outputs
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
#<alt (* 16 (pow x 2))>
Calls

6 calls:

TimeVariablePointExpression
0.0ms
x
@-inf
(* x 16)
0.0ms
x
@0
(* (* x 16) x)
0.0ms
x
@inf
(* x 16)
0.0ms
x
@0
(* x 16)
0.0ms
x
@inf
(* (* x 16) x)

rewrite147.0ms (17.2%)

Algorithm
batch-egg-rewrite
Rules
2136×pow-lowering-pow.f64
2136×pow-lowering-pow.f32
1588×*-lowering-*.f32
1588×*-lowering-*.f64
1412×prod-exp
Iterations

Useful iterations: 7 (0.0ms)

IterNodesCost
046
176
2106
3126
4196
5356
6916
72782
816982
917232
1018462
1130612
084292
Stop Event
iter limit
node limit
Counts
2 → 2
Calls
Call 1
Inputs
(* x 16)
(* (* x 16) x)
Outputs
#s(literal 16 binary64)
#s(literal 16 binary64)

simplify6.0ms (0.8%)

Algorithm
egg-herbie
Rules
14×*-lowering-*.f32
14×*-lowering-*.f64
*-commutative
pow-lowering-pow.f64
pow-lowering-pow.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0696
1996
21196
01196
Stop Event
iter limit
saturated
Counts
24 → 24
Calls
Call 1
Inputs
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
(* 16 (pow x 2))
Outputs
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))
(* 16 (pow x 2))
(*.f64 x (*.f64 #s(literal 16 binary64) x))

eval3.0ms (0.3%)

Compiler

Compiled 125 to 76 computations (39.2% saved)

prune2.0ms (0.2%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New24226
Fresh000
Picked011
Done000
Total24327
Accuracy
100.0%
Counts
27 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (*.f64 x #s(literal 16 binary64)) x)
6.7%
(*.f64 #s(literal 16 binary64) x)
4.2%
#s(literal 16 binary64)
Compiler

Compiled 12 to 9 computations (25% saved)

localize24.0ms (2.8%)

Algorithm
egg-herbie
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 #s(literal 16 binary64) x)
accuracy100.0%
(*.f64 #s(literal 16 binary64) x)
Rules
*-lowering-*.f32
*-lowering-*.f64
*-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
035
145
045
Stop Event
iter limit
saturated
Calls
Call 1
Inputs
16
(* 16 x)
x
Outputs
16
#s(literal 16 binary64)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
x
Results
11.0ms256×0valid
Compiler

Compiled 8 to 6 computations (25% saved)

Precisions
Click to see histograms. Total time spent on operations: 3.0ms
ival-mult: 2.0ms (71.4% of total)
const: 1.0ms (35.7% of total)
backward-pass: 0.0ms (0% of total)

series1.0ms (0.1%)

Counts
1 → 12
Calls
Call 1
Inputs
#<alt (* 16 x)>
Outputs
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
#<alt (* 16 x)>
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@inf
(* 16 x)
0.0ms
x
@0
(* 16 x)
0.0ms
x
@-inf
(* 16 x)

rewrite9.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
*-lowering-*.f32
*-lowering-*.f64
*-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
033
143
043
Stop Event
iter limit
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(* 16 x)
Outputs
(*.f64 #s(literal 16 binary64) x)
(*.f64 x #s(literal 16 binary64))

simplify4.0ms (0.4%)

Algorithm
egg-herbie
Rules
*-lowering-*.f32
*-lowering-*.f64
*-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0336
1436
0436
Stop Event
iter limit
saturated
Counts
12 → 12
Calls
Call 1
Inputs
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
(* 16 x)
Outputs
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)
(* 16 x)
(*.f64 #s(literal 16 binary64) x)

eval2.0ms (0.2%)

Compiler

Compiled 43 to 29 computations (32.6% saved)

prune11.0ms (1.3%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New14014
Fresh000
Picked022
Done011
Total14317
Accuracy
100.0%
Counts
17 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (*.f64 x #s(literal 16 binary64)) x)
6.7%
(*.f64 #s(literal 16 binary64) x)
4.2%
#s(literal 16 binary64)
Compiler

Compiled 22 to 16 computations (27.3% saved)

regimes3.0ms (0.4%)

Counts
3 → 1
Calls
Call 1
Inputs
#s(literal 16 binary64)
(*.f64 #s(literal 16 binary64) x)
(*.f64 (*.f64 x #s(literal 16 binary64)) x)
Outputs
(*.f64 (*.f64 x #s(literal 16 binary64)) x)
Calls

2 calls:

2.0ms
x
1.0ms
(*.f64 (*.f64 x #s(literal 16 binary64)) x)
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(*.f64 (*.f64 x #s(literal 16 binary64)) x)
Compiler

Compiled 8 to 5 computations (37.5% saved)

regimes3.0ms (0.3%)

Counts
2 → 1
Calls
Call 1
Inputs
#s(literal 16 binary64)
(*.f64 #s(literal 16 binary64) x)
Outputs
(*.f64 #s(literal 16 binary64) x)
Calls

1 calls:

3.0ms
x
Results
AccuracySegmentsBranch
6.7%1x
Compiler

Compiled 2 to 1 computations (50% saved)

regimes1.0ms (0.1%)

Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(literal 16 binary64)
Outputs
#s(literal 16 binary64)
Calls

1 calls:

0.0ms
x
Results
AccuracySegmentsBranch
4.2%1x
Compiler

Compiled 2 to 1 computations (50% saved)

soundness1.0ms (0.1%)

Stop Event
done
Compiler

Compiled 10 to 7 computations (30% saved)

preprocess26.0ms (3.1%)

Remove

(abs x)

Compiler

Compiled 80 to 54 computations (32.5% saved)

end0.0ms (0%)

Profiling

Loading profile data...