Branch Coverage

blib/lib/SystemC/Vregs/Output/Class.pm
Criterion Covered Total %
branch 4 176 2.2


line true false branch
70 2 0 $c ? :
74 0 15 if length $$fieldref{'name'} > $width
79 15 0 if ($$pack{'comments'})
87 0 2 if ($$typeref{'bits'} == 32) { }
94 0 0 if ($$fieldref{'rst_val'} >= (1 << $$typeref{'bits'}) - 1)
117 0 0 if $desc and not $typeref->attribute_value('descfunc')
119 0 0 $desc ? :
124 0 0 if $desc and $$fieldref{'omit_description'}
125 0 0 if ($did_values{$$fieldref{'rst_val'}}) { }
130 0 0 $desc ? :
146 0 0 if (not defined $last or $$fieldref{'rst_val'} ne $$last{'rst_val'})
147 0 0 if ($last)
148 0 0 if ($$fieldref{'rst_val'} == $$last{'rst_val'} + 1) { }
164 0 0 if ($next_field and $next_values{$inc}{$field} eq $next_values{$inc}{$next_field}) { }
194 0 0 if (($$typeref{'words'} || 0) > 1) { }
227 0 0 $c ? :
228 0 0 $c ? :
229 0 0 $c ? :
235 0 0 $netorder ? :
236 0 0 $netorder ? :
237 0 0 $netorder ? :
238 0 0 $netorder ? :
239 0 0 $netorder ? :
240 0 0 $netorder ? :
243 0 0 if $$typeref{'inherits'}
244 0 0 if $c
247 0 0 if ($c) { }
249 0 0 $stretchable ? :
260 0 0 if ($inh ne '') { }
261 0 0 unless my $inhType = $$typeref{'inherits_typeref'}
265 0 0 if ($inh_netorder ne $netorder)
271 0 0 unless defined $$inhType{'words'}
272 0 0 if (($$typeref{'words'} || 0) > $$inhType{'words'})
275 0 0 unless ($inh_stretchable)
286 0 0 unless ($c)
287 0 0 $stretchable ? :
295 0 0 unless ($stretchable)
302 0 0 unless ($c)
311 0 0 if ($clname =~ /^R_/)
320 0 0 unless $bitent
321 0 0 if $$bitent{'write'}
325 0 0 if ($$typeref{'words'} > 0 and $$typeref{'words'} < 2 and not $c) { }
345 0 0 if ($$typeref{'inherits'})
346 0 0 if ($c) { }
357 0 0 $c ? :
360 0 0 if $bitref->ignore
364 0 0 if $$bitref{'cast_needed'}
365 0 0 if $c and $typecast ne ''
366 0 0 if $$bitref{'type'} eq 'void*'
367 0 0 $$bitref{'numbits'} > 32 ? :
371 0 0 if ($$bitref{'numbits'} < 32 and $$bitref{'numbits'} > 1)
373 0 0 $L ? :
383 0 0 unless int $msb / 32 == $word
385 0 0 if $nbits == 32
387 0 0 if $high_mod == 31 and $low_mod == 0
389 0 0 if $extract ne ''
390 0 0 if ($high_mod == 31 and $low_mod == 0 and $srcbit == 0) { }
396 0 0 if $srcbit == 0
398 0 0 if $srcbit == 0
399 0 0 $tobit ? :
402 0 0 if $frombit
403 0 0 if $$bitref{'type'} ne 'uint32_t'
415 0 0 $typEnd < 24 ? :
0 0 $typEnd < 16 ? :
419 0 0 if ($typeref->attribute_value('public_rdwr_accessors') and $$fl{'private'} and $$fl{'CPP'})
421 0 0 $typEnd < 24 ? :
0 0 $typEnd < 16 ? :
430 0 0 if ($typeref->attribute_value('public_rdwr_accessors') and $$fl{'private'} and $$fl{'CPP'})
438 0 0 if ($$bitref{'rst'} ne 'X')
440 0 0 if $rst =~ /^FW-?0$/
441 0 0 if ($rst =~ /^[a-z]/i and $$bitref{'type'}) { }
0 0 elsif ($rst =~ /^0x([0-9a-f_]+)$/i) { }
442 0 0 if ($c) { }
458 0 0 unless ($c)
465 0 0 if ($words >= 8) { }
470 0 0 if $i != 0
483 0 0 unless ($c)
525 0 0 if $bitref->ignore
527 0 0 if ($$typeref{'inherits_typeref'} and $$typeref{'inherits_typeref'}->find_bit($$bitref{'name'})) { }
0 0 elsif ($fields_lcFirst) { }
549 0 0 if ($SystemC::Vregs::Do_Dump)
550 0 0 $#dumps > 0 || $$typeref{'inherits'} ? :
573 0 0 unless my $pack = $params{'pack'}
602 0 0 if $typeref->attribute_value('nofielddefines')
616 0 0 unless my $pack = $params{'pack'}
645 0 0 if $typeref->attribute_value('nofielddefines')
658 0 0 unless my $pack = $params{'pack'}
676 0 0 if $typeref->attribute_value('nofielddefines')