Details

Time bar (total: 1.1s)

analyze6.0ms (0.5%)

Algorithm
search
Search
TrueOtherFalseIter
0%100%0%0
0%100%0%1
0%100%0%2
0%50%50%3
25%25%50%4
37.5%12.5%50%5
43.7%6.2%50%6
46.9%3.1%50%7
48.4%1.6%50%8
49.2%0.8%50%9
49.6%0.4%50%10
49.8%0.2%50%11
49.9%0.1%50%12
49.9%0%50%13
49.9%0%50%14
Compiler

Compiled 8 to 6 computations (25% saved)

sample705.0ms (64.6%)

Results
693.0ms8256×body128valid
Compiler

Compiled 16 to 12 computations (25% saved)

preprocess41.0ms (3.7%)

Algorithm
egg-herbie
Rules
492×fma-neg_binary64
454×unsub-neg_binary64
411×distribute-rgt-in_binary64
370×fma-def_binary64
363×distribute-neg-in_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
069
1139
2209
3319
4489
5769
61239
73189
86579
914219
1027459
1141279
011
Stop Event
saturated
node limit
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(sqrt.f64 (-.f64 1 (*.f64 x x)))
Outputs
(sqrt.f64 (-.f64 1 (*.f64 x x)))
Compiler

Compiled 7 to 5 computations (28.6% saved)

simplify33.0ms (3%)

Algorithm
egg-herbie
Rules
492×fma-neg_binary64
454×unsub-neg_binary64
411×distribute-rgt-in_binary64
370×fma-def_binary64
363×distribute-neg-in_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
069
1139
2209
3319
4489
5769
61239
73189
86579
914219
1027459
1141279
Stop Event
node limit
Counts
1 → 1
Calls
Call 1
Inputs
(sqrt.f64 (-.f64 1 (*.f64 x x)))
Outputs
(sqrt.f64 (-.f64 1 (*.f64 x x)))

prune1.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
0.0b
Counts
2 → 1
Alt Table
StatusErrorProgram
0.0b
(sqrt.f64 (-.f64 1 (*.f64 x x)))
Compiler

Compiled 21 to 15 computations (28.6% saved)

localize7.0ms (0.6%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(sqrt.f64 (-.f64 1 (*.f64 x x)))

series4.0ms (0.3%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
(sqrt.f64 (-.f64 1 (*.f64 x x)))
1.0ms
x
@inf
(sqrt.f64 (-.f64 1 (*.f64 x x)))
1.0ms
x
@0
(sqrt.f64 (-.f64 1 (*.f64 x x)))

rewrite34.0ms (3.1%)

Algorithm
batch-egg-rewrite
Rules
580×pow1_binary64
544×add-log-exp_binary64
543×log1p-expm1-u_binary64
543×expm1-log1p-u_binary64
531×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
069
11269
215439
Stop Event
node limit
Counts
1 → 22
Calls
Call 1
Inputs
(sqrt.f64 (-.f64 1 (*.f64 x x)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 1 (*.f64 x x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))) (cbrt.f64 (-.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 1 (*.f64 x x))) (cbrt.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (-.f64 1 (*.f64 x x)) 1/4) (pow.f64 (-.f64 1 (*.f64 x x)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (-.f64 1 (*.f64 x x))) 2)) (sqrt.f64 (cbrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (sqrt.f64 (-.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (-.f64 1 (*.f64 x x))) 2) 1/2) (pow.f64 (cbrt.f64 (-.f64 1 (*.f64 x x))) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 1 (pow.f64 x 4))) (sqrt.f64 (+.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 1 (pow.f64 x 6))) (sqrt.f64 (+.f64 1 (+.f64 (*.f64 x x) (pow.f64 x 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 1 (*.f64 x x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 1 (*.f64 x x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 1 (*.f64 x x)) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 1 (*.f64 x x)) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (sqrt.f64 (-.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 1 (*.f64 x x)) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log1p.f64 (*.f64 x (neg.f64 x))) 1/2))))))

simplify22.0ms (2%)

Algorithm
egg-herbie
Rules
591×fma-def_binary64
439×cancel-sign-sub-inv_binary64
315×fma-neg_binary64
217×associate-/l/_binary64
193×associate-*r/_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
047268
1152255
2451246
31698240
Stop Event
node limit
Counts
34 → 45
Calls
Call 1
Inputs
1
(-.f64 1 (*.f64 1/2 (pow.f64 x 2)))
(-.f64 1 (+.f64 (*.f64 1/8 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))))
(-.f64 1 (+.f64 (*.f64 1/8 (pow.f64 x 4)) (+.f64 (*.f64 1/16 (pow.f64 x 6)) (*.f64 1/2 (pow.f64 x 2)))))
(*.f64 (sqrt.f64 -1) x)
(+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x))
(-.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)) (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(-.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (+.f64 (*.f64 (sqrt.f64 -1) x) (*.f64 1/16 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))) (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(*.f64 -1 (*.f64 (sqrt.f64 -1) x))
(neg.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)))
(-.f64 (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))) (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)))
(-.f64 (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))) (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (+.f64 (*.f64 (sqrt.f64 -1) x) (*.f64 1/16 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))))
Outputs
1
(-.f64 1 (*.f64 1/2 (pow.f64 x 2)))
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
(-.f64 1 (*.f64 x (*.f64 x 1/2)))
(fma.f64 (*.f64 x x) -1/2 1)
(-.f64 1 (+.f64 (*.f64 1/8 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))))
(-.f64 1 (fma.f64 1/8 (pow.f64 x 4) (*.f64 1/2 (*.f64 x x))))
(-.f64 1 (fma.f64 1/2 (*.f64 x x) (*.f64 1/8 (pow.f64 x 4))))
(+.f64 (*.f64 (pow.f64 x 4) -1/8) (fma.f64 (*.f64 x x) -1/2 1))
(fma.f64 x (*.f64 x -1/2) (fma.f64 (pow.f64 x 4) -1/8 1))
(-.f64 1 (+.f64 (*.f64 1/8 (pow.f64 x 4)) (+.f64 (*.f64 1/16 (pow.f64 x 6)) (*.f64 1/2 (pow.f64 x 2)))))
(-.f64 1 (fma.f64 1/8 (pow.f64 x 4) (fma.f64 1/16 (pow.f64 x 6) (*.f64 1/2 (*.f64 x x)))))
(-.f64 1 (fma.f64 1/8 (pow.f64 x 4) (fma.f64 1/2 (*.f64 x x) (*.f64 1/16 (pow.f64 x 6)))))
(-.f64 1 (fma.f64 1/2 (*.f64 x x) (fma.f64 1/8 (pow.f64 x 4) (*.f64 1/16 (pow.f64 x 6)))))
(+.f64 (fma.f64 (*.f64 x x) -1/2 1) (fma.f64 (pow.f64 x 4) -1/8 (*.f64 (pow.f64 x 6) -1/16)))
(*.f64 (sqrt.f64 -1) x)
(*.f64 x (sqrt.f64 -1))
(+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x))
(+.f64 (*.f64 x (sqrt.f64 -1)) (/.f64 1/2 (*.f64 x (sqrt.f64 -1))))
(fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1))))
(-.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)) (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (-.f64 (*.f64 x (sqrt.f64 -1)) (/.f64 1/8 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (fma.f64 x (sqrt.f64 -1) (/.f64 -1/8 (*.f64 (neg.f64 (sqrt.f64 -1)) (pow.f64 x 3)))))
(+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (fma.f64 x (sqrt.f64 -1) (/.f64 1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3)))))
(+.f64 (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))) (/.f64 1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3))))
(-.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (+.f64 (*.f64 (sqrt.f64 -1) x) (*.f64 1/16 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))) (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (-.f64 (fma.f64 (sqrt.f64 -1) x (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))) (/.f64 1/8 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(+.f64 (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))) (-.f64 (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5))) (/.f64 1/8 (*.f64 (neg.f64 (sqrt.f64 -1)) (pow.f64 x 3)))))
(+.f64 (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))) (+.f64 (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5))) (/.f64 1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3)))))
(-.f64 (fma.f64 x (sqrt.f64 -1) (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))) (*.f64 (/.f64 -1 (*.f64 x (sqrt.f64 -1))) (+.f64 (/.f64 1/8 (*.f64 x x)) 1/2)))
(*.f64 -1 (*.f64 (sqrt.f64 -1) x))
(neg.f64 (*.f64 x (sqrt.f64 -1)))
(*.f64 x (neg.f64 (sqrt.f64 -1)))
(*.f64 (sqrt.f64 -1) (neg.f64 x))
(neg.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)))
(neg.f64 (+.f64 (*.f64 x (sqrt.f64 -1)) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))))
(-.f64 (/.f64 -1/2 (*.f64 x (sqrt.f64 -1))) (*.f64 x (sqrt.f64 -1)))
(-.f64 (/.f64 (/.f64 -1/2 x) (sqrt.f64 -1)) (*.f64 x (sqrt.f64 -1)))
(-.f64 (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))) (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)))
(-.f64 (/.f64 1/8 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3))) (+.f64 (*.f64 x (sqrt.f64 -1)) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))))
(-.f64 (/.f64 1/8 (*.f64 (neg.f64 (sqrt.f64 -1)) (pow.f64 x 3))) (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))))
(-.f64 (/.f64 -1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3))) (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))))
(-.f64 (*.f64 (/.f64 -1 (*.f64 x (sqrt.f64 -1))) (+.f64 (/.f64 1/8 (*.f64 x x)) 1/2)) (*.f64 x (sqrt.f64 -1)))
(-.f64 (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))) (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (+.f64 (*.f64 (sqrt.f64 -1) x) (*.f64 1/16 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))))
(-.f64 (/.f64 1/8 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3))) (+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (fma.f64 (sqrt.f64 -1) x (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5))))))
(-.f64 (fma.f64 1/8 (/.f64 (/.f64 -1 (sqrt.f64 -1)) (pow.f64 x 3)) (/.f64 -1/2 (*.f64 x (sqrt.f64 -1)))) (fma.f64 x (sqrt.f64 -1) (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))
(+.f64 (/.f64 -1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3))) (-.f64 (/.f64 (/.f64 -1/2 x) (sqrt.f64 -1)) (fma.f64 x (sqrt.f64 -1) (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5))))))
(-.f64 (*.f64 (/.f64 -1 (*.f64 x (sqrt.f64 -1))) (+.f64 (/.f64 1/8 (*.f64 x x)) 1/2)) (fma.f64 x (sqrt.f64 -1) (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))

prune29.0ms (2.7%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New43245
Fresh000
Picked011
Done000
Total43346
Error
0b
Counts
46 → 3
Alt Table
StatusErrorProgram
0.3b
(fma.f64 (*.f64 x x) -1/2 1)
0.0b
(sqrt.f64 (-.f64 1 (*.f64 x x)))
0.0b
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))
Compiler

Compiled 641 to 485 computations (24.3% saved)

localize6.0ms (0.6%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(sqrt.f64 (-.f64 1 (*.f64 x x)))
0.0b
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))

series4.0ms (0.3%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))
1.0ms
x
@inf
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))
1.0ms
x
@0
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))

rewrite37.0ms (3.4%)

Algorithm
batch-egg-rewrite
Rules
661×pow1_binary64
618×add-log-exp_binary64
618×expm1-log1p-u_binary64
617×log1p-expm1-u_binary64
71×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
089
11479
217489
Stop Event
node limit
Counts
1 → 26
Calls
Call 1
Inputs
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x)))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 1 (*.f64 x x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))) (cbrt.f64 (-.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 1 (*.f64 x x))) (cbrt.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (-.f64 1 (*.f64 x x)) 1/4) (pow.f64 (-.f64 1 (*.f64 x x)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (-.f64 1 (*.f64 x x))) 2)) (sqrt.f64 (cbrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (sqrt.f64 (-.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (-.f64 1 (*.f64 x x))) 2) 1/2) (pow.f64 (cbrt.f64 (-.f64 1 (*.f64 x x))) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 1 (pow.f64 x 4))) (sqrt.f64 (+.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 1 (pow.f64 x 6))) (sqrt.f64 (+.f64 1 (+.f64 (*.f64 x x) (pow.f64 x 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x)))) 3) 1) (+.f64 (*.f64 (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x)))) (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x))))) (+.f64 1 (*.f64 (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x)))) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x)))) (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x))))) 1) (+.f64 (+.f64 1 (sqrt.f64 (-.f64 1 (*.f64 x x)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 1 (*.f64 x x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 1 (*.f64 x x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 1 (*.f64 x x)) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 1 (*.f64 x x)) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (-.f64 1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (sqrt.f64 (-.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (sqrt.f64 (-.f64 1 (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 1 (*.f64 x x)) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log1p.f64 (*.f64 x (neg.f64 x))) 1/2))))))

simplify22.0ms (2%)

Algorithm
egg-herbie
Rules
591×fma-def_binary64
439×cancel-sign-sub-inv_binary64
315×fma-neg_binary64
217×associate-/l/_binary64
193×associate-*r/_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
047268
1152255
2451246
31698240
Stop Event
node limit
Counts
38 → 49
Calls
Call 1
Inputs
1
(-.f64 1 (*.f64 1/2 (pow.f64 x 2)))
(-.f64 1 (+.f64 (*.f64 1/8 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))))
(-.f64 1 (+.f64 (*.f64 1/8 (pow.f64 x 4)) (+.f64 (*.f64 1/16 (pow.f64 x 6)) (*.f64 1/2 (pow.f64 x 2)))))
(*.f64 (sqrt.f64 -1) x)
(+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x))
(-.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)) (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(-.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (+.f64 (*.f64 (sqrt.f64 -1) x) (*.f64 1/16 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))) (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(*.f64 -1 (*.f64 (sqrt.f64 -1) x))
(neg.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)))
(-.f64 (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))) (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)))
(-.f64 (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))) (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (+.f64 (*.f64 (sqrt.f64 -1) x) (*.f64 1/16 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))))
Outputs
1
(-.f64 1 (*.f64 1/2 (pow.f64 x 2)))
(+.f64 1 (*.f64 -1/2 (*.f64 x x)))
(-.f64 1 (*.f64 x (*.f64 x 1/2)))
(fma.f64 (*.f64 x x) -1/2 1)
(-.f64 1 (+.f64 (*.f64 1/8 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))))
(-.f64 1 (fma.f64 1/8 (pow.f64 x 4) (*.f64 1/2 (*.f64 x x))))
(-.f64 1 (fma.f64 1/2 (*.f64 x x) (*.f64 1/8 (pow.f64 x 4))))
(+.f64 (*.f64 (pow.f64 x 4) -1/8) (fma.f64 (*.f64 x x) -1/2 1))
(fma.f64 x (*.f64 x -1/2) (fma.f64 (pow.f64 x 4) -1/8 1))
(-.f64 1 (+.f64 (*.f64 1/8 (pow.f64 x 4)) (+.f64 (*.f64 1/16 (pow.f64 x 6)) (*.f64 1/2 (pow.f64 x 2)))))
(-.f64 1 (fma.f64 1/8 (pow.f64 x 4) (fma.f64 1/16 (pow.f64 x 6) (*.f64 1/2 (*.f64 x x)))))
(-.f64 1 (fma.f64 1/8 (pow.f64 x 4) (fma.f64 1/2 (*.f64 x x) (*.f64 1/16 (pow.f64 x 6)))))
(-.f64 1 (fma.f64 1/2 (*.f64 x x) (fma.f64 1/8 (pow.f64 x 4) (*.f64 1/16 (pow.f64 x 6)))))
(+.f64 (fma.f64 (*.f64 x x) -1/2 1) (fma.f64 (pow.f64 x 4) -1/8 (*.f64 (pow.f64 x 6) -1/16)))
(*.f64 (sqrt.f64 -1) x)
(*.f64 x (sqrt.f64 -1))
(+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x))
(+.f64 (*.f64 x (sqrt.f64 -1)) (/.f64 1/2 (*.f64 x (sqrt.f64 -1))))
(fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1))))
(-.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)) (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (-.f64 (*.f64 x (sqrt.f64 -1)) (/.f64 1/8 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (fma.f64 x (sqrt.f64 -1) (/.f64 -1/8 (*.f64 (neg.f64 (sqrt.f64 -1)) (pow.f64 x 3)))))
(+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (fma.f64 x (sqrt.f64 -1) (/.f64 1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3)))))
(+.f64 (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))) (/.f64 1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3))))
(-.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (+.f64 (*.f64 (sqrt.f64 -1) x) (*.f64 1/16 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))) (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (-.f64 (fma.f64 (sqrt.f64 -1) x (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))) (/.f64 1/8 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))))
(+.f64 (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))) (-.f64 (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5))) (/.f64 1/8 (*.f64 (neg.f64 (sqrt.f64 -1)) (pow.f64 x 3)))))
(+.f64 (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))) (+.f64 (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5))) (/.f64 1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3)))))
(-.f64 (fma.f64 x (sqrt.f64 -1) (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))) (*.f64 (/.f64 -1 (*.f64 x (sqrt.f64 -1))) (+.f64 (/.f64 1/8 (*.f64 x x)) 1/2)))
(*.f64 -1 (*.f64 (sqrt.f64 -1) x))
(neg.f64 (*.f64 x (sqrt.f64 -1)))
(*.f64 x (neg.f64 (sqrt.f64 -1)))
(*.f64 (sqrt.f64 -1) (neg.f64 x))
(neg.f64 (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)))
(neg.f64 (+.f64 (*.f64 x (sqrt.f64 -1)) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))))
(-.f64 (/.f64 -1/2 (*.f64 x (sqrt.f64 -1))) (*.f64 x (sqrt.f64 -1)))
(-.f64 (/.f64 (/.f64 -1/2 x) (sqrt.f64 -1)) (*.f64 x (sqrt.f64 -1)))
(-.f64 (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))) (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (*.f64 (sqrt.f64 -1) x)))
(-.f64 (/.f64 1/8 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3))) (+.f64 (*.f64 x (sqrt.f64 -1)) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))))
(-.f64 (/.f64 1/8 (*.f64 (neg.f64 (sqrt.f64 -1)) (pow.f64 x 3))) (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))))
(-.f64 (/.f64 -1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3))) (fma.f64 x (sqrt.f64 -1) (/.f64 1/2 (*.f64 x (sqrt.f64 -1)))))
(-.f64 (*.f64 (/.f64 -1 (*.f64 x (sqrt.f64 -1))) (+.f64 (/.f64 1/8 (*.f64 x x)) 1/2)) (*.f64 x (sqrt.f64 -1)))
(-.f64 (*.f64 1/8 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3)))) (+.f64 (*.f64 1/2 (/.f64 1 (*.f64 (sqrt.f64 -1) x))) (+.f64 (*.f64 (sqrt.f64 -1) x) (*.f64 1/16 (/.f64 1 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))))
(-.f64 (/.f64 1/8 (*.f64 (pow.f64 (sqrt.f64 -1) 3) (pow.f64 x 3))) (+.f64 (/.f64 1/2 (*.f64 x (sqrt.f64 -1))) (fma.f64 (sqrt.f64 -1) x (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5))))))
(-.f64 (fma.f64 1/8 (/.f64 (/.f64 -1 (sqrt.f64 -1)) (pow.f64 x 3)) (/.f64 -1/2 (*.f64 x (sqrt.f64 -1)))) (fma.f64 x (sqrt.f64 -1) (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))
(+.f64 (/.f64 -1/8 (*.f64 (sqrt.f64 -1) (pow.f64 x 3))) (-.f64 (/.f64 (/.f64 -1/2 x) (sqrt.f64 -1)) (fma.f64 x (sqrt.f64 -1) (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5))))))
(-.f64 (*.f64 (/.f64 -1 (*.f64 x (sqrt.f64 -1))) (+.f64 (/.f64 1/8 (*.f64 x x)) 1/2)) (fma.f64 x (sqrt.f64 -1) (/.f64 1/16 (*.f64 (pow.f64 (sqrt.f64 -1) 5) (pow.f64 x 5)))))

prune55.0ms (5%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New94094
Fresh011
Picked011
Done011
Total94397
Error
0b
Counts
97 → 3
Alt Table
StatusErrorProgram
0.3b
(fma.f64 (*.f64 x x) -1/2 1)
0.0b
(sqrt.f64 (-.f64 1 (*.f64 x x)))
0.0b
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))
Compiler

Compiled 1414 to 1083 computations (23.4% saved)

localize3.0ms (0.3%)

prune1.0ms (0.1%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done022
Total033
Error
0b
Counts
3 → 3
Alt Table
StatusErrorProgram
0.3b
(fma.f64 (*.f64 x x) -1/2 1)
0.0b
(sqrt.f64 (-.f64 1 (*.f64 x x)))
0.0b
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))
Compiler

Compiled 23 to 17 computations (26.1% saved)

regimes26.0ms (2.4%)

Accuracy

Total 0.0b remaining (91.3%)

Threshold costs 0.0b (91.3%)

Counts
7 → 1
Compiler

Compiled 246 to 184 computations (25.2% saved)

simplify2.0ms (0.2%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0813
11513
22213
32613
42813
Stop Event
saturated
Calls
Call 1
Inputs
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))
Outputs
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 1 (*.f64 x x)))))

end54.0ms (5%)

Stop Event
done
Compiler

Compiled 41 to 31 computations (24.4% saved)

Profiling

Loading profile data...