simple fma test

Time bar (total: 19.4s)

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.6s (96.1%)

Results
12.1s23887×5exit
1.9s8256×0valid
Precisions
Click to see histograms. Total time spent on operations: 10.0s
ival-mult: 2.5s (25.1% of total)
backward-pass: 2.4s (23.9% of total)
compiled-spec: 2.2s (21.6% of total)
ival-add: 2.0s (20.3% of total)
ival-sub: 813.0ms (8.1% of total)
const: 99.0ms (1% of total)
Bogosity

preprocess219.0ms (1.1%)

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)

explain236.0ms (1.2%)

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.0506925934136406e-297 4.0014587760777494e-26 285972.84548380243)0-(-.f64 (fma.f64 x y z) (+.f64 #s(literal 1 binary64) (+.f64 (*.f64 x y) z)))
Results
139.0ms228×5exit
25.0ms284×0valid
Compiler

Compiled 93 to 29 computations (68.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 107.0ms
ival-add: 29.0ms (27.1% of total)
backward-pass: 27.0ms (25.3% of total)
ival-mult: 21.0ms (19.6% of total)
compiled-spec: 18.0ms (16.8% of total)
ival-sub: 10.0ms (9.4% of total)
const: 1.0ms (0.9% 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)

localize9.0ms (0%)

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

rewrite31.0ms (0.2%)

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

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

regimes6.0ms (0%)

Accuracy

Total -26.9b remaining (-∞%)

Threshold costs -26.9b (-∞%)

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:

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

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

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

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