tanhf (example 3.4)

Time bar (total: 3.7s)

analyze151.0ms (4.1%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
0%0%100%0%0%0%0%2
25%25%75%0%0%0%0%3
37.5%37.5%62.5%0%0%0%0%4
43.8%43.7%56.2%0%0%0%0%5
46.9%46.9%53.1%0%0%0%0%6
48.4%48.4%51.5%0%0%0%0%7
49.2%49.2%50.8%0%0%0%0%8
49.6%49.6%50.4%0%0%0%0%9
49.8%49.8%50.2%0%0%0%0%10
49.9%49.9%50.1%0%0%0%0%11
50%49.9%50%0%0%0%0%12
Compiler

Compiled 9 to 7 computations (22.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 69.0ms
ival-sub: 29.0ms (42.2% of total)
ival-cos: 17.0ms (24.8% of total)
ival-sin: 14.0ms (20.4% of total)
ival-div: 6.0ms (8.7% of total)
const: 2.0ms (2.9% of total)

sample3.2s (87.6%)

Results
1.9s2054×2048valid
640.0ms4554×256valid
303.0ms1037×1024valid
76.0ms108×4096valid
70.0ms502×512valid
2.0ms8192valid
Precisions
Click to see histograms. Total time spent on operations: 2.6s
ival-sin: 1.4s (52.7% of total)
ival-cos: 882.0ms (33.8% of total)
ival-div: 205.0ms (7.9% of total)
ival-sub: 127.0ms (4.9% of total)
const: 20.0ms (0.8% of total)
Bogosity

preprocess56.0ms (1.5%)

Algorithm
egg-herbie
Rules
199×fma-define
83×fma-neg
47×times-frac
47×div-sub
37×distribute-rgt-in
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01760
14660
28556
319156
447056
581556
698156
Stop Event
saturated
Calls
Call 1
Inputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 (neg.f64 x))) (sin.f64 (neg.f64 x)))
(neg.f64 (/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 (neg.f64 x))) (sin.f64 (neg.f64 x))))
Outputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(tan.f64 (*.f64 x #s(literal 1/2 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(tan.f64 (*.f64 x #s(literal 1/2 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 (neg.f64 x))) (sin.f64 (neg.f64 x)))
(tan.f64 (/.f64 (neg.f64 x) #s(literal 2 binary64)))
(neg.f64 (tan.f64 (/.f64 x #s(literal 2 binary64))))
(tan.f64 (*.f64 x #s(literal -1/2 binary64)))
(neg.f64 (/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 (neg.f64 x))) (sin.f64 (neg.f64 x))))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(tan.f64 (*.f64 x #s(literal 1/2 binary64)))
Symmetry

(negabs x)

explain217.0ms (5.9%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
660-3(9.175975063976972e-156)(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
611(1.8750097293936267e+235)0-(-.f64 #s(literal 1 binary64) (cos.f64 x))
00-0-x
00-0-(sin.f64 x)
00-0-#s(literal 1 binary64)
00-0-(cos.f64 x)
Results
117.0ms136×2048valid
45.0ms304×256valid
14.0ms46×1024valid
8.0ms4096valid
3.0ms22×512valid
Compiler

Compiled 46 to 20 computations (56.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 154.0ms
ival-sin: 78.0ms (50.7% of total)
ival-cos: 52.0ms (33.8% of total)
ival-div: 14.0ms (9.1% of total)
ival-sub: 8.0ms (5.2% of total)
const: 1.0ms (0.6% of total)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune1.0ms (0%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
56.3%
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Compiler

Compiled 16 to 12 computations (25% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Rules
1-exp
sub-neg
+-commutative
*-commutative
neg-sub0
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01127
11827
22227
32427
42527
Stop Event
saturated
Calls
Call 1
Inputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Outputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))

soundness0.0ms (0%)

Stop Event
fuel
Compiler

Compiled 8 to 6 computations (25% saved)

preprocess31.0ms (0.8%)

Remove

(negabs x)

Compiler

Compiled 74 to 56 computations (24.3% saved)

end0.0ms (0%)

Profiling

Loading profile data...