tanhf (example 3.4)

Time bar (total: 3.6s)

analyze136.0ms (3.8%)

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: 51.0ms
ival-sub: 16.0ms (31.3% of total)
ival-cos: 14.0ms (27.4% of total)
ival-sin: 13.0ms (25.4% of total)
ival-div: 6.0ms (11.7% of total)
const: 2.0ms (3.9% of total)

sample3.0s (84.4%)

Results
659.0ms4219×0valid
481.0ms2043×1valid
1.4s1986×2valid
8.0ms3valid
Precisions
Click to see histograms. Total time spent on operations: 2.1s
ival-cos: 1.3s (61.7% of total)
ival-sin: 247.0ms (12% of total)
ival-div: 232.0ms (11.2% of total)
backward-pass: 169.0ms (8.2% of total)
ival-sub: 124.0ms (6% of total)
const: 19.0ms (0.9% of total)
Bogosity

preprocess57.0ms (1.6%)

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)

explain242.0ms (6.8%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
702(3.829742366805367e+232)0-(-.f64 #s(literal 1 binary64) (cos.f64 x))
660-5(5.739963118693529e-156)(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
00-0-x
00-0-(sin.f64 x)
00-0-#s(literal 1 binary64)
00-0-(cos.f64 x)
Results
47.0ms288×256valid
117.0ms126×2048valid
26.0ms56×1024valid
8.0ms28×512valid
11.0ms14×4096valid
Compiler

Compiled 46 to 26 computations (43.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 155.0ms
ival-sin: 76.0ms (49.1% of total)
ival-cos: 52.0ms (33.6% of total)
ival-sub: 17.0ms (11% of total)
ival-div: 8.0ms (5.2% of total)
const: 2.0ms (1.3% of total)

eval0.0ms (0%)

Compiler

Compiled 9 to 7 computations (22.2% saved)

prune1.0ms (0%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Compiler

Compiled 5 to 4 computations (20% saved)

localize35.0ms (1%)

Results
26.0ms256×256valid
Compiler

Compiled 11 to 8 computations (27.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
ival-tan: 6.0ms (58.5% of total)
ival-div: 4.0ms (39% of total)
const: 1.0ms (9.7% of total)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune1.0ms (0%)

Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done000
Total011
Accuracy
100.0%
Counts
1 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Compiler

Compiled 17 to 13 computations (23.5% saved)

regimes3.0ms (0.1%)

Accuracy

Total -29.4b remaining (-∞%)

Threshold costs -29.4b (-∞%)

Counts
2 → 1
Calls
Call 1
Inputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Outputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Calls

2 calls:

1.0ms
x
1.0ms
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Compiler

Compiled 10 to 7 computations (30% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0914
Stop Event
saturated
Calls
Call 1
Inputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Outputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))

soundness42.0ms (1.2%)

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
done
saturated
Compiler

Compiled 17 to 13 computations (23.5% saved)

preprocess41.0ms (1.1%)

Remove

(negabs x)

Compiler

Compiled 56 to 44 computations (21.4% saved)

end0.0ms (0%)

Profiling

Loading profile data...