M4/Impl/Default/Eval.pm

filter: Statementstmt 93.3% 1388 / 1487 Branchbran 44.6% 276 / 618 Conditioncond 27.7% 79 / 285 MC/DCmcdc 1.0% 2 / 190 Subroutinesub 98.2% 273 / 278 Podpod n/a totaltotal 70.6% 2018 / 2858 CC 405 SCAR 29.6
CC
405
Cov
73%
_le
120.1
_ne
120.1
_band
107.4
CRAP 19.4
« M4/Impl/Input.pm ↑ Summary M4/Impl/Default/BaseConversion.pm »
1 6 ▶use Moops;
Subroutine __ANON__: called CC=1 SCAR=0.0
2  
3 # PODNAME: MarpaX::Languages::M4::Impl::Default::Eval
4  
5 # ABSTRACT: Eval Marpa actions
6 4  
7 6 ▶class MarpaX::Languages::M4::Impl::Default::Eval {
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.2
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
8 3 ▶ use Bit::Vector;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
9 2 ▶ use Types::Common::Numeric -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
10 2 ▶ use MarpaX::Languages::M4::Impl::Default::BaseConversion;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
11  
12 2 our $VERSION = '0.020'; # VERSION
13  
14 2 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
15  
16 #
17 # Marpa dislike exceptions throws as objects, because of wanted
18 # backward compatibility with very old versions of Perl.
19 # So we will use Marpa::R2::Context::bail() method
20 #
21  
22 has bits => {
23 is => 'ro',
24 isa => PositiveInt,
25 168 ▶ default => sub {$MarpaX::Languages::M4::Impl::Default::INTEGER_BITS}
Subroutine __ANON__: called CC=1 SCAR=0.0
26 2 };
27  
28 has SELF => {
29 is => 'ro',
30 isa => ConsumerOf ['MarpaX::Languages::M4::Role::Impl'],
31 168 ▶ default => sub {$MarpaX::Languages::M4::Impl::Default::SELF}
Subroutine __ANON__: called CC=1 SCAR=0.0
32 2 };
33  
34 3 ▶ method _eval (ConsumerOf['Bit::Vector'] $expression) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _eval: called CC=8 SCAR=21.6
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 5 branches
BranchTrueFalseTotal
@_ ? : 162 0 162
if @_ != 1 0 162 162
$#_ >= 0 ? : 162 0 162
if ($#_ >= 0) 162 0 162
do { builtin::blessed($expression) and do { my $method = $expression->can("DOES") || $expression->can("isa"); $expression->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression, "exception_class", "Error::TypeTiny::Assertion") 162 0 162
Condition33%2/6
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
!ll&&!rl&&r
00162
$expression->can('DOES') || $expression->can('isa')
l!l&&r!l&&!r
16200
MC/DC0%0/2
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
builtin::blessed($expression) do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
MC/DC0%0/2
$expression->can('DOES') || $expression->can('isa')
$expression->can('DOES') $expression->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression)B= do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression->can('DOES')B= $expression->can('isa')
ABresult
1X1
011
000
35 162 return $expression;
36 }
37  
38 3 ▶ method _invalidOp (Str $op) {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine _invalidOp: called CC=6 SCAR=18.1
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 5 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 1 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
39 2 Marpa::R2::Context::bail( 'Invalid operator in '
40 . $self->SELF->impl_quote('eval') . ': '
41 . $self->SELF->impl_quote($op) );
42 }
43  
44 3 ▶ method _noop (Str $op, ConsumerOf['Bit::Vector'] $expression) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _noop: called CC=11 SCAR=24.9
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 8 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 2 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 1 ? : 2 0 2
if ($#_ >= 1) 2 0 2
do { builtin::blessed($expression) and do { my $method = $expression->can("DOES") || $expression->can("isa"); $expression->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
Condition33%2/6
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression->can('DOES') || $expression->can('isa')
l!l&&r!l&&!r
200
MC/DC0%0/2
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
builtin::blessed($expression) do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
MC/DC0%0/2
$expression->can('DOES') || $expression->can('isa')
$expression->can('DOES') $expression->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression)B= do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression->can('DOES')B= $expression->can('isa')
ABresult
1X1
011
000
45 2 return $expression;
46 }
47  
48 3 ▶ method _lneg (Str $op, ConsumerOf['Bit::Vector'] $expression) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _lneg: called CC=11 SCAR=24.9
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 8 branches
BranchTrueFalseTotal
@_ ? : 3 0 3
if @_ != 2 0 3 3
$#_ >= 0 ? : 3 0 3
if ($#_ >= 0) 3 0 3
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 3 0 3
$#_ >= 1 ? : 3 0 3
if ($#_ >= 1) 3 0 3
do { builtin::blessed($expression) and do { my $method = $expression->can("DOES") || $expression->can("isa"); $expression->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression, "exception_class", "Error::TypeTiny::Assertion") 3 0 3
Condition33%2/6
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
!ll&&!rl&&r
003
$expression->can('DOES') || $expression->can('isa')
l!l&&r!l&&!r
300
MC/DC0%0/2
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
builtin::blessed($expression) do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
MC/DC0%0/2
$expression->can('DOES') || $expression->can('isa')
$expression->can('DOES') $expression->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression)B= do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression->can('DOES')B= $expression->can('isa')
ABresult
1X1
011
000
49 3 return Bit::Vector->new_Dec( $self->bits, $expression->is_empty() );
50 }
51  
52 3 ▶ method _exp (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _exp: called CC=19 SCAR=30.8
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 21 0 21
if @_ != 3 0 21 21
$#_ >= 0 ? : 21 0 21
if ($#_ >= 0) 21 0 21
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 21 0 21
$#_ >= 1 ? : 21 0 21
if ($#_ >= 1) 21 0 21
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 21 0 21
$#_ >= 2 ? : 21 0 21
if ($#_ >= 2) 21 0 21
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 21 0 21
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
0021
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
2100
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
0021
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
2100
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
53 21 ▶ if ( $expression2->to_Dec() < 0 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($expression2->to_Dec < 0) 1 20 21
54 1 Marpa::R2::Context::bail( 'Negative exponent in '
55 . $self->SELF->impl_quote('eval') . ': '
56 . $self->SELF->impl_quote( $expression1->to_Dec ) . ' '
57 . $self->SELF->impl_quote($op) . ' '
58 . $self->SELF->impl_quote( $expression2->to_Dec ) );
59 }
60  
61 20 ▶ if ( $expression1->to_Dec() == 0 && $expression2->to_Dec() == 0 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($expression1->to_Dec == 0 and $expression2->to_Dec == 0) 1 19 20
Condition100%3/3
$expression1->to_Dec == 0 and $expression2->to_Dec == 0
!ll&&!rl&&r
1811
MC/DC100%2/2
$expression1->to_Dec == 0 and $expression2->to_Dec == 0
$expression1->to_Dec == 0 $expression2->to_Dec == 0
Truth table100%3/3
A and B
A= $expression1->to_Dec == 0B= $expression2->to_Dec == 0
ABresult
0X0
100
111
62 1 Marpa::R2::Context::bail( 'Divide by zero in '
63 . $self->SELF->impl_quote('eval') . ': '
64 . $self->SELF->impl_quote( $expression1->to_Dec ) . ' '
65 . $self->SELF->impl_quote($op) . ' '
66 . $self->SELF->impl_quote( $expression2->to_Dec ) );
67 }
68  
69 19 my $s = $expression1->Shadow;
70 19 $s->Power( $expression1, $expression2 );
71 19 return $s;
72 }
73  
74 3 ▶ method _neg (Str $op, ConsumerOf['Bit::Vector'] $expression) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _neg: called CC=11 SCAR=24.8
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 8 branches
BranchTrueFalseTotal
@_ ? : 13 0 13
if @_ != 2 0 13 13
$#_ >= 0 ? : 13 0 13
if ($#_ >= 0) 13 0 13
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 13 0 13
$#_ >= 1 ? : 13 0 13
if ($#_ >= 1) 13 0 13
do { builtin::blessed($expression) and do { my $method = $expression->can("DOES") || $expression->can("isa"); $expression->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression, "exception_class", "Error::TypeTiny::Assertion") 13 0 13
Condition33%2/6
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
!ll&&!rl&&r
0013
$expression->can('DOES') || $expression->can('isa')
l!l&&r!l&&!r
1300
MC/DC0%0/2
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
builtin::blessed($expression) do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
MC/DC0%0/2
$expression->can('DOES') || $expression->can('isa')
$expression->can('DOES') $expression->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression)B= do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression->can('DOES')B= $expression->can('isa')
ABresult
1X1
011
000
75 13 my $s = $expression->Shadow;
76 13 $s->Negate($expression);
77 13 return $s;
78 }
79  
80 3 ▶ method _bneg (Str $op, ConsumerOf['Bit::Vector'] $expression) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _bneg: called CC=11 SCAR=24.8
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 8 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 2 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 1 ? : 2 0 2
if ($#_ >= 1) 2 0 2
do { builtin::blessed($expression) and do { my $method = $expression->can("DOES") || $expression->can("isa"); $expression->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
Condition33%2/6
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression->can('DOES') || $expression->can('isa')
l!l&&r!l&&!r
200
MC/DC0%0/2
builtin::blessed($expression) && do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
builtin::blessed($expression) do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
MC/DC0%0/2
$expression->can('DOES') || $expression->can('isa')
$expression->can('DOES') $expression->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression)B= do { my $method = $expression->can('DOES') || $expression->can('isa'); $expression->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression->can('DOES')B= $expression->can('isa')
ABresult
1X1
011
000
81 2 my $s = $expression->Shadow;
82 2 $s->Complement($expression);
83 2 return $s;
84 }
85  
86 3 ▶ method _mul (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _mul: called CC=16 SCAR=29.3
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 12 0 12
if @_ != 3 0 12 12
$#_ >= 0 ? : 12 0 12
if ($#_ >= 0) 12 0 12
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 12 0 12
$#_ >= 1 ? : 12 0 12
if ($#_ >= 1) 12 0 12
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 12 0 12
$#_ >= 2 ? : 12 0 12
if ($#_ >= 2) 12 0 12
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 12 0 12
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
0012
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
1200
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
0012
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
1200
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
87 12 my $s = $expression1->Shadow;
88 12 $s->Multiply( $expression1, $expression2 );
89 12 return $s;
90 }
91  
92 3 ▶ method _div (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _div: called CC=16 SCAR=29.2
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 5 0 5
if @_ != 3 0 5 5
$#_ >= 0 ? : 5 0 5
if ($#_ >= 0) 5 0 5
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 5 0 5
$#_ >= 1 ? : 5 0 5
if ($#_ >= 1) 5 0 5
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 5 0 5
$#_ >= 2 ? : 5 0 5
if ($#_ >= 2) 5 0 5
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 5 0 5
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
005
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
500
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
005
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
500
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
93 5 my $s = $expression1->Shadow;
94 5 ▶ try {
Subroutine __ANON__: called CC=1 SCAR=0.0
95 5 $s->Divide( $expression1, $expression2, $expression1->Shadow );
96 }
97 2 ▶ catch {
Subroutine __ANON__: called CC=1 SCAR=0.0
98 2 $s = undef;
99 5 };
100 5 return $s;
101 }
102  
103 3 ▶ method _mod (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _mod: called CC=16 SCAR=29.2
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 5 0 5
if @_ != 3 0 5 5
$#_ >= 0 ? : 5 0 5
if ($#_ >= 0) 5 0 5
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 5 0 5
$#_ >= 1 ? : 5 0 5
if ($#_ >= 1) 5 0 5
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 5 0 5
$#_ >= 2 ? : 5 0 5
if ($#_ >= 2) 5 0 5
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 5 0 5
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
005
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
500
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
005
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
500
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
104 5 my $s = $expression1->Shadow;
105 5 ▶ try {
Subroutine __ANON__: called CC=1 SCAR=0.0
106 5 $expression1->Shadow->Divide( $expression1, $expression2, $s );
107 }
108 2 ▶ catch {
Subroutine __ANON__: called CC=1 SCAR=0.0
109 2 $s = undef;
110 5 };
111 5 return $s;
112 }
113  
114 3 ▶ method _add (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _add: called CC=16 SCAR=29.3
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 82 0 82
if @_ != 3 0 82 82
$#_ >= 0 ? : 82 0 82
if ($#_ >= 0) 82 0 82
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 82 0 82
$#_ >= 1 ? : 82 0 82
if ($#_ >= 1) 82 0 82
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 82 0 82
$#_ >= 2 ? : 82 0 82
if ($#_ >= 2) 82 0 82
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 82 0 82
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
0082
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
8200
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
0082
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
8200
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
115 82 my $s = $expression1->Shadow;
116 82 $s->add( $expression1, $expression2, 0 );
117 82 return $s;
118 }
119  
120 3 ▶ method _sub (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _sub: called CC=16 SCAR=29.3
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 21 0 21
if @_ != 3 0 21 21
$#_ >= 0 ? : 21 0 21
if ($#_ >= 0) 21 0 21
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 21 0 21
$#_ >= 1 ? : 21 0 21
if ($#_ >= 1) 21 0 21
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 21 0 21
$#_ >= 2 ? : 21 0 21
if ($#_ >= 2) 21 0 21
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 21 0 21
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
0021
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
2100
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
0021
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
2100
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
121 21 my $s = $expression1->Shadow;
122 21 $s->subtract( $expression1, $expression2, 0 );
123 21 return $s;
124 }
125  
126 # From GNU M4 source code:
127 # Minimize undefined C behavior (shifting by a negative number,
128 # shifting by the width or greater, left shift overflow, or
129 # right shift of a negative number). Implement Java 32-bit
130 # wrap-around semantics. This code assumes that the
131 # implementation-defined overflow when casting unsigned to
132 # a signed is a silent twos-complement wrap-around. */
133 3 ▶ method _left (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _left: called CC=16 SCAR=29.4
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 1 0 1
if @_ != 3 0 1 1
$#_ >= 0 ? : 1 0 1
if ($#_ >= 0) 1 0 1
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
$#_ >= 1 ? : 1 0 1
if ($#_ >= 1) 1 0 1
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
$#_ >= 2 ? : 1 0 1
if ($#_ >= 2) 1 0 1
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
001
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
100
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
001
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
100
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
134 1 $expression1->Insert( 0, $expression2->to_Dec() % $self->bits );
135 1 return $expression1;
136 }
137  
138 3 ▶ method _right (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _right: called CC=18 SCAR=30.7
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 3 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 1 ? : 2 0 2
if ($#_ >= 1) 2 0 2
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 2 ? : 2 0 2
if ($#_ >= 2) 2 0 2
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
200
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
200
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
139 2 my $u1 = $expression1->Clone;
140 2 ▶ if ( $expression1->Sign < 0 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($expression1->Sign < 0) 2 0 2
141 2 $u1->Complement($u1);
142 }
143 2 $u1->Delete( 0, $expression2->to_Dec() % $self->bits );
144 2 ▶ if ( $expression1->Sign < 0 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($expression1->Sign < 0) 2 0 2
145 2 $u1->Complement($u1);
146 }
147 2 return $u1;
148 }
149  
150 3 ▶ method _gt (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _gt: called CC=17 SCAR=30.0
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 13 0 13
if @_ != 3 0 13 13
$#_ >= 0 ? : 13 0 13
if ($#_ >= 0) 13 0 13
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 13 0 13
$#_ >= 1 ? : 13 0 13
if ($#_ >= 1) 13 0 13
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 13 0 13
$#_ >= 2 ? : 13 0 13
if ($#_ >= 2) 13 0 13
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 13 0 13
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
0013
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
1300
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
0013
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
1300
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
151 13 ▶ return Bit::Vector->new_Dec( $self->bits,
Branch: 1 branch
BranchTrueFalseTotal
$expression1->Compare($expression2) > 0 ? : 11 2 13
152 ( $expression1->Compare($expression2) > 0 ) ? 1 : 0 );
153 }
154  
155 3 ▶ method _ge (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _ge: called CC=17 SCAR=30.3
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 1 0 1
if @_ != 3 0 1 1
$#_ >= 0 ? : 1 0 1
if ($#_ >= 0) 1 0 1
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
$#_ >= 1 ? : 1 0 1
if ($#_ >= 1) 1 0 1
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
$#_ >= 2 ? : 1 0 1
if ($#_ >= 2) 1 0 1
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
001
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
100
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
001
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
100
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
156 1 ▶ return Bit::Vector->new_Dec( $self->bits,
Branch: 1 branch
BranchTrueFalseTotal
$expression1->Compare($expression2) >= 0 ? : 1 0 1
157 ( $expression1->Compare($expression2) >= 0 ) ? 1 : 0 );
158 }
159  
160 3 ▶ method _lt (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _lt: called CC=17 SCAR=30.3
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 1 0 1
if @_ != 3 0 1 1
$#_ >= 0 ? : 1 0 1
if ($#_ >= 0) 1 0 1
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
$#_ >= 1 ? : 1 0 1
if ($#_ >= 1) 1 0 1
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
$#_ >= 2 ? : 1 0 1
if ($#_ >= 2) 1 0 1
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
001
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
100
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
001
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
100
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
161 1 ▶ return Bit::Vector->new_Dec( $self->bits,
Branch: 1 branch
BranchTrueFalseTotal
$expression1->Compare($expression2) < 0 ? : 1 0 1
162 ( $expression1->Compare($expression2) < 0 ) ? 1 : 0 );
163 }
164  
165 0 ▶ method _le (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine _le: not called CC=17 SCAR=47.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 0 0 0
if @_ != 3 0 0 0
$#_ >= 0 ? : 0 0 0
if ($#_ >= 0) 0 0 0
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
$#_ >= 1 ? : 0 0 0
if ($#_ >= 1) 0 0 0
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
$#_ >= 2 ? : 0 0 0
if ($#_ >= 2) 0 0 0
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
Condition0%0/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
000
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
000
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
000
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
000
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table0%0/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table0%0/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table0%0/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table0%0/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
166 0 ▶ return Bit::Vector->new_Dec( $self->bits,
Branch: 1 branch
BranchTrueFalseTotal
$expression1->Compare($expression2) <= 0 ? : 0 0 0
167 ( $expression1->Compare($expression2) <= 0 ) ? 1 : 0 );
168 }
169  
170 3 ▶ method _eq (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _eq: called CC=17 SCAR=30.0
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 3 0 3
if @_ != 3 0 3 3
$#_ >= 0 ? : 3 0 3
if ($#_ >= 0) 3 0 3
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 3 0 3
$#_ >= 1 ? : 3 0 3
if ($#_ >= 1) 3 0 3
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 3 0 3
$#_ >= 2 ? : 3 0 3
if ($#_ >= 2) 3 0 3
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 3 0 3
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
003
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
300
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
003
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
300
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
171 3 ▶ return Bit::Vector->new_Dec( $self->bits,
Branch: 1 branch
BranchTrueFalseTotal
$expression1->Compare($expression2) == 0 ? : 2 1 3
172 ( $expression1->Compare($expression2) == 0 ) ? 1 : 0 );
173 }
174  
175 3 ▶ method _eq2 (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _eq2: called CC=16 SCAR=29.4
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 1 0 1
if @_ != 3 0 1 1
$#_ >= 0 ? : 1 0 1
if ($#_ >= 0) 1 0 1
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
$#_ >= 1 ? : 1 0 1
if ($#_ >= 1) 1 0 1
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
$#_ >= 2 ? : 1 0 1
if ($#_ >= 2) 1 0 1
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
001
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
100
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
001
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
100
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
176 1 $self->SELF->logger_warn('Warning: recommend == instead of =');
177 1 return $self->_eq( $expression1, $op, $expression2 );
178 }
179  
180 0 ▶ method _ne (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine _ne: not called CC=17 SCAR=47.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 0 0 0
if @_ != 3 0 0 0
$#_ >= 0 ? : 0 0 0
if ($#_ >= 0) 0 0 0
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
$#_ >= 1 ? : 0 0 0
if ($#_ >= 1) 0 0 0
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
$#_ >= 2 ? : 0 0 0
if ($#_ >= 2) 0 0 0
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
Condition0%0/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
000
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
000
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
000
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
000
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table0%0/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table0%0/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table0%0/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table0%0/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
181 0 ▶ return Bit::Vector->new_Dec( $self->bits,
Branch: 1 branch
BranchTrueFalseTotal
$expression1->Compare($expression2) != 0 ? : 0 0 0
182 ( $expression1->Compare($expression2) != 0 ) ? 1 : 0 );
183 }
184  
185 0 ▶ method _band (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine BEGIN: called CC=1 SCAR=2.9
Subroutine _band: not called CC=16 SCAR=46.8
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Subroutine __ANON__: called CC=1 SCAR=2.9
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 0 0 0
if @_ != 3 0 0 0
$#_ >= 0 ? : 0 0 0
if ($#_ >= 0) 0 0 0
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
$#_ >= 1 ? : 0 0 0
if ($#_ >= 1) 0 0 0
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
$#_ >= 2 ? : 0 0 0
if ($#_ >= 2) 0 0 0
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
Condition0%0/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
000
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
000
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
000
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
000
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table0%0/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table0%0/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table0%0/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table0%0/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
186 0 my $s = $expression1->Shadow;
187 0 $s->Intersection( $expression1, $expression2 );
188 0 return $s;
189 }
190  
191 3 ▶ method _bxor (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _bxor: called CC=16 SCAR=29.3
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 3 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 1 ? : 2 0 2
if ($#_ >= 1) 2 0 2
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 2 ? : 2 0 2
if ($#_ >= 2) 2 0 2
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
200
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
200
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
192 2 my $s = $expression1->Shadow;
193 2 $s->ExclusiveOr( $expression1, $expression2 );
194 2 return $s;
195 }
196  
197 3 ▶ method _bor (ConsumerOf['Bit::Vector'] $expression1, Str $op, ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine BEGIN: called CC=1 SCAR=0.1
Subroutine _bor: called CC=16 SCAR=29.3
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Subroutine __ANON__: called CC=1 SCAR=0.1
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 3 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 1 ? : 2 0 2
if ($#_ >= 1) 2 0 2
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 2 ? : 2 0 2
if ($#_ >= 2) 2 0 2
do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
Condition33%4/12
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
200
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
200
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
198 2 my $s = $expression1->Shadow;
199 2 $s->Union( $expression1, $expression2 );
200 2 return $s;
201 }
202 #
203 # M4 is short-circuiting valid syntax in case of '||' and '&&', so that things like
204 # 2 || 1 / 0 will not produce a fatal error. To produce such a behaviour
205 # only '||' or '&&' specific actions will be able to handle eventual undef value from
206 # prior actions
207 #
208 0 ▶ method _land (ConsumerOf['Bit::Vector'] $expression1, Str $op, Undef|ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.3
Subroutine BEGIN: called CC=1 SCAR=0.3
Subroutine BEGIN: called CC=1 SCAR=0.3
Subroutine BEGIN: called CC=1 SCAR=0.3
Subroutine _land: called CC=21 SCAR=35.9
Subroutine __ANON__: called CC=1 SCAR=0.3
Subroutine __ANON__: called CC=1 SCAR=0.3
Subroutine __ANON__: called CC=1 SCAR=0.3
Subroutine __ANON__: called CC=1 SCAR=0.3
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 3 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 1 ? : 2 0 2
if ($#_ >= 1) 2 0 2
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 2 ? : 2 0 2
if ($#_ >= 2) 2 0 2
not defined $expression2 or do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(106, "Undef|ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
Condition20%3/15
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
200
not defined $expression2 or do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } }
l!l&&r!l&&!r
200
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
000
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
000
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
not defined $expression2 or do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } }
not defined $expression2 do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } }
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
not(A) or B
A= not defined $expression2B= do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } }
ABresult
1X1
011
000
Truth table0%0/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table0%0/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
209 2 my $rc;
210 2 ▶ if ( !Undef->check($expression2) ) {
Branch: 2 branches
BranchTrueFalseTotal
if (not &Undef()->check($expression2)) { } 0 2 2
elsif ($expression1->is_empty) { } 1 1 2
211 0 ▶ $rc = Bit::Vector->new_Dec( $self->bits,
Branch: 1 branch
BranchTrueFalseTotal
!($expression1->is_empty || $expression2->is_empty) ? : 0 0 0
Condition0%0/3
$expression1->is_empty || $expression2->is_empty
l!l&&r!l&&!r
000
MC/DC0%0/2
$expression1->is_empty || $expression2->is_empty
$expression1->is_empty $expression2->is_empty
Truth table0%0/3
A || B
A= $expression1->is_emptyB= $expression2->is_empty
ABresult
1X1
011
000
212 ( !$expression1->is_empty() && !$expression2->is_empty() )
213 ? 1
214 : 0 );
215 }
216 elsif ( $expression1->is_empty() ) {
217 #
218 # Already zero
219 #
220 1 $rc = $expression1;
221 }
222 else {
223 1 Marpa::R2::Context::bail( 'Undefined right-hand expression in '
224 . $self->SELF->impl_quote('eval') . ': '
225 . $self->SELF->impl_quote( $expression1->to_Dec )
226 . ' '
227 . $self->SELF->impl_quote($op) );
228 }
229 1 return $rc;
230 }
231  
232 0 ▶ method _lor (ConsumerOf['Bit::Vector'] $expression1, Str $op, Undef|ConsumerOf['Bit::Vector'] $expression2) {
Subroutine BEGIN: called CC=1 SCAR=0.3
Subroutine BEGIN: called CC=1 SCAR=0.3
Subroutine BEGIN: called CC=1 SCAR=0.3
Subroutine BEGIN: called CC=1 SCAR=0.3
Subroutine _lor: called CC=21 SCAR=35.9
Subroutine __ANON__: called CC=1 SCAR=0.3
Subroutine __ANON__: called CC=1 SCAR=0.3
Branch: 11 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 3 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
do { builtin::blessed($expression1) and do { my $method = $expression1->can("DOES") || $expression1->can("isa"); $expression1->$method("Bit::Vector") } } or _failed_check(105, "ConsumerOf[\"Bit::Vector\"]", $expression1, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 1 ? : 2 0 2
if ($#_ >= 1) 2 0 2
Type::Tiny::XS::Str($op) or _failed_check(9, "Str", $op, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
$#_ >= 2 ? : 2 0 2
if ($#_ >= 2) 2 0 2
not defined $expression2 or do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } } or _failed_check(107, "Undef|ConsumerOf[\"Bit::Vector\"]", $expression2, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
Condition20%3/15
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
!ll&&!rl&&r
002
$expression1->can('DOES') || $expression1->can('isa')
l!l&&r!l&&!r
200
not defined $expression2 or do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } }
l!l&&r!l&&!r
200
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
!ll&&!rl&&r
000
$expression2->can('DOES') || $expression2->can('isa')
l!l&&r!l&&!r
000
MC/DC0%0/2
builtin::blessed($expression1) && do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
builtin::blessed($expression1) do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
MC/DC0%0/2
$expression1->can('DOES') || $expression1->can('isa')
$expression1->can('DOES') $expression1->can('isa')
MC/DC0%0/2
not defined $expression2 or do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } }
not defined $expression2 do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } }
MC/DC0%0/2
builtin::blessed($expression2) && do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
builtin::blessed($expression2) do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
MC/DC0%0/2
$expression2->can('DOES') || $expression2->can('isa')
$expression2->can('DOES') $expression2->can('isa')
Truth table33%1/3
A && B
A= builtin::blessed($expression1)B= do { my $method = $expression1->can('DOES') || $expression1->can('isa'); $expression1->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $expression1->can('DOES')B= $expression1->can('isa')
ABresult
1X1
011
000
Truth table33%1/3
not(A) or B
A= not defined $expression2B= do { builtin::blessed($expression2) and do { my $method = $expression2->can("DOES") || $expression2->can("isa"); $expression2->$method("Bit::Vector") } }
ABresult
1X1
011
000
Truth table0%0/3
A && B
A= builtin::blessed($expression2)B= do { my $method = $expression2->can('DOES') || $expression2->can('isa'); $expression2->$method('Bit::Vector') }
ABresult
0X0
100
111
Truth table0%0/3
A || B
A= $expression2->can('DOES')B= $expression2->can('isa')
ABresult
1X1
011
000
233 2 my $rc;
234 2 ▶ if ( !Undef->check($expression2) ) {
Branch: 2 branches
BranchTrueFalseTotal
if (not &Undef()->check($expression2)) { } 0 2 2
elsif (not $expression1->is_empty) { } 1 1 2
235 0 ▶ $rc = Bit::Vector->new_Dec( $self->bits,
Branch: 1 branch
BranchTrueFalseTotal
!($expression1->is_empty && $expression2->is_empty) ? : 0 0 0
Condition0%0/3
$expression1->is_empty && $expression2->is_empty
!ll&&!rl&&r
000
MC/DC0%0/2
$expression1->is_empty && $expression2->is_empty
$expression1->is_empty $expression2->is_empty
Truth table0%0/3
A && B
A= $expression1->is_emptyB= $expression2->is_empty
ABresult
0X0
100
111
236 ( !$expression1->is_empty() || !$expression2->is_empty() )
237 ? 1
238 : 0 );
239 }
240 elsif ( !$expression1->is_empty() ) {
241 1 $rc = Bit::Vector->new_Dec( $self->bits, 1 );
242 }
243 else {
244 1 Marpa::R2::Context::bail( 'Undefined right-hand expression in '
245 . $self->SELF->impl_quote('eval') . ': '
246 . $self->SELF->impl_quote( $expression1->to_Dec )
247 . ' '
248 . $self->SELF->impl_quote($op) );
249 }
250 1 return $rc;
251 }
252 #
253 # Raw inputs are not allowed to fail. That's why we always subcall the _radix method
254 # whose implementation will use Bit::Vector::Multiply -> this will detect any
255 # overflow
256 #
257 3 ▶ method _decimal (Str $lexeme) {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine _decimal: called CC=6 SCAR=18.1
Branch: 5 branches
BranchTrueFalseTotal
@_ ? : 339 0 339
if @_ != 1 0 339 339
$#_ >= 0 ? : 339 0 339
if ($#_ >= 0) 339 0 339
Type::Tiny::XS::Str($lexeme) or _failed_check(9, "Str", $lexeme, "exception_class", "Error::TypeTiny::Assertion") 339 0 339
258 #
259 # decimalNumber ~ _DECDIGITS
260 #
261 339 return $self->_radix("0r10:$lexeme");
262 }
263  
264 0 ▶ method _octal (Str $lexeme) {
Subroutine BEGIN: called CC=1 SCAR=1.8
Subroutine BEGIN: called CC=1 SCAR=1.8
Subroutine _octal: not called CC=6 SCAR=26.4
Branch: 5 branches
BranchTrueFalseTotal
@_ ? : 0 0 0
if @_ != 1 0 0 0
$#_ >= 0 ? : 0 0 0
if ($#_ >= 0) 0 0 0
Type::Tiny::XS::Str($lexeme) or _failed_check(9, "Str", $lexeme, "exception_class", "Error::TypeTiny::Assertion") 0 0 0
265 #
266 # octalNumber ~ '0' _OCTDIGITS
267 #
268 0 substr( $lexeme, 0, 1, '' );
269 0 return $self->_radix("0r8:$lexeme");
270 }
271  
272 3 ▶ method _hex (Str $lexeme) {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine _hex: called CC=6 SCAR=18.1
Branch: 5 branches
BranchTrueFalseTotal
@_ ? : 2 0 2
if @_ != 1 0 2 2
$#_ >= 0 ? : 2 0 2
if ($#_ >= 0) 2 0 2
Type::Tiny::XS::Str($lexeme) or _failed_check(9, "Str", $lexeme, "exception_class", "Error::TypeTiny::Assertion") 2 0 2
273 #
274 # hexaNumber ~ '0x' _HEXDIGITS
275 #
276 2 substr( $lexeme, 0, 2, '' );
277 2 return $self->_radix("0r16:$lexeme");
278 }
279  
280 3 ▶ method _binary (Str $lexeme) {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine _binary: called CC=6 SCAR=18.1
Branch: 5 branches
BranchTrueFalseTotal
@_ ? : 1 0 1
if @_ != 1 0 1 1
$#_ >= 0 ? : 1 0 1
if ($#_ >= 0) 1 0 1
Type::Tiny::XS::Str($lexeme) or _failed_check(9, "Str", $lexeme, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
281 #
282 # binaryNumber ~ '0b' _BINDIGITS
283 #
284 1 substr( $lexeme, 0, 2, '' );
285 1 return $self->_radix( $lexeme, true );
286 }
287  
288 3 ▶ method _radix (Str $lexeme, Bool $binary?) {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine _radix: called CC=12 SCAR=25.5
Branch: 9 branches
BranchTrueFalseTotal
@_ ? : 344 0 344
if @_ < 1 0 344 344
if @_ > 2 0 344 344
$#_ >= 0 ? : 344 0 344
if ($#_ >= 0) 344 0 344
Type::Tiny::XS::Str($lexeme) or _failed_check(9, "Str", $lexeme, "exception_class", "Error::TypeTiny::Assertion") 344 0 344
$#_ >= 1 ? : 1 343 344
if ($#_ >= 1) 1 343 344
Type::Tiny::XS::Bool($binary) or _failed_check(3, "Bool", $binary, "exception_class", "Error::TypeTiny::Assertion") 1 0 1
289 #
290 # Per def it is this regexp
291 # C.f. grammar
292 #
293 344 my $radix;
294 344 my $input = $lexeme;
295 344 ▶ if ( !$binary ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($binary) 343 1 344
296 343 $lexeme =~ /0r([\d]+):([\da-zA-Z]+)/;
297 343 $radix = substr( $lexeme, $-[1], $+[1] - $-[1] );
298 343 $input = substr( $lexeme, $-[2], $+[2] - $-[2] );
299 }
300 344 my $error = false;
301 344 my $errorString = '';
302 344 my $rc;
303 344 ▶ try {
Subroutine __ANON__: called CC=1 SCAR=0.0
304 344 $rc = MarpaX::Languages::M4::Impl::Default::BaseConversion
305 ->bitvector_fr_base( $self->bits, $radix, $input, $binary );
306 }
307 0 ▶ catch {
Subroutine __ANON__: not called CC=1 SCAR=6.9
308 0 $error = true;
309 0 $errorString = "$_";
310 0 return;
311 344 };
312 344 ▶ if ($error) {
Branch: 1 branch
BranchTrueFalseTotal
if ($error) 0 344 344
313 0 Marpa::R2::Context::bail( 'Cannot create number '
314 . $self->SELF->impl_quote($input)
315 . ' writen in base '
316 . $self->SELF->impl_quote($radix)
317 . ' using a bit vector of size '
318 . $self->SELF->impl_quote( $self->bits ) . ' : '
319 . $errorString );
320 }
321 344 return $rc;
322 }
323  
324 }
325  
326 4 1;
327  
328 __END__
« M4/Impl/Input.pm ↑ Summary M4/Impl/Default/BaseConversion.pm »