bug329 (missed optimization)

Time bar (total: 1.0s)

analyze7.0ms (0.7%)

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 9 to 6 computations (33.3% saved)

sample797.0ms (77%)

Results
787.0ms8256×body256valid
Bogosity

preprocess15.0ms (1.5%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0922
022
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
1
Outputs
0
1
Call 2
Inputs
(atan.f64 (/.f64 y x))
(atan.f64 (/.f64 x y))
Outputs
(atan.f64 (/.f64 y x))
(atan.f64 (/.f64 x y))
Compiler

Compiled 8 to 6 computations (25% saved)

simplify20.0ms (1.9%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

eval0.0ms (0%)

Compiler

Compiled 6 to 4 computations (33.3% saved)

prune1.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Accurracy
100.0%
Counts
2 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(atan.f64 (/.f64 y x))
100.0%
(atan.f64 (/.f64 y x))
Compiler

Compiled 12 to 8 computations (33.3% saved)

localize22.0ms (2.1%)

Local Accuracy

Found 1 expressions with local accuracy:

NewAccuracyProgram
100.0%
(atan.f64 (/.f64 y x))
Compiler

Compiled 12 to 5 computations (58.3% saved)

series1.0ms (0.1%)

Counts
1 → 0
Calls

6 calls:

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

rewrite54.0ms (5.2%)

Algorithm
batch-egg-rewrite
Rules
1442×pow1
1320×add-exp-log
1320×log1p-expm1-u
1320×expm1-log1p-u
1288×add-log-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
114111
2177611
Stop Event
node limit
Counts
1 → 16
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
Outputs
(-.f64 (+.f64 1 (atan.f64 (/.f64 y x))) 1)
(*.f64 (atan.f64 (/.f64 y x)) 1)
(*.f64 1 (atan.f64 (/.f64 y x)))
(*.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 2))
(*.f64 (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 2) (cbrt.f64 (atan.f64 (/.f64 y x))))
(*.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) (sqrt.f64 (atan.f64 (/.f64 y x))))
(pow.f64 (atan.f64 (/.f64 y x)) 1)
(pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 3)
(pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3) 1/3)
(pow.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) 2)
(sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 2))
(log.f64 (exp.f64 (atan.f64 (/.f64 y x))))
(cbrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))
(expm1.f64 (log1p.f64 (atan.f64 (/.f64 y x))))
(exp.f64 (log.f64 (atan.f64 (/.f64 y x))))
(log1p.f64 (expm1.f64 (atan.f64 (/.f64 y x))))

simplify66.0ms (6.4%)

Algorithm
egg-herbie
Rules
1082×log-prod
796×fma-neg
742×exp-prod
612×fma-def
524×sqr-pow
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
037368
169272
2274176
31673176
43893176
55750176
Stop Event
node limit
Counts
16 → 19
Calls
Call 1
Inputs
(-.f64 (+.f64 1 (atan.f64 (/.f64 y x))) 1)
(*.f64 (atan.f64 (/.f64 y x)) 1)
(*.f64 1 (atan.f64 (/.f64 y x)))
(*.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 2))
(*.f64 (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 2) (cbrt.f64 (atan.f64 (/.f64 y x))))
(*.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) (sqrt.f64 (atan.f64 (/.f64 y x))))
(pow.f64 (atan.f64 (/.f64 y x)) 1)
(pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 3)
(pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3) 1/3)
(pow.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) 2)
(sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 2))
(log.f64 (exp.f64 (atan.f64 (/.f64 y x))))
(cbrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))
(expm1.f64 (log1p.f64 (atan.f64 (/.f64 y x))))
(exp.f64 (log.f64 (atan.f64 (/.f64 y x))))
(log1p.f64 (expm1.f64 (atan.f64 (/.f64 y x))))
Outputs
(-.f64 (+.f64 1 (atan.f64 (/.f64 y x))) 1)
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(*.f64 (atan.f64 (/.f64 y x)) 1)
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(*.f64 1 (atan.f64 (/.f64 y x)))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(*.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 2))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(*.f64 (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 2) (cbrt.f64 (atan.f64 (/.f64 y x))))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(*.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) (sqrt.f64 (atan.f64 (/.f64 y x))))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(pow.f64 (atan.f64 (/.f64 y x)) 1)
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 3)
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3) 1/3)
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(pow.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) 2)
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 2))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(log.f64 (exp.f64 (atan.f64 (/.f64 y x))))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(cbrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(expm1.f64 (log1p.f64 (atan.f64 (/.f64 y x))))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(exp.f64 (log.f64 (atan.f64 (/.f64 y x))))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))
(log1p.f64 (expm1.f64 (atan.f64 (/.f64 y x))))
(+.f64 1 (-.f64 (atan.f64 (/.f64 y x)) 1))
(+.f64 (atan.f64 (/.f64 y x)) 0)
(atan.f64 (/.f64 y x))

eval3.0ms (0.3%)

Compiler

Compiled 143 to 51 computations (64.3% saved)

prune3.0ms (0.3%)

Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New19019
Fresh000
Picked011
Done000
Total19120
Accurracy
100.0%
Counts
20 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(atan.f64 (/.f64 y x))
Compiler

Compiled 12 to 8 computations (33.3% saved)

simplify4.0ms (0.3%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

Compiled 6 to 4 computations (33.3% saved)

soundness0.0ms (0%)

end43.0ms (4.2%)

Compiler

Compiled 34 to 22 computations (35.3% saved)

Profiling

Loading profile data...