Details

Time bar (total: 5.9s)

analyze378.0ms (6.4%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
12.5%87.4%0.1%5
25%74.9%0.1%6
46.8%53.1%0.1%7
56.2%43.7%0.1%8
71%28.9%0.1%9
76.5%23.4%0.1%10
84.9%15%0.1%11
87.8%12.1%0.1%12
92.2%7.7%0.1%13
93.8%6.1%0.1%14
Compiler

Compiled 24 to 18 computations (25% saved)

sample1.4s (23.9%)

Results
1.3s8256×body128valid
Compiler

Compiled 71 to 53 computations (25.4% saved)

simplify40.0ms (0.7%)

Algorithm
egg-herbie
Rules
693×div-sub_binary64
599×times-frac_binary64
519×associate-/l*_binary64
357×associate-/l/_binary64
274×distribute-rgt-in_binary64
Counts
1 → 2
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01632
13729
29429
334529
4120728
5346828
6502028

prune5.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.2b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.2b
(*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
13.1b
(*.f64 (*.f64 (/.f64 (PI.f64) 2) (/.f64 1 (-.f64 (*.f64 b b) (*.f64 a a)))) (-.f64 (/.f64 1 a) (/.f64 1 b)))
Compiler

Compiled 127 to 87 computations (31.5% saved)

localize16.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a))
0.2b
(*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
0.2b
(/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a))
0.3b
(/.f64 (PI.f64) a)

series104.0ms (1.8%)

Counts
4 → 72
Calls

4 calls:

42.0ms
(/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a))
37.0ms
(*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
20.0ms
(fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a))
5.0ms
(/.f64 (PI.f64) a)

rewrite75.0ms (1.3%)

Algorithm
rewrite-expression-head
Rules
65×add-sqr-sqrt_binary64
59×*-un-lft-identity_binary64
55×times-frac_binary64
39×add-cube-cbrt_binary64
21×associate-*r*_binary64
Counts
4 → 143
Calls

4 calls:

31.0ms
(*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
8.0ms
(/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a))
4.0ms
(/.f64 (PI.f64) a)
1.0ms
(fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a))

simplify421.0ms (7.2%)

Algorithm
egg-herbie
Rules
425×times-frac_binary64
380×associate-/l/_binary64
318×fma-neg_binary64
291×fma-def_binary64
232×distribute-rgt-in_binary64
Counts
215 → 237
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02655398
16764819
221334749
346294748
449894748
549984748
649724748

prune455.0ms (7.7%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New2298237
Fresh101
Picked101
Done000
Total2318239
Error
0.0b
Counts
239 → 8
Alt Table
StatusErrorProgram
22.7b
(*.f64 (sqrt.f64 (*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))) (sqrt.f64 (*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))))
25.7b
(*.f64 1/2 (/.f64 (PI.f64) (*.f64 (pow.f64 a 2) b)))
0.2b
(*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (PI.f64) (*.f64 a b)))
0.2b
(*.f64 (/.f64 1/2 (+.f64 a b)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
0.2b
(/.f64 (*.f64 1/2 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))) (+.f64 b a))
0.6b
(*.f64 (/.f64 1 (*.f64 (cbrt.f64 (+.f64 b a)) (cbrt.f64 (+.f64 b a)))) (*.f64 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a)) (/.f64 1/2 (cbrt.f64 (+.f64 a b)))))
26.5b
(*.f64 1/2 (/.f64 (PI.f64) (*.f64 a (pow.f64 b 2))))
0.3b
(*.f64 (/.f64 (sqrt.f64 1/2) 1) (*.f64 (/.f64 (sqrt.f64 1/2) (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a))))
Compiler

Compiled 6986 to 2663 computations (61.9% saved)

localize23.0ms (0.4%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a))
0.2b
(*.f64 (/.f64 1/2 (+.f64 a b)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
0.2b
(/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a))
0.3b
(/.f64 (PI.f64) a)

series35.0ms (0.6%)

Counts
1 → 24
Calls

1 calls:

35.0ms
(*.f64 (/.f64 1/2 (+.f64 a b)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))

rewrite38.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
36×add-sqr-sqrt_binary64
31×times-frac_binary64
30×*-un-lft-identity_binary64
21×associate-*r*_binary64
18×associate-*l*_binary64
Counts
1 → 65
Calls

1 calls:

27.0ms
(*.f64 (/.f64 1/2 (+.f64 a b)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))

simplify166.0ms (2.8%)

Algorithm
egg-herbie
Rules
580×associate-/l*_binary64
373×times-frac_binary64
307×fma-neg_binary64
285×fma-def_binary64
257×associate-/l/_binary64
Counts
89 → 96
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01903185
15502861
218172795
347732795
449632795

prune479.0ms (8.2%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New2130213
Fresh077
Picked011
Done000
Total2138221
Error
0.0b
Counts
221 → 8
Alt Table
StatusErrorProgram
22.7b
(*.f64 (sqrt.f64 (*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))) (sqrt.f64 (*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))))
25.7b
(*.f64 1/2 (/.f64 (PI.f64) (*.f64 (pow.f64 a 2) b)))
0.2b
(*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (PI.f64) (*.f64 a b)))
0.2b
(*.f64 (/.f64 1/2 (+.f64 a b)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
0.2b
(/.f64 (*.f64 1/2 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))) (+.f64 b a))
0.6b
(*.f64 (/.f64 1 (*.f64 (cbrt.f64 (+.f64 b a)) (cbrt.f64 (+.f64 b a)))) (*.f64 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a)) (/.f64 1/2 (cbrt.f64 (+.f64 a b)))))
26.5b
(*.f64 1/2 (/.f64 (PI.f64) (*.f64 a (pow.f64 b 2))))
0.3b
(*.f64 (/.f64 (sqrt.f64 1/2) 1) (*.f64 (/.f64 (sqrt.f64 1/2) (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a))))
Compiler

Compiled 6248 to 2579 computations (58.7% saved)

localize23.0ms (0.4%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(/.f64 (*.f64 1/2 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))) (+.f64 b a))
0.2b
(/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))
0.3b
(/.f64 (PI.f64) b)
0.3b
(/.f64 (PI.f64) a)

series74.0ms (1.3%)

Counts
3 → 48
Calls

3 calls:

38.0ms
(/.f64 (*.f64 1/2 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))) (+.f64 b a))
32.0ms
(/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))
4.0ms
(/.f64 (PI.f64) b)

rewrite84.0ms (1.4%)

Algorithm
rewrite-expression-head
Rules
142×add-sqr-sqrt_binary64
133×times-frac_binary64
122×*-un-lft-identity_binary64
44×add-cube-cbrt_binary64
43×distribute-lft-out--_binary64
Counts
3 → 156
Calls

3 calls:

35.0ms
(/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))
24.0ms
(/.f64 (*.f64 1/2 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))) (+.f64 b a))
4.0ms
(/.f64 (PI.f64) b)

simplify198.0ms (3.4%)

Algorithm
egg-herbie
Rules
663×times-frac_binary64
311×fma-def_binary64
299×fma-neg_binary64
273×distribute-rgt-in_binary64
248×distribute-lft-in_binary64
Counts
204 → 206
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03115679
17985327
222285259
349715259
451495259

prune388.0ms (6.6%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2334237
Fresh426
Picked101
Done011
Total2387245
Error
0b
Counts
245 → 7
Alt Table
StatusErrorProgram
0.2b
(*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (PI.f64) (*.f64 a b)))
0.3b
(/.f64 (*.f64 1/2 (*.f64 (PI.f64) (/.f64 (-.f64 (/.f64 1 a) (/.f64 1 b)) (-.f64 b a)))) (+.f64 b a))
0.5b
(/.f64 1/2 (/.f64 (+.f64 b a) (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))))
0.2b
(*.f64 (/.f64 1/2 (+.f64 a b)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
30.4b
(/.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b))) (/.f64 (sqrt.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b))) (-.f64 b a)))) (+.f64 b a))
0.2b
(/.f64 (*.f64 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a)) -1/2) (-.f64 (neg.f64 b) a))
0.3b
(*.f64 (/.f64 (sqrt.f64 1/2) 1) (*.f64 (/.f64 (sqrt.f64 1/2) (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a))))
Compiler

Compiled 6680 to 1867 computations (72.1% saved)

localize11.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(/.f64 (*.f64 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a)) -1/2) (-.f64 (neg.f64 b) a))
0.2b
(/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))
0.3b
(/.f64 (PI.f64) b)
0.3b
(/.f64 (PI.f64) a)

series21.0ms (0.3%)

Counts
1 → 24
Calls

1 calls:

20.0ms
(/.f64 (*.f64 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a)) -1/2) (-.f64 (neg.f64 b) a))

rewrite27.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
11×*-un-lft-identity_binary64
10×add-cbrt-cube_binary64
10×add-exp-log_binary64
add-sqr-sqrt_binary64
associate-/r*_binary64
Counts
1 → 34
Calls

1 calls:

23.0ms
(/.f64 (*.f64 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a)) -1/2) (-.f64 (neg.f64 b) a))

simplify96.0ms (1.6%)

Algorithm
egg-herbie
Rules
718×times-frac_binary64
496×associate-/l/_binary64
384×fma-neg_binary64
226×fma-def_binary64
180×distribute-rgt-in_binary64
Counts
58 → 55
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01372078
13881806
214841736
349311736
451651736

prune335.0ms (5.7%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New2291230
Fresh145
Picked101
Done011
Total2316237
Error
0b
Counts
237 → 6
Alt Table
StatusErrorProgram
0.2b
(*.f64 (/.f64 1/2 (+.f64 b a)) (/.f64 (PI.f64) (*.f64 a b)))
0.3b
(/.f64 (*.f64 1/2 (*.f64 (PI.f64) (/.f64 (-.f64 (/.f64 1 a) (/.f64 1 b)) (-.f64 b a)))) (+.f64 b a))
0.5b
(/.f64 1/2 (/.f64 (+.f64 b a) (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 (PI.f64) b)) (-.f64 b a))))
0.2b
(*.f64 (/.f64 1/2 (+.f64 a b)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a)))
0.3b
(/.f64 (*.f64 (/.f64 (-.f64 (/.f64 (PI.f64) a) (/.f64 1 (/.f64 b (PI.f64)))) (-.f64 b a)) -1/2) (-.f64 (neg.f64 b) a))
0.3b
(*.f64 (/.f64 (sqrt.f64 1/2) 1) (*.f64 (/.f64 (sqrt.f64 1/2) (+.f64 b a)) (/.f64 (fma.f64 (PI.f64) (/.f64 -1 b) (/.f64 (PI.f64) a)) (-.f64 b a))))
Compiler

Compiled 6590 to 1739 computations (73.6% saved)

regimes771.0ms (13.1%)

Accuracy

Total 0.2b remaining (90%)

Threshold costs 0.2b (90%)

Counts
154 → 1
Compiler

Compiled 11395 to 7092 computations (37.8% saved)

simplify6.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
sub-neg_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01119
11919
22619
33319
43619
53719
63719

end200.0ms (3.4%)

Compiler

Compiled 149 to 103 computations (30.9% saved)

Profiling

Loading profile data...