math.log/1 on complex, real part

Time bar (total: 3.5s)

analyze1.3s (38%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%199.8%-99.8%0%0%0%1
0%0%399.6%-299.6%0%0%0%2
0%0%799.2%-699.2%0%0%0%3
0%0%1598.4%-1498.4%0%0%0%4
0%0%3196.9%-3096.9%0%0%0%5
0%0%6393.8%-6293.8%0%0%0%6
0%0%12787.5%-12687.5%0%0%0%7
0%0%25575%-25475%0%0%0%8
0%0%51150%-51050%0%0%0%9
0%0%102300%-102200%0%0%0%10
0%0%204600%-204500%0%0%0%11
0%0%409200.1%-409100.1%0%0%0%12
Compiler

Compiled 12 to 8 computations (33.3% saved)

sample1.9s (55.4%)

Results
1.9s8256×body256valid
Bogosity

preprocess31.0ms (0.9%)

Algorithm
egg-herbie
Rules
182×fma-def
30×distribute-lft-neg-in
28×unsub-neg
26×neg-sub0
20×associate-*r*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02344
14644
29144
317444
426744
530344
631144
Stop Event
saturated
Calls
Call 1
Inputs
(log.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))))
(log.f64 (sqrt.f64 (+.f64 (*.f64 (neg.f64 re) (neg.f64 re)) (*.f64 im im))))
(log.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 (neg.f64 im) (neg.f64 im)))))
(log.f64 (sqrt.f64 (+.f64 (*.f64 im im) (*.f64 re re))))
Outputs
(log.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))))
(log.f64 (hypot.f64 re im))
(log.f64 (sqrt.f64 (+.f64 (*.f64 (neg.f64 re) (neg.f64 re)) (*.f64 im im))))
(log.f64 (hypot.f64 re im))
(log.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 (neg.f64 im) (neg.f64 im)))))
(log.f64 (hypot.f64 re im))
(log.f64 (sqrt.f64 (+.f64 (*.f64 im im) (*.f64 re re))))
(log.f64 (hypot.f64 re im))
Symmetry

(abs re)

(abs im)

(sort re im)

Compiler

Compiled 13 to 9 computations (30.8% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Rules
fma-def
hypot-def
+-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01011
11411
21611
Stop Event
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(log.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))))
Outputs
(log.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))))
(log.f64 (hypot.f64 re im))

eval1.0ms (0%)

Compiler

Compiled 15 to 9 computations (40% saved)

prune1.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Accurracy
100.0%
Counts
3 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(log.f64 (hypot.f64 re im))
100.0%
(log.f64 (hypot.f64 re im))
Compiler

Compiled 12 to 8 computations (33.3% saved)

localize114.0ms (3.3%)

Compiler

Compiled 12 to 5 computations (58.3% saved)

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune1.0ms (0%)

Pruning

1 alts after pruning (0 fresh and 1 done)

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

Compiled 21 to 13 computations (38.1% saved)

regimes26.0ms (0.7%)

Accuracy

Total -30.8b remaining (-∞%)

Threshold costs -30.8b (-∞%)

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

7 calls:

9.0ms
(*.f64 im im)
3.0ms
im
3.0ms
re
3.0ms
(log.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))))
3.0ms
(+.f64 (*.f64 re re) (*.f64 im im))
Results
AccuracySegmentsBranch
100.0%1re
100.0%1im
100.0%1(log.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))))
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 61 to 37 computations (39.3% saved)

simplify8.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

Compiled 6 to 4 computations (33.3% saved)

soundness13.0ms (0.4%)

Rules
fma-def
hypot-def
+-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01011
11411
21611
Stop Event
saturated
Compiler

Compiled 15 to 9 computations (40% saved)

end0.0ms (0%)

preprocess33.0ms (1%)

Remove

(sort re im)

(abs im)

(abs re)

Compiler

Compiled 70 to 46 computations (34.3% saved)

Profiling

Loading profile data...