Commute and associate

Time bar (total: 3.1s)

analyze0.0ms (0%)

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 15 to 9 computations (40% saved)

Precisions
Click to see histograms. Total time spent on operations: 0.0ms
ival-sub: 0.0ms (0% of total)
ival-add: 0.0ms (0% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

sample2.2s (71.2%)

Results
1.3s5846×2valid
295.0ms1822×1valid
242.0ms584×3valid
0.0ms0valid
Precisions
Click to see histograms. Total time spent on operations: 1.1s
ival-add: 564.0ms (50.8% of total)
backward-pass: 425.0ms (38.3% of total)
ival-sub: 113.0ms (10.2% of total)
const: 8.0ms (0.7% of total)
Bogosity

preprocess244.0ms (8%)

Algorithm
egg-herbie
Rules
2804×fnmadd-define
2578×fnmsub-define
1832×fmsub-define
1696×fmm-def
1498×+-lowering-+.f64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
03990
113910
259110
3221210
4490810
5666410
6667510
7668310
8668310
9797710
089
1211
2941
34001
420331
529631
655181
779241
080231
Stop Event
iter limit
node limit
node limit
Calls
Call 1
Inputs
(- (+ (+ x y) z) (+ x (+ y z)))
Outputs
(- (+ (+ x y) z) (+ x (+ y z)))
#s(literal 0 binary64)
Call 2
Inputs
(- (+ (+ x y) z) (+ x (+ y z)))
(- (+ (+ (neg x) y) z) (+ (neg x) (+ y z)))
(- (+ (+ x (neg y)) z) (+ x (+ (neg y) z)))
(- (+ (+ x y) (neg z)) (+ x (+ y (neg z))))
(neg (- (+ (+ (neg x) y) z) (+ (neg x) (+ y z))))
(neg (- (+ (+ x (neg y)) z) (+ x (+ (neg y) z))))
(neg (- (+ (+ x y) (neg z)) (+ x (+ y (neg z)))))
(- (+ (+ y x) z) (+ y (+ x z)))
(- (+ (+ z y) x) (+ z (+ y x)))
(- (+ (+ x z) y) (+ x (+ z y)))
Outputs
(- (+ (+ x y) z) (+ x (+ y z)))
#s(literal 0 binary64)
(- (+ (+ (neg x) y) z) (+ (neg x) (+ y z)))
#s(literal 0 binary64)
(- (+ (+ x (neg y)) z) (+ x (+ (neg y) z)))
#s(literal 0 binary64)
(- (+ (+ x y) (neg z)) (+ x (+ y (neg z))))
#s(literal 0 binary64)
(neg (- (+ (+ (neg x) y) z) (+ (neg x) (+ y z))))
#s(literal 0 binary64)
(neg (- (+ (+ x (neg y)) z) (+ x (+ (neg y) z))))
#s(literal 0 binary64)
(neg (- (+ (+ x y) (neg z)) (+ x (+ y (neg z)))))
#s(literal 0 binary64)
(- (+ (+ y x) z) (+ y (+ x z)))
#s(literal 0 binary64)
(- (+ (+ z y) x) (+ z (+ y x)))
#s(literal 0 binary64)
(- (+ (+ x z) y) (+ x (+ z y)))
#s(literal 0 binary64)
Symmetry

(abs x)

(abs y)

(abs z)

(negabs x)

(negabs y)

(negabs z)

(sort x y z)

explain263.0ms (8.6%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-x
00-0-z
00-0-(+.f64 x (+.f64 y z))
00-0-(-.f64 (+.f64 (+.f64 x y) z) (+.f64 x (+.f64 y z)))
00-0-(+.f64 x y)
00-0-y
00-0-(+.f64 y z)
00-0-(+.f64 (+.f64 x y) z)
Results
179.0ms370×2valid
25.0ms34×3valid
21.0ms108×1valid
Compiler

Compiled 82 to 26 computations (68.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 125.0ms
ival-add: 92.0ms (73.7% of total)
backward-pass: 26.0ms (20.8% of total)
ival-sub: 7.0ms (5.6% of total)
const: 1.0ms (0.8% of total)

eval0.0ms (0%)

Compiler

Compiled 4 to 4 computations (0% saved)

prune9.0ms (0.3%)

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

Compiled 4 to 4 computations (0% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

localize10.0ms (0.3%)

Results
7.0ms256×0valid
Compiler

Compiled 5 to 5 computations (0% saved)

Precisions
Click to see histograms. Total time spent on operations: 0.0ms
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

series0.0ms (0%)

Counts
0 → 0
Calls
Call 1
Inputs
Outputs

rewrite20.0ms (0.6%)

Algorithm
batch-egg-rewrite
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
000
Stop Event
saturated
saturated
Counts
0 → 0
Calls
Call 1
Inputs
Outputs

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
000
Stop Event
saturated
saturated
Counts
0 → 0
Calls
Call 1
Inputs
Outputs

eval0.0ms (0%)

Compiler

Compiled 3 to 3 computations (0% saved)

prune1.0ms (0%)

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 0 binary64)
Compiler

Compiled 19 to 13 computations (31.6% saved)

regimes5.0ms (0.2%)

Accuracy

Total 0b remaining (0%)

Threshold costs 0b (0%)

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

4 calls:

1.0ms
z
1.0ms
y
1.0ms
x
1.0ms
(-.f64 (+.f64 (+.f64 x y) z) (+.f64 x (+.f64 y z)))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1y
100.0%1z
100.0%1(-.f64 (+.f64 (+.f64 x y) z) (+.f64 x (+.f64 y z)))
Compiler

Compiled 26 to 17 computations (34.6% saved)

simplify6.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

soundness201.0ms (6.6%)

Rules
1498×+-lowering-+.f64
1498×+-lowering-+.f32
1426×--lowering--.f32
1426×--lowering--.f64
1408×unsub-neg
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
089
1211
2941
34001
420331
529631
655181
779241
080231
Stop Event
done
iter limit
node limit
Compiler

Compiled 8 to 8 computations (0% saved)

preprocess116.0ms (3.8%)

Remove

(sort x y z)

(negabs z)

(negabs y)

(negabs x)

(abs z)

(abs y)

(abs x)

Compiler

Compiled 148 to 136 computations (8.1% saved)

end0.0ms (0%)

Profiling

Loading profile data...