Commute and associate

Time bar (total: 3.0s)

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.1s (72.4%)

Results
1.4s5918×2valid
314.0ms1767×1valid
157.0ms566×3valid
0.0ms0valid
Precisions
Click to see histograms. Total time spent on operations: 1.1s
ival-add: 626.0ms (56.4% of total)
backward-pass: 331.0ms (29.8% of total)
ival-sub: 146.0ms (13.2% of total)
const: 7.0ms (0.6% of total)
Bogosity

preprocess242.0ms (8.1%)

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)

explain208.0ms (7%)

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
131.0ms370×2valid
22.0ms110×1valid
16.0ms32×3valid
Compiler

Compiled 82 to 26 computations (68.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 74.0ms
ival-add: 31.0ms (41.7% of total)
backward-pass: 25.0ms (33.6% of total)
ival-sub: 18.0ms (24.2% of total)
const: 0.0ms (0% of total)

eval0.0ms (0%)

Compiler

Compiled 4 to 4 computations (0% saved)

prune1.0ms (0%)

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

Compiled 4 to 4 computations (0% saved)

simplify4.0ms (0.2%)

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

rewrite18.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

simplify4.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
x
1.0ms
y
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)

soundness183.0ms (6.2%)

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)

preprocess136.0ms (4.6%)

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...