Branch Coverage

lib/SPVM/Builder/src/spvm_list.c
Criterion Covered Total %
branch 33 52 63.4


line true false branch
13 0 7916916 assert(capacity >= 0);
16 5875809 2041107 if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
19 2041107 0 else if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
28 7820155 96761 if (capacity == 0) {
36 5875809 2041107 if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
39 2041107 0 else if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
66 0 76124364 assert(list);
73 4005387 72118977 if (length >= capacity) {
77 2187813 1817574 if (list->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
80 1817574 0 else if (list->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
87 2187813 1817574 if (list->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
90 0 1817574 else if (list->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
107 5875809 0 if (list->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
111 0 0 else if (list->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
142 0 173605705 assert(list);
143 0 173605705 assert(index >= 0);
144 0 173605705 assert(index < list->length);
152 0 10296 assert(list);
153 0 10296 assert(index >= 0);
154 0 10296 assert(index < list->length);
161 0 8707538 assert(list->length >= 0);
163 0 8707538 if (list->length == 0) {
174 31285 1145 while (list->length > 0) {
181 0 126447 assert(list->length >= 0);
183 0 126447 if (list->length == 0) {
188 1579819 126447 for (int32_t i = 0; i < list->length - 1; i++) {