Details

Time bar (total: 1.9s)

analyze54.0ms (2.9%)

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
25%62.4%12.6%6
25%50%25.1%7
31.2%37.5%31.3%8
39%24.2%36.8%9
42.9%18.3%38.7%10
47.2%11.9%40.9%11
49.4%9.1%41.6%12
Compiler

Compiled 10 to 6 computations (40% saved)

sample765.0ms (40.8%)

Results
726.0ms8256×body256valid
28.0ms332×body256invalid

preprocess143.0ms (7.6%)

Algorithm
egg-herbie
Rules
856×fma-def_binary64
576×distribute-rgt-in_binary64
560×unsub-neg_binary64
508×fma-neg_binary64
432×distribute-rgt-out--_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0720
12520
24720
310320
427320
582120
6211520
7386220
8560820
9616820
10628120
11639520
12647520
13647520
14785620
022
Stop Event
saturated
node limit
Calls
Call 1
Inputs
0
1
Outputs
0
1
Call 2
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(-.f64 (*.f64 b b) (*.f64 a a))
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(-.f64 (*.f64 b b) (*.f64 a a))
Compiler

Compiled 11 to 7 computations (36.4% saved)

simplify128.0ms (6.8%)

Algorithm
egg-herbie
Rules
697×fma-def_binary64
611×unsub-neg_binary64
582×fma-neg_binary64
443×distribute-rgt-out--_binary64
409×distribute-rgt-out_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0610
11510
22710
35610
413310
538210
683210
7166110
8391510
9540910
10628010
11670110
12694710
13706210
14706210
Stop Event
node limit
Counts
1 → 1
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))

eval0.0ms (0%)

Compiler

Compiled 9 to 5 computations (44.4% saved)

prune1.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
0.0b
Counts
2 → 1
Alt Table
Click to see full alt table
StatusErrorProgram
0.0b
(-.f64 (*.f64 a a) (*.f64 b b))
Compiler

Compiled 9 to 5 computations (44.4% saved)

localize6.0ms (0.3%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (*.f64 a a) (*.f64 b b))
Compiler

Compiled 17 to 5 computations (70.6% saved)

series3.0ms (0.2%)

Counts
1 → 24
Calls

6 calls:

TimeVariablePointExpression
1.0ms
a
@0
(-.f64 (*.f64 a a) (*.f64 b b))
1.0ms
a
@inf
(-.f64 (*.f64 a a) (*.f64 b b))
0.0ms
b
@0
(-.f64 (*.f64 a a) (*.f64 b b))
0.0ms
b
@inf
(-.f64 (*.f64 a a) (*.f64 b b))
0.0ms
b
@-inf
(-.f64 (*.f64 a a) (*.f64 b b))

rewrite51.0ms (2.7%)

Algorithm
batch-egg-rewrite
Rules
733×pow1_binary64
684×add-log-exp_binary64
684×log1p-expm1-u_binary64
684×expm1-log1p-u_binary64
667×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0610
113910
2198510
Stop Event
node limit
Counts
1 → 46
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 (*.f64 b (neg.f64 b)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (+.f64 (*.f64 b (neg.f64 b)) (fma.f64 (neg.f64 b) b (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (*.f64 b (neg.f64 b)) 1 (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 (pow.f64 (cbrt.f64 b) 2)) (cbrt.f64 (pow.f64 b 4)) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (*.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (+.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (neg.f64 b)) (*.f64 a a))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) (-.f64 (*.f64 a a) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 (*.f64 a a) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2) (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 a 6) (pow.f64 b 6)) (/.f64 1 (+.f64 (pow.f64 a 4) (+.f64 (pow.f64 b 4) (pow.f64 (*.f64 a b) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 a 4) (pow.f64 b 4)) (/.f64 1 (fma.f64 a a (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 a b) (-.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 a b) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 a 4) (+.f64 (pow.f64 b 4) (pow.f64 (*.f64 a b) 2))) (-.f64 (pow.f64 a 6) (pow.f64 b 6))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 a a (*.f64 b b)) (-.f64 (pow.f64 a 4) (pow.f64 b 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 a 6) (pow.f64 b 6)) (+.f64 (pow.f64 a 4) (+.f64 (pow.f64 b 4) (pow.f64 (*.f64 a b) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 a 4) (pow.f64 b 4)) (fma.f64 a a (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 a 6) (pow.f64 b 6))) (neg.f64 (+.f64 (pow.f64 a 4) (+.f64 (pow.f64 b 4) (pow.f64 (*.f64 a b) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 a 4) (pow.f64 b 4))) (neg.f64 (fma.f64 a a (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 a 6) (pow.f64 (*.f64 b (neg.f64 b)) 3)) (+.f64 (pow.f64 a 4) (-.f64 (*.f64 (*.f64 b (neg.f64 b)) (*.f64 b (neg.f64 b))) (*.f64 (*.f64 a a) (*.f64 b (neg.f64 b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3) (pow.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) 3)) (+.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2) (-.f64 (*.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b))) (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 a 4) (*.f64 (*.f64 b (neg.f64 b)) (*.f64 b (neg.f64 b)))) (-.f64 (*.f64 a a) (*.f64 b (neg.f64 b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2) (*.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b)))) (-.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 a a (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 a a) (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2) (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 a 4)) (pow.f64 (cbrt.f64 a) 2) (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b)))))))

simplify54.0ms (2.9%)

Algorithm
egg-herbie
Rules
897×fma-neg_binary64
692×distribute-rgt-neg-in_binary64
674×fma-def_binary64
606×distribute-lft-neg-in_binary64
486×unswap-sqr_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
09228
121210
242210
387210
4223210
5763210
61792210
75169210
Stop Event
node limit
Counts
70 → 51
Calls
Call 1
Inputs
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(pow.f64 a 2)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(pow.f64 a 2)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(pow.f64 a 2)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
Outputs
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))

eval10.0ms (0.5%)

Compiler

Compiled 777 to 233 computations (70% saved)

prune8.0ms (0.4%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New47451
Fresh000
Picked101
Done000
Total48452
Error
0b
Counts
52 → 4
Alt Table
Click to see full alt table
StatusErrorProgram
0.0b
(*.f64 (-.f64 a b) (+.f64 a b))
25.6b
(*.f64 a a)
0.2b
(fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b)))
27.1b
(*.f64 b (neg.f64 b))
Compiler

Compiled 36 to 20 computations (44.4% saved)

localize3.0ms (0.1%)

Compiler

Compiled 6 to 3 computations (50% saved)

localize4.0ms (0.2%)

Compiler

Compiled 9 to 4 computations (55.6% saved)

localize7.0ms (0.4%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (-.f64 a b) (+.f64 a b))
Compiler

Compiled 17 to 5 computations (70.6% saved)

series3.0ms (0.1%)

Counts
1 → 24
Calls

6 calls:

TimeVariablePointExpression
1.0ms
a
@-inf
(*.f64 (-.f64 a b) (+.f64 a b))
1.0ms
a
@0
(*.f64 (-.f64 a b) (+.f64 a b))
0.0ms
a
@inf
(*.f64 (-.f64 a b) (+.f64 a b))
0.0ms
b
@inf
(*.f64 (-.f64 a b) (+.f64 a b))
0.0ms
b
@0
(*.f64 (-.f64 a b) (+.f64 a b))

rewrite52.0ms (2.8%)

Algorithm
batch-egg-rewrite
Rules
863×pow1_binary64
807×add-log-exp_binary64
807×log1p-expm1-u_binary64
807×expm1-log1p-u_binary64
788×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0610
114010
2221910
Stop Event
node limit
Counts
1 → 44
Calls
Call 1
Inputs
(*.f64 (-.f64 a b) (+.f64 a b))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (neg.f64 (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 (neg.f64 b) b))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (-.f64 a b)) (*.f64 a (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a (+.f64 a b)) (*.f64 (neg.f64 b) (+.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 a (-.f64 a b)) 1) (*.f64 (*.f64 b (-.f64 a b)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (+.f64 a b) a) (*.f64 (+.f64 a b) (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (*.f64 a a) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (-.f64 (*.f64 a a) (*.f64 b b))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2) (-.f64 (*.f64 a a) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (+.f64 a b))) (fma.f64 a a (*.f64 b (-.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (+.f64 a b) (fma.f64 a a (*.f64 b (-.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 a 3) (pow.f64 b 3)) (-.f64 (*.f64 a a) (*.f64 b b))) (-.f64 (pow.f64 a 3) (pow.f64 b 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (-.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (-.f64 b a))) (fma.f64 a a (*.f64 b (+.f64 a b)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (-.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (-.f64 a b) (fma.f64 a a (*.f64 b (+.f64 a b)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (-.f64 (*.f64 a a) (*.f64 b b))) (+.f64 (pow.f64 a 3) (pow.f64 b 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (*.f64 a a) 3) (pow.f64 (*.f64 b b) 3)) (+.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (+.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 b b)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 a (-.f64 a b)) 3) (pow.f64 (*.f64 b (-.f64 a b)) 3)) (+.f64 (*.f64 (*.f64 a (-.f64 a b)) (*.f64 a (-.f64 a b))) (-.f64 (*.f64 (*.f64 b (-.f64 a b)) (*.f64 b (-.f64 a b))) (*.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 b b) (*.f64 b b))) (+.f64 (*.f64 a a) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 a (-.f64 a b)) (*.f64 a (-.f64 a b))) (*.f64 (*.f64 b (-.f64 a b)) (*.f64 b (-.f64 a b)))) (-.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b)) (fma.f64 a a (*.f64 b (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (+.f64 a b)) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (-.f64 a b)) (fma.f64 a a (*.f64 b (-.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (-.f64 a b)) (-.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 a b) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (-.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 a b) (-.f64 (*.f64 a a) (*.f64 b b))) (-.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 a b) (-.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 a b) (-.f64 (*.f64 a a) (*.f64 b b))) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (-.f64 a b)) (+.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (-.f64 a b) 3) (pow.f64 (+.f64 a b) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (+.f64 a b) 3) (pow.f64 (-.f64 a b) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 a a (neg.f64 (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 a (-.f64 a b) (*.f64 b (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))))))

simplify79.0ms (4.2%)

Algorithm
egg-herbie
Rules
520×unswap-sqr_binary64
471×associate-*l*_binary64
391×unsub-neg_binary64
387×fma-neg_binary64
359×associate-*r*_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
024300
172192
2220180
3324180
4724180
52730180
65799180
77509180
Stop Event
node limit
Counts
68 → 57
Calls
Call 1
Inputs
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(pow.f64 a 2)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(pow.f64 a 2)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(pow.f64 a 2)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
Outputs
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 b a) (-.f64 a b))

localize12.0ms (0.6%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b)))
37.4b
(fma.f64 (neg.f64 b) b (*.f64 b b))
Compiler

Compiled 36 to 8 computations (77.8% saved)

series5.0ms (0.3%)

Counts
2 → 36
Calls

9 calls:

TimeVariablePointExpression
1.0ms
b
@-inf
(fma.f64 (neg.f64 b) b (*.f64 b b))
1.0ms
b
@inf
(fma.f64 (neg.f64 b) b (*.f64 b b))
1.0ms
b
@0
(fma.f64 (neg.f64 b) b (*.f64 b b))
0.0ms
a
@0
(fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b)))
0.0ms
a
@-inf
(fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b)))

rewrite54.0ms (2.9%)

Algorithm
batch-egg-rewrite
Rules
806×pow1_binary64
749×add-log-exp_binary64
748×log1p-expm1-u_binary64
748×expm1-log1p-u_binary64
732×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0930
119814
2295314
Stop Event
node limit
Counts
2 → 68
Calls
Call 1
Inputs
(fma.f64 (neg.f64 b) b (*.f64 b b))
(fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b b) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 b (+.f64 b b))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 b (+.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 b (+.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 b (+.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 b (+.f64 b b))) (pow.f64 (cbrt.f64 (*.f64 b (+.f64 b b))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 b (+.f64 b b))) 2) (cbrt.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 b (+.f64 b b))) (sqrt.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 b b) 3) (pow.f64 (*.f64 b b) 3)) (+.f64 (pow.f64 b 4) (-.f64 (pow.f64 b 4) (pow.f64 b 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 b 4) (pow.f64 b 4)) (-.f64 (*.f64 b b) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 b (+.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 b (+.f64 b b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 b (+.f64 b b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 b (+.f64 b b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 b (+.f64 b b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 b (+.f64 b b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 b (+.f64 b b))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (+.f64 b b)) (pow.f64 (+.f64 b a) 2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 (neg.f64 (cbrt.f64 (pow.f64 b 4))) (cbrt.f64 (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (+.f64 b a)) (*.f64 a (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (+.f64 b a) 2) (*.f64 b (+.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (+.f64 b a) 2) (fma.f64 (*.f64 b b) 1 (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (+.f64 b a) 2) (fma.f64 (neg.f64 (cbrt.f64 (*.f64 b b))) (cbrt.f64 (pow.f64 b 4)) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a (+.f64 b a)) (*.f64 b (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (+.f64 b a) b) (*.f64 (+.f64 b a) a))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (+.f64 b a) a) (*.f64 (+.f64 b a) b))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (pow.f64 (+.f64 b a) 2) (*.f64 b b)) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (*.f64 a a) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (+.f64 b a) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 b a) (+.f64 b a))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (+.f64 b a) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 b a)) 2) (cbrt.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 b a)) 2) (*.f64 (cbrt.f64 (+.f64 b a)) (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2)) (pow.f64 (cbrt.f64 (+.f64 b a)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 b a)) (*.f64 (sqrt.f64 (+.f64 b a)) (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (+.f64 b a) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (+.f64 b a) (sqrt.f64 (+.f64 b a))) (sqrt.f64 (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (+.f64 b a) (pow.f64 (cbrt.f64 (+.f64 b a)) 2)) (cbrt.f64 (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (+.f64 b a) 3) (+.f64 b a))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2) (pow.f64 (+.f64 b a) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (+.f64 b a))) (fma.f64 a a (*.f64 b (+.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (-.f64 b a))) (fma.f64 a a (*.f64 b (-.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (-.f64 b a))) (fma.f64 a a (*.f64 b (+.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (pow.f64 (+.f64 b a) 2)) (+.f64 (pow.f64 a 3) (pow.f64 b 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (pow.f64 (+.f64 b a) 2) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (+.f64 b a) (fma.f64 a a (*.f64 b (-.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (pow.f64 (+.f64 b a) 2) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (+.f64 b a) (fma.f64 a a (*.f64 b (+.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (*.f64 a a) 3) (pow.f64 (*.f64 b b) 3)) (+.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (+.f64 (pow.f64 b 4) (*.f64 (*.f64 a a) (*.f64 b b)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 3) (pow.f64 (*.f64 b (+.f64 b b)) 3)) (+.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2) (-.f64 (pow.f64 (*.f64 b (+.f64 b b)) 2) (*.f64 (pow.f64 (+.f64 b a) 2) (*.f64 b (+.f64 b b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (pow.f64 b 4)) (pow.f64 (+.f64 b a) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2) (pow.f64 (*.f64 b (+.f64 b b)) 2)) (-.f64 (pow.f64 (+.f64 b a) 2) (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 b a)) (fma.f64 a a (*.f64 b (+.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 b a)) (fma.f64 a a (*.f64 b (-.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 b a) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (+.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 b a) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (-.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 b a) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cbrt.f64 (+.f64 b a)) 2) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 b a) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (+.f64 b a) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (+.f64 b a) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (+.f64 b a) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (pow.f64 (+.f64 b a) 2)))))))

simplify66.0ms (3.5%)

Algorithm
egg-herbie
Rules
841×fma-neg_binary64
567×difference-of-squares_binary64
453×fma-def_binary64
411×unsub-neg_binary64
371×distribute-rgt-in_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
035384
1102204
2405192
3585192
41162192
52749192
66681192
Stop Event
node limit
Counts
104 → 85
Calls
Call 1
Inputs
0
0
0
0
0
0
0
0
0
0
0
0
(+.f64 (pow.f64 b 2) (*.f64 -2 (pow.f64 b 2)))
(+.f64 (pow.f64 b 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))))
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))))
(pow.f64 a 2)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))))
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))))
(pow.f64 a 2)
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (*.f64 -2 (pow.f64 b 2)))))
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (*.f64 -2 (pow.f64 b 2)))))
(pow.f64 a 2)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
Outputs
0
0
0
0
0
0
0
0
0
0
0
0
(+.f64 (pow.f64 b 2) (*.f64 -2 (pow.f64 b 2)))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (pow.f64 b 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(*.f64 a a)
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2))
(*.f64 a a)
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (*.f64 -2 (pow.f64 b 2)))))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (*.f64 -2 (pow.f64 b 2)))))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a)))
(-.f64 (fma.f64 a a 0) (*.f64 b b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 b (neg.f64 b) (*.f64 a a))

eval32.0ms (1.7%)

Compiler

Compiled 2118 to 800 computations (62.2% saved)

prune18.0ms (1%)

Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New1411142
Fresh000
Picked101
Done033
Total1424146
Error
0b
Counts
146 → 4
Alt Table
Click to see full alt table
StatusErrorProgram
0.0b
(*.f64 (-.f64 a b) (+.f64 a b))
0.0b
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))
25.6b
(*.f64 a a)
27.1b
(*.f64 b (neg.f64 b))
Compiler

Compiled 32 to 17 computations (46.9% saved)

localize11.0ms (0.6%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(*.f64 b (-.f64 a b))
0.0b
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))
Compiler

Compiled 22 to 5 computations (77.3% saved)

series5.0ms (0.3%)

Counts
2 → 48
Calls

12 calls:

TimeVariablePointExpression
0.0ms
a
@-inf
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))
0.0ms
a
@0
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))
0.0ms
a
@-inf
(*.f64 b (-.f64 a b))
0.0ms
b
@-inf
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))
0.0ms
b
@-inf
(*.f64 b (-.f64 a b))

rewrite54.0ms (2.9%)

Algorithm
batch-egg-rewrite
Rules
755×pow1_binary64
701×add-log-exp_binary64
701×log1p-expm1-u_binary64
701×expm1-log1p-u_binary64
685×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0621
113117
2185117
Stop Event
node limit
Counts
2 → 41
Calls
Call 1
Inputs
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))
(*.f64 b (-.f64 a b))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (-.f64 a b)) (*.f64 a (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 a (-.f64 a b)) 1) (*.f64 b (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (-.f64 a b) (+.f64 a b))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 a b) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (-.f64 a b) (+.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) (pow.f64 (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) 2) (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) (sqrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 a (-.f64 a b)) 3) (pow.f64 (*.f64 b (-.f64 a b)) 3)) (+.f64 (*.f64 (*.f64 a (-.f64 a b)) (*.f64 a (-.f64 a b))) (-.f64 (pow.f64 (*.f64 b (-.f64 a b)) 2) (*.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 a (-.f64 a b)) (*.f64 a (-.f64 a b))) (pow.f64 (*.f64 b (-.f64 a b)) 2)) (-.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a b) (*.f64 (neg.f64 b) b))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a b) (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 b (-.f64 a b))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 a 3) (pow.f64 b 3)) b) (fma.f64 a a (*.f64 b (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) b) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 b (-.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 b (-.f64 (*.f64 a a) (*.f64 b b))) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 b (-.f64 a b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 b (-.f64 a b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 b (-.f64 a b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 b (-.f64 a b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 b (-.f64 a b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 b) (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 b (-.f64 a b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 b 3) (pow.f64 (-.f64 a b) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (-.f64 a b) 3) (pow.f64 b 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 b (-.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 b (-.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 b (-.f64 a b))))))))

simplify75.0ms (4%)

Algorithm
egg-herbie
Rules
648×unswap-sqr_binary64
514×associate-*l*_binary64
429×distribute-rgt-in_binary64
387×associate-*r*_binary64
376×distribute-rgt-neg-in_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
030510
191402
2307336
3432336
4964336
53531336
67361336
Stop Event
node limit
Counts
89 → 61
Calls
Call 1
Inputs
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(pow.f64 a 2)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(pow.f64 a 2)
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2)))
(pow.f64 a 2)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(*.f64 a b)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(*.f64 -1 (pow.f64 b 2))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(*.f64 a b)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(*.f64 a b)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
Outputs
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2))
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(pow.f64 a 2)
(*.f64 a a)
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(*.f64 a a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2)))
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a)))
(fma.f64 -1 (*.f64 b b) (*.f64 a a))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (*.f64 b (neg.f64 b)))
(*.f64 a b)
(*.f64 b a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(*.f64 -1 (pow.f64 b 2))
(neg.f64 (*.f64 b b))
(*.f64 b (neg.f64 b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2)))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(*.f64 a b)
(*.f64 b a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(*.f64 a b)
(*.f64 b a)
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b))
(fma.f64 a b (neg.f64 (*.f64 b b)))
(-.f64 (*.f64 b a) (*.f64 b b))
(*.f64 b (-.f64 a b))

eval12.0ms (0.6%)

Compiler

Compiled 804 to 288 computations (64.2% saved)

prune12.0ms (0.6%)

Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New61061
Fresh000
Picked011
Done033
Total61465
Error
0b
Counts
65 → 4
Alt Table
Click to see full alt table
StatusErrorProgram
0.0b
(*.f64 (-.f64 a b) (+.f64 a b))
0.0b
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))
25.6b
(*.f64 a a)
27.1b
(*.f64 b (neg.f64 b))
Compiler

Compiled 32 to 17 computations (46.9% saved)

regimes29.0ms (1.5%)

Counts
6 → 1
Calls
Call 1
Inputs
(*.f64 a a)
(*.f64 b (neg.f64 b))
(*.f64 (-.f64 a b) (+.f64 a b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b)))
(fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b)))
Outputs
(*.f64 (-.f64 a b) (+.f64 a b))
Calls

7 calls:

6.0ms
a
5.0ms
b
4.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
3.0ms
(*.f64 a a)
3.0ms
(*.f64 b b)
Results
ErrorSegmentsBranch
0.0b1a
0.0b1b
0.0b1(-.f64 (*.f64 a a) (*.f64 b b))
0.0b1(*.f64 a a)
0.0b1(*.f64 a a)
0.0b1(*.f64 b b)
0.0b1(*.f64 b b)
Compiler

Compiled 82 to 35 computations (57.3% saved)

regimes31.0ms (1.7%)

Accuracy

Total -44.1b remaining (-564%)

Threshold costs -44.1b (-564%)

Counts
2 → 5
Calls
Call 1
Inputs
(*.f64 a a)
(*.f64 b (neg.f64 b))
Outputs
(*.f64 a a)
(*.f64 b (neg.f64 b))
(*.f64 a a)
(*.f64 b (neg.f64 b))
(*.f64 a a)
Calls

3 calls:

15.0ms
a
11.0ms
b
4.0ms
(*.f64 a a)
Results
ErrorSegmentsBranch
7.8b5a
11.1b3b
10.1b2(*.f64 a a)
Compiler

Compiled 20 to 12 computations (40% saved)

bsearch59.0ms (3.2%)

Algorithm
binary-search
Steps
TimeLeftRight
15.0ms
4.252027937258248e-27
1.484730151645835e-26
15.0ms
2.4308901448215397e-59
1.0391782529757913e-58
15.0ms
5.370415733418478e-100
8.25044664562966e-91
15.0ms
-3.0921163998040793e-51
-4.479290351535437e-52
Compiler

Compiled 14 to 9 computations (35.7% saved)

simplify5.0ms (0.3%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
sub-neg_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02262
13262
23762
34062
44162
Stop Event
done
saturated
Calls
Call 1
Inputs
(*.f64 (-.f64 a b) (+.f64 a b))
(if (<=.f64 a -5210205826708739/1684996666696914987166688442938726917102321526408785780068975640576) (*.f64 a a) (if (<=.f64 a 661266106266779/1231312693637327475383720003129487931408741852202045208373384168882678805359287831606695820465153613775207124697088) (*.f64 b (neg.f64 b)) (if (<=.f64 a 2748807114993049/113078212145816597093331040047546785012958969400039613319782796882727665664) (*.f64 a a) (if (<=.f64 a 5926461975364371/1393796574908163946345982392040522594123776) (*.f64 b (neg.f64 b)) (*.f64 a a)))))
(*.f64 a a)
Outputs
(*.f64 (-.f64 a b) (+.f64 a b))
(if (<=.f64 a -5210205826708739/1684996666696914987166688442938726917102321526408785780068975640576) (*.f64 a a) (if (<=.f64 a 661266106266779/1231312693637327475383720003129487931408741852202045208373384168882678805359287831606695820465153613775207124697088) (*.f64 b (neg.f64 b)) (if (<=.f64 a 2748807114993049/113078212145816597093331040047546785012958969400039613319782796882727665664) (*.f64 a a) (if (<=.f64 a 5926461975364371/1393796574908163946345982392040522594123776) (*.f64 b (neg.f64 b)) (*.f64 a a)))))
(*.f64 a a)
Compiler

Compiled 49 to 25 computations (49% saved)

soundness0.0ms (0%)

end26.0ms (1.4%)

Compiler

Compiled 45 to 20 computations (55.6% saved)

Profiling

Loading profile data...