exp neg sub

Details

Time bar (total: 1.4s)

analyze0.0ms (0%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 9 to 7 computations (22.2% saved)

sample763.0ms (54.8%)

Results
452.0ms4148×body256valid
299.0ms4108×body256infinite
Bogosity

preprocess61.0ms (4.4%)

Algorithm
egg-herbie
Rules
1788×fma-def
1314×div-sub
834×times-frac
716×associate-*l*
696×associate-/r*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0921
12117
25017
311413
424013
553613
6162613
7550613
011
Stop Event
saturated
node limit
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
Outputs
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
(exp.f64 (+.f64 -1 (*.f64 x x)))
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (fma.f64 x x -1))
Compiler

Compiled 9 to 7 computations (22.2% saved)

simplify57.0ms (4.1%)

Algorithm
egg-herbie
Rules
1788×fma-def
1314×div-sub
834×times-frac
716×associate-*l*
696×associate-/r*
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0921
12117
25017
311413
424013
553613
6162613
7550613
Stop Event
node limit
Counts
1 → 4
Calls
Call 1
Inputs
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
Outputs
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
(exp.f64 (+.f64 -1 (*.f64 x x)))
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (fma.f64 x x -1))

eval1.0ms (0.1%)

Compiler

Compiled 25 to 15 computations (40% saved)

prune1.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New314
Fresh101
Picked000
Done000
Total415
Accurracy
100.0%
Counts
5 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
Compiler

Compiled 14 to 10 computations (28.6% saved)

localize26.0ms (1.9%)

Local Accuracy

Found 1 expressions with local accuracy:

NewAccuracyProgram
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
Compiler

Compiled 18 to 9 computations (50% saved)

series1.0ms (0%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@0
(exp.f64 (+.f64 (*.f64 x x) -1))
0.0ms
x
@inf
(exp.f64 (+.f64 (*.f64 x x) -1))
0.0ms
x
@-inf
(exp.f64 (+.f64 (*.f64 x x) -1))

rewrite73.0ms (5.2%)

Algorithm
batch-egg-rewrite
Rules
1590×pow1
1468×add-exp-log
1468×log1p-expm1-u
1468×expm1-log1p-u
1440×add-log-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0813
116913
2203013
Stop Event
node limit
Counts
1 → 22
Calls
Call 1
Inputs
(exp.f64 (+.f64 (*.f64 x x) -1))
Outputs
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
(-.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)
(*.f64 (exp.f64 (fma.f64 x x -1)) 1)
(*.f64 1 (exp.f64 (fma.f64 x x -1)))
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1))
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x))
(*.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2))
(*.f64 (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (exp.f64 (fma.f64 x x -1))))
(*.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) (sqrt.f64 (exp.f64 (fma.f64 x x -1))))
(pow.f64 (exp.f64 (fma.f64 x x -1)) 1)
(pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)
(pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)
(pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.f64 (fma.f64 x x -1)))
(pow.f64 (exp.f64 (+.f64 x 1)) (+.f64 x -1))
(pow.f64 (exp.f64 1) (fma.f64 x x -1))
(pow.f64 (exp.f64 (sqrt.f64 (fma.f64 x x -1))) (sqrt.f64 (fma.f64 x x -1)))
(sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))
(log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))
(cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))
(expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))
(log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1))))

simplify66.0ms (4.7%)

Algorithm
egg-herbie
Rules
1218×fma-def
1106×times-frac
620×associate-*r*
556×associate-*l*
548×*-commutative
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
074598
1158590
2460566
32454552
46111552
Stop Event
node limit
Counts
34 → 39
Calls
Call 1
Inputs
(exp.f64 -1)
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1))
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
(-.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)
(*.f64 (exp.f64 (fma.f64 x x -1)) 1)
(*.f64 1 (exp.f64 (fma.f64 x x -1)))
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1))
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x))
(*.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2))
(*.f64 (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (exp.f64 (fma.f64 x x -1))))
(*.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) (sqrt.f64 (exp.f64 (fma.f64 x x -1))))
(pow.f64 (exp.f64 (fma.f64 x x -1)) 1)
(pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)
(pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)
(pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.f64 (fma.f64 x x -1)))
(pow.f64 (exp.f64 (+.f64 x 1)) (+.f64 x -1))
(pow.f64 (exp.f64 1) (fma.f64 x x -1))
(pow.f64 (exp.f64 (sqrt.f64 (fma.f64 x x -1))) (sqrt.f64 (fma.f64 x x -1)))
(sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))
(log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))
(cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))
(expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))
(log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1))))
Outputs
(exp.f64 -1)
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1))
(fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1))
(*.f64 (exp.f64 -1) (fma.f64 x x 1))
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))
(+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))
(fma.f64 (exp.f64 -1) (*.f64 x x) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (exp.f64 -1)))
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (*.f64 1/2 (pow.f64 x 4))))
(*.f64 (exp.f64 -1) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1)))
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))))
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 (exp.f64 -1) (*.f64 x x) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (exp.f64 -1))))
(fma.f64 (exp.f64 -1) (*.f64 1/6 (pow.f64 x 6)) (*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (*.f64 1/2 (pow.f64 x 4)))))
(*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x 1))))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(exp.f64 (-.f64 (pow.f64 x 2) 1))
(exp.f64 (fma.f64 x x -1))
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
(exp.f64 (fma.f64 x x -1))
(-.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)
(exp.f64 (fma.f64 x x -1))
(*.f64 (exp.f64 (fma.f64 x x -1)) 1)
(exp.f64 (fma.f64 x x -1))
(*.f64 1 (exp.f64 (fma.f64 x x -1)))
(exp.f64 (fma.f64 x x -1))
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1))
(exp.f64 (fma.f64 x x -1))
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x))
(exp.f64 (fma.f64 x x -1))
(*.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2))
(exp.f64 (fma.f64 x x -1))
(*.f64 (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))
(*.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) (sqrt.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))
(pow.f64 (exp.f64 (fma.f64 x x -1)) 1)
(exp.f64 (fma.f64 x x -1))
(pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)
(exp.f64 (fma.f64 x x -1))
(pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)
(exp.f64 (fma.f64 x x -1))
(pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)
(exp.f64 (fma.f64 x x -1))
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.f64 (fma.f64 x x -1)))
(pow.f64 (exp.f64 (+.f64 x 1)) (+.f64 x -1))
(exp.f64 (fma.f64 x x -1))
(pow.f64 (exp.f64 1) (fma.f64 x x -1))
(pow.f64 (E.f64) (fma.f64 x x -1))
(pow.f64 (exp.f64 (sqrt.f64 (fma.f64 x x -1))) (sqrt.f64 (fma.f64 x x -1)))
(sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))
(exp.f64 (fma.f64 x x -1))
(log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))
(cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))
(exp.f64 (fma.f64 x x -1))
(expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))
(log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1))))
(exp.f64 (fma.f64 x x -1))

eval10.0ms (0.7%)

Compiler

Compiled 432 to 329 computations (23.8% saved)

prune7.0ms (0.5%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New37239
Fresh000
Picked011
Done000
Total37340
Accurracy
100.0%
Counts
40 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
55.0%
(exp.f64 -1)
100.0%
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
55.0%
(exp.f64 -1)
Compiler

Compiled 36 to 28 computations (22.2% saved)

localize68.0ms (4.9%)

Compiler

Compiled 26 to 19 computations (26.9% saved)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune2.0ms (0.2%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New000
Fresh000
Picked022
Done011
Total033
Accurracy
100.0%
Counts
3 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
100.0%
(exp.f64 (+.f64 (*.f64 x x) -1))
55.0%
(exp.f64 -1)
Compiler

Compiled 41 to 30 computations (26.8% saved)

regimes14.0ms (1%)

Counts
4 → 1
Calls
Call 1
Inputs
(exp.f64 -1)
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
Outputs
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
Calls

5 calls:

4.0ms
x
3.0ms
(neg.f64 (-.f64 1 (*.f64 x x)))
3.0ms
(*.f64 x x)
2.0ms
(-.f64 1 (*.f64 x x))
2.0ms
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
100.0%1(neg.f64 (-.f64 1 (*.f64 x x)))
100.0%1(-.f64 1 (*.f64 x x))
100.0%1(*.f64 x x)
Compiler

Compiled 50 to 34 computations (32% saved)

regimes16.0ms (1.2%)

Counts
3 → 1
Calls
Call 1
Inputs
(exp.f64 -1)
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
Outputs
(exp.f64 (+.f64 (*.f64 x x) -1))
Calls

5 calls:

5.0ms
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
3.0ms
x
3.0ms
(*.f64 x x)
2.0ms
(-.f64 1 (*.f64 x x))
2.0ms
(neg.f64 (-.f64 1 (*.f64 x x)))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x))))
100.0%1(neg.f64 (-.f64 1 (*.f64 x x)))
100.0%1(-.f64 1 (*.f64 x x))
100.0%1(*.f64 x x)
Compiler

Compiled 43 to 29 computations (32.6% saved)

regimes3.0ms (0.2%)

Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
(exp.f64 -1)
Outputs
(exp.f64 -1)
Calls

1 calls:

2.0ms
x
Results
AccuracySegmentsBranch
55.0%1x
Compiler

Compiled 5 to 4 computations (20% saved)

simplify4.0ms (0.3%)

Algorithm
egg-herbie
Rules
+-commutative
1-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01441
11841
Stop Event
done
saturated
Calls
Call 1
Inputs
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 -1)
Outputs
(+.f64 1 (expm1.f64 (fma.f64 x x -1)))
(exp.f64 (+.f64 (*.f64 x x) -1))
(exp.f64 (+.f64 -1 (*.f64 x x)))
(exp.f64 -1)
Compiler

Compiled 18 to 14 computations (22.2% saved)

soundness184.0ms (13.2%)

Rules
1788×fma-def
1590×pow1
1468×add-exp-log
1468×log1p-expm1-u
1468×expm1-log1p-u
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0921
12117
25017
311413
424013
553613
6162613
7550613
0813
116913
2203013
Stop Event
node limit
node limit
Compiler

Compiled 76 to 49 computations (35.5% saved)

end33.0ms (2.4%)

Compiler

Compiled 48 to 36 computations (25% saved)

Profiling

Loading profile data...