Cancel like terms

Time bar (total: 1.3s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 7 to 6 computations (14.3% saved)

sample566.0ms (45.1%)

Memory
33.2MiB live, 516.9MiB allocated
Samples
252.0ms3 731×1valid
123.0ms4 525×0valid
Precisions
Click to see histograms. Total time spent on operations: 228.0ms
ival-add: 116.0ms (50.9% of total)
ival-sub: 53.0ms (23.2% of total)
adjust: 47.0ms (20.6% of total)
ival-true: 5.0ms (2.2% of total)
exact: 4.0ms (1.8% of total)
ival-assert: 3.0ms (1.3% of total)
Bogosity

explain55.0ms (4.3%)

Memory
-2.4MiB live, 58.7MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1145(-207904291426.30225)0-(-.f64 (+.f64 #s(literal 1 binary64) x) x)
00-0-(+.f64 #s(literal 1 binary64) x)
00-0-#s(literal 1 binary64)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (+.f64 #s(literal 1 binary64) x) x)cancellation1190
Confusion
Predicted +Predicted -
+1140
-5137
Precision
0.957983193277311
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+11400
-50137
Precision?
0.957983193277311
Recall?
1.0
Freqs
test
numberfreq
0137
1119
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
14.0ms220×1valid
9.0ms292×0valid
Compiler

Compiled 39 to 20 computations (48.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 11.0ms
ival-add: 4.0ms (36.4% of total)
adjust: 3.0ms (27.3% of total)
ival-sub: 3.0ms (27.3% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess26.0ms (2.1%)

Memory
-26.3MiB live, 15.9MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0613
1192
2772
31202
41462
51612
61762
71822
045
065
1131
2241
3271
4321
5391
6491
7671
8711
0711
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
Outputs
#s(literal 1 binary64)
Compiler

Compiled 5 to 4 computations (20% saved)

eval0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
56.9%
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
Compiler

Compiled 5 to 4 computations (20% saved)

simplify4.0ms (0.3%)

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

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 #s(literal 1 binary64) x)
cost-diff384
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0410
066
1136
2246
3276
4326
5396
6496
7676
8716
0716
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
(+.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
x
Outputs
#s(literal 1 binary64)
(-.f64 x #s(literal -1 binary64))
#s(literal 1 binary64)
x

localize15.0ms (1.2%)

Memory
16.5MiB live, 16.5MiB allocated
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0
(+.f64 #s(literal 1 binary64) x)
accuracy27.608747300746014
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
Samples
7.0ms110×1valid
4.0ms146×0valid
Compiler

Compiled 22 to 10 computations (54.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-add: 2.0ms (37.4% of total)
ival-sub: 2.0ms (37.4% of total)
adjust: 1.0ms (18.7% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series1.0ms (0.1%)

Memory
1.5MiB live, 1.5MiB allocated
Counts
2 → 24
Calls
Call 1
Inputs
#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())
#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())
Outputs
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (-.f64 (+.f64 #s(literal 1 binary64) x) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@inf
((- (+ 1 x) x) (+ 1 x))
0.0ms
x
@-inf
((- (+ 1 x) x) (+ 1 x))
0.0ms
x
@0
((- (+ 1 x) x) (+ 1 x))

simplify3.0ms (0.2%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0642
11742
21842
32742
43342
53342
03342
Stop Event
iter limit
saturated
Counts
24 → 22
Calls
Call 1
Inputs
1
1
1
1
1
(+ 1 x)
(+ 1 x)
(+ 1 x)
1
1
1
1
x
(* x (+ 1 (/ 1 x)))
(* x (+ 1 (/ 1 x)))
(* x (+ 1 (/ 1 x)))
1
1
1
1
x
(* x (+ 1 (/ 1 x)))
(* x (+ 1 (/ 1 x)))
(* x (+ 1 (/ 1 x)))
Outputs
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
(+.f64 #s(literal 1 binary64) x)
(+.f64 #s(literal 1 binary64) x)
(+.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
x
(+.f64 #s(literal 1 binary64) x)
(+.f64 #s(literal 1 binary64) x)
(+.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
x
(+.f64 #s(literal 1 binary64) x)
(+.f64 #s(literal 1 binary64) x)
(+.f64 #s(literal 1 binary64) x)

rewrite159.0ms (12.7%)

Memory
2.3MiB live, 155.2MiB allocated
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
048
068
1364
23004
338334
090404
Stop Event
iter limit
node limit
iter limit
Counts
2 → 132
Calls
Call 1
Inputs
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
(+.f64 #s(literal 1 binary64) x)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval18.0ms (1.4%)

Memory
-5.0MiB live, 25.7MiB allocated
Compiler

Compiled 2 416 to 453 computations (81.3% saved)

prune3.0ms (0.2%)

Memory
8.2MiB live, 8.2MiB allocated
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New1531154
Fresh000
Picked101
Done000
Total1541155
Accuracy
100.0%
Counts
155 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
Compiler

Compiled 7 to 6 computations (14.3% saved)

simplify4.0ms (0.3%)

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

Found 1 expressions of interest:

NewMetricScoreProgram
cost-diff0
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
058
058
1124
2244
3274
4324
5394
6494
7674
8714
0714
Stop Event
iter limit
saturated
saturated
Calls
Call 1
Inputs
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
#s(literal 1 binary64)
Outputs
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
#s(literal 1 binary64)

localize15.0ms (1.2%)

Memory
-16.6MiB live, 14.4MiB allocated
Localize:

Found 1 expressions of interest:

NewMetricScoreProgram
accuracy0
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
Samples
7.0ms110×1valid
4.0ms146×0valid
Compiler

Compiled 16 to 12 computations (25% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-sub: 3.0ms (44.4% of total)
ival-add: 2.0ms (29.6% of total)
adjust: 2.0ms (29.6% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series1.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Counts
1 → 12
Calls
Call 1
Inputs
#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())
Outputs
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (+ 1 x) x) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@0
((- (+ 1 x) x))
0.0ms
x
@inf
((- (+ 1 x) x))
0.0ms
x
@-inf
((- (+ 1 x) x))

simplify2.0ms (0.2%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0112
1312
0312
Stop Event
saturated
saturated
Counts
12 → 12
Calls
Call 1
Inputs
1
1
1
1
1
1
1
1
1
1
1
1
Outputs
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)
#s(literal 1 binary64)

rewrite294.0ms (23.4%)

Memory
7.5MiB live, 74.1MiB allocated
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
057
057
1353
23003
338283
090373
Stop Event
iter limit
node limit
saturated
Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
Outputs
#<batchref>

eval1.0ms (0.1%)

Memory
1.5MiB live, 1.5MiB allocated
Compiler

Compiled 91 to 6 computations (93.4% saved)

prune2.0ms (0.1%)

Memory
2.4MiB live, 2.4MiB allocated
Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New13013
Fresh000
Picked011
Done000
Total13114
Accuracy
100.0%
Counts
14 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
Compiler

Compiled 19 to 14 computations (26.3% saved)

regimes3.0ms (0.2%)

Memory
3.6MiB live, 3.6MiB allocated
Accuracy

Total -27.6b remaining (-∞%)

Threshold costs -27.6b (-∞%)

Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
Outputs
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
Calls

2 calls:

1.0ms
x
1.0ms
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(-.f64 (+.f64 #s(literal 1 binary64) x) x)
Compiler

Compiled 6 to 5 computations (16.7% saved)

simplify48.0ms (3.8%)

Memory
-23.2MiB live, 37.3MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
057
187
Stop Event
saturated
Calls
Call 1
Inputs
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))
Outputs
#s(approx (- (+ 1 x) x) #s(literal 1 binary64))

soundness3.0ms (0.2%)

Memory
3.5MiB live, 3.5MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0642
11742
21842
32742
43342
53342
03342
Stop Event
done
iter limit
saturated
Compiler

Compiled 8 to 8 computations (0% saved)

preprocess32.0ms (2.6%)

Memory
1.3MiB live, 36.6MiB allocated
Compiler

Compiled 24 to 20 computations (16.7% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...