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 330 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 68 66 cmp = retval < 0 ? -1 : 1;
571 667 20 } else if (length1 == length2) {
574 6 14 cmp = length1 < length2 ? -1 : 1;
622 0 35670 if (object == NULL) {
634 36067 1 if (length >= 0) {
636 0 36067 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 74755 if (__builtin_expect(array == NULL, 0)) {
963 74755 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1 74754 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 34493 if (__builtin_expect(!array, 0)) {
1088 34493 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 34493 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1101 0 74131 if (__builtin_expect(!array, 0)) {
1107 74131 0 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
0 74131 if (__builtin_expect(index < 0 || index >= *(int32_t*)((intptr_t)array + object_length_offset), 0)) {
1116 74128 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 43907 if (array == NULL) {
1160 1 61 if (__builtin_expect(object == NULL, 0)) {
1172 1 36 if (__builtin_expect(object == NULL, 0)) {
1185 1 116865 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 69836 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 99150 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 21739 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) {
1447 4 1 if (string) {
1451 3 1 if (string_length > 0) {
1460 9 1 if (string) {
1464 8 1 if (string_length > 0) {
1468 5 3 if (bytes[string_length - 1] != '\n') {
1480 2 8 if (empty_or_undef) {
1500 1 4 if (object == NULL) {
1515 143 3 if (object) {
1516 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))) {
1567 0 0 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
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 6 3 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
1603 0 1 if (__builtin_expect(array == NULL, 0)) {
1609 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)) {
1616 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1624 0 1 if (__builtin_expect(array == NULL, 0)) {
1630 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)) {
1637 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1645 0 1 if (__builtin_expect(array == NULL, 0)) {
1651 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)) {
1658 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1666 0 1 if (__builtin_expect(array == NULL, 0)) {
1672 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)) {
1679 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1687 0 1 if (__builtin_expect(array == NULL, 0)) {
1693 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)) {
1700 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1708 0 1 if (__builtin_expect(array == NULL, 0)) {
1714 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)) {
1721 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1729 0 1 if (__builtin_expect(!array, 0)) {
1735 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)) {
1742 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1750 0 1 if (__builtin_expect(!array, 0)) {
1756 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)) {
1763 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1771 0 1 if (__builtin_expect(!array, 0)) {
1777 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)) {
1784 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1792 0 1 if (__builtin_expect(!array, 0)) {
1798 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)) {
1805 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1813 0 1 if (__builtin_expect(!array, 0)) {
1819 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)) {
1826 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1834 0 1 if (__builtin_expect(!array, 0)) {
1840 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)) {
1847 3 1 for (field_index = 0; field_index < fields_length; field_index++) {
1855 0 94 if (__builtin_expect(array == NULL, 0)) {
1861 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)) {
1873 0 94 if (__builtin_expect(array == NULL, 0)) {
1879 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)) {
1891 0 104 if (__builtin_expect(array == NULL, 0)) {
1897 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)) {
1909 0 94 if (__builtin_expect(array == NULL, 0)) {
1915 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)) {
1927 0 94 if (__builtin_expect(array == NULL, 0)) {
1933 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)) {
1945 0 111 if (__builtin_expect(array == NULL, 0)) {
1951 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)) {
1963 0 79 if (__builtin_expect(!array, 0)) {
1969 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)) {
1981 0 79 if (__builtin_expect(!array, 0)) {
1987 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)) {
1999 0 86 if (__builtin_expect(!array, 0)) {
2005 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)) {
2017 0 79 if (__builtin_expect(!array, 0)) {
2023 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)) {
2035 0 67 if (__builtin_expect(!array, 0)) {
2041 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)) {
2053 0 79 if (__builtin_expect(!array, 0)) {
2059 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)) {
2071 6 2 for (int32_t field_index = 0; field_index < fields_length; field_index++) {
2077 3 1 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++) {
2258 0 11 if (object == NULL) {
2264 11 0 if (env->is_type_by_name(env, stack, object, "Byte", 0)) {
2277 0 11 if (object == NULL) {
2283 11 0 if (env->is_type_by_name(env, stack, object, "Short", 0)) {
2296 0 79 if (object == NULL) {
2302 79 0 if (env->is_type_by_name(env, stack, object, "Int", 0)) {
2315 0 11 if (object == NULL) {
2321 11 0 if (env->is_type_by_name(env, stack, object, "Long", 0)) {
2334 0 11 if (object == NULL) {
2340 11 0 if (env->is_type_by_name(env, stack, object, "Float", 0)) {
2353 0 11 if (object == NULL) {
2359 11 0 if (env->is_type_by_name(env, stack, object, "Double", 0)) {
2382 9 3 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
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 17 7 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2431 33 11 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2437 30 10 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 36 13 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2468 3 1 if (stack_index >= args_width) {
2478 3 1 if (stack_index >= args_width) {
2488 425796 220221 if (stack_index >= args_width) {
2498 4 1 if (stack_index >= args_width) {
2508 1 1 if (stack_index >= args_width) {
2518 1 1 if (stack_index >= args_width) {
2528 17725 844 if (stack_index >= args_width) {
2545 88807 401 if (in != NULL) {
2555 18 6 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2561 15 5 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 17 6 for (int32_t stack_index = 0; stack_index < args_width; stack_index++) {
2601 1 514465 if (!object) {
2609 2 514463 if (!method) {
2617 514463 3 if (!*error_id) {