Details

Time bar (total: 2.5s)

sample158.0ms

Algorithm
intervals
sampling

Space saved by range analysis: 0.097632%

Space saved by search: 0.097632%

Guaranteed chance to sample good point: 0%

Results
7.0ms256×body80valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
074
174

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 29.8b

Counts
2 → 1

localize6.0ms

Local error

Found 1 expressions with local error:

27.9b
(sqrt (+ (* re re) (* im im)))

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity sqrt-div
add-exp-log rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 add-cbrt-cube flip-+ add-log-exp
Counts
1 → 15
Calls
1 calls:
3.0ms
(sqrt (+ (* re re) (* im im)))

series6.0ms

Counts
1 → 3
Calls
1 calls:
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify135.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 5 (132.0ms)

IterNodesCost
089100
121597
250397
3126597
4422797
5500296

prune33.0ms

Filtered
15 candidates to 18 candidates (-20.0%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New14418
Fresh000
Picked011
Done000
Total14519

Merged error: 7.1b

Counts
19 → 5

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (cbrt (+ (* re re) (* im im))))
0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
28.9b
(cbrt (+ (* re re) (* im im)))
28.9b
(cbrt (+ (* re re) (* im im)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
14×cbrt-prod sqrt-prod
12×add-cube-cbrt *-un-lft-identity
associate-*r*
cbrt-div
pow1
add-exp-log add-cbrt-cube
flip3-+ sqrt-div flip-+ add-log-exp
pow1/3 associate-*l* unswap-sqr
rem-sqrt-square sqrt-pow1 associate-*r/
pow1/2 pow-prod-down prod-exp *-commutative cbrt-unprod
Counts
4 → 74
Calls
4 calls:
4.0ms
(sqrt (cbrt (+ (* re re) (* im im))))
7.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
3.0ms
(cbrt (+ (* re re) (* im im)))
3.0ms
(cbrt (+ (* re re) (* im im)))

series98.0ms

Counts
4 → 12
Calls
4 calls:
21.0ms
(sqrt (cbrt (+ (* re re) (* im im))))
37.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
21.0ms
(cbrt (+ (* re re) (* im im)))
20.0ms
(cbrt (+ (* re re) (* im im)))

simplify107.0ms

Algorithm
egg-herbie
Counts
86 → 86
Iterations

Useful iterations: 3 (98.0ms)

IterNodesCost
0311925
11082871
24121841
35001813

prune110.0ms

Filtered
72 candidates to 86 candidates (-19.4%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New85186
Fresh033
Picked101
Done011
Total86591

Merged error: 7.1b

Counts
91 → 5

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (cbrt (+ (* re re) (* im im))))
0.3b
(* (fabs (pow (+ (* re re) (* im im)) 1/3)) (sqrt (cbrt (+ (* re re) (* im im)))))
28.9b
(cbrt (+ (* re re) (* im im)))
31.2b
(pow (+ (* re re) (* im im)) 1/3)

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt
14×sqrt-prod
13×add-cube-cbrt *-un-lft-identity
11×cbrt-prod
associate-*r*
pow1
add-exp-log
cbrt-div add-cbrt-cube
sqrt-div add-log-exp
unpow-prod-down pow-unpow flip3-+ associate-*l* flip-+ unswap-sqr
rem-sqrt-square sqrt-pow1 pow1/3 associate-*r/
pow-to-exp pow-pow pow1/2 unpow1/3 pow-prod-down pow-exp prod-exp *-commutative cbrt-unprod sqr-pow
Counts
4 → 79
Calls
4 calls:
4.0ms
(sqrt (cbrt (+ (* re re) (* im im))))
7.0ms
(* (fabs (pow (+ (* re re) (* im im)) 1/3)) (sqrt (cbrt (+ (* re re) (* im im)))))
3.0ms
(cbrt (+ (* re re) (* im im)))
5.0ms
(pow (+ (* re re) (* im im)) 1/3)

series97.0ms

Counts
4 → 12
Calls
4 calls:
20.0ms
(sqrt (cbrt (+ (* re re) (* im im))))
33.0ms
(* (fabs (pow (+ (* re re) (* im im)) 1/3)) (sqrt (cbrt (+ (* re re) (* im im)))))
22.0ms
(cbrt (+ (* re re) (* im im)))
21.0ms
(pow (+ (* re re) (* im im)) 1/3)

simplify44.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0359914
11339842
25001801

prune144.0ms

Filtered
70 candidates to 91 candidates (-30.0%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New90191
Fresh033
Picked101
Done011
Total91596

Merged error: 7.1b

Counts
96 → 5

localize23.0ms

Local error

Found 4 expressions with local error:

1.0b
(* (cbrt 1/3) (cbrt 1/3))
6.1b
(pow (pow (+ (* re re) (* im im)) (* (cbrt 1/3) (cbrt 1/3))) (cbrt 1/3))
28.9b
(cbrt (+ (* re re) (* im im)))
30.1b
(pow (+ (* re re) (* im im)) (* (cbrt 1/3) (cbrt 1/3)))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
22×cbrt-prod
18×add-cube-cbrt *-un-lft-identity
13×unpow-prod-down
12×pow1
add-exp-log
pow-unpow pow1/3
swap-sqr associate-*r* associate-*l*
pow-exp
add-cbrt-cube add-log-exp unswap-sqr
pow-to-exp sqr-pow
cbrt-div pow-pow pow-prod-down pow-sqr pow-prod-up
pow2 flip3-+ pow-plus prod-exp *-commutative cbrt-unprod flip-+
Counts
4 → 94
Calls
4 calls:
5.0ms
(* (cbrt 1/3) (cbrt 1/3))
6.0ms
(pow (pow (+ (* re re) (* im im)) (* (cbrt 1/3) (cbrt 1/3))) (cbrt 1/3))
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(pow (+ (* re re) (* im im)) (* (cbrt 1/3) (cbrt 1/3)))

series103.0ms

Counts
4 → 10
Calls
4 calls:
0.0ms
(* (cbrt 1/3) (cbrt 1/3))
46.0ms
(pow (pow (+ (* re re) (* im im)) (* (cbrt 1/3) (cbrt 1/3))) (cbrt 1/3))
23.0ms
(cbrt (+ (* re re) (* im im)))
34.0ms
(pow (+ (* re re) (* im im)) (* (cbrt 1/3) (cbrt 1/3)))

simplify47.0ms

Algorithm
egg-herbie
Counts
104 → 104
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0357856
11455798
25001732

prune224.0ms

Filtered
75 candidates to 104 candidates (-38.7%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1031104
Fresh033
Picked101
Done011
Total1045109

Merged error: 7.1b

Counts
109 → 5

regimes418.0ms

Accuracy

58.9% (9.8b remaining)

Error of 17.5b against oracle of 7.7b and baseline of 31.5b

bsearch94.0ms

Steps
ItersRangePoint
7
3.7380171380528205e+131
2.2036190371040857e+133
4.070668110430573e+132
9
1.0024453803372812e-186
4.456042333808463e-180
3.46573922954345e-184
10
2.3367118136548073e-275
3.520865103119929e-260
1.2483708959024469e-261
8
-2.123355625183021e+93
-1.3524789121729735e+89
-2.0762121055878436e+93

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0239
1239

end0.0ms

sample511.0ms

Algorithm
intervals
sampling

Space saved by range analysis: 0.097632%

Space saved by search: 0.097632%

Guaranteed chance to sample good point: 0%

Results
238.0ms8000×body80valid

Profiling

Loading profile data...