math.abs on complex

Time bar (total: 1.2s)

analyze1.0ms (0%)

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

Compiled 11 to 7 computations (36.4% saved)

sample965.0ms (80.5%)

Results
955.0ms8256×body256valid
Bogosity

preprocess103.0ms (8.6%)

Algorithm
egg-herbie
Rules
80×fma-def
37×associate-*r*
28×*-commutative
24×+-commutative
22×associate--r+
Problems
131×No Errors
125×(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02265
14665
28365
320165
435865
543465
644265
Stop Event
saturated
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
(sqrt.f64 (+.f64 (*.f64 (neg.f64 re) (neg.f64 re)) (*.f64 im im)))
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 (neg.f64 im) (neg.f64 im))))
(sqrt.f64 (+.f64 (*.f64 im im) (*.f64 re re)))
Outputs
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
(hypot.f64 re im)
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
(hypot.f64 re im)
(sqrt.f64 (+.f64 (*.f64 (neg.f64 re) (neg.f64 re)) (*.f64 im im)))
(hypot.f64 re im)
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 (neg.f64 im) (neg.f64 im))))
(hypot.f64 re im)
(sqrt.f64 (+.f64 (*.f64 im im) (*.f64 re re)))
(hypot.f64 re im)
Symmetry

(abs re)

(abs im)

(sort re im)

Compiler

Compiled 36 to 13 computations (63.9% saved)

eval0.0ms (0%)

Compiler

Compiled 5 to 3 computations (40% saved)

prune1.0ms (0.1%)

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

Compiled 10 to 6 computations (40% saved)

localize31.0ms (2.6%)

Compiler

Compiled 8 to 4 computations (50% saved)

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune1.0ms (0.1%)

Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done000
Total011
Accuracy
100.0%
Counts
1 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 re im)
Compiler

Compiled 18 to 10 computations (44.4% saved)

regimes48.0ms (4%)

Accuracy

Total -29.0b remaining (-∞%)

Threshold costs -29b (-∞%)

Counts
2 → 1
Calls
Call 1
Inputs
(hypot.f64 re im)
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
Outputs
(hypot.f64 re im)
Calls

6 calls:

35.0ms
im
3.0ms
re
3.0ms
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
3.0ms
(+.f64 (*.f64 re re) (*.f64 im im))
3.0ms
(*.f64 im im)
Results
AccuracySegmentsBranch
100.0%1re
100.0%1im
100.0%1(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
100.0%1(+.f64 (*.f64 re re) (*.f64 im im))
100.0%1(*.f64 re re)
100.0%1(*.f64 im im)
Compiler

Compiled 48 to 28 computations (41.7% saved)

simplify2.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0813
Stop Event
done
saturated
Calls
Call 1
Inputs
(hypot.f64 re im)
Outputs
(hypot.f64 re im)
Compiler

Compiled 5 to 3 computations (40% saved)

soundness22.0ms (1.9%)

Rules
80×fma-def
37×associate-*r*
28×*-commutative
24×+-commutative
22×associate--r+
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02265
14665
28365
320165
435865
543465
644265
Stop Event
saturated
Compiler

Compiled 13 to 7 computations (46.2% saved)

end0.0ms (0%)

preprocess23.0ms (2%)

Remove

(sort re im)

(abs im)

(abs re)

Compiler

Compiled 60 to 36 computations (40% saved)

Profiling

Loading profile data...