Details

Time bar (total: 1.1s)

analyze131.0ms (11.6%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
25%74.9%0.1%5
37.5%62.4%0.1%6
50%46.8%3.2%7
59.3%35.9%4.8%8
67.1%25.8%7.1%9
72.6%19.1%8.3%10
76.9%13.5%9.7%11
79.8%9.9%10.3%12
82%6.9%11.1%13
83.6%5%11.4%14
Compiler

Compiled 10 to 7 computations (30% saved)

sample804.0ms (71.5%)

Results
780.0ms8256×body128valid
11.0ms111×body128invalid

preprocess34.0ms (3.1%)

Algorithm
egg-herbie
Rules
643×fma-def_binary64
315×fma-neg_binary64
113×cancel-sign-sub-inv_binary64
78×distribute-rgt-in_binary64
59×associate--r+_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01020
12220
24516
312316
426816
555016
6109016
7177616
8195216
9197016
10197016
022
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
1
Outputs
0
1
Call 2
Inputs
(-.f64 (*.f64 (+.f64 x 1) y) x)
(-.f64 (*.f64 (+.f64 y 1) x) y)
Outputs
(-.f64 (*.f64 (+.f64 x 1) y) x)
(fma.f64 (+.f64 x 1) y (neg.f64 x))
(-.f64 (fma.f64 x y y) x)
(-.f64 (*.f64 (+.f64 y 1) x) y)
(-.f64 (*.f64 x (+.f64 1 y)) y)
(fma.f64 x (+.f64 1 y) (neg.f64 y))
(-.f64 (fma.f64 x y x) y)
Compiler

Compiled 9 to 6 computations (33.3% saved)

simplify17.0ms (1.5%)

Algorithm
egg-herbie
Rules
408×fma-def_binary64
244×fma-neg_binary64
73×cancel-sign-sub-inv_binary64
46×distribute-rgt-in_binary64
36×associate--r+_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0710
11410
2278
3668
41358
52648
64928
79258
812388
912878
1012968
Stop Event
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(-.f64 (*.f64 (+.f64 x 1) y) x)
Outputs
(-.f64 (*.f64 (+.f64 x 1) y) x)
(fma.f64 (+.f64 x 1) y (neg.f64 x))
(-.f64 (fma.f64 x y y) x)

prune3.0ms (0.2%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
0.0b
Counts
3 → 1
Alt Table
StatusErrorProgram
0.0b
(-.f64 (fma.f64 x y y) x)
Compiler

Compiled 31 to 16 computations (48.4% saved)

localize4.0ms (0.4%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (fma.f64 x y y) x)

series4.0ms (0.3%)

Counts
1 → 24
Calls

6 calls:

TimeVariablePointExpression
1.0ms
y
@-inf
(-.f64 (fma.f64 x y y) x)
1.0ms
x
@-inf
(-.f64 (fma.f64 x y y) x)
1.0ms
x
@0
(-.f64 (fma.f64 x y y) x)
1.0ms
y
@inf
(-.f64 (fma.f64 x y y) x)
0.0ms
x
@inf
(-.f64 (fma.f64 x y y) x)

rewrite34.0ms (3%)

Algorithm
batch-egg-rewrite
Rules
651×pow1_binary64
606×add-log-exp_binary64
606×log1p-expm1-u_binary64
606×expm1-log1p-u_binary64
61×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
058
11118
215788
Stop Event
node limit
Counts
1 → 38
Calls
Call 1
Inputs
(-.f64 (fma.f64 x y y) x)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 x y y) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 x y y) (*.f64 (neg.f64 x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (fma.f64 x y y) x) (fma.f64 (neg.f64 x) 1 x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (fma.f64 x y y) x) (fma.f64 (neg.f64 (cbrt.f64 x)) (cbrt.f64 (*.f64 x x)) x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (fma.f64 x y y) x) (fma.f64 (neg.f64 (sqrt.f64 x)) (sqrt.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x y) (-.f64 y x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x y) (+.f64 y (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (neg.f64 x) (fma.f64 x y y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (fma.f64 x y y) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 (fma.f64 x y y) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 (fma.f64 x y y) x)) (cbrt.f64 (pow.f64 (-.f64 (fma.f64 x y y) x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (-.f64 (fma.f64 x y y) x) 2)) (cbrt.f64 (-.f64 (fma.f64 x y y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 (fma.f64 x y y) x)) (sqrt.f64 (-.f64 (fma.f64 x y y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 (fma.f64 x y y) 3) (pow.f64 x 3)) (/.f64 1 (+.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 x (+.f64 x (fma.f64 x y y))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 x x)) (/.f64 1 (+.f64 x (fma.f64 x y y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (fma.f64 x y y)) (sqrt.f64 x)) (-.f64 (sqrt.f64 (fma.f64 x y y)) (sqrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 x (+.f64 x (fma.f64 x y y)))) (-.f64 (pow.f64 (fma.f64 x y y) 3) (pow.f64 x 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 x (fma.f64 x y y)) (-.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (fma.f64 x y y) 3) (pow.f64 x 3)) (+.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 x (+.f64 x (fma.f64 x y y)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 x x)) (+.f64 x (fma.f64 x y y)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 (fma.f64 x y y) 3) (pow.f64 x 3))) (neg.f64 (+.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 x (+.f64 x (fma.f64 x y y))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 x x))) (neg.f64 (+.f64 x (fma.f64 x y y))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x y y) 3) (pow.f64 (neg.f64 x) 3)) (+.f64 (pow.f64 (fma.f64 x y y) 2) (-.f64 (*.f64 (neg.f64 x) (neg.f64 x)) (*.f64 (fma.f64 x y y) (neg.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (fma.f64 x y y) 2) (*.f64 (neg.f64 x) (neg.f64 x))) (-.f64 (fma.f64 x y y) (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 (fma.f64 x y y) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 (fma.f64 x y y) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 (fma.f64 x y y) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 (fma.f64 x y y) x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 (fma.f64 x y y) x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (-.f64 (fma.f64 x y y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (-.f64 (fma.f64 x y y) x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 (fma.f64 x y y) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 x y y) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 x y y)) 2) (cbrt.f64 (fma.f64 x y y)) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 x y y)) (sqrt.f64 (fma.f64 x y y)) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (-.f64 (fma.f64 x y y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 (fma.f64 x y y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 (fma.f64 x y y) x)))))))

simplify21.0ms (1.9%)

Algorithm
egg-herbie
Rules
190×fma-def_binary64
177×fma-neg_binary64
48×distribute-rgt-in_binary64
44×unsub-neg_binary64
41×distribute-lft-in_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
021176
154176
2132172
3322172
4640172
5911172
6975172
7979172
Stop Event
saturated
Counts
62 → 52
Calls
Call 1
Inputs
y
(+.f64 (*.f64 (-.f64 y 1) x) y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(*.f64 (-.f64 y 1) x)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(*.f64 -1 (*.f64 (+.f64 1 (*.f64 -1 y)) x))
(+.f64 y (*.f64 -1 (*.f64 (+.f64 1 (*.f64 -1 y)) x)))
(+.f64 y (*.f64 -1 (*.f64 (+.f64 1 (*.f64 -1 y)) x)))
(+.f64 y (*.f64 -1 (*.f64 (+.f64 1 (*.f64 -1 y)) x)))
(*.f64 -1 x)
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(*.f64 (+.f64 1 x) y)
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(*.f64 -1 (*.f64 (-.f64 (*.f64 -1 x) 1) y))
(+.f64 (*.f64 -1 x) (*.f64 -1 (*.f64 (-.f64 (*.f64 -1 x) 1) y)))
(+.f64 (*.f64 -1 x) (*.f64 -1 (*.f64 (-.f64 (*.f64 -1 x) 1) y)))
(+.f64 (*.f64 -1 x) (*.f64 -1 (*.f64 (-.f64 (*.f64 -1 x) 1) y)))
Outputs
y
(+.f64 (*.f64 (-.f64 y 1) x) y)
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(fma.f64 (+.f64 y -1) x y)
(*.f64 (-.f64 y 1) x)
(*.f64 (+.f64 y -1) x)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
(fma.f64 (+.f64 y -1) x y)
(*.f64 -1 (*.f64 (+.f64 1 (*.f64 -1 y)) x))
(*.f64 (+.f64 y -1) x)
(+.f64 y (*.f64 -1 (*.f64 (+.f64 1 (*.f64 -1 y)) x)))
(fma.f64 (+.f64 y -1) x y)
(+.f64 y (*.f64 -1 (*.f64 (+.f64 1 (*.f64 -1 y)) x)))
(fma.f64 (+.f64 y -1) x y)
(+.f64 y (*.f64 -1 (*.f64 (+.f64 1 (*.f64 -1 y)) x)))
(fma.f64 (+.f64 y -1) x y)
(*.f64 -1 x)
(neg.f64 x)
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(fma.f64 (+.f64 y -1) x y)
(*.f64 (+.f64 1 x) y)
(*.f64 y (+.f64 1 x))
(fma.f64 y x y)
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (+.f64 1 x) y) (*.f64 -1 x))
(fma.f64 (+.f64 y -1) x y)
(*.f64 -1 (*.f64 (-.f64 (*.f64 -1 x) 1) y))
(*.f64 y (+.f64 1 x))
(fma.f64 y x y)
(+.f64 (*.f64 -1 x) (*.f64 -1 (*.f64 (-.f64 (*.f64 -1 x) 1) y)))
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 -1 x) (*.f64 -1 (*.f64 (-.f64 (*.f64 -1 x) 1) y)))
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 -1 x) (*.f64 -1 (*.f64 (-.f64 (*.f64 -1 x) 1) y)))
(fma.f64 (+.f64 y -1) x y)

prune32.0ms (2.8%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New51152
Fresh000
Picked101
Done000
Total52153
Error
0b
Counts
53 → 1
Alt Table
StatusErrorProgram
0b
(fma.f64 (+.f64 y -1) x y)
Compiler

Compiled 637 to 231 computations (63.7% saved)

localize4.0ms (0.3%)

prune1.0ms (0.1%)

Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done000
Total011
Error
0b
Counts
1 → 1
Alt Table
StatusErrorProgram
0b
(fma.f64 (+.f64 y -1) x y)
Compiler

Compiled 10 to 7 computations (30% saved)

regimes20.0ms (1.8%)

Accuracy

Total -62.2b remaining (-∞%)

Threshold costs -62.2b (-∞%)

Counts
10 → 1
Calls
Call 1
Inputs
(fma.f64 y x y)
(*.f64 (+.f64 1 x) y)
(neg.f64 x)
(*.f64 -1 x)
(*.f64 (-.f64 y 1) x)
(fma.f64 (+.f64 y -1) x y)
(+.f64 (*.f64 (-.f64 y 1) x) y)
y
(-.f64 (fma.f64 x y y) x)
(-.f64 (*.f64 (+.f64 x 1) y) x)
Outputs
(fma.f64 (+.f64 y -1) x y)
Results
5.0ms0bx
7.0ms0by
6.0ms0b(-.f64 (*.f64 (+.f64 x 1) y) x)
Compiler

Compiled 63 to 35 computations (44.4% saved)

simplify2.0ms (0.2%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
068
178
Stop Event
saturated
Calls
Call 1
Inputs
(fma.f64 (+.f64 y -1) x y)
Outputs
(fma.f64 (+.f64 y -1) x y)

end13.0ms (1.2%)

Stop Event
done
Compiler

Compiled 16 to 10 computations (37.5% saved)

Profiling

Loading profile data...