Details

Time bar (total: 1.8s)

analyze85.0ms (4.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
25%62.4%12.6%6
25%43.7%31.3%7
31.2%31.2%37.6%8
39%23.4%37.6%9
42.9%16.4%40.7%10
47.2%12.1%40.7%11
49.4%8.4%42.2%12
Compiler

Compiled 14 to 9 computations (35.7% saved)

sample1.0s (56.7%)

Results
995.0ms8248×body64valid
24.0ms240×body64invalid
1.0msbody128valid

preprocess18.0ms (1%)

Algorithm
egg-herbie
Rules
26×fma-def_binary64
10×+-commutative_binary64
associate-+r+_binary64
associate-+l+_binary64
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01226
12822
26222
37622
022
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
1
Outputs
0
1
Call 2
Inputs
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
(+.f64 (+.f64 (*.f64 y 2) (*.f64 y y)) (*.f64 x x))
Outputs
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
(fma.f64 x (+.f64 x 2) (*.f64 y y))
(+.f64 (+.f64 (*.f64 y 2) (*.f64 y y)) (*.f64 x x))
(+.f64 (*.f64 x x) (*.f64 y (+.f64 2 y)))
(fma.f64 x x (*.f64 y (+.f64 2 y)))
Compiler

Compiled 13 to 8 computations (38.5% saved)

simplify8.0ms (0.4%)

Algorithm
egg-herbie
Rules
14×fma-def_binary64
+-commutative_binary64
associate-+r+_binary64
associate-+l+_binary64
*-commutative_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0913
11711
23411
34211
Stop Event
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
Outputs
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
(fma.f64 x (+.f64 x 2) (*.f64 y y))

prune3.0ms (0.2%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.0b
(fma.f64 x (+.f64 x 2) (*.f64 y y))
0.0b
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
Compiler

Compiled 67 to 39 computations (41.8% saved)

localize7.0ms (0.4%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x (+.f64 x 2) (*.f64 y y))

series3.0ms (0.2%)

Counts
1 → 24
Calls

6 calls:

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

rewrite47.0ms (2.6%)

Algorithm
batch-egg-rewrite
Rules
742×pow1_binary64
690×add-log-exp_binary64
689×log1p-expm1-u_binary64
689×expm1-log1p-u_binary64
675×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify134.0ms (7.3%)

Algorithm
egg-herbie
Rules
1238×sqr-pow_binary64
666×cube-prod_binary64
662×fabs-mul_binary64
532×pow-sqr_binary64
505×fma-def_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
014262
134214
259214
387214
4194214
5499214
61666214
72322214
82641214
92901214
103244214
113730214
124389214
135179214
146112214
156635214
167046214
177439214
187558214
197604214
Stop Event
node limit
Counts
45 → 33
Calls
Call 1
Inputs
(pow.f64 y 2)
(+.f64 (*.f64 2 x) (pow.f64 y 2))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(pow.f64 x 2)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(pow.f64 x 2)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(*.f64 (+.f64 2 x) x)
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(pow.f64 y 2)
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(pow.f64 y 2)
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
Outputs
(pow.f64 y 2)
(*.f64 y y)
(+.f64 (*.f64 2 x) (pow.f64 y 2))
(fma.f64 2 x (*.f64 y y))
(fma.f64 y y (*.f64 2 x))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 2 x))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 2 x))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(*.f64 (+.f64 2 x) x)
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 2 x))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(pow.f64 y 2)
(*.f64 y y)
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(pow.f64 y 2)
(*.f64 y y)
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))
(+.f64 (pow.f64 y 2) (*.f64 (+.f64 2 x) x))
(+.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))
(fma.f64 y y (*.f64 x (+.f64 2 x)))
(fma.f64 x (+.f64 2 x) (*.f64 y y))

prune44.0ms (2.4%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New31233
Fresh101
Picked011
Done000
Total32335
Error
0b
Counts
35 → 3
Alt Table
StatusErrorProgram
0.0b
(fma.f64 x (+.f64 x 2) (*.f64 y y))
0.0b
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
14.7b
(fma.f64 y y (*.f64 2 x))
Compiler

Compiled 416 to 237 computations (43% saved)

localize6.0ms (0.3%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))

series3.0ms (0.2%)

Counts
1 → 9
Calls

6 calls:

TimeVariablePointExpression
1.0ms
x
@0
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
1.0ms
y
@-inf
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
1.0ms
y
@0
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
1.0ms
y
@inf
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
0.0ms
x
@-inf
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))

rewrite61.0ms (3.4%)

Algorithm
batch-egg-rewrite
Rules
505×fma-def_binary64
453×log-prod_binary64
369×pow-prod-down_binary64
334×exp-prod_binary64
260×fma-neg_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0914
120811
2286411
Stop Event
node limit
Counts
1 → 87
Calls
Call 1
Inputs
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 (*.f64 x x) 4) (-.f64 (+.f64 x x) (pow.f64 (hypot.f64 x y) 2))) (/.f64 (pow.f64 (hypot.f64 x y) 4) (-.f64 (+.f64 x x) (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))) (pow.f64 (cbrt.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))) 2) (cbrt.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 (hypot.f64 x y) (sqrt.f64 (+.f64 x x))) (hypot.f64 (hypot.f64 x y) (sqrt.f64 (+.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 8 (pow.f64 x 3) (pow.f64 (hypot.f64 x y) 6)) (/.f64 1 (fma.f64 (pow.f64 (hypot.f64 x y) 2) (-.f64 (pow.f64 (hypot.f64 x y) 2) (+.f64 x x)) (*.f64 (*.f64 x x) 4))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 (*.f64 x x) 4) (pow.f64 (hypot.f64 x y) 4)) (/.f64 1 (-.f64 (+.f64 x x) (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (pow.f64 (hypot.f64 x y) 2) (-.f64 (pow.f64 (hypot.f64 x y) 2) (+.f64 x x)) (*.f64 (*.f64 x x) 4)) (fma.f64 8 (pow.f64 x 3) (pow.f64 (hypot.f64 x y) 6))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 (+.f64 x x) (pow.f64 (hypot.f64 x y) 2)) (-.f64 (*.f64 (*.f64 x x) 4) (pow.f64 (hypot.f64 x y) 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 8 (pow.f64 x 3) (pow.f64 (hypot.f64 x y) 6)) (fma.f64 (pow.f64 (hypot.f64 x y) 2) (-.f64 (pow.f64 (hypot.f64 x y) 2) (+.f64 x x)) (*.f64 (*.f64 x x) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 8 (pow.f64 x 3) (pow.f64 (hypot.f64 x y) 6)) (+.f64 (pow.f64 (hypot.f64 x y) 4) (-.f64 (*.f64 (*.f64 x x) 4) (*.f64 2 (*.f64 x (pow.f64 (hypot.f64 x y) 2))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 x x) 4) (pow.f64 (hypot.f64 x y) 4)) (-.f64 (+.f64 x x) (pow.f64 (hypot.f64 x y) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (fma.f64 8 (pow.f64 x 3) (pow.f64 (hypot.f64 x y) 6))) (neg.f64 (fma.f64 (pow.f64 (hypot.f64 x y) 2) (-.f64 (pow.f64 (hypot.f64 x y) 2) (+.f64 x x)) (*.f64 (*.f64 x x) 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (*.f64 (*.f64 x x) 4) (pow.f64 (hypot.f64 x y) 4))) (neg.f64 (-.f64 (+.f64 x x) (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 2 x (*.f64 y y)) 3) (pow.f64 x 6)) (+.f64 (pow.f64 (fma.f64 2 x (*.f64 y y)) 2) (-.f64 (pow.f64 x 4) (*.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (hypot.f64 x y) 4) (*.f64 (*.f64 x x) 4)) (-.f64 (pow.f64 (hypot.f64 x y) 2) (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (fma.f64 2 x (*.f64 y y)) 2) (pow.f64 x 4)) (-.f64 (fma.f64 2 x (*.f64 y y)) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 (hypot.f64 x y) (sqrt.f64 (+.f64 x x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 1) (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (pow.f64 (hypot.f64 x y) 2) (-.f64 (pow.f64 (hypot.f64 x y) 2) (+.f64 x x)) (*.f64 (*.f64 x x) 4)) (fma.f64 8 (pow.f64 x 3) (pow.f64 (hypot.f64 x y) 6))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (-.f64 (+.f64 x x) (pow.f64 (hypot.f64 x y) 2)) (-.f64 (*.f64 (*.f64 x x) 4) (pow.f64 (hypot.f64 x y) 4))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)))) 2)) (cbrt.f64 (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))))) (sqrt.f64 (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (+.f64 x x))) (exp.f64 (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (pow.f64 (exp.f64 2) x) (+.f64 1 (expm1.f64 (pow.f64 (hypot.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (+.f64 x x))) (+.f64 1 (expm1.f64 (pow.f64 (hypot.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 x x))) (exp.f64 (fma.f64 2 x (*.f64 y y)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (pow.f64 (hypot.f64 x y) 2))) (pow.f64 (exp.f64 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (pow.f64 (hypot.f64 x y) 2)) (+.f64 1 (expm1.f64 (+.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (pow.f64 (hypot.f64 x y) 2))) (+.f64 1 (expm1.f64 (+.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (fma.f64 2 x (*.f64 y y))) (+.f64 1 (expm1.f64 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (hypot.f64 (hypot.f64 x y) (sqrt.f64 (+.f64 x x)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (log.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x 2 (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x x (fma.f64 2 x (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 x x) 1 (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 y y (fma.f64 x x (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 y y) 1 (fma.f64 x x (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x x) 1 (fma.f64 2 x (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (hypot.f64 x y) 2) 1 (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 x x) (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 y y) (fma.f64 x x (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x x) (fma.f64 2 x (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (pow.f64 (hypot.f64 x y) 2) (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 2 x (*.f64 y y)) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (hypot.f64 x y) 2)) (cbrt.f64 (pow.f64 (hypot.f64 x y) 4)) (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (hypot.f64 x y) 4)) (cbrt.f64 (pow.f64 (hypot.f64 x y) 2)) (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 y) 2) (*.f64 (cbrt.f64 y) y) (fma.f64 x x (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cbrt.f64 y) y) (pow.f64 (cbrt.f64 y) 2) (fma.f64 x x (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 x x)) (cbrt.f64 (pow.f64 x 4)) (fma.f64 2 x (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) 2) (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 x 4)) (cbrt.f64 (*.f64 x x)) (fma.f64 2 x (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (+.f64 x x)) (pow.f64 (cbrt.f64 (+.f64 x x)) 2) (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 x x)) 2) (cbrt.f64 (+.f64 x x)) (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (hypot.f64 x y) (hypot.f64 x y) (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 y) (pow.f64 y 3/2) (fma.f64 x x (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (pow.f64 x 3/2) (fma.f64 2 x (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) 2) (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 (+.f64 x x)) (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 (pow.f64 y 6) (pow.f64 x 6)) (/.f64 1 (+.f64 (pow.f64 y 4) (-.f64 (pow.f64 x 4) (pow.f64 (*.f64 y x) 2)))) (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 (pow.f64 y 4) (pow.f64 x 4)) (/.f64 1 (fma.f64 y y (*.f64 (neg.f64 x) x))) (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 2 x (*.f64 y y)) 1 (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 y 3/2) (sqrt.f64 y) (fma.f64 x x (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 2 x (*.f64 y y))) 2) (cbrt.f64 (fma.f64 2 x (*.f64 y y))) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (hypot.f64 y (sqrt.f64 (+.f64 x x))) (hypot.f64 y (sqrt.f64 (+.f64 x x))) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x 3/2) (sqrt.f64 x) (fma.f64 2 x (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 y) 5) (cbrt.f64 y) (fma.f64 x x (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 5) (cbrt.f64 x) (fma.f64 2 x (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 2 (cbrt.f64 (*.f64 x x))) (cbrt.f64 x) (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 2 (sqrt.f64 x)) (sqrt.f64 x) (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 2 x (pow.f64 (hypot.f64 x y) 2))))))))

simplify125.0ms (6.8%)

Algorithm
egg-herbie
Rules
1238×sqr-pow_binary64
666×cube-prod_binary64
660×fabs-mul_binary64
532×pow-sqr_binary64
421×associate-*l*_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0952
12249
24149
37049
415449
543549
6157249
7215049
8246949
9272949
10307049
11355449
12421349
13500549
14593449
15645149
16686849
17725749
18738249
19742849
Stop Event
node limit
Counts
96 → 95
Calls
Call 1
Inputs
(pow.f64 y 2)
(+.f64 (*.f64 2 x) (pow.f64 y 2))
(pow.f64 x 2)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(pow.f64 x 2)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(pow.f64 y 2)
(pow.f64 y 2)
Outputs
(pow.f64 y 2)
(*.f64 y y)
(+.f64 (*.f64 2 x) (pow.f64 y 2))
(fma.f64 2 x (*.f64 y y))
(fma.f64 y y (*.f64 2 x))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 x 2))
(*.f64 x (+.f64 2 x))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 x 2))
(*.f64 x (+.f64 2 x))
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 x 2))
(*.f64 x (+.f64 2 x))
(pow.f64 y 2)
(*.f64 y y)
(pow.f64 y 2)
(*.f64 y y)

prune193.0ms (10.6%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New94195
Fresh101
Picked101
Done101
Total97198
Error
0b
Counts
98 → 1
Alt Table
StatusErrorProgram
0b
(fma.f64 y y (fma.f64 x x (+.f64 x x)))
Compiler

Compiled 1437 to 700 computations (51.3% saved)

localize7.0ms (0.4%)

prune1.0ms (0%)

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 y y (fma.f64 x x (+.f64 x x)))
Compiler

Compiled 13 to 7 computations (46.2% saved)

regimes26.0ms (1.4%)

Accuracy

Total -14.7b remaining (-∞%)

Threshold costs -14.7b (-∞%)

Counts
5 → 1
Calls
Call 1
Inputs
(fma.f64 y y (fma.f64 x x (+.f64 x x)))
(+.f64 (*.f64 2 x) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
(fma.f64 y y (*.f64 2 x))
(fma.f64 x (+.f64 x 2) (*.f64 y y))
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
Outputs
(fma.f64 y y (fma.f64 x x (+.f64 x x)))
Results
4.0ms0bx
4.0ms0by
4.0ms0b(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
6.0ms0b(+.f64 (*.f64 x 2) (*.f64 x x))
3.0ms0b(*.f64 y y)
3.0ms0b(*.f64 y y)
Compiler

Compiled 85 to 49 computations (42.4% saved)

simplify5.0ms (0.3%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

end16.0ms (0.8%)

Stop Event
done
Compiler

Compiled 22 to 10 computations (54.5% saved)

Profiling

Loading profile data...