Branch Coverage

lib/SPVM/Builder/src/spvm_dumper.c
Criterion Covered Total %
branch 0 108 0.0


line true false branch
38 0 0 while (op_cur) {
42 0 0 for (i = 0; i < indent; i++) {
48 0 0 if (op_cur->id == SPVM_OP_C_ID_CONSTANT) {
50 0 0 if (constant->type->dimension == 0) {
73 0 0 else if (constant->type->dimension == 1 && constant->type->basic_type->id == SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE) {
0 0 else if (constant->type->dimension == 1 && constant->type->basic_type->id == SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE) {
78 0 0 else if (id == SPVM_OP_C_ID_CLASS_VAR) {
83 0 0 else if (id == SPVM_OP_C_ID_VAR) {
86 0 0 if (var->var_decl) {
93 0 0 else if (id == SPVM_OP_C_ID_CLASS_VAR_ACCESS) {
98 0 0 else if (id == SPVM_OP_C_ID_FIELD_ACCESS) {
100 0 0 if (field_access->op_name) {
103 0 0 if (field_access->field) {
107 0 0 else if (id == SPVM_OP_C_ID_NAME) {
110 0 0 else if (id == SPVM_OP_C_ID_TYPE) {
111 0 0 if (op_cur->uv.type) {
119 0 0 else if (id == SPVM_OP_C_ID_BLOCK) {
120 0 0 if (op_cur->uv.block->id == SPVM_BLOCK_C_ID_IF) {
123 0 0 else if (op_cur->uv.block->id == SPVM_BLOCK_C_ID_ELSE) {
126 0 0 else if (op_cur->uv.block->id == SPVM_BLOCK_C_ID_LOOP_INIT) {
129 0 0 else if (op_cur->uv.block->id == SPVM_BLOCK_C_ID_LOOP_STATEMENTS) {
132 0 0 else if (op_cur->uv.block->id == SPVM_BLOCK_C_ID_SWITCH) {
135 0 0 else if (op_cur->uv.block->id == SPVM_BLOCK_C_ID_METHOD) {
138 0 0 else if (op_cur->uv.block->id == SPVM_BLOCK_C_ID_EVAL) {
146 0 0 if (op_cur->first) {
156 0 0 if (op_cur == op_base) {
162 0 0 if (op_cur->moresib) {
172 0 0 if (finish) {
180 0 0 for (int32_t i = 0; i < basic_types->length; i++) {
186 0 0 if (strncmp(basic_type->name, "SPVM", 4) == 0) {
196 0 0 for (j = 0; j < fields->length; j++) {
204 0 0 for (j = 0; j < basic_type->methods->length; j++) {
214 0 0 for (int32_t i = 0; i < basic_types->length; i++) {
220 0 0 if (strncmp(basic_type->name, "SPVM", 4) == 0) {
227 0 0 for (j = 0; j < basic_type->methods->length; j++) {
238 0 0 for (int32_t i = 0; i <= opcode_list->length; i++) {
248 0 0 if (constant->type->dimension == 0) {
270 0 0 else if (constant->type->dimension == 1) {
271 0 0 if (constant->type->basic_type->id == SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE) {
279 0 0 if (method) {
282 0 0 if (method->op_name) {
293 0 0 if (method->op_block) {
298 0 0 for (i = 0; i < var_decls->length; i++) {
317 0 0 if (method) {
319 0 0 if (method->op_block) {
324 0 0 for (i = 0; i < var_decls->length; i++) {
342 0 0 if (field) {
361 0 0 if (var_decl) {
371 0 0 if (SPVM_TYPE_is_numeric_type(compiler, type->basic_type->id, type->dimension, type->flag)) {
400 0 0 else if (SPVM_TYPE_is_object_type(compiler, type->basic_type->id, type->dimension, type->flag)) {
403 0 0 else if (SPVM_TYPE_is_ref_type(compiler, type->basic_type->id, type->dimension, type->flag)) {
406 0 0 else if (SPVM_TYPE_is_mulnum_type(compiler, type->basic_type->id, type->dimension, type->flag)) {
408 0 0 assert(first_field);
411 0 0 assert(SPVM_TYPE_is_numeric_type(compiler, field_type->basic_type->id, field_type->dimension, field_type->flag));