math.square on complex, imaginary part

Time bar (total: 1.2s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
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 9 to 7 computations (22.2% saved)

sample696.0ms (59.6%)

Memory
18.2MiB live, 757.6MiB allocated
Samples
446.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 279.0ms
ival-mult: 196.0ms (70.2% of total)
ival-add: 75.0ms (26.9% of total)
ival-true: 6.0ms (2.1% of total)
ival-assert: 3.0ms (1.1% of total)
Bogosity

explain104.0ms (8.9%)

Memory
-20.9MiB live, 97.6MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(*.f64 im re)
00-0-(+.f64 (*.f64 re im) (*.f64 im re))
00-0-(*.f64 re im)
00-0-re
00-0-im
Confusion
Predicted +Predicted -
+00
-0256
Precision
0/0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-00256
Precision?
0/0
Recall?
0/0
Freqs
test
numberfreq
0256
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-001
Precision?
0/0
Recall?
0/0
Samples
52.0ms512×0valid
Compiler

Compiled 56 to 24 computations (57.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 37.0ms
ival-add: 30.0ms (80.8% of total)
ival-mult: 7.0ms (18.9% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess56.0ms (4.8%)

Memory
25.6MiB live, 62.3MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01543
14627
210825
329125
443825
545925
057
087
1145
2365
3735
42115
54175
64665
04665
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(+.f64 (*.f64 re im) (*.f64 im re))
Outputs
(+.f64 (*.f64 re im) (*.f64 im re))
(*.f64 #s(literal 2 binary64) (*.f64 im re))
Symmetry

(negabs im)

(negabs re)

(sort re im)

Compiler

Compiled 7 to 5 computations (28.6% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 (*.f64 re im) (*.f64 im re))
Compiler

Compiled 7 to 5 computations (28.6% saved)

simplify20.0ms (1.7%)

Memory
-41.5MiB live, 10.7MiB allocated
Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 im re)
cost-diff0
(*.f64 re im)
cost-diff2
(+.f64 (*.f64 re im) (*.f64 im re))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0515
0815
11413
23613
37313
421113
541713
646613
046613
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(+.f64 (*.f64 re im) (*.f64 im re))
(*.f64 re im)
re
im
(*.f64 im re)
Outputs
(+.f64 (*.f64 re im) (*.f64 im re))
(*.f64 #s(literal 2 binary64) (*.f64 im re))
(*.f64 re im)
(*.f64 im re)
re
im
(*.f64 im re)

localize15.0ms (1.3%)

Memory
16.6MiB live, 16.6MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 re im)
accuracy0.0
(*.f64 im re)
accuracy0.01171875
(+.f64 (*.f64 re im) (*.f64 im re))
Samples
10.0ms256×0valid
Compiler

Compiled 32 to 12 computations (62.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-mult: 3.0ms (66% of total)
ival-add: 1.0ms (22% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series4.0ms (0.4%)

Memory
7.2MiB live, 7.2MiB allocated
Counts
3 → 2
Calls
Call 1
Inputs
(+.f64 (*.f64 re im) (*.f64 im re))
(*.f64 re im)
(*.f64 im re)
Outputs
(* 2 (* im re))
(* im re)
Calls

6 calls:

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

simplify15.0ms (1.3%)

Memory
-18.8MiB live, 17.9MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
058
1128
2318
3558
4868
52328
64558
74798
04798
Stop Event
iter limit
saturated
Counts
2 → 2
Calls
Call 1
Inputs
(* 2 (* im re))
(* im re)
Outputs
(* 2 (* im re))
(*.f64 (*.f64 im re) #s(literal 2 binary64))
(* im re)
(*.f64 im re)

rewrite38.0ms (3.2%)

Memory
2.7MiB live, 40.5MiB allocated
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0513
0813
1329
01709
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
3 → 29
Calls
Call 1
Inputs
(+.f64 (*.f64 re im) (*.f64 im re))
(*.f64 re im)
(*.f64 im re)
Outputs
(*.f64 #s(literal 2 binary64) (*.f64 im re))
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64)))
(*.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (*.f64 im re) #s(literal 3 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 #s(literal 0 binary64) (pow.f64 (*.f64 im re) #s(literal 2 binary64)))))
(*.f64 im (+.f64 re re))
(*.f64 re (-.f64 im (neg.f64 im)))
(*.f64 re (+.f64 im im))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 #s(literal 0 binary64) (pow.f64 (*.f64 im re) #s(literal 2 binary64))) (*.f64 #s(literal 2 binary64) (pow.f64 (*.f64 im re) #s(literal 3 binary64)))))
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (-.f64 (pow.f64 (*.f64 im re) #s(literal 3 binary64)) (pow.f64 (*.f64 (neg.f64 im) re) #s(literal 3 binary64))) (+.f64 (pow.f64 (*.f64 im re) #s(literal 2 binary64)) (+.f64 (pow.f64 (*.f64 im re) #s(literal 2 binary64)) (*.f64 (*.f64 im re) (*.f64 (neg.f64 im) re)))))
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (*.f64 im re) #s(literal 3 binary64)))) (neg.f64 (+.f64 #s(literal 0 binary64) (pow.f64 (*.f64 im re) #s(literal 2 binary64)))))
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64))
(/.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (*.f64 im re) #s(literal 3 binary64))) (+.f64 #s(literal 0 binary64) (pow.f64 (*.f64 im re) #s(literal 2 binary64))))
(fma.f64 im re (*.f64 (neg.f64 (neg.f64 im)) re))
(fma.f64 im re (neg.f64 (*.f64 (neg.f64 im) re)))
(fma.f64 im re (*.f64 im re))
(fma.f64 re im (*.f64 (neg.f64 (neg.f64 im)) re))
(fma.f64 re im (neg.f64 (*.f64 (neg.f64 im) re)))
(fma.f64 re im (*.f64 im re))
(-.f64 (/.f64 (pow.f64 (*.f64 im re) #s(literal 2 binary64)) #s(literal 0 binary64)) (/.f64 (pow.f64 (*.f64 im re) #s(literal 2 binary64)) #s(literal 0 binary64)))
(-.f64 (*.f64 im re) (*.f64 (neg.f64 re) im))
(-.f64 (*.f64 im re) (*.f64 (neg.f64 im) re))
(+.f64 (/.f64 (pow.f64 (*.f64 im re) #s(literal 3 binary64)) (+.f64 #s(literal 0 binary64) (pow.f64 (*.f64 im re) #s(literal 2 binary64)))) (/.f64 (pow.f64 (*.f64 im re) #s(literal 3 binary64)) (+.f64 #s(literal 0 binary64) (pow.f64 (*.f64 im re) #s(literal 2 binary64)))))
(+.f64 (*.f64 im re) (*.f64 (neg.f64 (neg.f64 im)) re))
(+.f64 (*.f64 im re) (neg.f64 (*.f64 (neg.f64 im) re)))
(+.f64 (*.f64 im re) (*.f64 im re))
(*.f64 im re)
(*.f64 re im)
(*.f64 im re)
(*.f64 re im)

eval3.0ms (0.2%)

Memory
4.4MiB live, 4.4MiB allocated
Compiler

Compiled 298 to 67 computations (77.5% saved)

prune1.0ms (0.1%)

Memory
2.1MiB live, 2.1MiB allocated
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New28129
Fresh000
Picked101
Done000
Total29130
Accuracy
100.0%
Counts
30 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 im (+.f64 re re))
Compiler

Compiled 5 to 4 computations (20% saved)

simplify13.0ms (1.1%)

Memory
16.8MiB live, 16.8MiB allocated
Algorithm
egg-herbie
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 re re)
cost-diff0
(*.f64 im (+.f64 re re))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0410
0610
11310
22910
35710
48810
523410
645010
747710
047710
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(*.f64 im (+.f64 re re))
im
(+.f64 re re)
re
Outputs
(*.f64 im (+.f64 re re))
(*.f64 (*.f64 #s(literal 2 binary64) re) im)
im
(+.f64 re re)
(*.f64 #s(literal 2 binary64) re)
re

localize15.0ms (1.3%)

Memory
-10.2MiB live, 28.0MiB allocated
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 re re)
accuracy0.0
(*.f64 im (+.f64 re re))
Samples
10.0ms256×0valid
Compiler

Compiled 22 to 10 computations (54.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-add: 3.0ms (60.6% of total)
ival-mult: 2.0ms (40.4% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series3.0ms (0.3%)

Memory
5.9MiB live, 5.9MiB allocated
Counts
2 → 2
Calls
Call 1
Inputs
(*.f64 im (+.f64 re re))
(+.f64 re re)
Outputs
(* 2 (* im re))
(* 2 re)
Calls

6 calls:

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

simplify12.0ms (1.1%)

Memory
16.7MiB live, 16.7MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
068
1158
2308
3528
4838
52298
64748
74968
04968
Stop Event
iter limit
saturated
Counts
2 → 2
Calls
Call 1
Inputs
(* 2 (* im re))
(* 2 re)
Outputs
(* 2 (* im re))
(*.f64 (*.f64 re im) #s(literal 2 binary64))
(* 2 re)
(*.f64 #s(literal 2 binary64) re)

rewrite36.0ms (3.1%)

Memory
-43.0MiB live, 41.1MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
048
068
1228
01478
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
2 → 28
Calls
Call 1
Inputs
(*.f64 im (+.f64 re re))
(+.f64 re re)
Outputs
(*.f64 (*.f64 im #s(literal 2 binary64)) re)
(*.f64 #s(literal 2 binary64) (*.f64 re im))
(*.f64 (*.f64 #s(literal 2 binary64) re) im)
(*.f64 re (+.f64 im im))
(*.f64 im (*.f64 #s(literal 2 binary64) re))
(/.f64 (*.f64 #s(literal 0 binary64) im) #s(literal 0 binary64))
(/.f64 (*.f64 (*.f64 #s(literal 2 binary64) (pow.f64 re #s(literal 3 binary64))) im) (fma.f64 re re #s(literal 0 binary64)))
(/.f64 (*.f64 im #s(literal 0 binary64)) #s(literal 0 binary64))
(/.f64 (*.f64 im (*.f64 #s(literal 2 binary64) (pow.f64 re #s(literal 3 binary64)))) (fma.f64 re re #s(literal 0 binary64)))
(/.f64 (-.f64 (*.f64 (*.f64 re im) (*.f64 re im)) (*.f64 (*.f64 re im) (*.f64 re im))) (-.f64 (*.f64 re im) (*.f64 re im)))
(/.f64 (+.f64 (pow.f64 (*.f64 re im) #s(literal 3 binary64)) (pow.f64 (*.f64 re im) #s(literal 3 binary64))) (fma.f64 (*.f64 re im) (*.f64 re im) (-.f64 (*.f64 (*.f64 re im) (*.f64 re im)) (*.f64 (*.f64 re im) (*.f64 re im)))))
(fma.f64 re im (*.f64 re im))
(fma.f64 im re (*.f64 re im))
(-.f64 (*.f64 re im) (*.f64 (neg.f64 re) im))
(-.f64 (*.f64 re im) (*.f64 (neg.f64 im) re))
(+.f64 (*.f64 re im) (*.f64 re im))
(*.f64 #s(literal 2 binary64) re)
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64)))
(*.f64 (*.f64 #s(literal 2 binary64) (pow.f64 re #s(literal 3 binary64))) (/.f64 #s(literal 1 binary64) (fma.f64 re re #s(literal 0 binary64))))
(*.f64 re #s(literal 2 binary64))
(/.f64 #s(literal 1 binary64) (/.f64 (fma.f64 re re #s(literal 0 binary64)) (*.f64 #s(literal 2 binary64) (pow.f64 re #s(literal 3 binary64)))))
(/.f64 #s(literal 1 binary64) (*.f64 #s(literal 2 binary64) re))
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (pow.f64 re #s(literal 3 binary64)))) (neg.f64 (fma.f64 re re #s(literal 0 binary64))))
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64))
(/.f64 (*.f64 #s(literal 2 binary64) (pow.f64 re #s(literal 3 binary64))) (fma.f64 re re #s(literal 0 binary64)))
(-.f64 (/.f64 (*.f64 re re) #s(literal 0 binary64)) (/.f64 (*.f64 re re) #s(literal 0 binary64)))
(+.f64 (/.f64 (pow.f64 re #s(literal 3 binary64)) (fma.f64 re re #s(literal 0 binary64))) (/.f64 (pow.f64 re #s(literal 3 binary64)) (fma.f64 re re #s(literal 0 binary64))))
(+.f64 re re)

eval5.0ms (0.4%)

Memory
5.9MiB live, 5.9MiB allocated
Compiler

Compiled 291 to 79 computations (72.9% saved)

prune1.0ms (0.1%)

Memory
2.9MiB live, 2.9MiB allocated
Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New30030
Fresh000
Picked011
Done000
Total30131
Accuracy
100.0%
Counts
31 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 im (+.f64 re re))
Compiler

Compiled 17 to 11 computations (35.3% saved)

regimes4.0ms (0.3%)

Memory
6.8MiB live, 6.8MiB allocated
Accuracy

Total -0.0b remaining (-∞%)

Threshold costs -0b (-∞%)

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

3 calls:

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

Compiled 9 to 9 computations (0% saved)

simplify9.0ms (0.8%)

Memory
15.1MiB live, 15.1MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
045
Stop Event
saturated
Calls
Call 1
Inputs
(*.f64 im (+.f64 re re))
Outputs
(*.f64 im (+.f64 re re))

soundness73.0ms (6.2%)

Memory
-11.1MiB live, 26.4MiB allocated
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0513
0813
1329
01709
Stop Event
done
iter limit
iter limit
iter limit
unsound
iter limit
Compiler

Compiled 17 to 11 computations (35.3% saved)

preprocess43.0ms (3.7%)

Memory
4.2MiB live, 40.6MiB allocated
Remove

(sort re im)

(negabs re)

(negabs im)

Compiler

Compiled 54 to 42 computations (22.2% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...