bug329 (missed optimization)

Time bar (total: 2.1s)

analyze13.0ms (0.6%)

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)

Precisions
Click to see histograms. Total time spent on operations: 6.0ms
Operation ival-div, time spent: 3.0ms, 53.0% of total-time
Operation ival-atan, time spent: 1.0ms, 18.0% of total-time
Operation ival->=, time spent: 1.0ms, 18.0% of total-time
Operation const, time spent: 0.0ms, 0.0% of total-time

sample1.6s (73.4%)

Results
1.6s8256×256valid
Precisions
Click to see histograms. Total time spent on operations: 294.0ms
Operation ival-div, time spent: 134.0ms, 46.0% of total-time
Operation ival-atan, time spent: 77.0ms, 26.0% of total-time
Operation ival->=, time spent: 74.0ms, 25.0% of total-time
Operation const, time spent: 10.0ms, 3.0% of total-time
Bogosity

preprocess219.0ms (10.2%)

Algorithm
egg-herbie
Rules
40×fma-def
40×sub-neg
28×+-commutative
20×div-sub
12×*-commutative
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-x
00-0-(atan.f64 (/.f64 y x))
00-0-y
00-0-(/.f64 y x)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
020143
131143
246143
359143
478143
599143
6124143
7151143
8155143
Stop Event
saturated
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
(atan.f64 (/.f64 y x))
(atan.f64 (/.f64 y (neg.f64 x)))
(atan.f64 (/.f64 (neg.f64 y) x))
(neg.f64 (atan.f64 (/.f64 y (neg.f64 x))))
(neg.f64 (atan.f64 (/.f64 (neg.f64 y) x)))
(atan.f64 (/.f64 x y))
Outputs
(atan.f64 (/.f64 y x))
(atan.f64 (/.f64 y x))
(atan.f64 (/.f64 y (neg.f64 x)))
(atan.f64 (/.f64 (neg.f64 y) x))
(neg.f64 (atan.f64 (/.f64 y (neg.f64 x))))
(neg.f64 (atan.f64 (/.f64 (neg.f64 y) x)))
(atan.f64 (/.f64 x y))
Compiler

Compiled 30 to 14 computations (53.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
Operation ival-div, time spent: 5.0ms, 51.0% of total-time
Operation ival-atan, time spent: 4.0ms, 40.0% of total-time
Operation const, time spent: 1.0ms, 10.0% of total-time

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune1.0ms (0%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(atan.f64 (/.f64 y x))
Compiler

Compiled 6 to 4 computations (33.3% saved)

localize33.0ms (1.5%)

Localize:

Found 1 expressions with local error:

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

Compiled 12 to 5 computations (58.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
Operation ival-div, time spent: 3.0ms, 59.0% of total-time
Operation ival-atan, time spent: 2.0ms, 40.0% of total-time
Operation const, time spent: 0.0ms, 0.0% of total-time

series1.0ms (0%)

Counts
1 → 0
Calls

6 calls:

TimeVariablePointExpression
0.0ms
y
@inf
(atan.f64 (/.f64 y x))
0.0ms
y
@0
(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))

rewrite187.0ms (8.7%)

Algorithm
batch-egg-rewrite
Rules
610×unpow-prod-down
452×cbrt-prod
452×log-prod
418×log1p-expm1-u
418×expm1-log1p-u
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01017
19017
2112117
Stop Event
node limit
Counts
1 → 36
Calls
Call 1
Inputs
(atan.f64 (/.f64 y x))
Outputs
(+.f64 0 (atan.f64 (/.f64 y x)))
(+.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))))
(+.f64 (log.f64 (sqrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))) (log.f64 (sqrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))))
(-.f64 (+.f64 1 (atan.f64 (/.f64 y x))) 1)
(*.f64 (atan.f64 (/.f64 y x)) 1)
(*.f64 (atan.f64 (/.f64 y x)) (log.f64 (E.f64)))
(*.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))))
(*.f64 (pow.f64 1 1/3) (atan.f64 (/.f64 y x)))
(*.f64 (pow.f64 (sqrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3) (pow.f64 (sqrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3))
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3)) 1/3))
(*.f64 (pow.f64 (pow.f64 (*.f64 (atan.f64 (/.f64 y x)) (cbrt.f64 (atan.f64 (/.f64 y x)))) 2) 1/3) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 5/2) 1/3) (cbrt.f64 (sqrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))) (cbrt.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))))
(*.f64 (cbrt.f64 (pow.f64 (*.f64 (atan.f64 (/.f64 y x)) (cbrt.f64 (atan.f64 (/.f64 y x)))) 2)) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 5/2)) (cbrt.f64 (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)) 2) 1/2)
(pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3) 1/3)
(pow.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) 2)
(pow.f64 (E.f64) (log.f64 (atan.f64 (/.f64 y x))))
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (atan.f64 (/.f64 y x)))) 2)) (cbrt.f64 (log.f64 (atan.f64 (/.f64 y x)))))
(pow.f64 (exp.f64 (sqrt.f64 (log.f64 (atan.f64 (/.f64 y x))))) (sqrt.f64 (log.f64 (atan.f64 (/.f64 y x)))))
(neg.f64 (atan.f64 (/.f64 y (neg.f64 x))))
(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))))
(exp.f64 (*.f64 (log.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3))
(exp.f64 (*.f64 (*.f64 3 (log.f64 (atan.f64 (/.f64 y x)))) 1/3))
(exp.f64 (*.f64 (log.f64 (sqrt.f64 (atan.f64 (/.f64 y x)))) 2))
(log1p.f64 (expm1.f64 (atan.f64 (/.f64 y x))))

simplify69.0ms (3.2%)

Algorithm
egg-herbie
Rules
806×log-prod
790×fma-neg
766×associate-*r*
650×associate-*l*
632×associate-+r+
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0100974
1204908
2580896
33457896
47826896
Stop Event
node limit
Counts
36 → 42
Calls
Call 1
Inputs
(+.f64 0 (atan.f64 (/.f64 y x)))
(+.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))))
(+.f64 (log.f64 (sqrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))) (log.f64 (sqrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))))
(-.f64 (+.f64 1 (atan.f64 (/.f64 y x))) 1)
(*.f64 (atan.f64 (/.f64 y x)) 1)
(*.f64 (atan.f64 (/.f64 y x)) (log.f64 (E.f64)))
(*.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))))
(*.f64 (pow.f64 1 1/3) (atan.f64 (/.f64 y x)))
(*.f64 (pow.f64 (sqrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3) (pow.f64 (sqrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3))
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3)) 1/3))
(*.f64 (pow.f64 (pow.f64 (*.f64 (atan.f64 (/.f64 y x)) (cbrt.f64 (atan.f64 (/.f64 y x)))) 2) 1/3) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 5/2) 1/3) (cbrt.f64 (sqrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))) (cbrt.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))))
(*.f64 (cbrt.f64 (pow.f64 (*.f64 (atan.f64 (/.f64 y x)) (cbrt.f64 (atan.f64 (/.f64 y x)))) 2)) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 5/2)) (cbrt.f64 (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)) 2) 1/2)
(pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3) 1/3)
(pow.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) 2)
(pow.f64 (E.f64) (log.f64 (atan.f64 (/.f64 y x))))
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (atan.f64 (/.f64 y x)))) 2)) (cbrt.f64 (log.f64 (atan.f64 (/.f64 y x)))))
(pow.f64 (exp.f64 (sqrt.f64 (log.f64 (atan.f64 (/.f64 y x))))) (sqrt.f64 (log.f64 (atan.f64 (/.f64 y x)))))
(neg.f64 (atan.f64 (/.f64 y (neg.f64 x))))
(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))))
(exp.f64 (*.f64 (log.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3))
(exp.f64 (*.f64 (*.f64 3 (log.f64 (atan.f64 (/.f64 y x)))) 1/3))
(exp.f64 (*.f64 (log.f64 (sqrt.f64 (atan.f64 (/.f64 y x)))) 2))
(log1p.f64 (expm1.f64 (atan.f64 (/.f64 y x))))
Outputs
(+.f64 0 (atan.f64 (/.f64 y x)))
(atan.f64 (/.f64 y x))
(+.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))))
(+.f64 (*.f64 2 (log.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x)))))) (log.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))))
(*.f64 3 (log.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))))
(*.f64 (log.f64 (cbrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))) 3)
(+.f64 (log.f64 (sqrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))) (log.f64 (sqrt.f64 (exp.f64 (atan.f64 (/.f64 y x))))))
(atan.f64 (/.f64 y x))
(-.f64 (+.f64 1 (atan.f64 (/.f64 y x))) 1)
(atan.f64 (/.f64 y x))
(*.f64 (atan.f64 (/.f64 y x)) 1)
(atan.f64 (/.f64 y x))
(*.f64 (atan.f64 (/.f64 y x)) (log.f64 (E.f64)))
(atan.f64 (/.f64 y x))
(*.f64 1 (atan.f64 (/.f64 y x)))
(atan.f64 (/.f64 y x))
(*.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 2))
(atan.f64 (/.f64 y x))
(*.f64 (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 2) (cbrt.f64 (atan.f64 (/.f64 y x))))
(atan.f64 (/.f64 y x))
(*.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) (sqrt.f64 (atan.f64 (/.f64 y x))))
(atan.f64 (/.f64 y x))
(*.f64 (pow.f64 1 1/3) (atan.f64 (/.f64 y x)))
(atan.f64 (/.f64 y x))
(*.f64 (pow.f64 (sqrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3) (pow.f64 (sqrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3))
(atan.f64 (/.f64 y x))
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3)) 1/3))
(atan.f64 (/.f64 y x))
(*.f64 (pow.f64 (pow.f64 (*.f64 (atan.f64 (/.f64 y x)) (cbrt.f64 (atan.f64 (/.f64 y x)))) 2) 1/3) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (*.f64 (atan.f64 (/.f64 y x)) (cbrt.f64 (atan.f64 (/.f64 y x)))) 2)) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 4) 2)) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 8)) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 5/2) 1/3) (cbrt.f64 (sqrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 5/2)) (cbrt.f64 (sqrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))) (cbrt.f64 (sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))))
(atan.f64 (/.f64 y x))
(*.f64 (cbrt.f64 (pow.f64 (*.f64 (atan.f64 (/.f64 y x)) (cbrt.f64 (atan.f64 (/.f64 y x)))) 2)) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 4) 2)) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 8)) (cbrt.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))))
(*.f64 (cbrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 5/2)) (cbrt.f64 (sqrt.f64 (atan.f64 (/.f64 y x)))))
(pow.f64 (atan.f64 (/.f64 y x)) 1)
(atan.f64 (/.f64 y x))
(pow.f64 (cbrt.f64 (atan.f64 (/.f64 y x))) 3)
(atan.f64 (/.f64 y x))
(pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 2) 1/2)
(atan.f64 (/.f64 y x))
(pow.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3) 1/3)
(atan.f64 (/.f64 y x))
(pow.f64 (sqrt.f64 (atan.f64 (/.f64 y x))) 2)
(atan.f64 (/.f64 y x))
(pow.f64 (E.f64) (log.f64 (atan.f64 (/.f64 y x))))
(atan.f64 (/.f64 y x))
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (atan.f64 (/.f64 y x)))) 2)) (cbrt.f64 (log.f64 (atan.f64 (/.f64 y x)))))
(pow.f64 (exp.f64 (sqrt.f64 (log.f64 (atan.f64 (/.f64 y x))))) (sqrt.f64 (log.f64 (atan.f64 (/.f64 y x)))))
(neg.f64 (atan.f64 (/.f64 y (neg.f64 x))))
(sqrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 2))
(atan.f64 (/.f64 y x))
(log.f64 (exp.f64 (atan.f64 (/.f64 y x))))
(atan.f64 (/.f64 y x))
(cbrt.f64 (pow.f64 (atan.f64 (/.f64 y x)) 3))
(atan.f64 (/.f64 y x))
(expm1.f64 (log1p.f64 (atan.f64 (/.f64 y x))))
(atan.f64 (/.f64 y x))
(exp.f64 (log.f64 (atan.f64 (/.f64 y x))))
(atan.f64 (/.f64 y x))
(exp.f64 (*.f64 (log.f64 (cbrt.f64 (atan.f64 (/.f64 y x)))) 3))
(atan.f64 (/.f64 y x))
(exp.f64 (*.f64 (*.f64 3 (log.f64 (atan.f64 (/.f64 y x)))) 1/3))
(atan.f64 (/.f64 y x))
(exp.f64 (*.f64 (log.f64 (sqrt.f64 (atan.f64 (/.f64 y x)))) 2))
(atan.f64 (/.f64 y x))
(log1p.f64 (expm1.f64 (atan.f64 (/.f64 y x))))
(atan.f64 (/.f64 y x))

eval9.0ms (0.4%)

Compiler

Compiled 451 to 157 computations (65.2% saved)

prune6.0ms (0.3%)

Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New42042
Fresh000
Picked011
Done000
Total42143
Accuracy
100.0%
Counts
43 → 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)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01017
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%)

end0.0ms (0%)

preprocess31.0ms (1.5%)

Compiler

Compiled 34 to 22 computations (35.3% saved)

Profiling

Loading profile data...