Details

Time bar (total: 1.8s)

analyze59.0ms (3.3%)

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)

sample823.0ms (46%)

Results
786.0ms8256×body256valid
22.0ms235×body256invalid

preprocess22.0ms (1.2%)

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 15 to 10 computations (33.3% saved)

simplify8.0ms (0.5%)

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

eval1.0ms (0%)

Compiler

Compiled 21 to 11 computations (47.6% saved)

prune1.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New112
Fresh011
Picked000
Done000
Total123
Error
0b
Counts
3 → 1
Alt Table
Click to see full alt table
StatusErrorProgram
0b
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
Compiler

Compiled 13 to 8 computations (38.5% saved)

localize8.0ms (0.5%)

Local error

Found 2 expressions with local error:

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

series2.0ms (0.1%)

Counts
1 → 12
Calls

3 calls:

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

rewrite46.0ms (2.6%)

Algorithm
batch-egg-rewrite
Rules
677×pow1_binary64
634×add-log-exp_binary64
633×log1p-expm1-u_binary64
633×expm1-log1p-u_binary64
620×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify132.0ms (7.4%)

Algorithm
egg-herbie
Rules
1104×sqr-pow_binary64
561×cube-prod_binary64
557×fabs-mul_binary64
536×pow-sqr_binary64
481×fma-def_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0684
11475
22875
35075
411075
529775
698775
7213775
8248475
9267675
10288675
11318275
12359175
13407175
14463875
15533475
16617875
17657375
18686375
19713975
20721575
21725175
Stop Event
node limit
Counts
51 → 44
Calls
Call 1
Inputs
(*.f64 2 x)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(+.f64 (*.f64 2 x) (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))
(+.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))
(+.f64 (*.f64 2 x) (pow.f64 x 2))
Outputs
(*.f64 2 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) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 2 x))
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.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 2 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) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.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 2 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) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 2 x))

eval15.0ms (0.8%)

Compiler

Compiled 678 to 381 computations (43.8% saved)

prune7.0ms (0.4%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New41344
Fresh000
Picked011
Done000
Total41445
Error
0b
Counts
45 → 4
Alt Table
Click to see full alt table
StatusErrorProgram
22.7b
(+.f64 (*.f64 x x) (*.f64 y y))
0.0b
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
0b
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
15.5b
(+.f64 (*.f64 2 x) (*.f64 y y))
Compiler

Compiled 42 to 26 computations (38.1% saved)

localize4.0ms (0.2%)

localize9.0ms (0.5%)

Local error

Found 2 expressions with local error:

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

series2.0ms (0.1%)

Counts
1 → 12
Calls

3 calls:

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

rewrite41.0ms (2.3%)

Algorithm
batch-egg-rewrite
Rules
601×pow1_binary64
565×add-log-exp_binary64
564×log1p-expm1-u_binary64
564×expm1-log1p-u_binary64
556×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify131.0ms (7.4%)

Algorithm
egg-herbie
Rules
1104×sqr-pow_binary64
561×cube-prod_binary64
557×fabs-mul_binary64
536×pow-sqr_binary64
481×fma-def_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0684
11475
22875
35075
411075
529775
698775
7213775
8248475
9267675
10288675
11318275
12359175
13407175
14463875
15533475
16617875
17657375
18686375
19713975
20721575
21725175
Stop Event
node limit
Counts
34 → 27
Calls
Call 1
Inputs
(*.f64 2 x)
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(+.f64 (*.f64 2 x) (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))
(+.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))
(+.f64 (*.f64 2 x) (pow.f64 x 2))
Outputs
(*.f64 2 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) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 2 x))
(+.f64 (*.f64 2 x) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.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 2 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) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.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 2 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) (pow.f64 x 2))
(fma.f64 2 x (*.f64 x x))
(*.f64 x (+.f64 2 x))

localize4.0ms (0.2%)

Local error

Found 2 expressions with local error:

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

series2.0ms (0.1%)

Counts
1 → 24
Calls

6 calls:

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

rewrite50.0ms (2.8%)

Algorithm
batch-egg-rewrite
Rules
650×pow1_binary64
606×add-log-exp_binary64
606×log1p-expm1-u_binary64
606×expm1-log1p-u_binary64
589×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

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

simplify128.0ms (7.2%)

Algorithm
egg-herbie
Rules
1238×sqr-pow_binary64
754×cube-prod_binary64
730×fabs-mul_binary64
532×pow-sqr_binary64
346×unpow3_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
07204
116168
229168
347168
499168
5269168
61081168
71364168
81642168
91893168
102230168
112711168
123366168
134154168
145078168
155593168
166004168
176395168
186508168
196552168
207721168
Stop Event
node limit
Counts
57 → 38
Calls
Call 1
Inputs
(pow.f64 y 2)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(pow.f64 x 2)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(pow.f64 x 2)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(pow.f64 x 2)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(pow.f64 y 2)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(pow.f64 y 2)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
Outputs
(pow.f64 y 2)
(*.f64 y y)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(pow.f64 y 2)
(*.f64 y y)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(pow.f64 y 2)
(*.f64 y y)
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
(+.f64 (*.f64 y y) (*.f64 x x))
(fma.f64 y y (*.f64 x x))

eval17.0ms (0.9%)

Compiler

Compiled 782 to 414 computations (47.1% saved)

prune12.0ms (0.7%)

Pruning

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New63265
Fresh000
Picked011
Done033
Total63669
Error
0b
Counts
69 → 6
Alt Table
Click to see full alt table
StatusErrorProgram
47.0b
(*.f64 x x)
15.5b
(+.f64 (*.f64 2 x) (*.f64 y y))
22.7b
(+.f64 (*.f64 x x) (*.f64 y y))
0.0b
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
0b
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
37.3b
(*.f64 y y)
Compiler

Compiled 52 to 32 computations (38.5% saved)

localize2.0ms (0.1%)

localize2.0ms (0.1%)

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune3.0ms (0.2%)

Pruning

6 alts after pruning (0 fresh and 6 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done055
Total066
Error
0b
Counts
6 → 6
Alt Table
Click to see full alt table
StatusErrorProgram
47.0b
(*.f64 x x)
15.5b
(+.f64 (*.f64 2 x) (*.f64 y y))
22.7b
(+.f64 (*.f64 x x) (*.f64 y y))
0.0b
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
0b
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
37.3b
(*.f64 y y)
Compiler

Compiled 52 to 32 computations (38.5% saved)

regimes30.0ms (1.7%)

Counts
6 → 1
Calls
Call 1
Inputs
(*.f64 x x)
(*.f64 y y)
(+.f64 (*.f64 x x) (*.f64 y y))
(+.f64 (*.f64 2 x) (*.f64 y y))
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
Outputs
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
Calls

5 calls:

7.0ms
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
6.0ms
x
5.0ms
(+.f64 (*.f64 x 2) (*.f64 x x))
5.0ms
y
5.0ms
(*.f64 y y)
Results
ErrorSegmentsBranch
0b1x
0b1y
0b1(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
0b1(+.f64 (*.f64 x 2) (*.f64 x x))
0b1(*.f64 y y)
Compiler

Compiled 75 to 37 computations (50.7% saved)

regimes16.0ms (0.9%)

Counts
5 → 1
Calls
Call 1
Inputs
(*.f64 x x)
(*.f64 y y)
(+.f64 (*.f64 x x) (*.f64 y y))
(+.f64 (*.f64 2 x) (*.f64 y y))
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
Outputs
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
Calls

3 calls:

6.0ms
y
5.0ms
x
3.0ms
(*.f64 y y)
Results
ErrorSegmentsBranch
0.0b1x
0.0b1y
0.0b1(*.f64 y y)
Compiler

Compiled 42 to 19 computations (54.8% saved)

regimes39.0ms (2.2%)

Counts
4 → 3
Calls
Call 1
Inputs
(*.f64 x x)
(*.f64 y y)
(+.f64 (*.f64 x x) (*.f64 y y))
(+.f64 (*.f64 2 x) (*.f64 y y))
Outputs
(+.f64 (*.f64 x x) (*.f64 y y))
(+.f64 (*.f64 2 x) (*.f64 y y))
(+.f64 (*.f64 x x) (*.f64 y y))
Calls

3 calls:

13.0ms
(*.f64 y y)
12.0ms
y
12.0ms
x
Results
ErrorSegmentsBranch
1.1b3x
11.2b3y
10.5b4(*.f64 y y)
Compiler

Compiled 33 to 15 computations (54.5% saved)

bsearch44.0ms (2.5%)

Algorithm
binary-search
Steps
TimeLeftRight
24.0ms
0.0012908719039158032
45.36603775859074
20.0ms
-755.4427312307046
-0.005712362976495828
Compiler

Compiled 18 to 12 computations (33.3% saved)

regimes13.0ms (0.7%)

Counts
3 → 1
Calls
Call 1
Inputs
(*.f64 x x)
(*.f64 y y)
(+.f64 (*.f64 x x) (*.f64 y y))
Outputs
(+.f64 (*.f64 x x) (*.f64 y y))
Calls

3 calls:

4.0ms
(*.f64 y y)
4.0ms
y
4.0ms
x
Results
ErrorSegmentsBranch
22.7b1x
22.7b1y
22.7b1(*.f64 y y)
Compiler

Compiled 26 to 12 computations (53.8% saved)

regimes33.0ms (1.9%)

Accuracy

Total -35.6b remaining (-137.4%)

Threshold costs -35.6b (-137.4%)

Counts
2 → 3
Calls
Call 1
Inputs
(*.f64 x x)
(*.f64 y y)
Outputs
(*.f64 x x)
(*.f64 y y)
(*.f64 x x)
Calls

3 calls:

14.0ms
x
12.0ms
y
7.0ms
(*.f64 y y)
Results
ErrorSegmentsBranch
25.9b3x
28.1b3y
28.1b2(*.f64 y y)
Compiler

Compiled 19 to 11 computations (42.1% saved)

bsearch36.0ms (2%)

Algorithm
binary-search
Steps
TimeLeftRight
18.0ms
290199886616266.2
419452357633977.25
18.0ms
-5.424879953143528e+75
-4.960429546986501e+72
Compiler

Compiled 18 to 12 computations (33.3% saved)

simplify4.0ms (0.3%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
028109
136109
Stop Event
saturated
Calls
Call 1
Inputs
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
(if (<=.f64 x -3322472268428077/4398046511104) (+.f64 (*.f64 x x) (*.f64 y y)) (if (<=.f64 x 23812383643477008/18446744073709551616) (+.f64 (*.f64 2 x) (*.f64 y y)) (+.f64 (*.f64 x x) (*.f64 y y))))
(+.f64 (*.f64 x x) (*.f64 y y))
(if (<=.f64 x -5424879953143528112231946235042113835215105191439136698667290744867946233856) (*.f64 x x) (if (<=.f64 x 4643198185860259/16) (*.f64 y y) (*.f64 x x)))
(*.f64 x x)
Outputs
(+.f64 (+.f64 (*.f64 x 2) (*.f64 x x)) (*.f64 y y))
(+.f64 (*.f64 x (+.f64 2 x)) (*.f64 y y))
(+.f64 (*.f64 y y) (*.f64 x (+.f64 x 2)))
(if (<=.f64 x -3322472268428077/4398046511104) (+.f64 (*.f64 x x) (*.f64 y y)) (if (<=.f64 x 23812383643477008/18446744073709551616) (+.f64 (*.f64 2 x) (*.f64 y y)) (+.f64 (*.f64 x x) (*.f64 y y))))
(if (<=.f64 x -3322472268428077/4398046511104) (+.f64 (*.f64 x x) (*.f64 y y)) (if (<=.f64 x 1488273977717313/1152921504606846976) (+.f64 (*.f64 x 2) (*.f64 y y)) (+.f64 (*.f64 x x) (*.f64 y y))))
(+.f64 (*.f64 x x) (*.f64 y y))
(if (<=.f64 x -5424879953143528112231946235042113835215105191439136698667290744867946233856) (*.f64 x x) (if (<=.f64 x 4643198185860259/16) (*.f64 y y) (*.f64 x x)))
(*.f64 x x)

end42.0ms (2.4%)

Stop Event
done
Compiler

Compiled 166 to 75 computations (54.8% saved)

Profiling

Loading profile data...