math.square on complex, imaginary part

Time bar (total: 1.9s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated; 0ms collecting garbage

analyze0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated; 0ms collecting garbage
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)

sample587.0ms (30.7%)

Memory
36.4MiB live, 579.4MiB allocated; 120ms collecting garbage
Samples
364.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 187.0ms
ival-mult: 142.0ms (75.9% of total)
ival-add: 36.0ms (19.2% of total)
ival-true: 5.0ms (2.7% of total)
ival-assert: 3.0ms (1.6% of total)
adjust: 2.0ms (1.1% of total)
Bogosity

explain73.0ms (3.8%)

Memory
-28.7MiB live, 74.2MiB allocated; 12ms collecting garbage
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
41.0ms512×0valid
Compiler

Compiled 41 to 19 computations (53.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 7.0ms (74.7% of total)
ival-add: 2.0ms (21.4% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess283.0ms (14.8%)

Memory
4.9MiB live, 189.8MiB allocated; 16ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01543
13627
28125
315425
421825
531625
674825
7159625
8357225
057
087
1145
2305
3535
4945
51975
65065
712485
847725
976725
083155
Stop Event
iter limit
node limit
iter limit
node limit
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.0MiB live, 0.0MiB allocated; 0ms collecting garbage
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated; 0ms collecting garbage
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)

simplify207.0ms (10.8%)

Memory
41.6MiB live, 170.6MiB allocated; 26ms collecting garbage
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
23013
35313
49413
519713
650613
7124813
8477213
9767213
0831513
Stop Event
iter limit
node limit
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)

localize42.0ms (2.2%)

Memory
-5.2MiB live, 48.3MiB allocated; 28ms collecting garbage
Localize:

Found 3 expressions of interest:

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

Compiled 17 to 7 computations (58.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 18.0ms
ival-mult: 17.0ms (94.8% of total)
ival-add: 1.0ms (5.6% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series17.0ms (0.9%)

Memory
-35.6MiB live, 7.9MiB allocated; 28ms collecting garbage
Counts
3 → 3
Calls
Call 1
Inputs
(+.f64 (*.f64 re im) (*.f64 im re))
(*.f64 re im)
(*.f64 im re)
Outputs
#s(approx (+ (* re im) (* im re)) #s(hole binary64 (* 2 (* im re))))
#s(approx (* re im) #s(hole binary64 (* im re)))
#s(approx (* im re) #s(hole binary64 (* im re)))
Calls

6 calls:

TimeVariablePointExpression
14.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))

simplify271.0ms (14.2%)

Memory
-32.4MiB live, 223.2MiB allocated; 201ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01025
12225
25025
310125
427325
5102225
6431025
0868025
Stop Event
iter limit
node limit
Counts
3 → 3
Calls
Call 1
Inputs
#s(approx (+ (* re im) (* im re)) #s(hole binary64 (* 2 (* im re))))
#s(approx (* re im) #s(hole binary64 (* im re)))
#s(approx (* im re) #s(hole binary64 (* im re)))
Outputs
#s(approx (+ (* re im) (* im re)) #s(hole binary64 (* 2 (* im re))))
#s(approx (+ (* re im) (* im re)) (*.f64 #s(literal 2 binary64) (*.f64 im re)))
#s(approx (* re im) #s(hole binary64 (* im re)))
#s(approx (* im re) (*.f64 im re))
#s(approx (* im re) #s(hole binary64 (* im re)))
#s(approx (* im re) (*.f64 im re))

rewrite55.0ms (2.8%)

Memory
-3.5MiB live, 43.4MiB allocated; 1ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0513
0813
1329
01539
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
3 → 22
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 im (+.f64 re re))
(*.f64 re (-.f64 im (neg.f64 im)))
(*.f64 re (+.f64 im im))
(/.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 (*.f64 im re))
(fma.f64 re im (*.f64 (neg.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) (*.f64 im re))
(*.f64 im re)
(*.f64 re im)
(*.f64 im re)
(*.f64 re im)

eval2.0ms (0.1%)

Memory
4.5MiB live, 4.5MiB allocated; 0ms collecting garbage
Compiler

Compiled 229 to 54 computations (76.4% saved)

prune1.0ms (0%)

Memory
2.5MiB live, 2.5MiB allocated; 0ms collecting garbage
Pruning

1 alts after pruning (1 fresh and 0 done)

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

Compiled 5 to 4 computations (20% saved)

simplify136.0ms (7.1%)

Memory
4.5MiB live, 152.8MiB allocated; 10ms collecting garbage
Localize:

Found 2 expressions of interest:

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0410
0610
11310
22910
35710
412410
524010
694110
7419010
0854110
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(*.f64 re (+.f64 im im))
re
(+.f64 im im)
im
Outputs
(*.f64 re (+.f64 im im))
(*.f64 (*.f64 #s(literal 2 binary64) im) re)
re
(+.f64 im im)
(*.f64 #s(literal 2 binary64) im)
im

localize23.0ms (1.2%)

Memory
-30.5MiB live, 16.5MiB allocated; 2ms collecting garbage
Localize:

Found 2 expressions of interest:

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

Compiled 12 to 6 computations (50% saved)

Precisions
Click to see histograms. Total time spent on operations: 14.0ms
ival-mult: 12.0ms (85.1% of total)
ival-add: 1.0ms (7.1% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series4.0ms (0.2%)

Memory
5.4MiB live, 5.4MiB allocated; 0ms collecting garbage
Counts
2 → 2
Calls
Call 1
Inputs
(*.f64 re (+.f64 im im))
(+.f64 im im)
Outputs
#s(approx (* re (+ im im)) #s(hole binary64 (* 2 (* im re))))
#s(approx (+ im im) #s(hole binary64 (* 2 im)))
Calls

6 calls:

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

simplify153.0ms (8%)

Memory
17.3MiB live, 156.8MiB allocated; 11ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01018
12018
24518
310318
423718
581418
6472218
0808218
Stop Event
iter limit
node limit
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (* re (+ im im)) #s(hole binary64 (* 2 (* im re))))
#s(approx (+ im im) #s(hole binary64 (* 2 im)))
Outputs
#s(approx (* re (+ im im)) #s(hole binary64 (* 2 (* im re))))
#s(approx (* re (+ im im)) (*.f64 (*.f64 im re) #s(literal 2 binary64)))
#s(approx (+ im im) #s(hole binary64 (* 2 im)))
#s(approx (+ im im) (*.f64 #s(literal 2 binary64) im))

rewrite24.0ms (1.3%)

Memory
-25.4MiB live, 20.5MiB allocated; 3ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

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

eval2.0ms (0.1%)

Memory
3.4MiB live, 3.4MiB allocated; 0ms collecting garbage
Compiler

Compiled 249 to 67 computations (73.1% saved)

prune1.0ms (0.1%)

Memory
2.7MiB live, 2.7MiB allocated; 0ms collecting garbage
Pruning

1 alts after pruning (0 fresh and 1 done)

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

Compiled 17 to 11 computations (35.3% saved)

regimes4.0ms (0.2%)

Memory
7.6MiB live, 7.6MiB allocated; 0ms collecting garbage
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

3 calls:

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

Compiled 9 to 9 computations (0% saved)

simplify8.0ms (0.4%)

Memory
11.7MiB live, 11.7MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

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

derivations1.0ms (0.1%)

Memory
1.2MiB live, 1.2MiB allocated; 0ms collecting garbage
Stop Event
done
Compiler

Compiled 5 to 4 computations (20% saved)

preprocess20.0ms (1%)

Memory
-20.3MiB live, 25.8MiB allocated; 2ms collecting garbage
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; 0ms collecting garbage

Profiling

Loading profile data...