Branch Coverage

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


line true false branch
15 0 10038 assert(allocator->memory_blocks_count_tmp == 0);
16 0 10038 assert(allocator->memory_blocks_count_permanent == 0);
32 0 122683101 if (size < 1) {
53 0 87188888 assert(allocator);
75 6875 33440089 if (length >= capacity) {
104 22106140 7880 for (i = 0; i < allocator->permanent_memory_blocks_length; i++) {
106 0 22106140 assert(permanent_memory_block);
107 22106140 0 if (permanent_memory_block) {
113 0 7880 assert(allocator->memory_blocks_count_tmp == 0);
115 0 7880 assert(allocator->memory_blocks_count_permanent == 0);