math.abs on complex (squared)

Time bar (total: 2.1s)

analyze0.0ms (0%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
100%99.9%0%0.1%0%0%0%1
Compiler

Compiled 10 to 6 computations (40% saved)

Precisions
Click to see histograms. Total time spent on operations: 0.0ms
Operation ival-add, time spent: 0.0ms, 0.0% of total-time
Operation ival-mult, time spent: 0.0ms, 0.0% of total-time
Operation const, time spent: 0.0ms, 0.0% of total-time

sample1.1s (54.8%)

Results
404.0ms4678×256valid
395.0ms3578×256infinite
Precisions
Click to see histograms. Total time spent on operations: 227.0ms
Operation ival-mult, time spent: 159.0ms, 70.0% of total-time
Operation ival-add, time spent: 58.0ms, 26.0% of total-time
Operation const, time spent: 10.0ms, 4.0% of total-time
Bogosity

preprocess139.0ms (6.7%)

Algorithm
egg-herbie
Rules
68×fma-neg
31×fma-define
19×distribute-lft-neg-in
13×unsub-neg
13×neg-sub0
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-im
00-0-(*.f64 im im)
00-0-(*.f64 re re)
00-0-re
00-0-(+.f64 (*.f64 re re) (*.f64 im im))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
020197
147197
2100197
3226197
4312197
5339197
Stop Event
saturated
Calls
Call 1
Inputs
(+.f64 (*.f64 re re) (*.f64 im im))
(+.f64 (*.f64 re re) (*.f64 im im))
(+.f64 (*.f64 (neg.f64 re) (neg.f64 re)) (*.f64 im im))
(+.f64 (*.f64 re re) (*.f64 (neg.f64 im) (neg.f64 im)))
(neg.f64 (+.f64 (*.f64 (neg.f64 re) (neg.f64 re)) (*.f64 im im)))
(neg.f64 (+.f64 (*.f64 re re) (*.f64 (neg.f64 im) (neg.f64 im))))
(+.f64 (*.f64 im im) (*.f64 re re))
Outputs
(+.f64 (*.f64 re re) (*.f64 im im))
(fma.f64 re re (*.f64 im im))
(+.f64 (*.f64 re re) (*.f64 im im))
(fma.f64 re re (*.f64 im im))
(+.f64 (*.f64 (neg.f64 re) (neg.f64 re)) (*.f64 im im))
(fma.f64 re re (*.f64 im im))
(+.f64 (*.f64 re re) (*.f64 (neg.f64 im) (neg.f64 im)))
(fma.f64 re re (*.f64 im im))
(neg.f64 (+.f64 (*.f64 (neg.f64 re) (neg.f64 re)) (*.f64 im im)))
(neg.f64 (fma.f64 re re (*.f64 im im)))
(neg.f64 (+.f64 (*.f64 re re) (*.f64 (neg.f64 im) (neg.f64 im))))
(neg.f64 (fma.f64 re re (*.f64 im im)))
(+.f64 (*.f64 im im) (*.f64 re re))
(fma.f64 re re (*.f64 im im))
Symmetry

(abs re)

(abs im)

(sort re im)

Results
33.0ms264×256valid
26.0ms248×256infinite
Compiler

Compiled 45 to 17 computations (62.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 14.0ms
Operation ival-mult, time spent: 9.0ms, 66.0% of total-time
Operation ival-add, time spent: 4.0ms, 29.0% of total-time
Operation const, time spent: 1.0ms, 7.0% of total-time

eval0.0ms (0%)

Compiler

Compiled 8 to 4 computations (50% saved)

prune1.0ms (0%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 (*.f64 re re) (*.f64 im im))
Compiler

Compiled 9 to 5 computations (44.4% saved)

localize41.0ms (2%)

Localize:

Found 1 expressions with local error:

NewAccuracyProgram
100.0%
(+.f64 (*.f64 re re) (*.f64 im im))
Results
14.0ms132×256valid
13.0ms124×256infinite
Compiler

Compiled 18 to 6 computations (66.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
Operation ival-mult, time spent: 5.0ms, 71.0% of total-time
Operation ival-add, time spent: 2.0ms, 28.0% of total-time
Operation const, time spent: 0.0ms, 0.0% of total-time

series3.0ms (0.1%)

Counts
1 → 24
Calls
Call 1
Inputs
#<alt (+.f64 (*.f64 re re) (*.f64 im im))>
Outputs
#<alt (pow.f64 im #s(literal 2 binary64))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (pow.f64 re #s(literal 2 binary64))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (pow.f64 re #s(literal 2 binary64))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (pow.f64 re #s(literal 2 binary64))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (pow.f64 im #s(literal 2 binary64))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (pow.f64 im #s(literal 2 binary64))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
Calls

6 calls:

TimeVariablePointExpression
1.0ms
re
@inf
(+ (* re re) (* im im))
1.0ms
re
@0
(+ (* re re) (* im im))
0.0ms
im
@inf
(+ (* re re) (* im im))
0.0ms
im
@0
(+ (* re re) (* im im))
0.0ms
re
@-inf
(+ (* re re) (* im im))

rewrite224.0ms (10.8%)

Algorithm
batch-egg-rewrite
Rules
573×prod-diff
502×log1p-expm1-u
502×expm1-log1p-u
435×pow1
425×unpow-prod-down
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01024
111719
2147619
Stop Event
node limit
Counts
1 → 58
Calls
Call 1
Inputs
(+.f64 (*.f64 re re) (*.f64 im im))
Outputs
(-.f64 (exp.f64 (log1p.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))) #s(literal 1 binary64))
(-.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))) (/.f64 (pow.f64 im #s(literal 4 binary64)) (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))
(*.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)) #s(literal 1 binary64))
(*.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)) (log.f64 (exp.f64 #s(literal 1 binary64))))
(*.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))
(*.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 4 binary64))))
(*.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 4 binary64))) (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(*.f64 (hypot.f64 re im) (hypot.f64 re im))
(*.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (/.f64 #s(literal 1 binary64) (-.f64 (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 (*.f64 re im) #s(literal 2 binary64)))))
(*.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (/.f64 #s(literal 1 binary64) (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))
(*.f64 (pow.f64 #s(literal 1 binary64) #s(literal 1/3 binary64)) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))) #s(literal 2 binary64)) #s(literal 3 binary64)) (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(*.f64 (pow.f64 (sqrt.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))) #s(literal 3 binary64)) (pow.f64 (sqrt.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))) #s(literal 3 binary64)))
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 6 binary64))) #s(literal 1/3 binary64)) (pow.f64 (sqrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 6 binary64))) #s(literal 1/3 binary64)))
(*.f64 (pow.f64 (*.f64 (pow.f64 (hypot.f64 re im) #s(literal 4 binary64)) (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 4 binary64)))) #s(literal 1/3 binary64)) (cbrt.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))))
(*.f64 (pow.f64 (pow.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)) #s(literal 5/2 binary64)) #s(literal 1/3 binary64)) (cbrt.f64 (hypot.f64 re im)))
(/.f64 #s(literal 1 binary64) (/.f64 (-.f64 (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64)))))
(/.f64 #s(literal 1 binary64) (/.f64 (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64))) (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))))
(/.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (-.f64 (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 (*.f64 re im) #s(literal 2 binary64))))
(/.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (+.f64 (pow.f64 im #s(literal 4 binary64)) (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64))))
(/.f64 (neg.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64)))) (neg.f64 (-.f64 (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 (*.f64 re im) #s(literal 2 binary64)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) (neg.f64 (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) (-.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64))))
(pow.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)) #s(literal 1 binary64))
(pow.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) #s(literal 3 binary64))
(pow.f64 (pow.f64 (hypot.f64 re im) #s(literal 4 binary64)) #s(literal 1/2 binary64))
(pow.f64 (pow.f64 (hypot.f64 re im) #s(literal 6 binary64)) #s(literal 1/3 binary64))
(pow.f64 (hypot.f64 re im) #s(literal 2 binary64))
(pow.f64 (/.f64 (-.f64 (+.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64)))) #s(literal -1 binary64))
(pow.f64 (/.f64 (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64))) (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) #s(literal -1 binary64))
(sqrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 4 binary64)))
(log.f64 (exp.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 6 binary64)))
(expm1.f64 (log1p.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(log1p.f64 (expm1.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(exp.f64 (*.f64 #s(literal 2 binary64) (log.f64 (hypot.f64 re im))))
(exp.f64 (*.f64 (*.f64 #s(literal 2 binary64) (log.f64 (hypot.f64 re im))) #s(literal 1 binary64)))
(exp.f64 (*.f64 (log.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))) #s(literal 3 binary64)))
(exp.f64 (*.f64 (log.f64 (pow.f64 (hypot.f64 re im) #s(literal 6 binary64))) #s(literal 1/3 binary64)))
(exp.f64 (*.f64 (log.f64 (hypot.f64 re im)) #s(literal 2 binary64)))
(exp.f64 (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (log.f64 (hypot.f64 re im))) #s(literal 1 binary64)) #s(literal 1 binary64)))
(fma.f64 re re (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (pow.f64 re #s(literal 2 binary64)) #s(literal 1 binary64) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 im im (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 im #s(literal 2 binary64)) #s(literal 1 binary64) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 #s(literal 1 binary64) (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 #s(literal 1 binary64) (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 im) #s(literal 2 binary64)) (pow.f64 (cbrt.f64 im) #s(literal 4 binary64)) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 im) #s(literal 4 binary64)) (pow.f64 (cbrt.f64 im) #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 re) #s(literal 2 binary64)) (pow.f64 (cbrt.f64 re) #s(literal 4 binary64)) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 re) #s(literal 4 binary64)) (pow.f64 (cbrt.f64 re) #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (sqrt.f64 im) (pow.f64 im #s(literal 3/2 binary64)) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (sqrt.f64 re) (pow.f64 re #s(literal 3/2 binary64)) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (pow.f64 im #s(literal 3/2 binary64)) (sqrt.f64 im) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 re #s(literal 3/2 binary64)) (sqrt.f64 re) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 im) #s(literal 5 binary64)) (cbrt.f64 im) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 re) #s(literal 5 binary64)) (cbrt.f64 re) (pow.f64 im #s(literal 2 binary64)))

eval117.0ms (5.7%)

Compiler

Compiled 905 to 608 computations (32.8% saved)

prune111.0ms (5.3%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New81182
Fresh000
Picked011
Done000
Total81283
Accuracy
100.0%
Counts
83 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(pow.f64 (hypot.f64 re im) #s(literal 2 binary64))
100.0%
(+.f64 (*.f64 re re) (*.f64 im im))
Compiler

Compiled 16 to 10 computations (37.5% saved)

localize127.0ms (6.1%)

Localize:

Found 1 expressions with local error:

NewAccuracyProgram
100.0%
(pow.f64 (hypot.f64 re im) #s(literal 2 binary64))
Results
86.0ms132×256valid
26.0ms124×256infinite
Compiler

Compiled 14 to 7 computations (50% saved)

Precisions
Click to see histograms. Total time spent on operations: 176.0ms
Operation composed, time spent: 80.0ms, 46.0% of total-time
Operation ival-add, time spent: 73.0ms, 42.0% of total-time
Operation ival-pow, time spent: 16.0ms, 9.0% of total-time
Operation ival-mult, time spent: 4.0ms, 2.0% of total-time
Operation ival-sqrt, time spent: 2.0ms, 1.0% of total-time
Operation const, time spent: 1.0ms, 1.0% of total-time

series2.0ms (0.1%)

Counts
1 → 24
Calls
Call 1
Inputs
#<alt (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))>
Outputs
#<alt (pow.f64 im #s(literal 2 binary64))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (pow.f64 re #s(literal 2 binary64))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (pow.f64 re #s(literal 2 binary64))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 re #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))))>
#<alt (pow.f64 re #s(literal 2 binary64))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))>
#<alt (pow.f64 im #s(literal 2 binary64))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (pow.f64 im #s(literal 2 binary64))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
#<alt (*.f64 (pow.f64 im #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))>
Calls

6 calls:

TimeVariablePointExpression
0.0ms
re
@inf
(pow (sqrt (+ (* re re) (* im im))) 2)
0.0ms
im
@inf
(pow (sqrt (+ (* re re) (* im im))) 2)
0.0ms
re
@0
(pow (sqrt (+ (* re re) (* im im))) 2)
0.0ms
re
@-inf
(pow (sqrt (+ (* re re) (* im im))) 2)
0.0ms
im
@-inf
(pow (sqrt (+ (* re re) (* im im))) 2)

rewrite83.0ms (4%)

Algorithm
batch-egg-rewrite
Rules
302×log1p-expm1-u
302×expm1-log1p-u
286×add-exp-log
278×pow1
276×unpow-prod-down
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01019
18919
291819
Stop Event
node limit
Counts
1 → 58
Calls
Call 1
Inputs
(pow.f64 (hypot.f64 re im) #s(literal 2 binary64))
Outputs
(+.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))
(+.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))
(+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) #s(literal -1 binary64))
(+.f64 #s(literal 0 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))
(+.f64 (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) #s(literal 2 binary64)))) (log.f64 (cbrt.f64 (exp.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))))
(+.f64 (log.f64 (sqrt.f64 (exp.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))) (log.f64 (sqrt.f64 (exp.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))))
(-.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) #s(literal 1 binary64))
(-.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))) (/.f64 (pow.f64 im #s(literal 4 binary64)) (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))
(*.f64 (hypot.f64 re im) (hypot.f64 re im))
(*.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)) #s(literal 1 binary64))
(*.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)) (log.f64 (E.f64)))
(*.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))
(*.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) #s(literal 2 binary64)) (pow.f64 (cbrt.f64 (hypot.f64 re im)) #s(literal 4 binary64)))
(*.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) #s(literal 4 binary64)) (pow.f64 (cbrt.f64 (hypot.f64 re im)) #s(literal 2 binary64)))
(*.f64 (sqrt.f64 (hypot.f64 re im)) (pow.f64 (hypot.f64 re im) #s(literal 3/2 binary64)))
(*.f64 (pow.f64 (hypot.f64 re im) #s(literal 3/2 binary64)) (sqrt.f64 (hypot.f64 re im)))
(*.f64 (+.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 6 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 (pow.f64 re #s(literal 4 binary64)) (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))))))
(*.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (/.f64 #s(literal 1 binary64) (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))
(*.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) #s(literal 5 binary64)) (cbrt.f64 (hypot.f64 re im)))
(*.f64 (pow.f64 #s(literal 1 binary64) #s(literal 1/3 binary64)) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))
(*.f64 (pow.f64 (pow.f64 (hypot.f64 re im) #s(literal 5 binary64)) #s(literal 1/3 binary64)) (cbrt.f64 (hypot.f64 re im)))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 8 binary64))) #s(literal 2 binary64)) #s(literal 1/3 binary64)) (pow.f64 (cbrt.f64 (cbrt.f64 (hypot.f64 re im))) #s(literal 2 binary64)))
(*.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 5 binary64))) (cbrt.f64 (hypot.f64 re im)))
(*.f64 (cbrt.f64 (pow.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 8 binary64))) #s(literal 2 binary64))) (pow.f64 (cbrt.f64 (cbrt.f64 (hypot.f64 re im))) #s(literal 2 binary64)))
(*.f64 (sqrt.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) #s(literal 2 binary64)) #s(literal 5 binary64))) (cbrt.f64 (hypot.f64 re im)))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 (pow.f64 re #s(literal 4 binary64)) (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64)))) (+.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 6 binary64)))))
(/.f64 #s(literal 1 binary64) (/.f64 (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64))) (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))))
(/.f64 (+.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 6 binary64))) (+.f64 (pow.f64 re #s(literal 4 binary64)) (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64))))
(/.f64 (neg.f64 (+.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 6 binary64)))) (neg.f64 (+.f64 (pow.f64 re #s(literal 4 binary64)) (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))))))
(/.f64 (neg.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) (neg.f64 (-.f64 (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))))
(/.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (+.f64 (pow.f64 im #s(literal 4 binary64)) (-.f64 (pow.f64 re #s(literal 4 binary64)) (*.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64))))))
(/.f64 (-.f64 (pow.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) #s(literal 3 binary64)) #s(literal 1 binary64)) (+.f64 (*.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))) (+.f64 #s(literal 1 binary64) (*.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) #s(literal 1 binary64)))))
(/.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) (-.f64 (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64))))
(/.f64 (-.f64 (*.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))) #s(literal 1 binary64)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))) #s(literal 1 binary64)))
(sqrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 4 binary64)))
(fabs.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64)))
(log.f64 (exp.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(cbrt.f64 (pow.f64 (hypot.f64 re im) #s(literal 6 binary64)))
(expm1.f64 (log1p.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(log1p.f64 (expm1.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(exp.f64 (log.f64 (pow.f64 (hypot.f64 re im) #s(literal 2 binary64))))
(exp.f64 (*.f64 (*.f64 #s(literal 2 binary64) (log.f64 (cbrt.f64 (hypot.f64 re im)))) #s(literal 3 binary64)))
(exp.f64 (*.f64 (log.f64 (pow.f64 (hypot.f64 re im) #s(literal 6 binary64))) #s(literal 1/3 binary64)))
(fma.f64 re re (pow.f64 im #s(literal 2 binary64)))
(fma.f64 im im (pow.f64 re #s(literal 2 binary64)))
(fma.f64 #s(literal 1 binary64) (pow.f64 re #s(literal 2 binary64)) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 #s(literal 1 binary64) (pow.f64 im #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (cbrt.f64 (pow.f64 re #s(literal 2 binary64))) (cbrt.f64 (pow.f64 re #s(literal 4 binary64))) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 im) #s(literal 2 binary64)) (pow.f64 (cbrt.f64 im) #s(literal 4 binary64)) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (sqrt.f64 re) (pow.f64 re #s(literal 3/2 binary64)) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (sqrt.f64 im) (pow.f64 im #s(literal 3/2 binary64)) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 im) #s(literal 4 binary64)) (pow.f64 (cbrt.f64 im) #s(literal 2 binary64)) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (cbrt.f64 (pow.f64 re #s(literal 4 binary64))) (cbrt.f64 (pow.f64 re #s(literal 2 binary64))) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (pow.f64 re #s(literal 3/2 binary64)) (sqrt.f64 re) (pow.f64 im #s(literal 2 binary64)))
(fma.f64 (pow.f64 im #s(literal 3/2 binary64)) (sqrt.f64 im) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 im) #s(literal 5 binary64)) (cbrt.f64 im) (pow.f64 re #s(literal 2 binary64)))
(fma.f64 (pow.f64 (cbrt.f64 re) #s(literal 5 binary64)) (cbrt.f64 re) (pow.f64 im #s(literal 2 binary64)))

eval23.0ms (1.1%)

Compiler

Compiled 940 to 615 computations (34.6% saved)

prune15.0ms (0.7%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New82082
Fresh000
Picked011
Done011
Total82284
Accuracy
100.0%
Counts
84 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(pow.f64 (hypot.f64 re im) #s(literal 2 binary64))
100.0%
(+.f64 (*.f64 re re) (*.f64 im im))
Compiler

Compiled 30 to 18 computations (40% saved)

regimes16.0ms (0.8%)

Accuracy

Total -0.0b remaining (-100%)

Threshold costs -0b (-100%)

Stop Event
done
Counts
2 → 1
Calls
Call 1
Inputs
(+.f64 (*.f64 re re) (*.f64 im im))
(pow.f64 (hypot.f64 re im) #s(literal 2 binary64))
Outputs
(+.f64 (*.f64 re re) (*.f64 im im))
Calls

5 calls:

8.0ms
(+.f64 (*.f64 re re) (*.f64 im im))
3.0ms
(*.f64 im im)
2.0ms
(*.f64 re re)
1.0ms
im
1.0ms
re
Results
AccuracySegmentsBranch
100.0%1re
100.0%1im
100.0%1(+.f64 (*.f64 re re) (*.f64 im im))
100.0%1(*.f64 re re)
100.0%1(*.f64 im im)
Compiler

Compiled 34 to 20 computations (41.2% saved)

soundness0.0ms (0%)

end0.0ms (0%)

preprocess35.0ms (1.7%)

Remove

(sort re im)

(abs im)

(abs re)

Compiler

Compiled 144 to 80 computations (44.4% saved)

Profiling

Loading profile data...