Branch Coverage

lib/SPVM/Builder/include/spvm_implement.h
Criterion Covered Total %
branch 384 546 70.3


line true false branch
187 1 530 if (__builtin_expect(in2 == 0, 0)) {
198 0 3 if (__builtin_expect(in2 == 0, 0)) {
213 0 1 if (__builtin_expect(in2 == 0, 0)) {
224 0 1 if (__builtin_expect(in2 == 0, 0)) {
235 0 100031 if (__builtin_expect(in2 == 0, 0)) {
246 0 7 if (__builtin_expect(in2 == 0, 0)) {
257 0 1 if (__builtin_expect(in2 == 0, 0)) {
268 0 599 if (__builtin_expect(in2 == 0, 0)) {
306 84 15 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
312 81 14 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
318 81 14 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
324 81 14 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
330 81 14 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
336 105 26 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
358 334 6 if (isa) {
370 3 2266 if (env->is_read_only(env, stack, string)) {
392 1 694 if (string1 == NULL) {
397 1 693 else if (string2 == NULL) {
463 13 828 if (object1 == NULL && object2 == NULL) {
6 7 if (object1 == NULL && object2 == NULL) {
495 828 7 else if (object1 != NULL && object2 == NULL) {
7 821 else if (object1 != NULL && object2 == NULL) {
527 7 821 else if (object1 == NULL && object2 != NULL) {
7 0 else if (object1 == NULL && object2 != NULL) {
569 134 687 if (retval) {
570 66 68 cmp = retval < 0 ? -1 : 1;
571 667 20 } else if (length1 == length2) {
574 6 14 cmp = length1 < length2 ? -1 : 1;
622 0 35330 if (object == NULL) {
634 35665 1 if (length >= 0) {
636 0 35665 if (object == NULL) {
653 24 1 if (length >= 0) {
655 0 24 if (object == NULL) {
672 84 1 if (length >= 0) {
674 0 84 if (object == NULL) {
691 478 1 if (length >= 0) {
693 0 478 if (object == NULL) {
710 440 1 if (length >= 0) {
712 0 440 if (object == NULL) {
729 528 1 if (length >= 0) {
731 0 528 if (object == NULL) {
748 433 1 if (length >= 0) {
750 0 433 if (object == NULL) {
767 437 1 if (length >= 0) {
769 0 437 if (object == NULL) {
786 444 1 if (length >= 0) {
788 0 444 if (object == NULL) {
806 0 4585 if (string == NULL) {
818 2219 2 if (length >= 0) {
820 0 2219 if (string == NULL) {
844 0 3569 if (__builtin_expect(array == NULL, 0)) {
849 3569 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 3568 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
863 0 559 if (__builtin_expect(array == NULL, 0)) {
868 559 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 558 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
882 0 617 if (__builtin_expect(array == NULL, 0)) {
887 617 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 616 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
901 0 568 if (__builtin_expect(array == NULL, 0)) {
906 568 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 567 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
920 0 559 if (__builtin_expect(array == NULL, 0)) {
925 559 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 558 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
939 0 559 if (__builtin_expect(array == NULL, 0)) {
944 559 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 558 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
958 0 73232 if (__builtin_expect(array == NULL, 0)) {
963 73232 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 73231 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
974 0 4703 if (__builtin_expect(!array, 0)) {
980 4703 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 4703 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
992 0 1094 if (__builtin_expect(!array, 0)) {
998 1094 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1094 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1010 0 301228 if (__builtin_expect(!array, 0)) {
1016 301228 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 301228 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1028 0 1087 if (__builtin_expect(!array, 0)) {
1034 1087 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1087 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1046 0 1083 if (__builtin_expect(!array, 0)) {
1052 1083 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1083 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1064 0 1108 if (__builtin_expect(!array, 0)) {
1070 1108 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1108 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1082 0 33802 if (__builtin_expect(!array, 0)) {
1088 33802 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 33802 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1101 0 72606 if (__builtin_expect(!array, 0)) {
1107 72606 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 72606 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1116 72603 3 if (elem_isa) {
1129 0 103 if (__builtin_expect(!array, 0)) {
1135 103 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 103 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1148 1 43463 if (array == NULL) {
1160 1 61 if (__builtin_expect(object == NULL, 0)) {
1172 1 36 if (__builtin_expect(object == NULL, 0)) {
1185 1 115261 if (__builtin_expect(object == NULL, 0)) {
1198 1 38 if (__builtin_expect(object == NULL, 0)) {
1211 1 64 if (__builtin_expect(object == NULL, 0)) {
1224 1 92 if (__builtin_expect(object == NULL, 0)) {
1235 1 68939 if (__builtin_expect(object == NULL, 0)) {
1249 1 68 if (__builtin_expect(object == NULL, 0)) {
1261 1 50 if (__builtin_expect(object == NULL, 0)) {
1273 1 97897 if (__builtin_expect(object == NULL, 0)) {
1285 1 206 if (__builtin_expect(object == NULL, 0)) {
1297 1 74 if (__builtin_expect(object == NULL, 0)) {
1309 1 78 if (__builtin_expect(object == NULL, 0)) {
1321 0 21517 if (__builtin_expect(object == NULL, 0)) {
1334 1 5 if (__builtin_expect(object == NULL, 0)) {
1346 0 19 if (object == NULL) {
1354 0 19 if (status != 0) {
1363 0 0 if (object == NULL) {
1375 0 2 if (object == NULL) {
1408 136 2 if (object) {
1421 90 1 if (object) {
1430 4 2 *out = (dist_basic_type == src_basic_type && dist_type_dimension == 0);
4 0 *out = (dist_basic_type == src_basic_type && dist_type_dimension == 0);
1436 7 1 if (string) {
1440 6 1 if (string_length > 0) {
1450 4 1 if (string) {
1454 3 1 if (string_length > 0) {
1466 9 1 if (string) {
1470 8 1 if (string_length > 0) {
1474 5 3 if (bytes[string_length - 1] != '\n') {
1486 2 8 if (empty_or_undef) {
1506 1 4 if (object == NULL) {
1521 143 3 if (object) {
1522 5 138 if (!(env->is_string(env, stack, object) || env->is_numeric_array(env, stack, object) || env->is_mulnum_array(env, stack, object))) {
3 2 if (!(env->is_string(env, stack, object) || env->is_numeric_array(env, stack, object) || env->is_mulnum_array(env, stack, object))) {
2 1 if (!(env->is_string(env, stack, object) || env->is_numeric_array(env, stack, object) || env->is_mulnum_array(env, stack, object))) {
1573 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1579 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1585 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1591 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1597 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1603 6 3 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1609 0 1 if (__builtin_expect(array == NULL, 0)) {
1615 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1622 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1630 0 1 if (__builtin_expect(array == NULL, 0)) {
1636 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1643 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1651 0 1 if (__builtin_expect(array == NULL, 0)) {
1657 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1664 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1672 0 1 if (__builtin_expect(array == NULL, 0)) {
1678 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1685 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1693 0 1 if (__builtin_expect(array == NULL, 0)) {
1699 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1706 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1714 0 1 if (__builtin_expect(array == NULL, 0)) {
1720 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1727 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1735 0 1 if (__builtin_expect(!array, 0)) {
1741 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1748 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1756 0 1 if (__builtin_expect(!array, 0)) {
1762 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1769 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1777 0 1 if (__builtin_expect(!array, 0)) {
1783 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1790 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1798 0 1 if (__builtin_expect(!array, 0)) {
1804 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1811 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1819 0 1 if (__builtin_expect(!array, 0)) {
1825 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1832 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1840 0 1 if (__builtin_expect(!array, 0)) {
1846 1 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 1 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1853 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1861 0 94 if (__builtin_expect(array == NULL, 0)) {
1867 94 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 94 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1879 0 94 if (__builtin_expect(array == NULL, 0)) {
1885 94 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 94 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1897 0 104 if (__builtin_expect(array == NULL, 0)) {
1903 104 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 104 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1915 0 94 if (__builtin_expect(array == NULL, 0)) {
1921 94 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 94 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1933 0 94 if (__builtin_expect(array == NULL, 0)) {
1939 94 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 94 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1951 0 111 if (__builtin_expect(array == NULL, 0)) {
1957 111 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 111 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1969 0 79 if (__builtin_expect(!array, 0)) {
1975 79 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 79 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1987 0 79 if (__builtin_expect(!array, 0)) {
1993 79 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 79 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
2005 0 86 if (__builtin_expect(!array, 0)) {
2011 86 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 86 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
2023 0 79 if (__builtin_expect(!array, 0)) {
2029 79 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 79 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
2041 0 67 if (__builtin_expect(!array, 0)) {
2047 67 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 67 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
2059 0 79 if (__builtin_expect(!array, 0)) {
2065 79 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 79 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
2077 6 2 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2083 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2089 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2095 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2101 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2107 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2264 0 11 if (object == NULL) {
2270 11 0 if (env->is_type_by_name(env, stack, object, "Byte", 0)) {
2283 0 11 if (object == NULL) {
2289 11 0 if (env->is_type_by_name(env, stack, object, "Short", 0)) {
2302 0 79 if (object == NULL) {
2308 79 0 if (env->is_type_by_name(env, stack, object, "Int", 0)) {
2321 0 11 if (object == NULL) {
2327 11 0 if (env->is_type_by_name(env, stack, object, "Long", 0)) {
2340 0 11 if (object == NULL) {
2346 11 0 if (env->is_type_by_name(env, stack, object, "Float", 0)) {
2359 0 11 if (object == NULL) {
2365 11 0 if (env->is_type_by_name(env, stack, object, "Double", 0)) {
2388 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2394 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2400 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2406 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2412 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2418 17 7 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2437 33 11 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2443 30 10 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2449 30 10 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2455 30 10 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2461 30 10 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2467 36 13 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2474 3 1 if (stack_index >= args_width) {
2484 3 1 if (stack_index >= args_width) {
2494 425616 220041 if (stack_index >= args_width) {
2504 4 1 if (stack_index >= args_width) {
2514 1 1 if (stack_index >= args_width) {
2524 1 1 if (stack_index >= args_width) {
2534 17545 844 if (stack_index >= args_width) {
2551 87923 401 if (in != NULL) {
2561 18 6 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2567 15 5 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2573 15 5 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2579 15 5 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2585 15 5 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2591 17 6 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2607 1 505972 if (!object) {
2615 2 505970 if (!method) {
2623 505970 3 if (!*error_id) {