Details

Time bar (total: 1.2s)

analyze49.0ms (4%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
25%74.9%0.1%5
37.5%62.4%0.1%6
56.2%43.7%0.1%7
65.6%34.3%0.1%8
76.5%23.4%0.1%9
82%18%0.1%10
87.8%12.1%0.1%11
90.7%9.2%0.1%12
Compiler

Compiled 8 to 6 computations (25% saved)

sample857.0ms (70.1%)

Results
839.0ms8256×body256valid

preprocess16.0ms (1.3%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0814
11014
022
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
1
Outputs
0
1
Call 2
Inputs
(+.f64 x (/.f64 y 500))
(+.f64 y (/.f64 x 500))
Outputs
(+.f64 x (/.f64 y 500))
(+.f64 y (/.f64 x 500))
Compiler

Compiled 9 to 7 computations (22.2% saved)

simplify6.0ms (0.5%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
067
177
Stop Event
saturated
Counts
1 → 1
Calls
Call 1
Inputs
(+.f64 x (/.f64 y 500))
Outputs
(+.f64 x (/.f64 y 500))

eval0.0ms (0%)

Compiler

Compiled 7 to 5 computations (28.6% saved)

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
Click to see full alt table
StatusErrorProgram
0.0b
(+.f64 x (/.f64 y 500))
Compiler

Compiled 7 to 5 computations (28.6% saved)

localize5.0ms (0.4%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(+.f64 x (/.f64 y 500))
0.0b
(+.f64 x (/.f64 y 500))
Compiler

Compiled 13 to 8 computations (38.5% saved)

series2.0ms (0.2%)

Counts
1 → 24
Calls

6 calls:

TimeVariablePointExpression
0.0ms
y
@inf
(+.f64 x (/.f64 y 500))
0.0ms
x
@0
(+.f64 x (/.f64 y 500))
0.0ms
x
@inf
(+.f64 x (/.f64 y 500))
0.0ms
y
@0
(+.f64 x (/.f64 y 500))
0.0ms
y
@-inf
(+.f64 x (/.f64 y 500))

rewrite40.0ms (3.3%)

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

Useful iterations: 1 (0.0ms)

IterNodesCost
067
11385
218855
Stop Event
node limit
Counts
1 → 34
Calls
Call 1
Inputs
(+.f64 x (/.f64 y 500))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 y 1/500 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 x x) (-.f64 x (*.f64 y 1/500))) (/.f64 (*.f64 (*.f64 y y) 1/250000) (-.f64 x (*.f64 y 1/500))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 y 1/500 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 y 1/500 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 y 1/500 x)) (pow.f64 (cbrt.f64 (fma.f64 y 1/500 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 y 1/500 x)) 2) (cbrt.f64 (fma.f64 y 1/500 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 y 1/500 x)) (sqrt.f64 (fma.f64 y 1/500 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 y 3) 1/125000000)) (/.f64 1 (fma.f64 x x (*.f64 (*.f64 y 1/500) (-.f64 (*.f64 y 1/500) x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y y) 1/250000)) (/.f64 1 (-.f64 x (*.f64 y 1/500))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 x x (*.f64 (*.f64 y 1/500) (-.f64 (*.f64 y 1/500) x))) (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 y 3) 1/125000000))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 x (*.f64 y 1/500)) (-.f64 (*.f64 x x) (*.f64 (*.f64 y y) 1/250000))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 y 3) 1/125000000)) (fma.f64 x x (*.f64 (*.f64 y 1/500) (-.f64 (*.f64 y 1/500) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 y 3) 1/125000000)) (+.f64 (*.f64 (*.f64 y y) 1/250000) (-.f64 (*.f64 x x) (*.f64 x (*.f64 y 1/500)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y y) 1/250000)) (-.f64 x (*.f64 y 1/500)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 y 3) 1/125000000))) (neg.f64 (fma.f64 x x (*.f64 (*.f64 y 1/500) (-.f64 (*.f64 y 1/500) x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y y) 1/250000))) (neg.f64 (-.f64 x (*.f64 y 1/500))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 y y) 1/250000) (*.f64 x x)) (-.f64 (*.f64 y 1/500) x))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 y 1/500 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 y 1/500 x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 y 1/500 x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 y 1/500 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 y 1/500 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 y 1/500 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 y 1/500 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 y 1/500 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 y 1/500 x)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 y 1/500 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 y 1/500 x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 x (*.f64 y 1/500))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 y 1/500) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 y 1/500)) 2) (cbrt.f64 (*.f64 y 1/500)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) (*.f64 y 1/500))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 y 1/500)) (sqrt.f64 (*.f64 y 1/500)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 y 1/500))))))

simplify8.0ms (0.6%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
06105
19105
210105
Stop Event
saturated
Counts
58 → 38
Calls
Call 1
Inputs
(*.f64 1/500 y)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
x
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
x
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
x
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
(*.f64 1/500 y)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
(*.f64 1/500 y)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
(+.f64 (*.f64 1/500 y) x)
Outputs
(*.f64 1/500 y)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
x
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
x
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
x
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(*.f64 1/500 y)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(*.f64 1/500 y)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)
(+.f64 (*.f64 1/500 y) x)
(fma.f64 1/500 y x)

eval10.0ms (0.8%)

Compiler

Compiled 415 to 265 computations (36.1% saved)

prune5.0ms (0.4%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New36238
Fresh000
Picked011
Done000
Total36339
Error
0.0b
Counts
39 → 3
Alt Table
Click to see full alt table
StatusErrorProgram
31.1b
x
32.3b
(*.f64 1/500 y)
0.0b
(+.f64 x (/.f64 y 500))
Compiler

Compiled 15 to 11 computations (26.7% saved)

localize4.0ms (0.4%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.1b
(*.f64 1/500 y)
0.1b
(*.f64 1/500 y)
Compiler

Compiled 7 to 5 computations (28.6% saved)

series1.0ms (0.1%)

Counts
1 → 0
Calls

3 calls:

TimeVariablePointExpression
0.0ms
y
@inf
(*.f64 1/500 y)
0.0ms
y
@-inf
(*.f64 1/500 y)
0.0ms
y
@0
(*.f64 1/500 y)

rewrite29.0ms (2.4%)

Algorithm
batch-egg-rewrite
Rules
345×pow1_binary64
338×add-sqr-sqrt_binary64
329×*-un-lft-identity_binary64
321×add-log-exp_binary64
321×log1p-expm1-u_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
044
1804
28734
Stop Event
node limit
Counts
1 → 25
Calls
Call 1
Inputs
(*.f64 1/500 y)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (*.f64 1/500 y)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 1/500 y))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (cbrt.f64 (pow.f64 (exp.f64 y) 1/250))) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 y) 1/500))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (exp.f64 y) 1/1000)) (log.f64 (pow.f64 (exp.f64 y) 1/1000)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 1/500 y)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 1 (*.f64 1/500 y)) 3) 1) (+.f64 (*.f64 (+.f64 1 (*.f64 1/500 y)) (+.f64 1 (*.f64 1/500 y))) (+.f64 1 (*.f64 (+.f64 1 (*.f64 1/500 y)) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (+.f64 1 (*.f64 1/500 y)) (+.f64 1 (*.f64 1/500 y))) 1) (+.f64 (+.f64 1 (*.f64 1/500 y)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/500 y) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 y y) 1/250000) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 y 3) 1/125000000) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 1/500 y)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 1/500 y)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (log.f64 (*.f64 1/500 y)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (*.f64 1/500 y)))) (sqrt.f64 (log.f64 (*.f64 1/500 y))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (*.f64 1/500 y))) 2)) (cbrt.f64 (log.f64 (*.f64 1/500 y))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (*.f64 y y) 1/250000))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (*.f64 1/500 y))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 y) 1/500))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 y 3) 1/125000000))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/500 y)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 1/500 y)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (pow.f64 y 3) 1/125000000)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (*.f64 1/500 y))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (*.f64 1/500 y))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/500 y)))))))

simplify38.0ms (3.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
Stop Event
saturated
Counts
25 → 25
Calls
Call 1
Inputs
Outputs

eval6.0ms (0.5%)

Compiler

Compiled 221 to 180 computations (18.6% saved)

prune5.0ms (0.4%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New25025
Fresh011
Picked011
Done011
Total25328
Error
0.0b
Counts
28 → 3
Alt Table
Click to see full alt table
StatusErrorProgram
31.1b
x
32.3b
(*.f64 1/500 y)
0.0b
(+.f64 x (/.f64 y 500))
Compiler

Compiled 15 to 11 computations (26.7% saved)

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune1.0ms (0.1%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New000
Fresh011
Picked000
Done022
Total033
Error
0.0b
Counts
3 → 3
Alt Table
Click to see full alt table
StatusErrorProgram
31.1b
x
32.3b
(*.f64 1/500 y)
0.0b
(+.f64 x (/.f64 y 500))
Compiler

Compiled 15 to 11 computations (26.7% saved)

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune1.0ms (0.1%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New000
Fresh011
Picked000
Done022
Total033
Error
0.0b
Counts
3 → 3
Alt Table
Click to see full alt table
StatusErrorProgram
31.1b
x
32.3b
(*.f64 1/500 y)
0.0b
(+.f64 x (/.f64 y 500))
Compiler

Compiled 15 to 11 computations (26.7% saved)

regimes21.0ms (1.7%)

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

4 calls:

9.0ms
x
4.0ms
(+.f64 x (/.f64 y 500))
4.0ms
(/.f64 y 500)
3.0ms
y
Results
ErrorSegmentsBranch
0.0b1x
0.0b1y
0.0b1(+.f64 x (/.f64 y 500))
0.0b1(/.f64 y 500)
Compiler

Compiled 29 to 20 computations (31% saved)

regimes24.0ms (1.9%)

Accuracy

Total -49.7b remaining (-406.5%)

Threshold costs -49.7b (-406.5%)

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

2 calls:

14.0ms
y
9.0ms
x
Results
ErrorSegmentsBranch
15.3b3x
12.2b5y
Compiler

Compiled 12 to 8 computations (33.3% saved)

bsearch59.0ms (4.9%)

Algorithm
binary-search
Steps
TimeLeftRight
13.0ms
3.1275473496041555e+133
6.871605534976896e+137
13.0ms
4.248878694335352e+91
4.2833519348666656e+92
15.0ms
667979717899473.3
1.5089790899806716e+20
18.0ms
-5.404660162666139e-15
-7.105418254150075e-20
Compiler

Compiled 12 to 9 computations (25% saved)

simplify7.0ms (0.6%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
02146
12346
Stop Event
saturated
Calls
Call 1
Inputs
(+.f64 x (/.f64 y 500))
(if (<=.f64 y -6851220699233331/1267650600228229401496703205376) (*.f64 1/500 y) (if (<=.f64 y 2671918871597893/4) x (if (<=.f64 y 42488786943353518756560959537097896133446887280414695507878195194989860232281967965386047488) (*.f64 1/500 y) (if (<=.f64 y 31275473496041554983612944736120078471845116668840921807223703618180390536143028900120569633522088690377795456456776283780792379768832) x (*.f64 1/500 y)))))
x
Outputs
(+.f64 x (/.f64 y 500))
(if (<=.f64 y -6851220699233331/1267650600228229401496703205376) (*.f64 1/500 y) (if (<=.f64 y 2671918871597893/4) x (if (<=.f64 y 42488786943353518756560959537097896133446887280414695507878195194989860232281967965386047488) (*.f64 1/500 y) (if (<=.f64 y 31275473496041554983612944736120078471845116668840921807223703618180390536143028900120569633522088690377795456456776283780792379768832) x (*.f64 1/500 y)))))
(if (<=.f64 y -6851220699233331/1267650600228229401496703205376) (*.f64 y 1/500) (if (<=.f64 y 2671918871597893/4) x (if (<=.f64 y 42488786943353518756560959537097896133446887280414695507878195194989860232281967965386047488) (*.f64 y 1/500) (if (<=.f64 y 31275473496041554983612944736120078471845116668840921807223703618180390536143028900120569633522088690377795456456776283780792379768832) x (*.f64 y 1/500)))))
x

end27.0ms (2.2%)

Stop Event
fuel
Compiler

Compiled 74 to 50 computations (32.4% saved)

Profiling

Loading profile data...