Difference of squares

Time bar (total: 652.0ms)

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)

sample523.0ms (80.2%)

Memory
-29.2MiB live, 600.4MiB allocated
Samples
340.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 164.0ms
ival-mult: 116.0ms (70.8% of total)
ival-sub: 39.0ms (23.8% of total)
ival-true: 6.0ms (3.7% of total)
ival-assert: 3.0ms (1.8% of total)
Bogosity

explain59.0ms (9%)

Memory
-18.4MiB live, 63.9MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
190-0-(-.f64 (*.f64 a a) (*.f64 b b))
00-0-(*.f64 a a)
00-0-a
00-0-b
00-0-(*.f64 b b)
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (*.f64 a a) (*.f64 b b))nan-rescue190
(*.f64 a a)overflow72
(*.f64 b b)overflow64
Confusion
Predicted +Predicted -
+190
-0237
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+1900
-00237
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0237
119
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
21.0ms512×0valid
Compiler

Compiled 56 to 24 computations (57.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
ival-mult: 7.0ms (72.9% of total)
ival-sub: 2.0ms (20.8% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess2.0ms (0.4%)

Memory
3.4MiB live, 3.4MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))
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.1%)

Memory
0.4MiB live, 0.4MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
92.6%
(-.f64 (*.f64 a a) (*.f64 b b))
Compiler

Compiled 7 to 5 computations (28.6% saved)

simplify0.0ms (0%)

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

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 b b)
cost-diff0
(*.f64 a a)
cost-diff0
(-.f64 (*.f64 a a) (*.f64 b b))
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
a
(*.f64 b b)
b
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
a
(*.f64 b b)
b

localize15.0ms (2.2%)

Memory
14.5MiB live, 14.5MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 b b)
accuracy0.0
(*.f64 a a)
accuracy4.195295986641647
(-.f64 (*.f64 a a) (*.f64 b b))
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 (63.6% of total)
ival-sub: 1.0ms (21.2% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series3.0ms (0.5%)

Memory
3.6MiB live, 3.6MiB allocated
Counts
3 → 7
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
(*.f64 b b)
Outputs
(* -1 (pow b 2))
(- (pow a 2) (pow b 2))
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(+ (* -1 (pow b 2)) (pow a 2))
(pow b 2)
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
Calls

6 calls:

TimeVariablePointExpression
1.0ms
a
@inf
((- (* a a) (* b b)) (* a a) (* b b))
1.0ms
a
@0
((- (* a a) (* b b)) (* a a) (* b b))
0.0ms
b
@inf
((- (* a a) (* b b)) (* a a) (* b b))
0.0ms
a
@-inf
((- (* a a) (* b b)) (* a a) (* b b))
0.0ms
b
@-inf
((- (* a a) (* b b)) (* a a) (* b b))

simplify0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Algorithm
egg-herbie
Counts
7 → 3
Calls
Call 1
Inputs
(* -1 (pow b 2))
(- (pow a 2) (pow b 2))
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(+ (* -1 (pow b 2)) (pow a 2))
(pow b 2)
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
Outputs
(* -1 (pow b 2))
(-.f64 (*.f64 a a) (*.f64 b b))
(- (pow a 2) (pow b 2))
(*.f64 a a)
(pow a 2)
(*.f64 b b)

rewrite0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Counts
3 → 3
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
(*.f64 b b)
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
(*.f64 b b)

eval1.0ms (0.1%)

Memory
0.8MiB live, 0.8MiB allocated
Compiler

Compiled 58 to 12 computations (79.3% saved)

prune1.0ms (0.1%)

Memory
1.2MiB live, 1.2MiB allocated
Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New516
Fresh000
Picked011
Done000
Total527
Accuracy
96.9%
Counts
7 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
92.6%
(-.f64 (*.f64 a a) (*.f64 b b))
51.5%
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Compiler

Compiled 18 to 12 computations (33.3% saved)

simplify0.0ms (0%)

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

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 a a)
cost-diff0
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
a
Outputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
a

localize16.0ms (2.4%)

Memory
-24.6MiB live, 13.2MiB allocated
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 a a)
accuracy31.062258668783297
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Samples
12.0ms256×0valid
Compiler

Compiled 28 to 14 computations (50% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-sub: 3.0ms (43.6% of total)
ival-mult: 3.0ms (43.6% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series2.0ms (0.3%)

Memory
2.3MiB live, 2.3MiB allocated
Counts
2 → 6
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
Outputs
(* -1 (pow b 2))
(- (pow a 2) (pow b 2))
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(+ (* -1 (pow b 2)) (pow a 2))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
Calls

6 calls:

TimeVariablePointExpression
0.0ms
a
@inf
((- (* a a) (* b b)) (* a a))
0.0ms
a
@-inf
((- (* a a) (* b b)) (* a a))
0.0ms
a
@0
((- (* a a) (* b b)) (* a a))
0.0ms
b
@-inf
((- (* a a) (* b b)) (* a a))
0.0ms
b
@inf
((- (* a a) (* b b)) (* a a))

simplify0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Algorithm
egg-herbie
Counts
6 → 2
Calls
Call 1
Inputs
(* -1 (pow b 2))
(- (pow a 2) (pow b 2))
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(+ (* -1 (pow b 2)) (pow a 2))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
Outputs
(* -1 (pow b 2))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(- (pow a 2) (pow b 2))
(*.f64 a a)

rewrite0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
Outputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)

eval0.0ms (0.1%)

Memory
0.5MiB live, 0.5MiB allocated
Compiler

Compiled 41 to 8 computations (80.5% saved)

prune2.0ms (0.2%)

Memory
1.6MiB live, 1.6MiB allocated
Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New303
Fresh000
Picked011
Done011
Total325
Accuracy
96.9%
Counts
5 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
92.6%
(-.f64 (*.f64 a a) (*.f64 b b))
51.5%
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Compiler

Compiled 36 to 21 computations (41.7% saved)

regimes7.0ms (1%)

Memory
10.5MiB live, 10.5MiB allocated
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Calls

5 calls:

1.0ms
b
1.0ms
a
1.0ms
(*.f64 b b)
1.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
1.0ms
(*.f64 a a)
Results
AccuracySegmentsBranch
96.9%3a
92.6%1b
96.9%2(-.f64 (*.f64 a a) (*.f64 b b))
96.9%2(*.f64 a a)
92.6%1(*.f64 b b)
Compiler

Compiled 15 to 15 computations (0% saved)

regimes5.0ms (0.8%)

Memory
9.8MiB live, 9.8MiB allocated
Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Outputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Calls

5 calls:

1.0ms
b
1.0ms
a
1.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
1.0ms
(*.f64 b b)
1.0ms
(*.f64 a a)
Results
AccuracySegmentsBranch
51.5%1b
51.5%1(*.f64 b b)
51.5%1a
51.5%1(-.f64 (*.f64 a a) (*.f64 b b))
51.5%1(*.f64 a a)
Compiler

Compiled 15 to 15 computations (0% saved)

bsearch9.0ms (1.4%)

Memory
8.5MiB live, 8.5MiB allocated
Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
8.0ms
1.119255949630727e+305
+inf
Samples
4.0ms128×0valid
Compiler

Compiled 122 to 106 computations (13.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 2.0ms
ival-sub: 1.0ms (58.6% of total)
ival-mult: 1.0ms (58.6% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

simplify6.0ms (0.9%)

Memory
-32.1MiB live, 6.6MiB allocated

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...