Branch Coverage

blib/lib/SystemC/Vregs.pm
Criterion Covered Total %
branch 5 108 4.6


line true false branch
96 0 0 if $regref
105 12 0 if $enumref
114 2 32 if $typeref
124 0 0 if ($$matchref{'name'} =~ /$regexp/)
136 0 0 if $regref
146 0 0 if ($$matchref{'name'} =~ /$regexp/)
156 0 0 defined $$a{'addr'} && !defined($$b{'addr'}) ? :
0 0 unless defined $$a{'addr'} and defined $$b{'addr'} and $$a{'addr'}->Lexicompare($$b{'addr'}) or defined $$a{'addr'} && !defined($$b{'addr'}) ? 1 : 0
163 0 14 unless $$b{'subclass_level'} <=> $$a{'subclass_level'} or $$a{'inherits_level'} <=> $$b{'inherits_level'}
182 0 786 if defined $$self{'attributes'}{$attr}
204 0 0 unless $orig_name =~ /^([^*]*)[*]$/
206 0 0 unless $orig_inh =~ /^([^*]*)[*]$/
234 0 0 if -r $filename
274 0 0 if $SystemC::Vregs::Debug
294 0 0 if (my $prod = $$self{'if_product'})
295 0 0 if (my $itemprod = $itemref->attribute_value('Product'))
299 0 0 if ($itemprod =~ /(.*)\+$/) { }
304 0 0 if $mismatch and $SystemC::Vregs::Debug
320 0 0 if ($mask->bit_test($bit))
340 0 0 unless $b->equal($addr)
344 0 0 if ($mask->bit_test($bit)) { }
345 0 0 unless $one
355 0 0 if $typeref->attribute_value('nofielddefines')
367 0 0 if ($$typeref{'name'} =~ /^R_/)
374 0 0 unless $bitent
375 0 0 if $$bitent{'write'}
377 0 0 if $word
390 0 0 if $bitref->ignore
392 0 0 if $#{$$bitref{'bitlist_range'};}
399 0 0 if ($$typeref{'words'} > 1)
400 0 0 if $#{$$bitref{'bitlist_range_32'};}
421 0 0 if $rnum
428 0 0 if $word == -1 and not $wideword
429 0 0 if $word != -1 and $wideword
430 0 0 if $word >= 0
433 0 0 if $msb < 32 and $word != -1 and $rnum == 0
435 0 0 if ($word == -1 or $msb >= $word * 32 and $msb < $word * 32 + 32 or $lsb >= $word * 32 and $lsb < $word * 32 + 32)
440 0 0 if $word != -1
441 0 0 if $word != -1
462 0 0 if ($wstr eq '' and $$typeref{'attributes'}{'macros_32_bits'})
476 0 0 if ($$typeref{'attributes'}{"macros_${bitwidth}_bits"})
492 0 0 if ($$bitref{'numbits'} > 1 || $typeref->attribute_value('creset_one_bit') and $$bitref{'rst_val'} || $typeref->attribute_value('creset_zero') && defined $$bitref{'rst_val'})
526 0 0 if $skip_if_done and $$pack{'defines_computed'}
553 0 0 if ($range ne '' or 1)
562 0 0 unless ($nofields)
563 0 0 $$regref{'range_ents'}->Lexicompare($bit32) > 0 ? :
573 0 0 unless ($$regref{'spacing'}->equal($bit4) or $nofields)
585 0 0 if (not $nofields and $range ne '' || $$regref{'typeref'}{'words'} > 1 && $$regref{'typeref'}{'words'} > $pack->data_bits / 32)
590 0 0 if ($$regref{'spacing'}->equal($wordspace)) { }
593 0 0 $val != 0 ? :
611 0 0 if (_valid_mask($pack, $addr, $delta)) { }
632 0 0 if (not $nofields and $range ne '' and $$regref{'range_ents'} < 17)
657 0 0 if $str eq ''
668 0 0 if $$modref{'count'} < 2