simple fma test

Time bar (total: 19.2s)

analyze1.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 16 to 10 computations (37.5% 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)
ival-mult: 0.0ms (0% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)
compiled-spec: 0.0ms (0% of total)

sample18.4s (95.9%)

Results
13.0s23890×5exit
734.0ms8256×0valid
Precisions
Click to see histograms. Total time spent on operations: 12.5s
ival-mult: 3.6s (28.7% of total)
compiled-spec: 3.2s (25.7% of total)
backward-pass: 2.4s (19.6% of total)
ival-add: 2.2s (17.3% of total)
ival-sub: 993.0ms (7.9% of total)
const: 102.0ms (0.8% of total)
Bogosity

preprocess230.0ms (1.2%)

Algorithm
egg-herbie
Rules
1984×fmsub-define
1846×sum3-define
1806×fmm-def
1790×fnmsub-define
1700×+-lowering-+.f64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
044119
1126110
239610
3178510
4624610
0811
12211
2731
32731
47311
528831
671851
081091
Stop Event
iter limit
node limit
node limit
Calls
Call 1
Inputs
(- (+ (* x y) z) (+ 1 (+ (* x y) z)))
Outputs
(- (+ (* x y) z) (+ 1 (+ (* x y) z)))
#s(literal -1 binary64)
Call 2
Inputs
(- (fma x y z) (+ 1 (+ (* x y) z)))
(- (fma (neg x) y z) (+ 1 (+ (* (neg x) y) z)))
(- (fma x (neg y) z) (+ 1 (+ (* x (neg y)) z)))
(- (fma x y (neg z)) (+ 1 (+ (* x y) (neg z))))
(neg (- (fma (neg x) y z) (+ 1 (+ (* (neg x) y) z))))
(neg (- (fma x (neg y) z) (+ 1 (+ (* x (neg y)) z))))
(neg (- (fma x y (neg z)) (+ 1 (+ (* x y) (neg z)))))
(- (fma y x z) (+ 1 (+ (* y x) z)))
(- (fma z y x) (+ 1 (+ (* z y) x)))
(- (fma x z y) (+ 1 (+ (* x z) y)))
Outputs
(- (fma x y z) (+ 1 (+ (* x y) z)))
#s(literal -1 binary64)
(- (fma (neg x) y z) (+ 1 (+ (* (neg x) y) z)))
#s(literal -1 binary64)
(- (fma x (neg y) z) (+ 1 (+ (* x (neg y)) z)))
#s(literal -1 binary64)
(- (fma x y (neg z)) (+ 1 (+ (* x y) (neg z))))
#s(literal -1 binary64)
(neg (- (fma (neg x) y z) (+ 1 (+ (* (neg x) y) z))))
#s(literal 1 binary64)
(neg (- (fma x (neg y) z) (+ 1 (+ (* x (neg y)) z))))
#s(literal 1 binary64)
(neg (- (fma x y (neg z)) (+ 1 (+ (* x y) (neg z)))))
#s(literal 1 binary64)
(- (fma y x z) (+ 1 (+ (* y x) z)))
#s(literal -1 binary64)
(- (fma z y x) (+ 1 (+ (* z y) x)))
#s(literal -1 binary64)
(- (fma x z y) (+ 1 (+ (* x z) y)))
#s(literal -1 binary64)
Symmetry

(abs x)

(abs y)

(abs z)

(sort x y z)

explain269.0ms (1.4%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-x
00-0-y
00-0-(*.f64 x y)
00-0-z
00-0-(+.f64 #s(literal 1 binary64) (+.f64 (*.f64 x y) z))
00-0-#s(literal 1 binary64)
00-0-(fma.f64 x y z)
00-0-(+.f64 (*.f64 x y) z)
05(1.2947937184668129e-148 8.508418867910113e-141 1128.177469329677)0-(-.f64 (fma.f64 x y z) (+.f64 #s(literal 1 binary64) (+.f64 (*.f64 x y) z)))
Results
183.0ms260×5exit
22.0ms250×0valid
1.0ms3valid
Compiler

Compiled 93 to 29 computations (68.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 122.0ms
backward-pass: 39.0ms (32% of total)
ival-mult: 27.0ms (22.2% of total)
ival-add: 24.0ms (19.7% of total)
compiled-spec: 21.0ms (17.2% of total)
ival-sub: 9.0ms (7.4% of total)
const: 1.0ms (0.8% 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 -1 binary64)
Compiler

Compiled 4 to 4 computations (0% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

localize11.0ms (0.1%)

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

rewrite21.0ms (0.1%)

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%)

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

Compiled 20 to 14 computations (30% saved)

regimes9.0ms (0%)

Accuracy

Total -29.6b remaining (-∞%)

Threshold costs -29.6b (-∞%)

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

4 calls:

3.0ms
y
2.0ms
x
2.0ms
z
1.0ms
(-.f64 (fma.f64 x y z) (+.f64 #s(literal 1 binary64) (+.f64 (*.f64 x y) z)))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1y
100.0%1z
100.0%1(-.f64 (fma.f64 x y z) (+.f64 #s(literal 1 binary64) (+.f64 (*.f64 x y) z)))
Compiler

Compiled 27 to 18 computations (33.3% saved)

simplify7.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

soundness184.0ms (1%)

Rules
1700×+-lowering-+.f64
1700×+-lowering-+.f32
1384×fnmadd-define
1324×fma-define
1252×--lowering--.f32
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0811
12211
2731
32731
47311
528831
671851
081091
Stop Event
done
iter limit
node limit
Compiler

Compiled 8 to 8 computations (0% saved)

preprocess44.0ms (0.2%)

Remove

(sort x y z)

(abs z)

(abs y)

(abs x)

Compiler

Compiled 110 to 98 computations (10.9% saved)

end0.0ms (0%)

Profiling

Loading profile data...