Branch Coverage

Calculator.xs
Criterion Covered Total %
branch 46 76 60.5


line true false branch
381 2 4 if (b == 0.0) {
394 2 2 if (b == 0.0) {
427 2 2 if (error) {
477 0 8 if (!RETVAL) {
487 10 0 if (slot < 0 || slot >= MAX_MEMORY_SLOTS) {
0 10 if (slot < 0 || slot >= MAX_MEMORY_SLOTS) {
511 0 4 RETVAL = history_count;
519 4 0 if (index < 0 || index >= history_count) {
0 4 if (index < 0 || index >= history_count) {
522 0 4 EXTEND(SP, 4);
531 0 2 RETVAL = MAX_MEMORY_SLOTS;
538 0 2 RETVAL = MAX_HISTORY;
604 2 6 if (a < 0.0) {
626 0 2 if (n == 0.0) {
629 0 2 if (a < 0.0 && fmod(n, 2.0) == 0.0) {
0 0 if (a < 0.0 && fmod(n, 2.0) == 0.0) {
641 2 2 if (a <= 0.0) {
653 0 2 if (a <= 0.0) {
666 2 0 if (a <= 0.0 || base <= 0.0 || base == 1.0) {
2 0 if (a <= 0.0 || base <= 0.0 || base == 1.0) {
0 2 if (a <= 0.0 || base <= 0.0 || base == 1.0) {
687 2 2 if (n < 0) {
690 0 2 if (n > 170) {
694 8 2 for (int i = 2; i <= n; i++) {
717 2 2 if (!error) {
729 2 2 if (!error) {
750 2 0 if (r > n || r < 0 || n < 0) {
2 0 if (r > n || r < 0 || n < 0) {
0 2 if (r > n || r < 0 || n < 0) {
754 2 2 for (int i = 2; i <= r; i++) {
812 2 0 if (a < -1.0 || a > 1.0) {
0 2 if (a < -1.0 || a > 1.0) {
824 2 0 if (a < -1.0 || a > 1.0) {
0 2 if (a < -1.0 || a > 1.0) {
855 0 2 RETVAL = degrees * M_PI / 180.0;
863 0 0 RETVAL = radians * 180.0 / M_PI;
943 0 6 RETVAL = M_PI;
950 0 2 RETVAL = M_E;