Cancel like terms

Time bar (total: 771.0ms)

analyze75.0ms (9.7%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
0%0%100%0%0%0%0%2
0%0%100%0%0%0%0%3
25%25%75%0%0%0%0%4
37.5%37.5%62.5%0%0%0%0%5
43.8%43.7%56.2%0%0%0%0%6
46.9%46.9%53.1%0%0%0%0%7
46.9%46.9%53.1%0%0%0%0%8
46.9%46.9%53.1%0%0%0%0%9
47.3%47.2%52.7%0%0%0%0%10
47.3%47.2%52.7%0%0%0%0%11
47.3%47.2%52.7%0%0%0%0%12
Compiler

Compiled 7 to 6 computations (14.3% saved)

sample533.0ms (69.2%)

Results
245.0ms3838×1valid
128.0ms4418×0valid
Precisions
Click to see histograms. Total time spent on operations: 217.0ms
ival-sub: 96.0ms (44.3% of total)
ival-add: 72.0ms (33.2% of total)
adjust: 34.0ms (15.7% of total)
ival-true: 5.0ms (2.3% of total)
ival-assert: 4.0ms (1.8% of total)
...in/eval/compile.rkt:76:19: 4.0ms (1.8% of total)
Bogosity

preprocess51.0ms (6.6%)

Algorithm
egg-herbie
Rules
28×fmm-def
21×sub-neg
13×fma-define
10×distribute-lft-neg-in
10×associate-+l-
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01384
1334
2914
31304
41774
52034
62154
72194
Stop Event
saturated
Calls
Call 1
Inputs
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
(-.f64 (+.f64 #s(literal 1 binary64) (neg.f64 x)) (neg.f64 x))
(neg.f64 (-.f64 (+.f64 #s(literal 1 binary64) (neg.f64 x)) (neg.f64 x)))
Outputs
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
(+.f64 #s(literal 1 binary64) (-.f64 x x))
#s(literal 1 binary64)
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
(+.f64 #s(literal 1 binary64) (-.f64 x x))
#s(literal 1 binary64)
(-.f64 (+.f64 #s(literal 1 binary64) (neg.f64 x)) (neg.f64 x))
(+.f64 #s(literal 1 binary64) (-.f64 x x))
#s(literal 1 binary64)
(neg.f64 (-.f64 (+.f64 #s(literal 1 binary64) (neg.f64 x)) (neg.f64 x)))
(neg.f64 (-.f64 (-.f64 #s(literal 1 binary64) x) (neg.f64 x)))
#s(literal -1 binary64)
Symmetry

(abs x)

explain54.0ms (7%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
12210(19040356754914.94)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)cancellation1320
Confusion
Predicted +Predicted -
+1220
-10124
Precision
0.9242424242424242
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+12200
-100124
Precision?
0.9242424242424242
Recall?
1.0
Freqs
test
numberfreq
0124
1132
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Results
13.0ms236×1valid
8.0ms276×0valid
Compiler

Compiled 36 to 20 computations (44.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
ival-add: 4.0ms (38.8% of total)
ival-sub: 3.0ms (29.1% of total)
adjust: 2.0ms (19.4% of total)
ival-assert: 0.0ms (0% of total)
...in/eval/compile.rkt:76:19: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

eval0.0ms (0%)

Compiler

Compiled 7 to 4 computations (42.9% saved)

prune1.0ms (0.1%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
#s(literal 1 binary64)
Compiler

Compiled 2 to 2 computations (0% saved)

simplify6.0ms (0.7%)

Algorithm
egg-herbie
Rules
1-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
011
181
Stop Event
saturated
Calls
Call 1
Inputs
#s(literal 1 binary64)
Outputs
#s(literal 1 binary64)

localize6.0ms (0.7%)

Results
3.0ms256×0valid
Compiler

Compiled 3 to 4 computations (-33.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 0.0ms
...in/eval/compile.rkt:76:19: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune1.0ms (0.1%)

Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done000
Total011
Accuracy
100.0%
Counts
1 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
#s(literal 1 binary64)
Compiler

Compiled 9 to 6 computations (33.3% saved)

regimes3.0ms (0.4%)

Accuracy

Total -29.6b remaining (-∞%)

Threshold costs -29.6b (-∞%)

Counts
2 → 1
Calls
Call 1
Inputs
#s(literal 1 binary64)
(-.f64 (+.f64 #s(literal 1 binary64) x) x)
Outputs
#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 8 to 5 computations (37.5% saved)

simplify2.0ms (0.2%)

Algorithm
egg-herbie
Rules
1-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
011
181
Stop Event
saturated
Calls
Call 1
Inputs
#s(literal 1 binary64)
Outputs
#s(literal 1 binary64)

soundness23.0ms (2.9%)

Rules
28×fmm-def
21×sub-neg
13×fma-define
10×distribute-lft-neg-in
10×associate-+l-
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01384
1334
2914
31304
41774
52034
62154
72194
Stop Event
done
saturated
Compiler

Compiled 17 to 10 computations (41.2% saved)

preprocess18.0ms (2.3%)

Remove

(abs x)

Compiler

Compiled 24 to 20 computations (16.7% saved)

end0.0ms (0%)

Profiling

Loading profile data...