Branch Coverage

levmar-2.5/Axb_core.c
Criterion Covered Total %
branch 108 120 90.0


line true false branch
1001 16 35685 if(!A)
143 66526 if(!A)
1004 16 0 if(buf) free(buf);
143 0 if(buf) free(buf);
1021 16 35669 if(tot_sz>buf_sz){ /* insufficient memory, allocate a "big" memory chunk at once */
143 66383 if(tot_sz>buf_sz){ /* insufficient memory, allocate a "big" memory chunk at once */
1022 0 16 if(buf) free(buf); /* free previously allocated memory */
0 143 if(buf) free(buf); /* free previously allocated memory */
1026 0 16 if(!buf){
0 143 if(!buf){
1045 102327 35685 for(i=0; i
223157 66526 for(i=0; i
1049 226142 35685 for( ; i
583472 66526 for( ; i
1059 102327 35685 for(i=0; i
223157 66526 for(i=0; i
1061 328469 102327 for(j=0; j
806629 223157 for(j=0; j
1062 217053 111416 if((tmp=FABS(a[i*m+j]))>max)
152912 175557 if((tmp=FABS(a[i*m+j]))>max)
515741 290888 if((tmp=FABS(a[i*m+j]))>max)
334327 472302 if((tmp=FABS(a[i*m+j]))>max)
1064 0 102327 if(max==0.0){
0 223157 if(max==0.0){
1075 102327 35685 for(j=0; j
223157 66526 for(j=0; j
1076 113071 102327 for(i=0; i
291736 223157 for(i=0; i
1078 61901 113071 for(k=0; k
180105 291736 for(k=0; k
1083 215398 102327 for(i=j; i
514893 223157 for(i=j; i
1085 174972 215398 for(k=0; k
471841 514893 for(k=0; k
1088 159663 55735 if((tmp=work[i]*FABS(sum))>=max){
118336 97062 if((tmp=work[i]*FABS(sum))>=max){
369315 145578 if((tmp=work[i]*FABS(sum))>=max){
269134 245759 if((tmp=work[i]*FABS(sum))>=max){
1093 16004 86323 if(j!=maxi){
45971 177186 if(j!=maxi){
1094 62948 16004 for(k=0; k
181982 45971 for(k=0; k
1102 0 102327 if(a[j*m+j]==0.0)
0 223157 if(a[j*m+j]==0.0)
1104 66642 35685 if(j!=m-1){
156631 66526 if(j!=m-1){
1106 113071 66642 for(i=j+1; i
291736 156631 for(i=j+1; i
1114 102327 35685 for(i=k=0; i
223157 66526 for(i=k=0; i
1118 66642 35685 if(k!=0)
156631 66526 if(k!=0)
1119 113071 66642 for(j=k-1; j
291736 156631 for(j=k-1; j
1122 35685 0 if(sum!=0.0)
66526 0 if(sum!=0.0)
1127 102327 35685 for(i=m-1; i>=0; --i){
223157 66526 for(i=m-1; i>=0; --i){
1129 113071 102327 for(j=i+1; j
291736 223157 for(j=i+1; j