bug329 (missed optimization)

Time bar (total: 1.1s)

analyze8.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)

sample724.0ms (65.5%)

Results
714.0ms8256×body256valid
Bogosity

preprocess66.0ms (6%)

Algorithm
egg-herbie
Rules
40×fma-def
40×sub-neg
28×+-commutative
20×div-sub
12×*-commutative
Problems
256×No Errors
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 18 to 9 computations (50% saved)

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune1.0ms (0.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)

localize23.0ms (2.1%)

Localize:

Found 1 expressions with local error:

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))

rewrite174.0ms (15.8%)

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))))

simplify67.0ms (6.1%)

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))

eval7.0ms (0.6%)

Compiler

Compiled 451 to 157 computations (65.2% saved)

prune7.0ms (0.6%)

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.2%)

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

preprocess25.0ms (2.3%)

Compiler

Compiled 34 to 22 computations (35.3% saved)

Profiling

Loading profile data...