Branch Coverage

lib/SPVM/Builder/src/spvm_allocator.c
Criterion Covered Total %
branch 12 20 60.0


line true false branch
15 0 10189 assert(allocator->memory_blocks_count_tmp == 0);
16 0 10189 assert(allocator->memory_blocks_count_permanent == 0);
32 0 124336891 if (size < 1) {
53 0 88386850 assert(allocator);
75 6967 33907422 if (length >= capacity) {
104 22675018 7973 for (i = 0; i < allocator->permanent_memory_blocks_length; i++) {
106 0 22675018 assert(permanent_memory_block);
107 22675018 0 if (permanent_memory_block) {
113 0 7973 assert(allocator->memory_blocks_count_tmp == 0);
115 0 7973 assert(allocator->memory_blocks_count_permanent == 0);