Branch Coverage

lib/SPVM/Builder/include/spvm_implement.h
Criterion Covered Total %
branch 368 530 69.4


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 322 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 826 if (object1 == NULL && object2 == NULL) {
6 7 if (object1 == NULL && object2 == NULL) {
495 826 7 else if (object1 != NULL && object2 == NULL) {
7 819 else if (object1 != NULL && object2 == NULL) {
527 7 819 else if (object1 == NULL && object2 != NULL) {
7 0 else if (object1 == NULL && object2 != NULL) {
569 132 687 if (retval) {
570 69 63 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 73226 if (__builtin_expect(array == NULL, 0)) {
963 73226 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 73225 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);
1460 1 4 if (object == NULL) {
1475 143 3 if (object) {
1476 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))) {
1527 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1533 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1539 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1545 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1551 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1557 6 3 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1563 0 1 if (__builtin_expect(array == NULL, 0)) {
1569 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)) {
1576 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1584 0 1 if (__builtin_expect(array == NULL, 0)) {
1590 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)) {
1597 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1605 0 1 if (__builtin_expect(array == NULL, 0)) {
1611 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)) {
1618 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1626 0 1 if (__builtin_expect(array == NULL, 0)) {
1632 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)) {
1639 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1647 0 1 if (__builtin_expect(array == NULL, 0)) {
1653 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)) {
1660 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1668 0 1 if (__builtin_expect(array == NULL, 0)) {
1674 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)) {
1681 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1689 0 1 if (__builtin_expect(!array, 0)) {
1695 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)) {
1702 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1710 0 1 if (__builtin_expect(!array, 0)) {
1716 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)) {
1723 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1731 0 1 if (__builtin_expect(!array, 0)) {
1737 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)) {
1744 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1752 0 1 if (__builtin_expect(!array, 0)) {
1758 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)) {
1765 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1773 0 1 if (__builtin_expect(!array, 0)) {
1779 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)) {
1786 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1794 0 1 if (__builtin_expect(!array, 0)) {
1800 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)) {
1807 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1815 0 94 if (__builtin_expect(array == NULL, 0)) {
1821 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)) {
1833 0 94 if (__builtin_expect(array == NULL, 0)) {
1839 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)) {
1851 0 104 if (__builtin_expect(array == NULL, 0)) {
1857 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)) {
1869 0 94 if (__builtin_expect(array == NULL, 0)) {
1875 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)) {
1887 0 94 if (__builtin_expect(array == NULL, 0)) {
1893 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)) {
1905 0 111 if (__builtin_expect(array == NULL, 0)) {
1911 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)) {
1923 0 79 if (__builtin_expect(!array, 0)) {
1929 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)) {
1941 0 79 if (__builtin_expect(!array, 0)) {
1947 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)) {
1959 0 86 if (__builtin_expect(!array, 0)) {
1965 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)) {
1977 0 79 if (__builtin_expect(!array, 0)) {
1983 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)) {
1995 0 67 if (__builtin_expect(!array, 0)) {
2001 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)) {
2013 0 79 if (__builtin_expect(!array, 0)) {
2019 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)) {
2031 6 2 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2037 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2043 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2049 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2055 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2061 3 1 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2218 0 11 if (object == NULL) {
2224 11 0 if (env->is_type_by_name(env, stack, object, "Byte", 0)) {
2237 0 11 if (object == NULL) {
2243 11 0 if (env->is_type_by_name(env, stack, object, "Short", 0)) {
2256 0 79 if (object == NULL) {
2262 79 0 if (env->is_type_by_name(env, stack, object, "Int", 0)) {
2275 0 11 if (object == NULL) {
2281 11 0 if (env->is_type_by_name(env, stack, object, "Long", 0)) {
2294 0 11 if (object == NULL) {
2300 11 0 if (env->is_type_by_name(env, stack, object, "Float", 0)) {
2313 0 11 if (object == NULL) {
2319 11 0 if (env->is_type_by_name(env, stack, object, "Double", 0)) {
2342 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2348 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2354 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2360 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2366 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2372 17 7 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2391 33 11 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2397 30 10 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2403 30 10 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2409 30 10 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2415 30 10 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2421 36 13 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2428 3 1 if (stack_index >= args_width) {
2438 3 1 if (stack_index >= args_width) {
2448 425616 220041 if (stack_index >= args_width) {
2458 4 1 if (stack_index >= args_width) {
2468 1 1 if (stack_index >= args_width) {
2478 1 1 if (stack_index >= args_width) {
2488 17545 844 if (stack_index >= args_width) {
2505 87923 401 if (in != NULL) {
2515 18 6 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2521 15 5 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2527 15 5 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2533 15 5 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2539 15 5 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2545 17 6 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2561 1 505972 if (!object) {
2569 2 505970 if (!method) {
2577 505970 3 if (!*error_id) {