| 1 | package Math::Symbolic::Parser::Precompiled; | ||||||||||||||||||||||||||||||||||||||
| 2 | 23 | our $VERSION = '0.613'; | |||||||||||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||||||||||||
| 4 | 23 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||
| 6 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||
| 8 | Math::Symbolic::Parser::Precompiled - Precompiled Math::Symbolic Parser | ||||||||||||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||||||||||||
| 10 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||
| 12 | This module is a precompiled version of the Parse::RecDescent grammar | ||||||||||||||||||||||||||||||||||||||
| 13 | that can be found in $Math::Symbolic::Parser::Grammar. It is used internally | ||||||||||||||||||||||||||||||||||||||
| 14 | to improve startup performance. Please use the new() method in the | ||||||||||||||||||||||||||||||||||||||
| 15 | Math::Symbolic::Parser namespace to generate new parsers. | ||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||
| 17 | Also note that some modules on CPAN (like Math::SymbolicX::Complex, etc.) modify | ||||||||||||||||||||||||||||||||||||||
| 18 | the parser which is stored in $Math::Symbolic::Parser at the time of loading | ||||||||||||||||||||||||||||||||||||||
| 19 | the module. | ||||||||||||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||||||||||||
| 21 | =head1 AUTHOR | ||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||
| 23 | Please send feedback, bug reports, and support requests to the Math::Symbolic | ||||||||||||||||||||||||||||||||||||||
| 24 | support mailing list: | ||||||||||||||||||||||||||||||||||||||
| 25 | math-symbolic-support at lists dot sourceforge dot net. Please | ||||||||||||||||||||||||||||||||||||||
| 26 | consider letting us know how you use Math::Symbolic. Thank you. | ||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||
| 28 | If you're interested in helping with the development or extending the | ||||||||||||||||||||||||||||||||||||||
| 29 | module's functionality, please contact the developers' mailing list: | ||||||||||||||||||||||||||||||||||||||
| 30 | math-symbolic-develop at lists dot sourceforge dot net. | ||||||||||||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||||||||||||
| 32 | List of contributors: | ||||||||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||||||||
| 34 | Steffen Müller, symbolic-module at steffen-mueller dot net | ||||||||||||||||||||||||||||||||||||||
| 35 | Stray Toaster, mwk at users dot sourceforge dot net | ||||||||||||||||||||||||||||||||||||||
| 36 | Oliver Ebenhöh | ||||||||||||||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||||||||||||
| 38 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||||||||
| 39 | |||||||||||||||||||||||||||||||||||||||
| 40 | New versions of this module can be found on | ||||||||||||||||||||||||||||||||||||||
| 41 | http://steffen-mueller.net or CPAN. The module development takes place on | ||||||||||||||||||||||||||||||||||||||
| 42 | Sourceforge at http://sourceforge.net/projects/math-symbolic/ | ||||||||||||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||||||||||||
| 44 | L<Math::Symbolic> | ||||||||||||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||||||||||||
| 46 | L<Math::Symbolic::Parser> | ||||||||||||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||||||||||||
| 48 | =cut | ||||||||||||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||||||||||||
| 50 | package Math::Symbolic::Parser::Precompiled; | ||||||||||||||||||||||||||||||||||||||
| 51 | 23 | ▶ | use Parse::RecDescent; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 52 | 23 | { my $ERRORS; | |||||||||||||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||||||||
| 55 | package Parse::RecDescent::Math::Symbolic::Parser::Precompiled; | ||||||||||||||||||||||||||||||||||||||
| 56 | 23 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 57 | 23 | ▶ | use vars qw($skip $AUTOLOAD ); | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 58 | 23 | @Parse::RecDescent::Math::Symbolic::Parser::Precompiled::ISA = (); | |||||||||||||||||||||||||||||||||||||
| 59 | 23 | $skip = '\s*'; | |||||||||||||||||||||||||||||||||||||
| 60 | |||||||||||||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||||||||||||
| 62 | { | ||||||||||||||||||||||||||||||||||||||
| 63 | 0 | ▶ | local $SIG{__WARN__} = sub {0}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=0.4
| |||||||||||||||||||||||||||||||||||||||
| 64 | # PRETEND TO BE IN Parse::RecDescent NAMESPACE | ||||||||||||||||||||||||||||||||||||||
| 65 | *Parse::RecDescent::Math::Symbolic::Parser::Precompiled::AUTOLOAD = sub | ||||||||||||||||||||||||||||||||||||||
| 66 | 0 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=2.2
| |||||||||||||||||||||||||||||||||||||||
| 67 | 23 | ▶ | no strict 'refs'; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 68 | |||||||||||||||||||||||||||||||||||||||
| 69 | 0 | ${"AUTOLOAD"} =~ s/^Parse::RecDescent::Math::Symbolic::Parser::Precompiled/Parse::RecDescent/; | |||||||||||||||||||||||||||||||||||||
| 70 | 0 | goto &{${"AUTOLOAD"}}; | |||||||||||||||||||||||||||||||||||||
| 71 | } | ||||||||||||||||||||||||||||||||||||||
| 72 | 23 | } | |||||||||||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||||||||||||
| 74 | 23 | push @Parse::RecDescent::Math::Symbolic::Parser::Precompiled::ISA, 'Parse::RecDescent'; | |||||||||||||||||||||||||||||||||||||
| 75 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 76 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::exp | ||||||||||||||||||||||||||||||||||||||
| 77 | 2922 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
exp: called CC=48 SCAR=47.7
| |||||||||||||||||||||||||||||||||||||||
| 78 | 2922 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 79 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 80 | 2922 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 81 | 2922 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 82 | 2922 | my $thisrule = $thisparser->{"rules"}{"exp"}; | |||||||||||||||||||||||||||||||||||||
| 83 | |||||||||||||||||||||||||||||||||||||||
| 84 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [exp]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 85 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 86 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 87 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 88 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 89 | |||||||||||||||||||||||||||||||||||||||
| 90 | |||||||||||||||||||||||||||||||||||||||
| 91 | 2922 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||
| 93 | 2922 | my $score; | |||||||||||||||||||||||||||||||||||||
| 94 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 95 | 2922 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 96 | 2922 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 97 | 2922 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 98 | 2922 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 99 | 2922 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 100 | 2922 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 101 | 2922 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 102 | 2922 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 103 | 2922 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 104 | 2922 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 105 | 2922 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 106 | 2922 | my $text; | |||||||||||||||||||||||||||||||||||||
| 107 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 108 | 2922 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 109 | 2922 | my $expectation = new Parse::RecDescent::Expectation(q{<rightop: factor '^' factor>}); | |||||||||||||||||||||||||||||||||||||
| 110 | 2922 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 111 | |||||||||||||||||||||||||||||||||||||||
| 112 | 2922 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 113 | 2922 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 114 | |||||||||||||||||||||||||||||||||||||||
| 115 | |||||||||||||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||||||||||||
| 117 | 2922 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 118 | { | ||||||||||||||||||||||||||||||||||||||
| 119 | |||||||||||||||||||||||||||||||||||||||
| 120 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying production: [<rightop: factor '^' factor>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 121 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 122 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 123 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 124 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 125 | 2922 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 126 | 2922 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 127 | 2922 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 128 | 2922 | @item = (q{exp}); | |||||||||||||||||||||||||||||||||||||
| 129 | 2922 | %item = (__RULE__ => q{exp}); | |||||||||||||||||||||||||||||||||||||
| 130 | 2922 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 131 | |||||||||||||||||||||||||||||||||||||||
| 132 | |||||||||||||||||||||||||||||||||||||||
| 133 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying operator: [<rightop: factor '^' factor>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 134 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 135 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 136 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 137 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 138 | 2922 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 139 | |||||||||||||||||||||||||||||||||||||||
| 140 | 2922 | $_tok = undef; | |||||||||||||||||||||||||||||||||||||
| 141 | 2922 | OPLOOP: while (1) | |||||||||||||||||||||||||||||||||||||
| 142 | { | ||||||||||||||||||||||||||||||||||||||
| 143 | 2922 | $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 144 | 2922 | my @item; | |||||||||||||||||||||||||||||||||||||
| 145 | my %item; | ||||||||||||||||||||||||||||||||||||||
| 146 | |||||||||||||||||||||||||||||||||||||||
| 147 | 2922 | my $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 148 | 2922 | my $backtrack; | |||||||||||||||||||||||||||||||||||||
| 149 | # MATCH (LEFTARG OP)(s) | ||||||||||||||||||||||||||||||||||||||
| 150 | 2922 | ▶ | while ($repcount < 100000000) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 151 | { | ||||||||||||||||||||||||||||||||||||||
| 152 | 3201 | $backtrack = 0; | |||||||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||||||||
| 154 | 3201 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [factor]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 155 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 156 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 157 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 158 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 159 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 160 | 3201 | $expectation->is(q{factor})->at($text); | |||||||||||||||||||||||||||||||||||||
| 161 | 3201 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::factor($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 162 | { | ||||||||||||||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||||||||||||
| 164 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [factor]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 165 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 166 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 167 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 168 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 169 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 170 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 171 | } | ||||||||||||||||||||||||||||||||||||||
| 172 | 3201 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [factor]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 173 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 174 | |||||||||||||||||||||||||||||||||||||||
| 175 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 176 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 177 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 178 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 179 | 3201 | $item{q{factor}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 180 | 3201 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||||||||||||
| 182 | } | ||||||||||||||||||||||||||||||||||||||
| 183 | |||||||||||||||||||||||||||||||||||||||
| 184 | |||||||||||||||||||||||||||||||||||||||
| 185 | 3201 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 186 | 3201 | $backtrack = 1; | |||||||||||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||||||||||||
| 188 | 3201 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['^']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 189 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 190 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 191 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 192 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 193 | 3201 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 194 | 3201 | $expectation->is(q{'^'})->at($text); | |||||||||||||||||||||||||||||||||||||
| 195 | |||||||||||||||||||||||||||||||||||||||
| 196 | |||||||||||||||||||||||||||||||||||||||
| 197 | 3201 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\^/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\^/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\^/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\^/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\^/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 198 | { | ||||||||||||||||||||||||||||||||||||||
| 199 | 2922 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 200 | |||||||||||||||||||||||||||||||||||||||
| 201 | 2922 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 202 | 2922 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 203 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 204 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 205 | 2922 | last; | |||||||||||||||||||||||||||||||||||||
| 206 | } | ||||||||||||||||||||||||||||||||||||||
| 207 | 279 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 208 | 279 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 209 | 279 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 210 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 211 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 212 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 213 | 279 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 214 | |||||||||||||||||||||||||||||||||||||||
| 215 | |||||||||||||||||||||||||||||||||||||||
| 216 | 279 | $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 217 | 279 | pop @item; | |||||||||||||||||||||||||||||||||||||
| 218 | |||||||||||||||||||||||||||||||||||||||
| 219 | } | ||||||||||||||||||||||||||||||||||||||
| 220 | 2922 | $text = $savetext; | |||||||||||||||||||||||||||||||||||||
| 221 | 2922 | ▶ | pop @item if $backtrack; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 222 | |||||||||||||||||||||||||||||||||||||||
| 223 | # MATCH RIGHTARG | ||||||||||||||||||||||||||||||||||||||
| 224 | |||||||||||||||||||||||||||||||||||||||
| 225 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [factor]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 226 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 227 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 228 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 229 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 230 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 231 | 2922 | $expectation->is(q{factor})->at($text); | |||||||||||||||||||||||||||||||||||||
| 232 | 2922 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::factor($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 233 | { | ||||||||||||||||||||||||||||||||||||||
| 234 | |||||||||||||||||||||||||||||||||||||||
| 235 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [factor]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 236 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 237 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 238 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 239 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 240 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 241 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 242 | } | ||||||||||||||||||||||||||||||||||||||
| 243 | 2922 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [factor]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 244 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 245 | |||||||||||||||||||||||||||||||||||||||
| 246 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 247 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 248 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 249 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 250 | 2922 | $item{q{factor}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 251 | 2922 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 252 | |||||||||||||||||||||||||||||||||||||||
| 253 | } | ||||||||||||||||||||||||||||||||||||||
| 254 | |||||||||||||||||||||||||||||||||||||||
| 255 | 2922 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 256 | 0 | ▶ | unless (@item) { undef $_tok; last } | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 257 | 2922 | $_tok = [ @item ]; | |||||||||||||||||||||||||||||||||||||
| 258 | |||||||||||||||||||||||||||||||||||||||
| 259 | 2922 | last; | |||||||||||||||||||||||||||||||||||||
| 260 | } # end of OPLOOP | ||||||||||||||||||||||||||||||||||||||
| 261 | |||||||||||||||||||||||||||||||||||||||
| 262 | 2922 | ▶ | unless ($repcount>=1) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 263 | { | ||||||||||||||||||||||||||||||||||||||
| 264 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match operator: [<rightop: factor '^' factor>]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 265 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 266 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 267 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 268 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 269 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 270 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 271 | } | ||||||||||||||||||||||||||||||||||||||
| 272 | 2922 | ▶ | Parse::RecDescent::_trace(q{>>Matched operator: [<rightop: factor '^' factor>]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 273 | 0 | ▶ | . qq{@{$_tok||[]}} . q{]}, | ||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table0%0/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 274 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 275 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 276 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 277 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 278 | |||||||||||||||||||||||||||||||||||||||
| 279 | 2922 | ▶ | push @item, $item{__DIRECTIVE1__}=$_tok||[]; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table50%1/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 280 | |||||||||||||||||||||||||||||||||||||||
| 281 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 282 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 283 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 284 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 285 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 286 | |||||||||||||||||||||||||||||||||||||||
| 287 | |||||||||||||||||||||||||||||||||||||||
| 288 | 2922 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 289 | #warn 'exp ' if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 290 | 2922 | ▶ | if (@{$item[1]} == 1) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 291 | 2646 | $item[1][0] | |||||||||||||||||||||||||||||||||||||
| 292 | } | ||||||||||||||||||||||||||||||||||||||
| 293 | else { | ||||||||||||||||||||||||||||||||||||||
| 294 | 276 | my @it = reverse @{$item[1]}; | |||||||||||||||||||||||||||||||||||||
| 295 | 276 | my $tree = shift @it; | |||||||||||||||||||||||||||||||||||||
| 296 | 276 | ▶ | while (@it) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 297 | 279 | $tree = Math::Symbolic::Operator->new( | |||||||||||||||||||||||||||||||||||||
| 298 | '^', shift(@it), $tree | ||||||||||||||||||||||||||||||||||||||
| 299 | ); | ||||||||||||||||||||||||||||||||||||||
| 300 | } | ||||||||||||||||||||||||||||||||||||||
| 301 | 276 | $tree; | |||||||||||||||||||||||||||||||||||||
| 302 | } | ||||||||||||||||||||||||||||||||||||||
| 303 | }; | ||||||||||||||||||||||||||||||||||||||
| 304 | 2922 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 305 | { | ||||||||||||||||||||||||||||||||||||||
| 306 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 307 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 308 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 309 | } | ||||||||||||||||||||||||||||||||||||||
| 310 | 2922 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 311 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 312 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 313 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 314 | 2922 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 315 | 2922 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 316 | |||||||||||||||||||||||||||||||||||||||
| 317 | |||||||||||||||||||||||||||||||||||||||
| 318 | 2922 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [<rightop: factor '^' factor>]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 319 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 320 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 321 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 322 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 323 | |||||||||||||||||||||||||||||||||||||||
| 324 | |||||||||||||||||||||||||||||||||||||||
| 325 | |||||||||||||||||||||||||||||||||||||||
| 326 | 2922 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 327 | 2922 | last; | |||||||||||||||||||||||||||||||||||||
| 328 | } | ||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||
| 330 | |||||||||||||||||||||||||||||||||||||||
| 331 | 2922 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or defined $score
MC/DC0%0/2
$_matched or defined $score
$_matched
defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 332 | { | ||||||||||||||||||||||||||||||||||||||
| 333 | |||||||||||||||||||||||||||||||||||||||
| 334 | |||||||||||||||||||||||||||||||||||||||
| 335 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 336 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 337 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 338 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 339 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 340 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 341 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||
| 342 | } | ||||||||||||||||||||||||||||||||||||||
| 343 | 2922 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 344 | { | ||||||||||||||||||||||||||||||||||||||
| 345 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 346 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 347 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 348 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 349 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 350 | } | ||||||||||||||||||||||||||||||||||||||
| 351 | 2922 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 352 | 2922 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 353 | 2922 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 354 | { | ||||||||||||||||||||||||||||||||||||||
| 355 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 356 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 357 | q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 358 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 359 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 360 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 361 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 362 | , q{exp}, | ||||||||||||||||||||||||||||||||||||||
| 363 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 364 | } | ||||||||||||||||||||||||||||||||||||||
| 365 | 2922 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 366 | 2922 | return $return; | |||||||||||||||||||||||||||||||||||||
| 367 | } | ||||||||||||||||||||||||||||||||||||||
| 368 | |||||||||||||||||||||||||||||||||||||||
| 369 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 370 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::variable | ||||||||||||||||||||||||||||||||||||||
| 371 | 3835 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
variable: called CC=82 SCAR=56.0
| |||||||||||||||||||||||||||||||||||||||
| 372 | 3835 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 373 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 374 | 3835 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 375 | 3835 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 376 | 3835 | my $thisrule = $thisparser->{"rules"}{"variable"}; | |||||||||||||||||||||||||||||||||||||
| 377 | |||||||||||||||||||||||||||||||||||||||
| 378 | 3835 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [variable]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 379 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 380 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 381 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 382 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 383 | |||||||||||||||||||||||||||||||||||||||
| 384 | |||||||||||||||||||||||||||||||||||||||
| 385 | 3835 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 386 | |||||||||||||||||||||||||||||||||||||||
| 387 | 3835 | my $score; | |||||||||||||||||||||||||||||||||||||
| 388 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 389 | 3835 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 390 | 3835 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 391 | 3835 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 392 | 3835 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 393 | 3835 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 394 | 3835 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 395 | 3835 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 396 | 3835 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 397 | 3835 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 398 | 3835 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 399 | 3835 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 400 | 3835 | my $text; | |||||||||||||||||||||||||||||||||||||
| 401 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 402 | 3835 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 403 | 3835 | my $expectation = new Parse::RecDescent::Expectation(q{/[a-zA-Z][a-zA-Z0-9_]*/}); | |||||||||||||||||||||||||||||||||||||
| 404 | 3835 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 405 | |||||||||||||||||||||||||||||||||||||||
| 406 | 3835 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 407 | 3835 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 408 | |||||||||||||||||||||||||||||||||||||||
| 409 | |||||||||||||||||||||||||||||||||||||||
| 410 | |||||||||||||||||||||||||||||||||||||||
| 411 | 3835 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 412 | { | ||||||||||||||||||||||||||||||||||||||
| 413 | |||||||||||||||||||||||||||||||||||||||
| 414 | 3835 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/[a-zA-Z][a-zA-Z0-9_]*/ /\\'*/ '(' identifier_list ')']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 415 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 416 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 417 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 418 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 419 | 3835 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 420 | 3835 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 421 | 3835 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 422 | 3835 | @item = (q{variable}); | |||||||||||||||||||||||||||||||||||||
| 423 | 3835 | %item = (__RULE__ => q{variable}); | |||||||||||||||||||||||||||||||||||||
| 424 | 3835 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 425 | |||||||||||||||||||||||||||||||||||||||
| 426 | |||||||||||||||||||||||||||||||||||||||
| 427 | 3835 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/[a-zA-Z][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 428 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 429 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 430 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 431 | 3835 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 432 | 3835 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 433 | |||||||||||||||||||||||||||||||||||||||
| 434 | |||||||||||||||||||||||||||||||||||||||
| 435 | 3835 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[a-zA-Z][a-zA-Z0-9_]*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 436 | { | ||||||||||||||||||||||||||||||||||||||
| 437 | 631 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 438 | 631 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 439 | 631 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 440 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 441 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 442 | |||||||||||||||||||||||||||||||||||||||
| 443 | 631 | last; | |||||||||||||||||||||||||||||||||||||
| 444 | } | ||||||||||||||||||||||||||||||||||||||
| 445 | 3204 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 446 | 3204 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 447 | 3204 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 448 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 449 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 450 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 451 | 3204 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 452 | |||||||||||||||||||||||||||||||||||||||
| 453 | |||||||||||||||||||||||||||||||||||||||
| 454 | 3204 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/\\'*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 455 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 456 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 457 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 458 | 3204 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 459 | 3204 | $expectation->is(q{/\\'*/})->at($text); | |||||||||||||||||||||||||||||||||||||
| 460 | |||||||||||||||||||||||||||||||||||||||
| 461 | |||||||||||||||||||||||||||||||||||||||
| 462 | 3204 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\'*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\'*)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\'*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:\'*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\'*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 463 | { | ||||||||||||||||||||||||||||||||||||||
| 464 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 465 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 466 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 467 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 468 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 469 | |||||||||||||||||||||||||||||||||||||||
| 470 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 471 | } | ||||||||||||||||||||||||||||||||||||||
| 472 | 3204 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 473 | 3204 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 474 | 3204 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 475 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 476 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 477 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 478 | 3204 | push @item, $item{__PATTERN2__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 479 | |||||||||||||||||||||||||||||||||||||||
| 480 | |||||||||||||||||||||||||||||||||||||||
| 481 | 3204 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 482 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 483 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 484 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 485 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 486 | 3204 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 487 | 3204 | $expectation->is(q{'('})->at($text); | |||||||||||||||||||||||||||||||||||||
| 488 | |||||||||||||||||||||||||||||||||||||||
| 489 | |||||||||||||||||||||||||||||||||||||||
| 490 | 3204 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\(/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\(/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 491 | { | ||||||||||||||||||||||||||||||||||||||
| 492 | 3045 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 493 | |||||||||||||||||||||||||||||||||||||||
| 494 | 3045 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 495 | 3045 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 496 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 497 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 498 | 3045 | last; | |||||||||||||||||||||||||||||||||||||
| 499 | } | ||||||||||||||||||||||||||||||||||||||
| 500 | 159 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 501 | 159 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 502 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 503 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 504 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 505 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 506 | 159 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 507 | |||||||||||||||||||||||||||||||||||||||
| 508 | |||||||||||||||||||||||||||||||||||||||
| 509 | 159 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [identifier_list]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 510 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 511 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 512 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 513 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 514 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 515 | 159 | $expectation->is(q{identifier_list})->at($text); | |||||||||||||||||||||||||||||||||||||
| 516 | 159 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::identifier_list($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 517 | { | ||||||||||||||||||||||||||||||||||||||
| 518 | |||||||||||||||||||||||||||||||||||||||
| 519 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [identifier_list]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 520 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 521 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 522 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 523 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 524 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 525 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 526 | } | ||||||||||||||||||||||||||||||||||||||
| 527 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [identifier_list]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 528 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 529 | |||||||||||||||||||||||||||||||||||||||
| 530 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 531 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 532 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 533 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 534 | 159 | $item{q{identifier_list}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 535 | 159 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 536 | |||||||||||||||||||||||||||||||||||||||
| 537 | } | ||||||||||||||||||||||||||||||||||||||
| 538 | |||||||||||||||||||||||||||||||||||||||
| 539 | 159 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 540 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 541 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 542 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 543 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 544 | 159 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 545 | 159 | $expectation->is(q{')'})->at($text); | |||||||||||||||||||||||||||||||||||||
| 546 | |||||||||||||||||||||||||||||||||||||||
| 547 | |||||||||||||||||||||||||||||||||||||||
| 548 | 159 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 549 | { | ||||||||||||||||||||||||||||||||||||||
| 550 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 551 | |||||||||||||||||||||||||||||||||||||||
| 552 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 553 | 0 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 554 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 555 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 556 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 557 | } | ||||||||||||||||||||||||||||||||||||||
| 558 | 159 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 559 | 159 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 560 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 561 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 562 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 563 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 564 | 159 | push @item, $item{__STRING2__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 565 | |||||||||||||||||||||||||||||||||||||||
| 566 | |||||||||||||||||||||||||||||||||||||||
| 567 | 159 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 568 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 569 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 570 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 571 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 572 | |||||||||||||||||||||||||||||||||||||||
| 573 | |||||||||||||||||||||||||||||||||||||||
| 574 | 159 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 575 | #warn 'variable ' | ||||||||||||||||||||||||||||||||||||||
| 576 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 577 | 159 | my $varname = $item[1]; | |||||||||||||||||||||||||||||||||||||
| 578 | 159 | my $ticks = $item[2]; | |||||||||||||||||||||||||||||||||||||
| 579 | 159 | ▶ | if ($ticks) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 580 | 12 | my $n = length($ticks); | |||||||||||||||||||||||||||||||||||||
| 581 | 12 | ▶ | my $sig = $item[4] || ['x']; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$item[4] || ['x']
MC/DC0%0/1
$item[4] || ['x']
$item[4]
Truth table50%1/2
A
A= $item[4]
| |||||||||||||||||||||||||||||||||||||||
| 582 | 12 | my $dep_var = $sig->[0]; | |||||||||||||||||||||||||||||||||||||
| 583 | 12 | my $return = Math::Symbolic::Variable->new( | |||||||||||||||||||||||||||||||||||||
| 584 | { name => $varname, signature => $sig } | ||||||||||||||||||||||||||||||||||||||
| 585 | ); | ||||||||||||||||||||||||||||||||||||||
| 586 | 12 | foreach (1..$n) { | |||||||||||||||||||||||||||||||||||||
| 587 | 18 | $return = Math::Symbolic::Operator->new( | |||||||||||||||||||||||||||||||||||||
| 588 | 'partial_derivative', | ||||||||||||||||||||||||||||||||||||||
| 589 | $return, $dep_var, | ||||||||||||||||||||||||||||||||||||||
| 590 | ); | ||||||||||||||||||||||||||||||||||||||
| 591 | } | ||||||||||||||||||||||||||||||||||||||
| 592 | 12 | $return; | |||||||||||||||||||||||||||||||||||||
| 593 | } | ||||||||||||||||||||||||||||||||||||||
| 594 | else { | ||||||||||||||||||||||||||||||||||||||
| 595 | 147 | Math::Symbolic::Variable->new( | |||||||||||||||||||||||||||||||||||||
| 596 | { name => $varname, signature => $item[4] } | ||||||||||||||||||||||||||||||||||||||
| 597 | ); | ||||||||||||||||||||||||||||||||||||||
| 598 | } | ||||||||||||||||||||||||||||||||||||||
| 599 | }; | ||||||||||||||||||||||||||||||||||||||
| 600 | 159 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 601 | { | ||||||||||||||||||||||||||||||||||||||
| 602 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 603 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 604 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 605 | } | ||||||||||||||||||||||||||||||||||||||
| 606 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 607 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 608 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 609 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 610 | 159 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 611 | 159 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 612 | |||||||||||||||||||||||||||||||||||||||
| 613 | |||||||||||||||||||||||||||||||||||||||
| 614 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/[a-zA-Z][a-zA-Z0-9_]*/ /\\'*/ '(' identifier_list ')']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 615 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 616 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 617 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 618 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 619 | |||||||||||||||||||||||||||||||||||||||
| 620 | |||||||||||||||||||||||||||||||||||||||
| 621 | |||||||||||||||||||||||||||||||||||||||
| 622 | 159 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 623 | 159 | last; | |||||||||||||||||||||||||||||||||||||
| 624 | } | ||||||||||||||||||||||||||||||||||||||
| 625 | |||||||||||||||||||||||||||||||||||||||
| 626 | |||||||||||||||||||||||||||||||||||||||
| 627 | 3835 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 628 | { | ||||||||||||||||||||||||||||||||||||||
| 629 | |||||||||||||||||||||||||||||||||||||||
| 630 | 3676 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/[a-zA-Z][a-zA-Z0-9_]*/ /\\'*/]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 631 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 632 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 633 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 634 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 635 | 3676 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||
| 636 | 3676 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 637 | 3676 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 638 | 3676 | @item = (q{variable}); | |||||||||||||||||||||||||||||||||||||
| 639 | 3676 | %item = (__RULE__ => q{variable}); | |||||||||||||||||||||||||||||||||||||
| 640 | 3676 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 641 | |||||||||||||||||||||||||||||||||||||||
| 642 | |||||||||||||||||||||||||||||||||||||||
| 643 | 3676 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/[a-zA-Z][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 644 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 645 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 646 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 647 | 3676 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 648 | 3676 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 649 | |||||||||||||||||||||||||||||||||||||||
| 650 | |||||||||||||||||||||||||||||||||||||||
| 651 | 3676 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[a-zA-Z][a-zA-Z0-9_]*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 652 | { | ||||||||||||||||||||||||||||||||||||||
| 653 | 631 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 654 | 631 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 655 | 631 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 656 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 657 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 658 | |||||||||||||||||||||||||||||||||||||||
| 659 | 631 | last; | |||||||||||||||||||||||||||||||||||||
| 660 | } | ||||||||||||||||||||||||||||||||||||||
| 661 | 3045 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 662 | 3045 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 663 | 3045 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 664 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 665 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 666 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 667 | 3045 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 668 | |||||||||||||||||||||||||||||||||||||||
| 669 | |||||||||||||||||||||||||||||||||||||||
| 670 | 3045 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/\\'*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 671 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 672 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 673 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 674 | 3045 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 675 | 3045 | $expectation->is(q{/\\'*/})->at($text); | |||||||||||||||||||||||||||||||||||||
| 676 | |||||||||||||||||||||||||||||||||||||||
| 677 | |||||||||||||||||||||||||||||||||||||||
| 678 | 3045 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\'*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\'*)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\'*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:\'*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\'*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 679 | { | ||||||||||||||||||||||||||||||||||||||
| 680 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 681 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 682 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 683 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 684 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 685 | |||||||||||||||||||||||||||||||||||||||
| 686 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 687 | } | ||||||||||||||||||||||||||||||||||||||
| 688 | 3045 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 689 | 3045 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 690 | 3045 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 691 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 692 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 693 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 694 | 3045 | push @item, $item{__PATTERN2__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 695 | |||||||||||||||||||||||||||||||||||||||
| 696 | |||||||||||||||||||||||||||||||||||||||
| 697 | 3045 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 698 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 699 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 700 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 701 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 702 | |||||||||||||||||||||||||||||||||||||||
| 703 | |||||||||||||||||||||||||||||||||||||||
| 704 | 3045 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 705 | #warn 'variable ' | ||||||||||||||||||||||||||||||||||||||
| 706 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 707 | 3045 | my $varname = $item[1]; | |||||||||||||||||||||||||||||||||||||
| 708 | 3045 | my $ticks = $item[2]; | |||||||||||||||||||||||||||||||||||||
| 709 | 3045 | ▶ | if ($ticks) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 710 | 4 | my $n = length($ticks); | |||||||||||||||||||||||||||||||||||||
| 711 | 4 | my $return = Math::Symbolic::Variable->new( | |||||||||||||||||||||||||||||||||||||
| 712 | { name => $varname, signature => ['x'] } | ||||||||||||||||||||||||||||||||||||||
| 713 | ); | ||||||||||||||||||||||||||||||||||||||
| 714 | 4 | foreach (1..$n) { | |||||||||||||||||||||||||||||||||||||
| 715 | 6 | $return = Math::Symbolic::Operator->new( | |||||||||||||||||||||||||||||||||||||
| 716 | 'partial_derivative', | ||||||||||||||||||||||||||||||||||||||
| 717 | $return, 'x', | ||||||||||||||||||||||||||||||||||||||
| 718 | ); | ||||||||||||||||||||||||||||||||||||||
| 719 | } | ||||||||||||||||||||||||||||||||||||||
| 720 | 4 | $return; | |||||||||||||||||||||||||||||||||||||
| 721 | } | ||||||||||||||||||||||||||||||||||||||
| 722 | else { | ||||||||||||||||||||||||||||||||||||||
| 723 | 3041 | Math::Symbolic::Variable->new( $varname ); | |||||||||||||||||||||||||||||||||||||
| 724 | } | ||||||||||||||||||||||||||||||||||||||
| 725 | }; | ||||||||||||||||||||||||||||||||||||||
| 726 | 3045 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 727 | { | ||||||||||||||||||||||||||||||||||||||
| 728 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 729 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 730 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 731 | } | ||||||||||||||||||||||||||||||||||||||
| 732 | 3045 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 733 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 734 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 735 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 736 | 3045 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 737 | 3045 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 738 | |||||||||||||||||||||||||||||||||||||||
| 739 | |||||||||||||||||||||||||||||||||||||||
| 740 | 3045 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/[a-zA-Z][a-zA-Z0-9_]*/ /\\'*/]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 741 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 742 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 743 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 744 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 745 | |||||||||||||||||||||||||||||||||||||||
| 746 | |||||||||||||||||||||||||||||||||||||||
| 747 | |||||||||||||||||||||||||||||||||||||||
| 748 | 3045 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 749 | 3045 | last; | |||||||||||||||||||||||||||||||||||||
| 750 | } | ||||||||||||||||||||||||||||||||||||||
| 751 | |||||||||||||||||||||||||||||||||||||||
| 752 | |||||||||||||||||||||||||||||||||||||||
| 753 | 3835 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or defined $score
MC/DC50%1/2
$_matched or defined $score
$_matched
defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 754 | { | ||||||||||||||||||||||||||||||||||||||
| 755 | |||||||||||||||||||||||||||||||||||||||
| 756 | |||||||||||||||||||||||||||||||||||||||
| 757 | 631 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 758 | 631 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 759 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 760 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 761 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 762 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 763 | 631 | return undef; | |||||||||||||||||||||||||||||||||||||
| 764 | } | ||||||||||||||||||||||||||||||||||||||
| 765 | 3204 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 766 | { | ||||||||||||||||||||||||||||||||||||||
| 767 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 768 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 769 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 770 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 771 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 772 | } | ||||||||||||||||||||||||||||||||||||||
| 773 | 3204 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 774 | 3204 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 775 | 3204 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 776 | { | ||||||||||||||||||||||||||||||||||||||
| 777 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 778 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 779 | q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 780 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 781 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 782 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 783 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 784 | , q{variable}, | ||||||||||||||||||||||||||||||||||||||
| 785 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 786 | } | ||||||||||||||||||||||||||||||||||||||
| 787 | 3204 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 788 | 3204 | return $return; | |||||||||||||||||||||||||||||||||||||
| 789 | } | ||||||||||||||||||||||||||||||||||||||
| 790 | |||||||||||||||||||||||||||||||||||||||
| 791 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 792 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::function | ||||||||||||||||||||||||||||||||||||||
| 793 | 4325 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
function: called CC=47 SCAR=47.6
| |||||||||||||||||||||||||||||||||||||||
| 794 | 4325 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 795 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 796 | 4325 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 797 | 4325 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 798 | 4325 | my $thisrule = $thisparser->{"rules"}{"function"}; | |||||||||||||||||||||||||||||||||||||
| 799 | |||||||||||||||||||||||||||||||||||||||
| 800 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [function]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 801 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 802 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 803 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 804 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 805 | |||||||||||||||||||||||||||||||||||||||
| 806 | |||||||||||||||||||||||||||||||||||||||
| 807 | 4325 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 808 | |||||||||||||||||||||||||||||||||||||||
| 809 | 4325 | my $score; | |||||||||||||||||||||||||||||||||||||
| 810 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 811 | 4325 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 812 | 4325 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 813 | 4325 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 814 | 4325 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 815 | 4325 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 816 | 4325 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 817 | 4325 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 818 | 4325 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 819 | 4325 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 820 | 4325 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 821 | 4325 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 822 | 4325 | my $text; | |||||||||||||||||||||||||||||||||||||
| 823 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 824 | 4325 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 825 | 4325 | my $expectation = new Parse::RecDescent::Expectation(q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 826 | 4325 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 827 | |||||||||||||||||||||||||||||||||||||||
| 828 | 4325 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 829 | 4325 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 830 | |||||||||||||||||||||||||||||||||||||||
| 831 | |||||||||||||||||||||||||||||||||||||||
| 832 | |||||||||||||||||||||||||||||||||||||||
| 833 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 834 | { | ||||||||||||||||||||||||||||||||||||||
| 835 | |||||||||||||||||||||||||||||||||||||||
| 836 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying production: [function_name '(' expr_list ')']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 837 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 838 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 839 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 840 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 841 | 4325 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 842 | 4325 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 843 | 4325 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 844 | 4325 | @item = (q{function}); | |||||||||||||||||||||||||||||||||||||
| 845 | 4325 | %item = (__RULE__ => q{function}); | |||||||||||||||||||||||||||||||||||||
| 846 | 4325 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 847 | |||||||||||||||||||||||||||||||||||||||
| 848 | |||||||||||||||||||||||||||||||||||||||
| 849 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [function_name]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 850 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 851 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 852 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 853 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 854 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 855 | 4325 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 856 | 4325 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::function_name($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 857 | { | ||||||||||||||||||||||||||||||||||||||
| 858 | |||||||||||||||||||||||||||||||||||||||
| 859 | 3835 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [function_name]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 860 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 861 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 862 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 863 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 864 | 3835 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 865 | 3835 | last; | |||||||||||||||||||||||||||||||||||||
| 866 | } | ||||||||||||||||||||||||||||||||||||||
| 867 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [function_name]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 868 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 869 | |||||||||||||||||||||||||||||||||||||||
| 870 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 871 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 872 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 873 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 874 | 490 | $item{q{function_name}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 875 | 490 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 876 | |||||||||||||||||||||||||||||||||||||||
| 877 | } | ||||||||||||||||||||||||||||||||||||||
| 878 | |||||||||||||||||||||||||||||||||||||||
| 879 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 880 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 881 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 882 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 883 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 884 | 490 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 885 | 490 | $expectation->is(q{'('})->at($text); | |||||||||||||||||||||||||||||||||||||
| 886 | |||||||||||||||||||||||||||||||||||||||
| 887 | |||||||||||||||||||||||||||||||||||||||
| 888 | 490 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\(/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\(/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 889 | { | ||||||||||||||||||||||||||||||||||||||
| 890 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 891 | |||||||||||||||||||||||||||||||||||||||
| 892 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 893 | 0 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 894 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 895 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 896 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 897 | } | ||||||||||||||||||||||||||||||||||||||
| 898 | 490 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 899 | 490 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 900 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 901 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 902 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 903 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 904 | 490 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 905 | |||||||||||||||||||||||||||||||||||||||
| 906 | |||||||||||||||||||||||||||||||||||||||
| 907 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [expr_list]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 908 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 909 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 910 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 911 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 912 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 913 | 490 | $expectation->is(q{expr_list})->at($text); | |||||||||||||||||||||||||||||||||||||
| 914 | 490 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::expr_list($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 915 | { | ||||||||||||||||||||||||||||||||||||||
| 916 | |||||||||||||||||||||||||||||||||||||||
| 917 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [expr_list]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 918 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 919 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 920 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 921 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 922 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 923 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 924 | } | ||||||||||||||||||||||||||||||||||||||
| 925 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [expr_list]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 926 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 927 | |||||||||||||||||||||||||||||||||||||||
| 928 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 929 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 930 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 931 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 932 | 490 | $item{q{expr_list}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 933 | 490 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 934 | |||||||||||||||||||||||||||||||||||||||
| 935 | } | ||||||||||||||||||||||||||||||||||||||
| 936 | |||||||||||||||||||||||||||||||||||||||
| 937 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 938 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 939 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 940 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 941 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 942 | 490 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 943 | 490 | $expectation->is(q{')'})->at($text); | |||||||||||||||||||||||||||||||||||||
| 944 | |||||||||||||||||||||||||||||||||||||||
| 945 | |||||||||||||||||||||||||||||||||||||||
| 946 | 490 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 947 | { | ||||||||||||||||||||||||||||||||||||||
| 948 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 949 | |||||||||||||||||||||||||||||||||||||||
| 950 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 951 | 0 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 952 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 953 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 954 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 955 | } | ||||||||||||||||||||||||||||||||||||||
| 956 | 490 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 957 | 490 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 958 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 959 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 960 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 961 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 962 | 490 | push @item, $item{__STRING2__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 963 | |||||||||||||||||||||||||||||||||||||||
| 964 | |||||||||||||||||||||||||||||||||||||||
| 965 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 966 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 967 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 968 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 969 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 970 | |||||||||||||||||||||||||||||||||||||||
| 971 | |||||||||||||||||||||||||||||||||||||||
| 972 | 490 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 973 | #warn 'function ' | ||||||||||||||||||||||||||||||||||||||
| 974 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 975 | 490 | my $fname = $item[1]; | |||||||||||||||||||||||||||||||||||||
| 976 | 490 | my $function; | |||||||||||||||||||||||||||||||||||||
| 977 | 490 | ▶ | if (exists($Math::Symbolic::Parser::Parser_Functions{$fname})) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 978 | 8 | $function = $Math::Symbolic::Parser::Parser_Functions{$fname}->($fname, @{$item[3]}); | |||||||||||||||||||||||||||||||||||||
| 979 | 8 | ▶ | die "Invalid function '$fname'!" | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 980 | unless defined $function; | ||||||||||||||||||||||||||||||||||||||
| 981 | } | ||||||||||||||||||||||||||||||||||||||
| 982 | else { | ||||||||||||||||||||||||||||||||||||||
| 983 | 482 | $function = $Math::Symbolic::Operator::Op_Symbols{ $fname }; | |||||||||||||||||||||||||||||||||||||
| 984 | 482 | ▶ | die "Invalid function '$fname'!" | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 985 | unless defined $function; | ||||||||||||||||||||||||||||||||||||||
| 986 | 482 | $function = Math::Symbolic::Operator->new( | |||||||||||||||||||||||||||||||||||||
| 987 | { type => $function, operands => $item[3] } | ||||||||||||||||||||||||||||||||||||||
| 988 | ); | ||||||||||||||||||||||||||||||||||||||
| 989 | } | ||||||||||||||||||||||||||||||||||||||
| 990 | 490 | $function | |||||||||||||||||||||||||||||||||||||
| 991 | }; | ||||||||||||||||||||||||||||||||||||||
| 992 | 490 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 993 | { | ||||||||||||||||||||||||||||||||||||||
| 994 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 995 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 996 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 997 | } | ||||||||||||||||||||||||||||||||||||||
| 998 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 999 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1000 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1001 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1002 | 490 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1003 | 490 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 1004 | |||||||||||||||||||||||||||||||||||||||
| 1005 | |||||||||||||||||||||||||||||||||||||||
| 1006 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [function_name '(' expr_list ')']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1007 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1008 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 1009 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1010 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1011 | |||||||||||||||||||||||||||||||||||||||
| 1012 | |||||||||||||||||||||||||||||||||||||||
| 1013 | |||||||||||||||||||||||||||||||||||||||
| 1014 | 490 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 1015 | 490 | last; | |||||||||||||||||||||||||||||||||||||
| 1016 | } | ||||||||||||||||||||||||||||||||||||||
| 1017 | |||||||||||||||||||||||||||||||||||||||
| 1018 | |||||||||||||||||||||||||||||||||||||||
| 1019 | 4325 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or defined $score
MC/DC50%1/2
$_matched or defined $score
$_matched
defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 1020 | { | ||||||||||||||||||||||||||||||||||||||
| 1021 | |||||||||||||||||||||||||||||||||||||||
| 1022 | |||||||||||||||||||||||||||||||||||||||
| 1023 | 3835 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 1024 | 3835 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1025 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1026 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 1027 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1028 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1029 | 3835 | return undef; | |||||||||||||||||||||||||||||||||||||
| 1030 | } | ||||||||||||||||||||||||||||||||||||||
| 1031 | 490 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 1032 | { | ||||||||||||||||||||||||||||||||||||||
| 1033 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1034 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 1035 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1036 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1037 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 1038 | } | ||||||||||||||||||||||||||||||||||||||
| 1039 | 490 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 1040 | 490 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1041 | 490 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1042 | { | ||||||||||||||||||||||||||||||||||||||
| 1043 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 1044 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 1045 | q{function}, | ||||||||||||||||||||||||||||||||||||||
| 1046 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 1047 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 1048 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1049 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1050 | , q{function}, | ||||||||||||||||||||||||||||||||||||||
| 1051 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1052 | } | ||||||||||||||||||||||||||||||||||||||
| 1053 | 490 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 1054 | 490 | return $return; | |||||||||||||||||||||||||||||||||||||
| 1055 | } | ||||||||||||||||||||||||||||||||||||||
| 1056 | |||||||||||||||||||||||||||||||||||||||
| 1057 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 1058 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::number | ||||||||||||||||||||||||||||||||||||||
| 1059 | 6123 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
number: called CC=29 SCAR=37.8
| |||||||||||||||||||||||||||||||||||||||
| 1060 | 6123 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 1061 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1062 | 6123 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 1063 | 6123 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 1064 | 6123 | my $thisrule = $thisparser->{"rules"}{"number"}; | |||||||||||||||||||||||||||||||||||||
| 1065 | |||||||||||||||||||||||||||||||||||||||
| 1066 | 6123 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [number]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1067 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1068 | q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1069 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1070 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1071 | |||||||||||||||||||||||||||||||||||||||
| 1072 | |||||||||||||||||||||||||||||||||||||||
| 1073 | 6123 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 1074 | |||||||||||||||||||||||||||||||||||||||
| 1075 | 6123 | my $score; | |||||||||||||||||||||||||||||||||||||
| 1076 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 1077 | 6123 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 1078 | 6123 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 1079 | 6123 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 1080 | 6123 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 1081 | 6123 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 1082 | 6123 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 1083 | 6123 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 1084 | 6123 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 1085 | 6123 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1086 | 6123 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 1087 | 6123 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1088 | 6123 | my $text; | |||||||||||||||||||||||||||||||||||||
| 1089 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 1090 | 6123 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 1091 | 6123 | my $expectation = new Parse::RecDescent::Expectation(q{/([+-]?)(?=\\d|\\.\\d)\\d*(\\.\\d*)?([Ee]([+-]?\\d+))?/}); | |||||||||||||||||||||||||||||||||||||
| 1092 | 6123 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 1093 | |||||||||||||||||||||||||||||||||||||||
| 1094 | 6123 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 1095 | 6123 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 1096 | |||||||||||||||||||||||||||||||||||||||
| 1097 | |||||||||||||||||||||||||||||||||||||||
| 1098 | |||||||||||||||||||||||||||||||||||||||
| 1099 | 6123 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 1100 | { | ||||||||||||||||||||||||||||||||||||||
| 1101 | |||||||||||||||||||||||||||||||||||||||
| 1102 | 6123 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/([+-]?)(?=\\d|\\.\\d)\\d*(\\.\\d*)?([Ee]([+-]?\\d+))?/]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1103 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1104 | q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1105 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1106 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1107 | 6123 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 1108 | 6123 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 1109 | 6123 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 1110 | 6123 | @item = (q{number}); | |||||||||||||||||||||||||||||||||||||
| 1111 | 6123 | %item = (__RULE__ => q{number}); | |||||||||||||||||||||||||||||||||||||
| 1112 | 6123 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 1113 | |||||||||||||||||||||||||||||||||||||||
| 1114 | |||||||||||||||||||||||||||||||||||||||
| 1115 | 6123 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/([+-]?)(?=\\d|\\.\\d)\\d*(\\.\\d*)?([Ee]([+-]?\\d+))?/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1116 | q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1117 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1118 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1119 | 6123 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 1120 | 6123 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1121 | |||||||||||||||||||||||||||||||||||||||
| 1122 | |||||||||||||||||||||||||||||||||||||||
| 1123 | 6123 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?)/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 1124 | { | ||||||||||||||||||||||||||||||||||||||
| 1125 | 4325 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1126 | 4325 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1127 | 4325 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1128 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1129 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1130 | |||||||||||||||||||||||||||||||||||||||
| 1131 | 4325 | last; | |||||||||||||||||||||||||||||||||||||
| 1132 | } | ||||||||||||||||||||||||||||||||||||||
| 1133 | 1798 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 1134 | 1798 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 1135 | 1798 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1136 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1137 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1138 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1139 | 1798 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 1140 | |||||||||||||||||||||||||||||||||||||||
| 1141 | |||||||||||||||||||||||||||||||||||||||
| 1142 | 1798 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1143 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1144 | q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1145 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1146 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1147 | |||||||||||||||||||||||||||||||||||||||
| 1148 | |||||||||||||||||||||||||||||||||||||||
| 1149 | 1798 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1150 | #warn 'number ' | ||||||||||||||||||||||||||||||||||||||
| 1151 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 1152 | 1798 | Math::Symbolic::Constant->new($item[1]) | |||||||||||||||||||||||||||||||||||||
| 1153 | }; | ||||||||||||||||||||||||||||||||||||||
| 1154 | 1798 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1155 | { | ||||||||||||||||||||||||||||||||||||||
| 1156 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1157 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1158 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1159 | } | ||||||||||||||||||||||||||||||||||||||
| 1160 | 1798 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1161 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1162 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1163 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1164 | 1798 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1165 | 1798 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 1166 | |||||||||||||||||||||||||||||||||||||||
| 1167 | |||||||||||||||||||||||||||||||||||||||
| 1168 | 1798 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/([+-]?)(?=\\d|\\.\\d)\\d*(\\.\\d*)?([Ee]([+-]?\\d+))?/]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1169 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1170 | q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1171 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1172 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1173 | |||||||||||||||||||||||||||||||||||||||
| 1174 | |||||||||||||||||||||||||||||||||||||||
| 1175 | |||||||||||||||||||||||||||||||||||||||
| 1176 | 1798 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 1177 | 1798 | last; | |||||||||||||||||||||||||||||||||||||
| 1178 | } | ||||||||||||||||||||||||||||||||||||||
| 1179 | |||||||||||||||||||||||||||||||||||||||
| 1180 | |||||||||||||||||||||||||||||||||||||||
| 1181 | 6123 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or defined $score
MC/DC50%1/2
$_matched or defined $score
$_matched
defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 1182 | { | ||||||||||||||||||||||||||||||||||||||
| 1183 | |||||||||||||||||||||||||||||||||||||||
| 1184 | |||||||||||||||||||||||||||||||||||||||
| 1185 | 4325 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 1186 | 4325 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1187 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1188 | q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1189 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1190 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1191 | 4325 | return undef; | |||||||||||||||||||||||||||||||||||||
| 1192 | } | ||||||||||||||||||||||||||||||||||||||
| 1193 | 1798 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 1194 | { | ||||||||||||||||||||||||||||||||||||||
| 1195 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1196 | q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1197 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1198 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1199 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 1200 | } | ||||||||||||||||||||||||||||||||||||||
| 1201 | 1798 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 1202 | 1798 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1203 | 1798 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1204 | { | ||||||||||||||||||||||||||||||||||||||
| 1205 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 1206 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 1207 | q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1208 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 1209 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 1210 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1211 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1212 | , q{number}, | ||||||||||||||||||||||||||||||||||||||
| 1213 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1214 | } | ||||||||||||||||||||||||||||||||||||||
| 1215 | 1798 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 1216 | 1798 | return $return; | |||||||||||||||||||||||||||||||||||||
| 1217 | } | ||||||||||||||||||||||||||||||||||||||
| 1218 | |||||||||||||||||||||||||||||||||||||||
| 1219 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 1220 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::multiplication | ||||||||||||||||||||||||||||||||||||||
| 1221 | 2271 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
multiplication: called CC=45 SCAR=46.4
| |||||||||||||||||||||||||||||||||||||||
| 1222 | 2271 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 1223 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1224 | 2271 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 1225 | 2271 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 1226 | 2271 | my $thisrule = $thisparser->{"rules"}{"multiplication"}; | |||||||||||||||||||||||||||||||||||||
| 1227 | |||||||||||||||||||||||||||||||||||||||
| 1228 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [multiplication]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1229 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1230 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1231 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1232 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1233 | |||||||||||||||||||||||||||||||||||||||
| 1234 | |||||||||||||||||||||||||||||||||||||||
| 1235 | 2271 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 1236 | |||||||||||||||||||||||||||||||||||||||
| 1237 | 2271 | my $score; | |||||||||||||||||||||||||||||||||||||
| 1238 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 1239 | 2271 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 1240 | 2271 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 1241 | 2271 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 1242 | 2271 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 1243 | 2271 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 1244 | 2271 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 1245 | 2271 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 1246 | 2271 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 1247 | 2271 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1248 | 2271 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 1249 | 2271 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1250 | 2271 | my $text; | |||||||||||||||||||||||||||||||||||||
| 1251 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 1252 | 2271 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 1253 | 2271 | my $expectation = new Parse::RecDescent::Expectation(q{<leftop: exp mult_op exp>}); | |||||||||||||||||||||||||||||||||||||
| 1254 | 2271 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 1255 | |||||||||||||||||||||||||||||||||||||||
| 1256 | 2271 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 1257 | 2271 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 1258 | |||||||||||||||||||||||||||||||||||||||
| 1259 | |||||||||||||||||||||||||||||||||||||||
| 1260 | |||||||||||||||||||||||||||||||||||||||
| 1261 | 2271 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 1262 | { | ||||||||||||||||||||||||||||||||||||||
| 1263 | |||||||||||||||||||||||||||||||||||||||
| 1264 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying production: [<leftop: exp mult_op exp>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1265 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1266 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1267 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1268 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1269 | 2271 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 1270 | 2271 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 1271 | 2271 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 1272 | 2271 | @item = (q{multiplication}); | |||||||||||||||||||||||||||||||||||||
| 1273 | 2271 | %item = (__RULE__ => q{multiplication}); | |||||||||||||||||||||||||||||||||||||
| 1274 | 2271 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 1275 | |||||||||||||||||||||||||||||||||||||||
| 1276 | |||||||||||||||||||||||||||||||||||||||
| 1277 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying operator: [<leftop: exp mult_op exp>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1278 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1279 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1280 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1281 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1282 | 2271 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1283 | |||||||||||||||||||||||||||||||||||||||
| 1284 | 2271 | $_tok = undef; | |||||||||||||||||||||||||||||||||||||
| 1285 | 2271 | OPLOOP: while (1) | |||||||||||||||||||||||||||||||||||||
| 1286 | { | ||||||||||||||||||||||||||||||||||||||
| 1287 | 2271 | $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 1288 | 2271 | my @item; | |||||||||||||||||||||||||||||||||||||
| 1289 | my %item; | ||||||||||||||||||||||||||||||||||||||
| 1290 | |||||||||||||||||||||||||||||||||||||||
| 1291 | # MATCH LEFTARG | ||||||||||||||||||||||||||||||||||||||
| 1292 | |||||||||||||||||||||||||||||||||||||||
| 1293 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1294 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1295 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1296 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1297 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1298 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1299 | 2271 | $expectation->is(q{exp})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1300 | 2271 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1301 | { | ||||||||||||||||||||||||||||||||||||||
| 1302 | |||||||||||||||||||||||||||||||||||||||
| 1303 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1304 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1305 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1306 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1307 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1308 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1309 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1310 | } | ||||||||||||||||||||||||||||||||||||||
| 1311 | 2271 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1312 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 1313 | |||||||||||||||||||||||||||||||||||||||
| 1314 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1315 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1316 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1317 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1318 | 2271 | $item{q{exp}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 1319 | 2271 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1320 | |||||||||||||||||||||||||||||||||||||||
| 1321 | } | ||||||||||||||||||||||||||||||||||||||
| 1322 | |||||||||||||||||||||||||||||||||||||||
| 1323 | |||||||||||||||||||||||||||||||||||||||
| 1324 | |||||||||||||||||||||||||||||||||||||||
| 1325 | 2271 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 1326 | |||||||||||||||||||||||||||||||||||||||
| 1327 | 2271 | my $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 1328 | 2271 | my $backtrack; | |||||||||||||||||||||||||||||||||||||
| 1329 | |||||||||||||||||||||||||||||||||||||||
| 1330 | # MATCH (OP RIGHTARG)(s) | ||||||||||||||||||||||||||||||||||||||
| 1331 | 2271 | ▶ | while ($repcount < 100000000) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1332 | { | ||||||||||||||||||||||||||||||||||||||
| 1333 | 2922 | $backtrack = 0; | |||||||||||||||||||||||||||||||||||||
| 1334 | |||||||||||||||||||||||||||||||||||||||
| 1335 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [mult_op]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1336 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1337 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1338 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1339 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1340 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1341 | 2922 | $expectation->is(q{mult_op})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1342 | 2922 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::mult_op($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1343 | { | ||||||||||||||||||||||||||||||||||||||
| 1344 | |||||||||||||||||||||||||||||||||||||||
| 1345 | 2271 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [mult_op]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1346 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1347 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1348 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1349 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1350 | 2271 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1351 | 2271 | last; | |||||||||||||||||||||||||||||||||||||
| 1352 | } | ||||||||||||||||||||||||||||||||||||||
| 1353 | 651 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [mult_op]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1354 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 1355 | |||||||||||||||||||||||||||||||||||||||
| 1356 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1357 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1358 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1359 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1360 | 651 | $item{q{mult_op}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 1361 | 651 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1362 | |||||||||||||||||||||||||||||||||||||||
| 1363 | } | ||||||||||||||||||||||||||||||||||||||
| 1364 | |||||||||||||||||||||||||||||||||||||||
| 1365 | 651 | $backtrack=1; | |||||||||||||||||||||||||||||||||||||
| 1366 | |||||||||||||||||||||||||||||||||||||||
| 1367 | |||||||||||||||||||||||||||||||||||||||
| 1368 | 651 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1369 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1370 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1371 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1372 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1373 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1374 | 651 | $expectation->is(q{exp})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1375 | 651 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1376 | { | ||||||||||||||||||||||||||||||||||||||
| 1377 | |||||||||||||||||||||||||||||||||||||||
| 1378 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1379 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1380 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1381 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1382 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1383 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1384 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1385 | } | ||||||||||||||||||||||||||||||||||||||
| 1386 | 651 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1387 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 1388 | |||||||||||||||||||||||||||||||||||||||
| 1389 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1390 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1391 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1392 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1393 | 651 | $item{q{exp}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 1394 | 651 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1395 | |||||||||||||||||||||||||||||||||||||||
| 1396 | } | ||||||||||||||||||||||||||||||||||||||
| 1397 | |||||||||||||||||||||||||||||||||||||||
| 1398 | 651 | $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 1399 | 651 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 1400 | } | ||||||||||||||||||||||||||||||||||||||
| 1401 | 2271 | $text = $savetext; | |||||||||||||||||||||||||||||||||||||
| 1402 | 2271 | ▶ | pop @item if $backtrack; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1403 | |||||||||||||||||||||||||||||||||||||||
| 1404 | 0 | ▶ | unless (@item) { undef $_tok; last } | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1405 | 2271 | $_tok = [ @item ]; | |||||||||||||||||||||||||||||||||||||
| 1406 | |||||||||||||||||||||||||||||||||||||||
| 1407 | 2271 | last; | |||||||||||||||||||||||||||||||||||||
| 1408 | } # end of OPLOOP | ||||||||||||||||||||||||||||||||||||||
| 1409 | |||||||||||||||||||||||||||||||||||||||
| 1410 | 2271 | ▶ | unless ($repcount>=1) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1411 | { | ||||||||||||||||||||||||||||||||||||||
| 1412 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match operator: [<leftop: exp mult_op exp>]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1413 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1414 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1415 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1416 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1417 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1418 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1419 | } | ||||||||||||||||||||||||||||||||||||||
| 1420 | 2271 | ▶ | Parse::RecDescent::_trace(q{>>Matched operator: [<leftop: exp mult_op exp>]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1421 | 0 | ▶ | . qq{@{$_tok||[]}} . q{]}, | ||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table0%0/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 1422 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1423 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1424 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1425 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1426 | |||||||||||||||||||||||||||||||||||||||
| 1427 | 2271 | ▶ | push @item, $item{__DIRECTIVE1__}=$_tok||[]; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table50%1/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 1428 | |||||||||||||||||||||||||||||||||||||||
| 1429 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1430 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1431 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1432 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1433 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1434 | |||||||||||||||||||||||||||||||||||||||
| 1435 | |||||||||||||||||||||||||||||||||||||||
| 1436 | 2271 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1437 | #warn 'multiplication ' | ||||||||||||||||||||||||||||||||||||||
| 1438 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 1439 | 2271 | ▶ | if (@{$item[1]} == 1) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1440 | 1650 | $item[1][0] | |||||||||||||||||||||||||||||||||||||
| 1441 | } | ||||||||||||||||||||||||||||||||||||||
| 1442 | else { | ||||||||||||||||||||||||||||||||||||||
| 1443 | 621 | my @it = @{$item[1]}; | |||||||||||||||||||||||||||||||||||||
| 1444 | 621 | my $tree = shift @it; | |||||||||||||||||||||||||||||||||||||
| 1445 | 621 | ▶ | while (@it) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1446 | 651 | $tree = Math::Symbolic::Operator->new( | |||||||||||||||||||||||||||||||||||||
| 1447 | shift(@it), $tree, shift(@it) | ||||||||||||||||||||||||||||||||||||||
| 1448 | ); | ||||||||||||||||||||||||||||||||||||||
| 1449 | } | ||||||||||||||||||||||||||||||||||||||
| 1450 | 621 | $tree; | |||||||||||||||||||||||||||||||||||||
| 1451 | } | ||||||||||||||||||||||||||||||||||||||
| 1452 | }; | ||||||||||||||||||||||||||||||||||||||
| 1453 | 2271 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1454 | { | ||||||||||||||||||||||||||||||||||||||
| 1455 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1456 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1457 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1458 | } | ||||||||||||||||||||||||||||||||||||||
| 1459 | 2271 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1460 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1461 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1462 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1463 | 2271 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1464 | 2271 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 1465 | |||||||||||||||||||||||||||||||||||||||
| 1466 | |||||||||||||||||||||||||||||||||||||||
| 1467 | 2271 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [<leftop: exp mult_op exp>]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1468 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1469 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1470 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1471 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1472 | |||||||||||||||||||||||||||||||||||||||
| 1473 | |||||||||||||||||||||||||||||||||||||||
| 1474 | |||||||||||||||||||||||||||||||||||||||
| 1475 | 2271 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 1476 | 2271 | last; | |||||||||||||||||||||||||||||||||||||
| 1477 | } | ||||||||||||||||||||||||||||||||||||||
| 1478 | |||||||||||||||||||||||||||||||||||||||
| 1479 | |||||||||||||||||||||||||||||||||||||||
| 1480 | 2271 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or defined $score
MC/DC0%0/2
$_matched or defined $score
$_matched
defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 1481 | { | ||||||||||||||||||||||||||||||||||||||
| 1482 | |||||||||||||||||||||||||||||||||||||||
| 1483 | |||||||||||||||||||||||||||||||||||||||
| 1484 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 1485 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1486 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1487 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1488 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1489 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1490 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||
| 1491 | } | ||||||||||||||||||||||||||||||||||||||
| 1492 | 2271 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 1493 | { | ||||||||||||||||||||||||||||||||||||||
| 1494 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1495 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1496 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1497 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1498 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 1499 | } | ||||||||||||||||||||||||||||||||||||||
| 1500 | 2271 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 1501 | 2271 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1502 | 2271 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1503 | { | ||||||||||||||||||||||||||||||||||||||
| 1504 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 1505 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 1506 | q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1507 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 1508 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 1509 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1510 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1511 | , q{multiplication}, | ||||||||||||||||||||||||||||||||||||||
| 1512 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1513 | } | ||||||||||||||||||||||||||||||||||||||
| 1514 | 2271 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 1515 | 2271 | return $return; | |||||||||||||||||||||||||||||||||||||
| 1516 | } | ||||||||||||||||||||||||||||||||||||||
| 1517 | |||||||||||||||||||||||||||||||||||||||
| 1518 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 1519 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::parse | ||||||||||||||||||||||||||||||||||||||
| 1520 | 356 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
parse: called CC=49 SCAR=48.6
| |||||||||||||||||||||||||||||||||||||||
| 1521 | 356 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 1522 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1523 | 356 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC100%1/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table100%2/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 1524 | 356 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 1525 | 356 | my $thisrule = $thisparser->{"rules"}{"parse"}; | |||||||||||||||||||||||||||||||||||||
| 1526 | |||||||||||||||||||||||||||||||||||||||
| 1527 | 356 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [parse]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1528 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1529 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1530 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1531 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1532 | |||||||||||||||||||||||||||||||||||||||
| 1533 | |||||||||||||||||||||||||||||||||||||||
| 1534 | 356 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 1535 | |||||||||||||||||||||||||||||||||||||||
| 1536 | 356 | my $score; | |||||||||||||||||||||||||||||||||||||
| 1537 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 1538 | 356 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 1539 | 356 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 1540 | 356 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 1541 | 356 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 1542 | 356 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 1543 | 356 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 1544 | 356 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 1545 | 356 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 1546 | 356 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1547 | 356 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 1548 | 356 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1549 | 356 | my $text; | |||||||||||||||||||||||||||||||||||||
| 1550 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 1551 | 356 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 1552 | 356 | my $expectation = new Parse::RecDescent::Expectation(q{expr, or //}); | |||||||||||||||||||||||||||||||||||||
| 1553 | 356 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 1554 | |||||||||||||||||||||||||||||||||||||||
| 1555 | 356 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 1556 | 356 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 1557 | |||||||||||||||||||||||||||||||||||||||
| 1558 | |||||||||||||||||||||||||||||||||||||||
| 1559 | |||||||||||||||||||||||||||||||||||||||
| 1560 | 356 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 1561 | { | ||||||||||||||||||||||||||||||||||||||
| 1562 | |||||||||||||||||||||||||||||||||||||||
| 1563 | 356 | ▶ | Parse::RecDescent::_trace(q{Trying production: [expr /^\\Z/]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1564 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1565 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1566 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1567 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1568 | 356 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 1569 | 356 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 1570 | 356 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 1571 | 356 | @item = (q{parse}); | |||||||||||||||||||||||||||||||||||||
| 1572 | 356 | %item = (__RULE__ => q{parse}); | |||||||||||||||||||||||||||||||||||||
| 1573 | 356 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 1574 | |||||||||||||||||||||||||||||||||||||||
| 1575 | |||||||||||||||||||||||||||||||||||||||
| 1576 | 356 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [expr]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1577 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1578 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1579 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1580 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1581 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1582 | 356 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1583 | 356 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::expr($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1584 | { | ||||||||||||||||||||||||||||||||||||||
| 1585 | |||||||||||||||||||||||||||||||||||||||
| 1586 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [expr]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1587 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1588 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1589 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1590 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1591 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1592 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1593 | } | ||||||||||||||||||||||||||||||||||||||
| 1594 | 356 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [expr]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1595 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 1596 | |||||||||||||||||||||||||||||||||||||||
| 1597 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1598 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1599 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1600 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1601 | 356 | $item{q{expr}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 1602 | 356 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1603 | |||||||||||||||||||||||||||||||||||||||
| 1604 | } | ||||||||||||||||||||||||||||||||||||||
| 1605 | |||||||||||||||||||||||||||||||||||||||
| 1606 | 356 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/^\\Z/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1607 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1608 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1609 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1610 | 356 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 1611 | 356 | $expectation->is(q{/^\\Z/})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1612 | |||||||||||||||||||||||||||||||||||||||
| 1613 | |||||||||||||||||||||||||||||||||||||||
| 1614 | 356 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^\Z)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:^\Z)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^\Z)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 1615 | { | ||||||||||||||||||||||||||||||||||||||
| 1616 | 1 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1617 | 1 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1618 | 1 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1619 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1620 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1621 | |||||||||||||||||||||||||||||||||||||||
| 1622 | 1 | last; | |||||||||||||||||||||||||||||||||||||
| 1623 | } | ||||||||||||||||||||||||||||||||||||||
| 1624 | 355 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 1625 | 355 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 1626 | 355 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1627 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1628 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1629 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1630 | 355 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 1631 | |||||||||||||||||||||||||||||||||||||||
| 1632 | |||||||||||||||||||||||||||||||||||||||
| 1633 | 355 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1634 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1635 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1636 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1637 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1638 | |||||||||||||||||||||||||||||||||||||||
| 1639 | |||||||||||||||||||||||||||||||||||||||
| 1640 | 355 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1641 | 355 | $return = $item[1] | |||||||||||||||||||||||||||||||||||||
| 1642 | }; | ||||||||||||||||||||||||||||||||||||||
| 1643 | 355 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1644 | { | ||||||||||||||||||||||||||||||||||||||
| 1645 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1646 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1647 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1648 | } | ||||||||||||||||||||||||||||||||||||||
| 1649 | 355 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1650 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1651 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1652 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1653 | 355 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1654 | 355 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 1655 | |||||||||||||||||||||||||||||||||||||||
| 1656 | |||||||||||||||||||||||||||||||||||||||
| 1657 | 355 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [expr /^\\Z/]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1658 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1659 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1660 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1661 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1662 | |||||||||||||||||||||||||||||||||||||||
| 1663 | |||||||||||||||||||||||||||||||||||||||
| 1664 | |||||||||||||||||||||||||||||||||||||||
| 1665 | 355 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 1666 | 355 | last; | |||||||||||||||||||||||||||||||||||||
| 1667 | } | ||||||||||||||||||||||||||||||||||||||
| 1668 | |||||||||||||||||||||||||||||||||||||||
| 1669 | |||||||||||||||||||||||||||||||||||||||
| 1670 | 356 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 1671 | { | ||||||||||||||||||||||||||||||||||||||
| 1672 | |||||||||||||||||||||||||||||||||||||||
| 1673 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying production: [//]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1674 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1675 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1676 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1677 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1678 | 1 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||
| 1679 | 1 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 1680 | 1 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 1681 | 1 | @item = (q{parse}); | |||||||||||||||||||||||||||||||||||||
| 1682 | 1 | %item = (__RULE__ => q{parse}); | |||||||||||||||||||||||||||||||||||||
| 1683 | 1 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 1684 | |||||||||||||||||||||||||||||||||||||||
| 1685 | |||||||||||||||||||||||||||||||||||||||
| 1686 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [//]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1687 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1688 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1689 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1690 | 1 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 1691 | 1 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1692 | |||||||||||||||||||||||||||||||||||||||
| 1693 | |||||||||||||||||||||||||||||||||||||||
| 1694 | 1 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 1695 | { | ||||||||||||||||||||||||||||||||||||||
| 1696 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1697 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1698 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1699 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1700 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1701 | |||||||||||||||||||||||||||||||||||||||
| 1702 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1703 | } | ||||||||||||||||||||||||||||||||||||||
| 1704 | 1 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 1705 | 1 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 1706 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1707 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1708 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1709 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1710 | 1 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 1711 | |||||||||||||||||||||||||||||||||||||||
| 1712 | |||||||||||||||||||||||||||||||||||||||
| 1713 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1714 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1715 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1716 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1717 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1718 | |||||||||||||||||||||||||||||||||||||||
| 1719 | |||||||||||||||||||||||||||||||||||||||
| 1720 | 1 | ▶ | $_tok = ($_noactions) ? 0 : do {undef}; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1721 | 1 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1722 | { | ||||||||||||||||||||||||||||||||||||||
| 1723 | 1 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1724 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1725 | 1 | last; | |||||||||||||||||||||||||||||||||||||
| 1726 | } | ||||||||||||||||||||||||||||||||||||||
| 1727 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1728 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1729 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 1730 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1731 | 0 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1732 | 0 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 1733 | |||||||||||||||||||||||||||||||||||||||
| 1734 | |||||||||||||||||||||||||||||||||||||||
| 1735 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [//]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1736 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1737 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1738 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1739 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1740 | |||||||||||||||||||||||||||||||||||||||
| 1741 | |||||||||||||||||||||||||||||||||||||||
| 1742 | |||||||||||||||||||||||||||||||||||||||
| 1743 | 0 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 1744 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1745 | } | ||||||||||||||||||||||||||||||||||||||
| 1746 | |||||||||||||||||||||||||||||||||||||||
| 1747 | |||||||||||||||||||||||||||||||||||||||
| 1748 | 356 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or defined $score
MC/DC50%1/2
$_matched or defined $score
$_matched
defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 1749 | { | ||||||||||||||||||||||||||||||||||||||
| 1750 | |||||||||||||||||||||||||||||||||||||||
| 1751 | |||||||||||||||||||||||||||||||||||||||
| 1752 | 1 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 1753 | 1 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1754 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1755 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1756 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1757 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1758 | 1 | return undef; | |||||||||||||||||||||||||||||||||||||
| 1759 | } | ||||||||||||||||||||||||||||||||||||||
| 1760 | 355 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 1761 | { | ||||||||||||||||||||||||||||||||||||||
| 1762 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1763 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1764 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1765 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1766 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 1767 | } | ||||||||||||||||||||||||||||||||||||||
| 1768 | 355 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 1769 | 355 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1770 | 355 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1771 | { | ||||||||||||||||||||||||||||||||||||||
| 1772 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 1773 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 1774 | q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1775 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 1776 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 1777 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 1778 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1779 | , q{parse}, | ||||||||||||||||||||||||||||||||||||||
| 1780 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1781 | } | ||||||||||||||||||||||||||||||||||||||
| 1782 | 355 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 1783 | 355 | return $return; | |||||||||||||||||||||||||||||||||||||
| 1784 | } | ||||||||||||||||||||||||||||||||||||||
| 1785 | |||||||||||||||||||||||||||||||||||||||
| 1786 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 1787 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::addition | ||||||||||||||||||||||||||||||||||||||
| 1788 | 1779 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
addition: called CC=45 SCAR=46.4
| |||||||||||||||||||||||||||||||||||||||
| 1789 | 1779 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 1790 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1791 | 1779 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 1792 | 1779 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 1793 | 1779 | my $thisrule = $thisparser->{"rules"}{"addition"}; | |||||||||||||||||||||||||||||||||||||
| 1794 | |||||||||||||||||||||||||||||||||||||||
| 1795 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [addition]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1796 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1797 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1798 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1799 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1800 | |||||||||||||||||||||||||||||||||||||||
| 1801 | |||||||||||||||||||||||||||||||||||||||
| 1802 | 1779 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 1803 | |||||||||||||||||||||||||||||||||||||||
| 1804 | 1779 | my $score; | |||||||||||||||||||||||||||||||||||||
| 1805 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 1806 | 1779 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 1807 | 1779 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 1808 | 1779 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 1809 | 1779 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 1810 | 1779 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 1811 | 1779 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 1812 | 1779 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 1813 | 1779 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 1814 | 1779 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1815 | 1779 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 1816 | 1779 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1817 | 1779 | my $text; | |||||||||||||||||||||||||||||||||||||
| 1818 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 1819 | 1779 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 1820 | 1779 | my $expectation = new Parse::RecDescent::Expectation(q{<leftop: multiplication add_op multiplication>}); | |||||||||||||||||||||||||||||||||||||
| 1821 | 1779 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 1822 | |||||||||||||||||||||||||||||||||||||||
| 1823 | 1779 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 1824 | 1779 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 1825 | |||||||||||||||||||||||||||||||||||||||
| 1826 | |||||||||||||||||||||||||||||||||||||||
| 1827 | |||||||||||||||||||||||||||||||||||||||
| 1828 | 1779 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 1829 | { | ||||||||||||||||||||||||||||||||||||||
| 1830 | |||||||||||||||||||||||||||||||||||||||
| 1831 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying production: [<leftop: multiplication add_op multiplication>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1832 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 1833 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1834 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1835 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1836 | 1779 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 1837 | 1779 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 1838 | 1779 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 1839 | 1779 | @item = (q{addition}); | |||||||||||||||||||||||||||||||||||||
| 1840 | 1779 | %item = (__RULE__ => q{addition}); | |||||||||||||||||||||||||||||||||||||
| 1841 | 1779 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 1842 | |||||||||||||||||||||||||||||||||||||||
| 1843 | |||||||||||||||||||||||||||||||||||||||
| 1844 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying operator: [<leftop: multiplication add_op multiplication>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1845 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1846 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1847 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1848 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1849 | 1779 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1850 | |||||||||||||||||||||||||||||||||||||||
| 1851 | 1779 | $_tok = undef; | |||||||||||||||||||||||||||||||||||||
| 1852 | 1779 | OPLOOP: while (1) | |||||||||||||||||||||||||||||||||||||
| 1853 | { | ||||||||||||||||||||||||||||||||||||||
| 1854 | 1779 | $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 1855 | 1779 | my @item; | |||||||||||||||||||||||||||||||||||||
| 1856 | my %item; | ||||||||||||||||||||||||||||||||||||||
| 1857 | |||||||||||||||||||||||||||||||||||||||
| 1858 | # MATCH LEFTARG | ||||||||||||||||||||||||||||||||||||||
| 1859 | |||||||||||||||||||||||||||||||||||||||
| 1860 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [multiplication]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1861 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1862 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1863 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1864 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1865 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1866 | 1779 | $expectation->is(q{multiplication})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1867 | 1779 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::multiplication($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1868 | { | ||||||||||||||||||||||||||||||||||||||
| 1869 | |||||||||||||||||||||||||||||||||||||||
| 1870 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [multiplication]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1871 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1872 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1873 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1874 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1875 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1876 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1877 | } | ||||||||||||||||||||||||||||||||||||||
| 1878 | 1779 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [multiplication]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1879 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 1880 | |||||||||||||||||||||||||||||||||||||||
| 1881 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1882 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1883 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1884 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1885 | 1779 | $item{q{multiplication}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 1886 | 1779 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1887 | |||||||||||||||||||||||||||||||||||||||
| 1888 | } | ||||||||||||||||||||||||||||||||||||||
| 1889 | |||||||||||||||||||||||||||||||||||||||
| 1890 | |||||||||||||||||||||||||||||||||||||||
| 1891 | |||||||||||||||||||||||||||||||||||||||
| 1892 | 1779 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 1893 | |||||||||||||||||||||||||||||||||||||||
| 1894 | 1779 | my $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 1895 | 1779 | my $backtrack; | |||||||||||||||||||||||||||||||||||||
| 1896 | |||||||||||||||||||||||||||||||||||||||
| 1897 | # MATCH (OP RIGHTARG)(s) | ||||||||||||||||||||||||||||||||||||||
| 1898 | 1779 | ▶ | while ($repcount < 100000000) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1899 | { | ||||||||||||||||||||||||||||||||||||||
| 1900 | 2271 | $backtrack = 0; | |||||||||||||||||||||||||||||||||||||
| 1901 | |||||||||||||||||||||||||||||||||||||||
| 1902 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [add_op]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1903 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1904 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1905 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1906 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1907 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1908 | 2271 | $expectation->is(q{add_op})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1909 | 2271 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::add_op($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1910 | { | ||||||||||||||||||||||||||||||||||||||
| 1911 | |||||||||||||||||||||||||||||||||||||||
| 1912 | 1779 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [add_op]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1913 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1914 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1915 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1916 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1917 | 1779 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1918 | 1779 | last; | |||||||||||||||||||||||||||||||||||||
| 1919 | } | ||||||||||||||||||||||||||||||||||||||
| 1920 | 492 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [add_op]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1921 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 1922 | |||||||||||||||||||||||||||||||||||||||
| 1923 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1924 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1925 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1926 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1927 | 492 | $item{q{add_op}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 1928 | 492 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1929 | |||||||||||||||||||||||||||||||||||||||
| 1930 | } | ||||||||||||||||||||||||||||||||||||||
| 1931 | |||||||||||||||||||||||||||||||||||||||
| 1932 | 492 | $backtrack=1; | |||||||||||||||||||||||||||||||||||||
| 1933 | |||||||||||||||||||||||||||||||||||||||
| 1934 | |||||||||||||||||||||||||||||||||||||||
| 1935 | 492 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [multiplication]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1936 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1937 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1938 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1939 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1940 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 1941 | 492 | $expectation->is(q{multiplication})->at($text); | |||||||||||||||||||||||||||||||||||||
| 1942 | 492 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::multiplication($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1943 | { | ||||||||||||||||||||||||||||||||||||||
| 1944 | |||||||||||||||||||||||||||||||||||||||
| 1945 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [multiplication]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1946 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1947 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1948 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1949 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1950 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1951 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1952 | } | ||||||||||||||||||||||||||||||||||||||
| 1953 | 492 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [multiplication]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1954 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 1955 | |||||||||||||||||||||||||||||||||||||||
| 1956 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1957 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1958 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1959 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1960 | 492 | $item{q{multiplication}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 1961 | 492 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 1962 | |||||||||||||||||||||||||||||||||||||||
| 1963 | } | ||||||||||||||||||||||||||||||||||||||
| 1964 | |||||||||||||||||||||||||||||||||||||||
| 1965 | 492 | $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 1966 | 492 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 1967 | } | ||||||||||||||||||||||||||||||||||||||
| 1968 | 1779 | $text = $savetext; | |||||||||||||||||||||||||||||||||||||
| 1969 | 1779 | ▶ | pop @item if $backtrack; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1970 | |||||||||||||||||||||||||||||||||||||||
| 1971 | 0 | ▶ | unless (@item) { undef $_tok; last } | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1972 | 1779 | $_tok = [ @item ]; | |||||||||||||||||||||||||||||||||||||
| 1973 | |||||||||||||||||||||||||||||||||||||||
| 1974 | 1779 | last; | |||||||||||||||||||||||||||||||||||||
| 1975 | } # end of OPLOOP | ||||||||||||||||||||||||||||||||||||||
| 1976 | |||||||||||||||||||||||||||||||||||||||
| 1977 | 1779 | ▶ | unless ($repcount>=1) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1978 | { | ||||||||||||||||||||||||||||||||||||||
| 1979 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match operator: [<leftop: multiplication add_op multiplication>]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1980 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1981 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1982 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1983 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1984 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 1985 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 1986 | } | ||||||||||||||||||||||||||||||||||||||
| 1987 | 1779 | ▶ | Parse::RecDescent::_trace(q{>>Matched operator: [<leftop: multiplication add_op multiplication>]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1988 | 0 | ▶ | . qq{@{$_tok||[]}} . q{]}, | ||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table0%0/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 1989 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1990 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1991 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 1992 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 1993 | |||||||||||||||||||||||||||||||||||||||
| 1994 | 1779 | ▶ | push @item, $item{__DIRECTIVE1__}=$_tok||[]; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table50%1/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 1995 | |||||||||||||||||||||||||||||||||||||||
| 1996 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 1997 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 1998 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 1999 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2000 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2001 | |||||||||||||||||||||||||||||||||||||||
| 2002 | |||||||||||||||||||||||||||||||||||||||
| 2003 | 1779 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2004 | #warn 'addition ' | ||||||||||||||||||||||||||||||||||||||
| 2005 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 2006 | 1779 | ▶ | if (@{$item[1]} == 1) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2007 | 1363 | $item[1][0] | |||||||||||||||||||||||||||||||||||||
| 2008 | } | ||||||||||||||||||||||||||||||||||||||
| 2009 | else { | ||||||||||||||||||||||||||||||||||||||
| 2010 | 416 | my @it = @{$item[1]}; | |||||||||||||||||||||||||||||||||||||
| 2011 | 416 | my $tree = shift @it; | |||||||||||||||||||||||||||||||||||||
| 2012 | 416 | ▶ | while (@it) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2013 | 492 | $tree = Math::Symbolic::Operator->new( | |||||||||||||||||||||||||||||||||||||
| 2014 | shift(@it), $tree, shift(@it) | ||||||||||||||||||||||||||||||||||||||
| 2015 | ); | ||||||||||||||||||||||||||||||||||||||
| 2016 | } | ||||||||||||||||||||||||||||||||||||||
| 2017 | 416 | $tree; | |||||||||||||||||||||||||||||||||||||
| 2018 | } | ||||||||||||||||||||||||||||||||||||||
| 2019 | }; | ||||||||||||||||||||||||||||||||||||||
| 2020 | 1779 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2021 | { | ||||||||||||||||||||||||||||||||||||||
| 2022 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2023 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2024 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2025 | } | ||||||||||||||||||||||||||||||||||||||
| 2026 | 1779 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2027 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2028 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2029 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2030 | 1779 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2031 | 1779 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 2032 | |||||||||||||||||||||||||||||||||||||||
| 2033 | |||||||||||||||||||||||||||||||||||||||
| 2034 | 1779 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [<leftop: multiplication add_op multiplication>]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2035 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2036 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 2037 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2038 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2039 | |||||||||||||||||||||||||||||||||||||||
| 2040 | |||||||||||||||||||||||||||||||||||||||
| 2041 | |||||||||||||||||||||||||||||||||||||||
| 2042 | 1779 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 2043 | 1779 | last; | |||||||||||||||||||||||||||||||||||||
| 2044 | } | ||||||||||||||||||||||||||||||||||||||
| 2045 | |||||||||||||||||||||||||||||||||||||||
| 2046 | |||||||||||||||||||||||||||||||||||||||
| 2047 | 1779 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or defined $score
MC/DC0%0/2
$_matched or defined $score
$_matched
defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 2048 | { | ||||||||||||||||||||||||||||||||||||||
| 2049 | |||||||||||||||||||||||||||||||||||||||
| 2050 | |||||||||||||||||||||||||||||||||||||||
| 2051 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 2052 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2053 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2054 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 2055 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2056 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2057 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||
| 2058 | } | ||||||||||||||||||||||||||||||||||||||
| 2059 | 1779 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 2060 | { | ||||||||||||||||||||||||||||||||||||||
| 2061 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2062 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 2063 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2064 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2065 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 2066 | } | ||||||||||||||||||||||||||||||||||||||
| 2067 | 1779 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 2068 | 1779 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2069 | 1779 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2070 | { | ||||||||||||||||||||||||||||||||||||||
| 2071 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 2072 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 2073 | q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 2074 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 2075 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 2076 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2077 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2078 | , q{addition}, | ||||||||||||||||||||||||||||||||||||||
| 2079 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2080 | } | ||||||||||||||||||||||||||||||||||||||
| 2081 | 1779 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 2082 | 1779 | return $return; | |||||||||||||||||||||||||||||||||||||
| 2083 | } | ||||||||||||||||||||||||||||||||||||||
| 2084 | |||||||||||||||||||||||||||||||||||||||
| 2085 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 2086 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::factor | ||||||||||||||||||||||||||||||||||||||
| 2087 | 6123 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
factor: called CC=115 SCAR=64.6
| |||||||||||||||||||||||||||||||||||||||
| 2088 | 6123 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 2089 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 2090 | 6123 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 2091 | 6123 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 2092 | 6123 | my $thisrule = $thisparser->{"rules"}{"factor"}; | |||||||||||||||||||||||||||||||||||||
| 2093 | |||||||||||||||||||||||||||||||||||||||
| 2094 | 6123 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [factor]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2095 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2096 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2097 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2098 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2099 | |||||||||||||||||||||||||||||||||||||||
| 2100 | |||||||||||||||||||||||||||||||||||||||
| 2101 | 6123 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 2102 | |||||||||||||||||||||||||||||||||||||||
| 2103 | 6123 | my $score; | |||||||||||||||||||||||||||||||||||||
| 2104 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 2105 | 6123 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 2106 | 6123 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 2107 | 6123 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 2108 | 6123 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 2109 | 6123 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 2110 | 6123 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 2111 | 6123 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 2112 | 6123 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 2113 | 6123 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2114 | 6123 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 2115 | 6123 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2116 | 6123 | my $text; | |||||||||||||||||||||||||||||||||||||
| 2117 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 2118 | 6123 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 2119 | 6123 | my $expectation = new Parse::RecDescent::Expectation(q{/(?:\\+|-)*/}); | |||||||||||||||||||||||||||||||||||||
| 2120 | 6123 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 2121 | |||||||||||||||||||||||||||||||||||||||
| 2122 | 6123 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 2123 | 6123 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 2124 | |||||||||||||||||||||||||||||||||||||||
| 2125 | |||||||||||||||||||||||||||||||||||||||
| 2126 | |||||||||||||||||||||||||||||||||||||||
| 2127 | 6123 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 2128 | { | ||||||||||||||||||||||||||||||||||||||
| 2129 | |||||||||||||||||||||||||||||||||||||||
| 2130 | 6123 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/(?:\\+|-)*/ number]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2131 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2132 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2133 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2134 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2135 | 6123 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 2136 | 6123 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 2137 | 6123 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 2138 | 6123 | @item = (q{factor}); | |||||||||||||||||||||||||||||||||||||
| 2139 | 6123 | %item = (__RULE__ => q{factor}); | |||||||||||||||||||||||||||||||||||||
| 2140 | 6123 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 2141 | |||||||||||||||||||||||||||||||||||||||
| 2142 | |||||||||||||||||||||||||||||||||||||||
| 2143 | 6123 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/(?:\\+|-)*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2144 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2145 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2146 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2147 | 6123 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2148 | 6123 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2149 | |||||||||||||||||||||||||||||||||||||||
| 2150 | |||||||||||||||||||||||||||||||||||||||
| 2151 | 6123 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:\+|-)*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\+|-)*)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\+|-)*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:(?:\+|-)*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:(?:\+|-)*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2152 | { | ||||||||||||||||||||||||||||||||||||||
| 2153 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2154 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2155 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2156 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2157 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2158 | |||||||||||||||||||||||||||||||||||||||
| 2159 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2160 | } | ||||||||||||||||||||||||||||||||||||||
| 2161 | 6123 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2162 | 6123 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2163 | 6123 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2164 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2165 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2166 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2167 | 6123 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2168 | |||||||||||||||||||||||||||||||||||||||
| 2169 | |||||||||||||||||||||||||||||||||||||||
| 2170 | 6123 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [number]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2171 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2172 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2173 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2174 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2175 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 2176 | 6123 | $expectation->is(q{number})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2177 | 6123 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::number($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2178 | { | ||||||||||||||||||||||||||||||||||||||
| 2179 | |||||||||||||||||||||||||||||||||||||||
| 2180 | 4325 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [number]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2181 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2182 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2183 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2184 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2185 | 4325 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2186 | 4325 | last; | |||||||||||||||||||||||||||||||||||||
| 2187 | } | ||||||||||||||||||||||||||||||||||||||
| 2188 | 1798 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [number]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2189 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 2190 | |||||||||||||||||||||||||||||||||||||||
| 2191 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2192 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2193 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2194 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2195 | 1798 | $item{q{number}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 2196 | 1798 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2197 | |||||||||||||||||||||||||||||||||||||||
| 2198 | } | ||||||||||||||||||||||||||||||||||||||
| 2199 | |||||||||||||||||||||||||||||||||||||||
| 2200 | 1798 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2201 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2202 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2203 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2204 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2205 | |||||||||||||||||||||||||||||||||||||||
| 2206 | |||||||||||||||||||||||||||||||||||||||
| 2207 | 1798 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2208 | #warn 'unary_n ' | ||||||||||||||||||||||||||||||||||||||
| 2209 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 2210 | 1798 | ▶ | if ($item[1]) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2211 | 146 | my @it = split //, $item[1]; | |||||||||||||||||||||||||||||||||||||
| 2212 | 146 | my $ret = $item[2]; | |||||||||||||||||||||||||||||||||||||
| 2213 | 146 | foreach (grep {$_ eq '-'} @it) { | |||||||||||||||||||||||||||||||||||||
| 2214 | 146 | $ret = Math::Symbolic::Operator->new('neg',$ret); | |||||||||||||||||||||||||||||||||||||
| 2215 | } | ||||||||||||||||||||||||||||||||||||||
| 2216 | $ret | ||||||||||||||||||||||||||||||||||||||
| 2217 | 146 | } | |||||||||||||||||||||||||||||||||||||
| 2218 | else { | ||||||||||||||||||||||||||||||||||||||
| 2219 | 1652 | $item[2] | |||||||||||||||||||||||||||||||||||||
| 2220 | } | ||||||||||||||||||||||||||||||||||||||
| 2221 | }; | ||||||||||||||||||||||||||||||||||||||
| 2222 | 1798 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2223 | { | ||||||||||||||||||||||||||||||||||||||
| 2224 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2225 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2226 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2227 | } | ||||||||||||||||||||||||||||||||||||||
| 2228 | 1798 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2229 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2230 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2231 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2232 | 1798 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2233 | 1798 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 2234 | |||||||||||||||||||||||||||||||||||||||
| 2235 | |||||||||||||||||||||||||||||||||||||||
| 2236 | 1798 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/(?:\\+|-)*/ number]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2237 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2238 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2239 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2240 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2241 | |||||||||||||||||||||||||||||||||||||||
| 2242 | |||||||||||||||||||||||||||||||||||||||
| 2243 | |||||||||||||||||||||||||||||||||||||||
| 2244 | 1798 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 2245 | 1798 | last; | |||||||||||||||||||||||||||||||||||||
| 2246 | } | ||||||||||||||||||||||||||||||||||||||
| 2247 | |||||||||||||||||||||||||||||||||||||||
| 2248 | |||||||||||||||||||||||||||||||||||||||
| 2249 | 6123 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 2250 | { | ||||||||||||||||||||||||||||||||||||||
| 2251 | |||||||||||||||||||||||||||||||||||||||
| 2252 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/(?:\\+|-)*/ function]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2253 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2254 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2255 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2256 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2257 | 4325 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||
| 2258 | 4325 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 2259 | 4325 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 2260 | 4325 | @item = (q{factor}); | |||||||||||||||||||||||||||||||||||||
| 2261 | 4325 | %item = (__RULE__ => q{factor}); | |||||||||||||||||||||||||||||||||||||
| 2262 | 4325 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 2263 | |||||||||||||||||||||||||||||||||||||||
| 2264 | |||||||||||||||||||||||||||||||||||||||
| 2265 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/(?:\\+|-)*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2266 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2267 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2268 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2269 | 4325 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2270 | 4325 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2271 | |||||||||||||||||||||||||||||||||||||||
| 2272 | |||||||||||||||||||||||||||||||||||||||
| 2273 | 4325 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:\+|-)*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\+|-)*)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\+|-)*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:(?:\+|-)*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:(?:\+|-)*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2274 | { | ||||||||||||||||||||||||||||||||||||||
| 2275 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2276 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2277 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2278 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2279 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2280 | |||||||||||||||||||||||||||||||||||||||
| 2281 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2282 | } | ||||||||||||||||||||||||||||||||||||||
| 2283 | 4325 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2284 | 4325 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2285 | 4325 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2286 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2287 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2288 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2289 | 4325 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2290 | |||||||||||||||||||||||||||||||||||||||
| 2291 | |||||||||||||||||||||||||||||||||||||||
| 2292 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [function]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2293 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2294 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2295 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2296 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2297 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 2298 | 4325 | $expectation->is(q{function})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2299 | 4325 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::function($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2300 | { | ||||||||||||||||||||||||||||||||||||||
| 2301 | |||||||||||||||||||||||||||||||||||||||
| 2302 | 3835 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [function]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2303 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2304 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2305 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2306 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2307 | 3835 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2308 | 3835 | last; | |||||||||||||||||||||||||||||||||||||
| 2309 | } | ||||||||||||||||||||||||||||||||||||||
| 2310 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [function]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2311 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 2312 | |||||||||||||||||||||||||||||||||||||||
| 2313 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2314 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2315 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2316 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2317 | 490 | $item{q{function}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 2318 | 490 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2319 | |||||||||||||||||||||||||||||||||||||||
| 2320 | } | ||||||||||||||||||||||||||||||||||||||
| 2321 | |||||||||||||||||||||||||||||||||||||||
| 2322 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2323 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2324 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2325 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2326 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2327 | |||||||||||||||||||||||||||||||||||||||
| 2328 | |||||||||||||||||||||||||||||||||||||||
| 2329 | 490 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2330 | #warn 'unary_f ' | ||||||||||||||||||||||||||||||||||||||
| 2331 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 2332 | 490 | ▶ | if ($item[1]) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2333 | 0 | my @it = split //, $item[1]; | |||||||||||||||||||||||||||||||||||||
| 2334 | 0 | my $ret = $item[2]; | |||||||||||||||||||||||||||||||||||||
| 2335 | 0 | foreach (grep {$_ eq '-'} @it) { | |||||||||||||||||||||||||||||||||||||
| 2336 | 0 | $ret = Math::Symbolic::Operator->new('neg',$ret); | |||||||||||||||||||||||||||||||||||||
| 2337 | } | ||||||||||||||||||||||||||||||||||||||
| 2338 | $ret | ||||||||||||||||||||||||||||||||||||||
| 2339 | 0 | } | |||||||||||||||||||||||||||||||||||||
| 2340 | else { | ||||||||||||||||||||||||||||||||||||||
| 2341 | 490 | $item[2] | |||||||||||||||||||||||||||||||||||||
| 2342 | } | ||||||||||||||||||||||||||||||||||||||
| 2343 | }; | ||||||||||||||||||||||||||||||||||||||
| 2344 | 490 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2345 | { | ||||||||||||||||||||||||||||||||||||||
| 2346 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2347 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2348 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2349 | } | ||||||||||||||||||||||||||||||||||||||
| 2350 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2351 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2352 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2353 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2354 | 490 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2355 | 490 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 2356 | |||||||||||||||||||||||||||||||||||||||
| 2357 | |||||||||||||||||||||||||||||||||||||||
| 2358 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/(?:\\+|-)*/ function]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2359 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2360 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2361 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2362 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2363 | |||||||||||||||||||||||||||||||||||||||
| 2364 | |||||||||||||||||||||||||||||||||||||||
| 2365 | |||||||||||||||||||||||||||||||||||||||
| 2366 | 490 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 2367 | 490 | last; | |||||||||||||||||||||||||||||||||||||
| 2368 | } | ||||||||||||||||||||||||||||||||||||||
| 2369 | |||||||||||||||||||||||||||||||||||||||
| 2370 | |||||||||||||||||||||||||||||||||||||||
| 2371 | 6123 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 2372 | { | ||||||||||||||||||||||||||||||||||||||
| 2373 | |||||||||||||||||||||||||||||||||||||||
| 2374 | 3835 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/(?:\\+|-)*/ variable]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2375 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2376 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2377 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2378 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2379 | 3835 | my $thisprod = $thisrule->{"prods"}[2]; | |||||||||||||||||||||||||||||||||||||
| 2380 | 3835 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 2381 | 3835 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 2382 | 3835 | @item = (q{factor}); | |||||||||||||||||||||||||||||||||||||
| 2383 | 3835 | %item = (__RULE__ => q{factor}); | |||||||||||||||||||||||||||||||||||||
| 2384 | 3835 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 2385 | |||||||||||||||||||||||||||||||||||||||
| 2386 | |||||||||||||||||||||||||||||||||||||||
| 2387 | 3835 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/(?:\\+|-)*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2388 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2389 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2390 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2391 | 3835 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2392 | 3835 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2393 | |||||||||||||||||||||||||||||||||||||||
| 2394 | |||||||||||||||||||||||||||||||||||||||
| 2395 | 3835 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:\+|-)*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\+|-)*)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\+|-)*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:(?:\+|-)*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:(?:\+|-)*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2396 | { | ||||||||||||||||||||||||||||||||||||||
| 2397 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2398 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2399 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2400 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2401 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2402 | |||||||||||||||||||||||||||||||||||||||
| 2403 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2404 | } | ||||||||||||||||||||||||||||||||||||||
| 2405 | 3835 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2406 | 3835 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2407 | 3835 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2408 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2409 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2410 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2411 | 3835 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2412 | |||||||||||||||||||||||||||||||||||||||
| 2413 | |||||||||||||||||||||||||||||||||||||||
| 2414 | 3835 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [variable]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2415 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2416 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2417 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2418 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2419 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 2420 | 3835 | $expectation->is(q{variable})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2421 | 3835 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::variable($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2422 | { | ||||||||||||||||||||||||||||||||||||||
| 2423 | |||||||||||||||||||||||||||||||||||||||
| 2424 | 631 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [variable]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2425 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2426 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2427 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2428 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2429 | 631 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2430 | 631 | last; | |||||||||||||||||||||||||||||||||||||
| 2431 | } | ||||||||||||||||||||||||||||||||||||||
| 2432 | 3204 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [variable]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2433 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 2434 | |||||||||||||||||||||||||||||||||||||||
| 2435 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2436 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2437 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2438 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2439 | 3204 | $item{q{variable}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 2440 | 3204 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2441 | |||||||||||||||||||||||||||||||||||||||
| 2442 | } | ||||||||||||||||||||||||||||||||||||||
| 2443 | |||||||||||||||||||||||||||||||||||||||
| 2444 | 3204 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2445 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2446 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2447 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2448 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2449 | |||||||||||||||||||||||||||||||||||||||
| 2450 | |||||||||||||||||||||||||||||||||||||||
| 2451 | 3204 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2452 | #warn 'unary_v ' | ||||||||||||||||||||||||||||||||||||||
| 2453 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 2454 | 3204 | ▶ | if ($item[1]) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2455 | 22 | my @it = split //, $item[1]; | |||||||||||||||||||||||||||||||||||||
| 2456 | 22 | my $ret = $item[2]; | |||||||||||||||||||||||||||||||||||||
| 2457 | 22 | foreach (grep {$_ eq '-'} @it) { | |||||||||||||||||||||||||||||||||||||
| 2458 | 22 | $ret = Math::Symbolic::Operator->new('neg',$ret); | |||||||||||||||||||||||||||||||||||||
| 2459 | } | ||||||||||||||||||||||||||||||||||||||
| 2460 | $ret | ||||||||||||||||||||||||||||||||||||||
| 2461 | 22 | } | |||||||||||||||||||||||||||||||||||||
| 2462 | else { | ||||||||||||||||||||||||||||||||||||||
| 2463 | 3182 | $item[2] | |||||||||||||||||||||||||||||||||||||
| 2464 | } | ||||||||||||||||||||||||||||||||||||||
| 2465 | }; | ||||||||||||||||||||||||||||||||||||||
| 2466 | 3204 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2467 | { | ||||||||||||||||||||||||||||||||||||||
| 2468 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2469 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2470 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2471 | } | ||||||||||||||||||||||||||||||||||||||
| 2472 | 3204 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2473 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2474 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2475 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2476 | 3204 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2477 | 3204 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 2478 | |||||||||||||||||||||||||||||||||||||||
| 2479 | |||||||||||||||||||||||||||||||||||||||
| 2480 | 3204 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/(?:\\+|-)*/ variable]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2481 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2482 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2483 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2484 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2485 | |||||||||||||||||||||||||||||||||||||||
| 2486 | |||||||||||||||||||||||||||||||||||||||
| 2487 | |||||||||||||||||||||||||||||||||||||||
| 2488 | 3204 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 2489 | 3204 | last; | |||||||||||||||||||||||||||||||||||||
| 2490 | } | ||||||||||||||||||||||||||||||||||||||
| 2491 | |||||||||||||||||||||||||||||||||||||||
| 2492 | |||||||||||||||||||||||||||||||||||||||
| 2493 | 6123 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 2494 | { | ||||||||||||||||||||||||||||||||||||||
| 2495 | |||||||||||||||||||||||||||||||||||||||
| 2496 | 631 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/(?:\\+|-)*/ '(' expr ')']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2497 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2498 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2499 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2500 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2501 | 631 | my $thisprod = $thisrule->{"prods"}[3]; | |||||||||||||||||||||||||||||||||||||
| 2502 | 631 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 2503 | 631 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 2504 | 631 | @item = (q{factor}); | |||||||||||||||||||||||||||||||||||||
| 2505 | 631 | %item = (__RULE__ => q{factor}); | |||||||||||||||||||||||||||||||||||||
| 2506 | 631 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 2507 | |||||||||||||||||||||||||||||||||||||||
| 2508 | |||||||||||||||||||||||||||||||||||||||
| 2509 | 631 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/(?:\\+|-)*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2510 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2511 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2512 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2513 | 631 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2514 | 631 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2515 | |||||||||||||||||||||||||||||||||||||||
| 2516 | |||||||||||||||||||||||||||||||||||||||
| 2517 | 631 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:\+|-)*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\+|-)*)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\+|-)*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:(?:\+|-)*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:(?:\+|-)*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2518 | { | ||||||||||||||||||||||||||||||||||||||
| 2519 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2520 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2521 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2522 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2523 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2524 | |||||||||||||||||||||||||||||||||||||||
| 2525 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2526 | } | ||||||||||||||||||||||||||||||||||||||
| 2527 | 631 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2528 | 631 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2529 | 631 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2530 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2531 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2532 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2533 | 631 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2534 | |||||||||||||||||||||||||||||||||||||||
| 2535 | |||||||||||||||||||||||||||||||||||||||
| 2536 | 631 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2537 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2538 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2539 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2540 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2541 | 631 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2542 | 631 | $expectation->is(q{'('})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2543 | |||||||||||||||||||||||||||||||||||||||
| 2544 | |||||||||||||||||||||||||||||||||||||||
| 2545 | 631 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\(/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\(/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2546 | { | ||||||||||||||||||||||||||||||||||||||
| 2547 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2548 | |||||||||||||||||||||||||||||||||||||||
| 2549 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2550 | 0 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2551 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2552 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2553 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2554 | } | ||||||||||||||||||||||||||||||||||||||
| 2555 | 631 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2556 | 631 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2557 | 631 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2558 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2559 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2560 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2561 | 631 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2562 | |||||||||||||||||||||||||||||||||||||||
| 2563 | |||||||||||||||||||||||||||||||||||||||
| 2564 | 631 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [expr]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2565 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2566 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2567 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2568 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2569 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 2570 | 631 | $expectation->is(q{expr})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2571 | 631 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::expr($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2572 | { | ||||||||||||||||||||||||||||||||||||||
| 2573 | |||||||||||||||||||||||||||||||||||||||
| 2574 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [expr]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2575 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2576 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2577 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2578 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2579 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2580 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2581 | } | ||||||||||||||||||||||||||||||||||||||
| 2582 | 631 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [expr]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2583 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 2584 | |||||||||||||||||||||||||||||||||||||||
| 2585 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2586 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2587 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2588 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2589 | 631 | $item{q{expr}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 2590 | 631 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2591 | |||||||||||||||||||||||||||||||||||||||
| 2592 | } | ||||||||||||||||||||||||||||||||||||||
| 2593 | |||||||||||||||||||||||||||||||||||||||
| 2594 | 631 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2595 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2596 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2597 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2598 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2599 | 631 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2600 | 631 | $expectation->is(q{')'})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2601 | |||||||||||||||||||||||||||||||||||||||
| 2602 | |||||||||||||||||||||||||||||||||||||||
| 2603 | 631 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2604 | { | ||||||||||||||||||||||||||||||||||||||
| 2605 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2606 | |||||||||||||||||||||||||||||||||||||||
| 2607 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2608 | 0 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2609 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2610 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2611 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2612 | } | ||||||||||||||||||||||||||||||||||||||
| 2613 | 631 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2614 | 631 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2615 | 631 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2616 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2617 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2618 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2619 | 631 | push @item, $item{__STRING2__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2620 | |||||||||||||||||||||||||||||||||||||||
| 2621 | |||||||||||||||||||||||||||||||||||||||
| 2622 | 631 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2623 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2624 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2625 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2626 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2627 | |||||||||||||||||||||||||||||||||||||||
| 2628 | |||||||||||||||||||||||||||||||||||||||
| 2629 | 631 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2630 | #warn 'unary_expr ' | ||||||||||||||||||||||||||||||||||||||
| 2631 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 2632 | 631 | ▶ | if ($item[1]) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2633 | 4 | my @it = split //, $item[1]; | |||||||||||||||||||||||||||||||||||||
| 2634 | 4 | my $ret = $item[3]; | |||||||||||||||||||||||||||||||||||||
| 2635 | 4 | foreach (grep {$_ eq '-'} @it) { | |||||||||||||||||||||||||||||||||||||
| 2636 | 10 | $ret = Math::Symbolic::Operator->new('neg',$ret); | |||||||||||||||||||||||||||||||||||||
| 2637 | } | ||||||||||||||||||||||||||||||||||||||
| 2638 | $ret | ||||||||||||||||||||||||||||||||||||||
| 2639 | 4 | } | |||||||||||||||||||||||||||||||||||||
| 2640 | else { | ||||||||||||||||||||||||||||||||||||||
| 2641 | 627 | $item[3] | |||||||||||||||||||||||||||||||||||||
| 2642 | } | ||||||||||||||||||||||||||||||||||||||
| 2643 | }; | ||||||||||||||||||||||||||||||||||||||
| 2644 | 631 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2645 | { | ||||||||||||||||||||||||||||||||||||||
| 2646 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2647 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2648 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2649 | } | ||||||||||||||||||||||||||||||||||||||
| 2650 | 631 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2651 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2652 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2653 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2654 | 631 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2655 | 631 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 2656 | |||||||||||||||||||||||||||||||||||||||
| 2657 | |||||||||||||||||||||||||||||||||||||||
| 2658 | 631 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/(?:\\+|-)*/ '(' expr ')']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2659 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2660 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2661 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2662 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2663 | |||||||||||||||||||||||||||||||||||||||
| 2664 | |||||||||||||||||||||||||||||||||||||||
| 2665 | |||||||||||||||||||||||||||||||||||||||
| 2666 | 631 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 2667 | 631 | last; | |||||||||||||||||||||||||||||||||||||
| 2668 | } | ||||||||||||||||||||||||||||||||||||||
| 2669 | |||||||||||||||||||||||||||||||||||||||
| 2670 | |||||||||||||||||||||||||||||||||||||||
| 2671 | 6123 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or defined $score
MC/DC0%0/2
$_matched or defined $score
$_matched
defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 2672 | { | ||||||||||||||||||||||||||||||||||||||
| 2673 | |||||||||||||||||||||||||||||||||||||||
| 2674 | |||||||||||||||||||||||||||||||||||||||
| 2675 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 2676 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2677 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2678 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2679 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2680 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2681 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||
| 2682 | } | ||||||||||||||||||||||||||||||||||||||
| 2683 | 6123 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 2684 | { | ||||||||||||||||||||||||||||||||||||||
| 2685 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2686 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2687 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2688 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2689 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 2690 | } | ||||||||||||||||||||||||||||||||||||||
| 2691 | 6123 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 2692 | 6123 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2693 | 6123 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2694 | { | ||||||||||||||||||||||||||||||||||||||
| 2695 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 2696 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 2697 | q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2698 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 2699 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 2700 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2701 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2702 | , q{factor}, | ||||||||||||||||||||||||||||||||||||||
| 2703 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2704 | } | ||||||||||||||||||||||||||||||||||||||
| 2705 | 6123 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 2706 | 6123 | return $return; | |||||||||||||||||||||||||||||||||||||
| 2707 | } | ||||||||||||||||||||||||||||||||||||||
| 2708 | |||||||||||||||||||||||||||||||||||||||
| 2709 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 2710 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::identifier_list | ||||||||||||||||||||||||||||||||||||||
| 2711 | 159 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
identifier_list: called CC=52 SCAR=52.0
| |||||||||||||||||||||||||||||||||||||||
| 2712 | 159 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 2713 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 2714 | 159 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 2715 | 159 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 2716 | 159 | my $thisrule = $thisparser->{"rules"}{"identifier_list"}; | |||||||||||||||||||||||||||||||||||||
| 2717 | |||||||||||||||||||||||||||||||||||||||
| 2718 | 159 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [identifier_list]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2719 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2720 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2721 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2722 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2723 | |||||||||||||||||||||||||||||||||||||||
| 2724 | |||||||||||||||||||||||||||||||||||||||
| 2725 | 159 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 2726 | |||||||||||||||||||||||||||||||||||||||
| 2727 | 159 | my $score; | |||||||||||||||||||||||||||||||||||||
| 2728 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 2729 | 159 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 2730 | 159 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 2731 | 159 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 2732 | 159 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 2733 | 159 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 2734 | 159 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 2735 | 159 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 2736 | 159 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 2737 | 159 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2738 | 159 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 2739 | 159 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2740 | 159 | my $text; | |||||||||||||||||||||||||||||||||||||
| 2741 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 2742 | 159 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 2743 | 159 | my $expectation = new Parse::RecDescent::Expectation(q{<leftop: /[a-zA-Z][a-zA-Z0-9_]*/ ',' /[a-zA-Z][a-zA-Z0-9_]*/>}); | |||||||||||||||||||||||||||||||||||||
| 2744 | 159 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 2745 | |||||||||||||||||||||||||||||||||||||||
| 2746 | 159 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 2747 | 159 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 2748 | |||||||||||||||||||||||||||||||||||||||
| 2749 | |||||||||||||||||||||||||||||||||||||||
| 2750 | |||||||||||||||||||||||||||||||||||||||
| 2751 | 159 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 2752 | { | ||||||||||||||||||||||||||||||||||||||
| 2753 | |||||||||||||||||||||||||||||||||||||||
| 2754 | 159 | ▶ | Parse::RecDescent::_trace(q{Trying production: [<leftop: /[a-zA-Z][a-zA-Z0-9_]*/ ',' /[a-zA-Z][a-zA-Z0-9_]*/>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2755 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2756 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2757 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2758 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2759 | 159 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 2760 | 159 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 2761 | 159 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 2762 | 159 | @item = (q{identifier_list}); | |||||||||||||||||||||||||||||||||||||
| 2763 | 159 | %item = (__RULE__ => q{identifier_list}); | |||||||||||||||||||||||||||||||||||||
| 2764 | 159 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 2765 | |||||||||||||||||||||||||||||||||||||||
| 2766 | |||||||||||||||||||||||||||||||||||||||
| 2767 | 159 | ▶ | Parse::RecDescent::_trace(q{Trying operator: [<leftop: /[a-zA-Z][a-zA-Z0-9_]*/ ',' /[a-zA-Z][a-zA-Z0-9_]*/>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2768 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2769 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2770 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2771 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2772 | 159 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2773 | |||||||||||||||||||||||||||||||||||||||
| 2774 | 159 | $_tok = undef; | |||||||||||||||||||||||||||||||||||||
| 2775 | 159 | OPLOOP: while (1) | |||||||||||||||||||||||||||||||||||||
| 2776 | { | ||||||||||||||||||||||||||||||||||||||
| 2777 | 159 | $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 2778 | 159 | my @item; | |||||||||||||||||||||||||||||||||||||
| 2779 | my %item; | ||||||||||||||||||||||||||||||||||||||
| 2780 | |||||||||||||||||||||||||||||||||||||||
| 2781 | # MATCH LEFTARG | ||||||||||||||||||||||||||||||||||||||
| 2782 | |||||||||||||||||||||||||||||||||||||||
| 2783 | 159 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/[a-zA-Z][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2784 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2785 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2786 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2787 | 159 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2788 | 159 | $expectation->is(q{/[a-zA-Z][a-zA-Z0-9_]*/})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2789 | |||||||||||||||||||||||||||||||||||||||
| 2790 | |||||||||||||||||||||||||||||||||||||||
| 2791 | 159 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[a-zA-Z][a-zA-Z0-9_]*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2792 | { | ||||||||||||||||||||||||||||||||||||||
| 2793 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2794 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2795 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2796 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2797 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2798 | |||||||||||||||||||||||||||||||||||||||
| 2799 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2800 | } | ||||||||||||||||||||||||||||||||||||||
| 2801 | 159 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2802 | 159 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2803 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2804 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2805 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2806 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2807 | 159 | push @item, $item{__PATTERN1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2808 | |||||||||||||||||||||||||||||||||||||||
| 2809 | |||||||||||||||||||||||||||||||||||||||
| 2810 | |||||||||||||||||||||||||||||||||||||||
| 2811 | |||||||||||||||||||||||||||||||||||||||
| 2812 | 159 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 2813 | |||||||||||||||||||||||||||||||||||||||
| 2814 | 159 | my $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 2815 | 159 | my $backtrack; | |||||||||||||||||||||||||||||||||||||
| 2816 | |||||||||||||||||||||||||||||||||||||||
| 2817 | # MATCH (OP RIGHTARG)(s) | ||||||||||||||||||||||||||||||||||||||
| 2818 | 159 | ▶ | while ($repcount < 100000000) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2819 | { | ||||||||||||||||||||||||||||||||||||||
| 2820 | 233 | $backtrack = 0; | |||||||||||||||||||||||||||||||||||||
| 2821 | |||||||||||||||||||||||||||||||||||||||
| 2822 | 233 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [',']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2823 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2824 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2825 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2826 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2827 | 233 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2828 | 233 | $expectation->is(q{','})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2829 | |||||||||||||||||||||||||||||||||||||||
| 2830 | |||||||||||||||||||||||||||||||||||||||
| 2831 | 233 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\,/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\,/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\,/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\,/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\,/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2832 | { | ||||||||||||||||||||||||||||||||||||||
| 2833 | 159 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2834 | |||||||||||||||||||||||||||||||||||||||
| 2835 | 159 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2836 | 159 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2837 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2838 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2839 | 159 | last; | |||||||||||||||||||||||||||||||||||||
| 2840 | } | ||||||||||||||||||||||||||||||||||||||
| 2841 | 74 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2842 | 74 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2843 | 74 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2844 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2845 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2846 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2847 | 74 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2848 | |||||||||||||||||||||||||||||||||||||||
| 2849 | |||||||||||||||||||||||||||||||||||||||
| 2850 | 74 | pop @item; | |||||||||||||||||||||||||||||||||||||
| 2851 | |||||||||||||||||||||||||||||||||||||||
| 2852 | |||||||||||||||||||||||||||||||||||||||
| 2853 | 74 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/[a-zA-Z][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2854 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2855 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2856 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2857 | 74 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 2858 | 74 | $expectation->is(q{/[a-zA-Z][a-zA-Z0-9_]*/})->at($text); | |||||||||||||||||||||||||||||||||||||
| 2859 | |||||||||||||||||||||||||||||||||||||||
| 2860 | |||||||||||||||||||||||||||||||||||||||
| 2861 | 74 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[a-zA-Z][a-zA-Z0-9_]*)/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[a-zA-Z][a-zA-Z0-9_]*)/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 2862 | { | ||||||||||||||||||||||||||||||||||||||
| 2863 | 0 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2864 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2865 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2866 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2867 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2868 | |||||||||||||||||||||||||||||||||||||||
| 2869 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2870 | } | ||||||||||||||||||||||||||||||||||||||
| 2871 | 74 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 2872 | 74 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 2873 | 74 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2874 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2875 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2876 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2877 | 74 | push @item, $item{__PATTERN2__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 2878 | |||||||||||||||||||||||||||||||||||||||
| 2879 | |||||||||||||||||||||||||||||||||||||||
| 2880 | 74 | $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 2881 | 74 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 2882 | } | ||||||||||||||||||||||||||||||||||||||
| 2883 | 159 | $text = $savetext; | |||||||||||||||||||||||||||||||||||||
| 2884 | 159 | ▶ | pop @item if $backtrack; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2885 | |||||||||||||||||||||||||||||||||||||||
| 2886 | 0 | ▶ | unless (@item) { undef $_tok; last } | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2887 | 159 | $_tok = [ @item ]; | |||||||||||||||||||||||||||||||||||||
| 2888 | |||||||||||||||||||||||||||||||||||||||
| 2889 | 159 | last; | |||||||||||||||||||||||||||||||||||||
| 2890 | } # end of OPLOOP | ||||||||||||||||||||||||||||||||||||||
| 2891 | |||||||||||||||||||||||||||||||||||||||
| 2892 | 159 | ▶ | unless ($repcount>=1) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2893 | { | ||||||||||||||||||||||||||||||||||||||
| 2894 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match operator: [<leftop: /[a-zA-Z][a-zA-Z0-9_]*/ ',' /[a-zA-Z][a-zA-Z0-9_]*/>]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2895 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2896 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2897 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2898 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2899 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 2900 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2901 | } | ||||||||||||||||||||||||||||||||||||||
| 2902 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched operator: [<leftop: /[a-zA-Z][a-zA-Z0-9_]*/ ',' /[a-zA-Z][a-zA-Z0-9_]*/>]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2903 | 0 | ▶ | . qq{@{$_tok||[]}} . q{]}, | ||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table0%0/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 2904 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2905 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2906 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2907 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2908 | |||||||||||||||||||||||||||||||||||||||
| 2909 | 159 | ▶ | push @item, $item{__DIRECTIVE1__}=$_tok||[]; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table50%1/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 2910 | |||||||||||||||||||||||||||||||||||||||
| 2911 | 159 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2912 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2913 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2914 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2915 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2916 | |||||||||||||||||||||||||||||||||||||||
| 2917 | |||||||||||||||||||||||||||||||||||||||
| 2918 | 159 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2919 | #warn 'identifier_list ' | ||||||||||||||||||||||||||||||||||||||
| 2920 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 2921 | 159 | $item[1] | |||||||||||||||||||||||||||||||||||||
| 2922 | }; | ||||||||||||||||||||||||||||||||||||||
| 2923 | 159 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2924 | { | ||||||||||||||||||||||||||||||||||||||
| 2925 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2926 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2927 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 2928 | } | ||||||||||||||||||||||||||||||||||||||
| 2929 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2930 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2931 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 2932 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2933 | 159 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 2934 | 159 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 2935 | |||||||||||||||||||||||||||||||||||||||
| 2936 | |||||||||||||||||||||||||||||||||||||||
| 2937 | 159 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [<leftop: /[a-zA-Z][a-zA-Z0-9_]*/ ',' /[a-zA-Z][a-zA-Z0-9_]*/>]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2938 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2939 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2940 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2941 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2942 | |||||||||||||||||||||||||||||||||||||||
| 2943 | |||||||||||||||||||||||||||||||||||||||
| 2944 | |||||||||||||||||||||||||||||||||||||||
| 2945 | 159 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 2946 | 159 | last; | |||||||||||||||||||||||||||||||||||||
| 2947 | } | ||||||||||||||||||||||||||||||||||||||
| 2948 | |||||||||||||||||||||||||||||||||||||||
| 2949 | |||||||||||||||||||||||||||||||||||||||
| 2950 | 159 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or defined $score
MC/DC0%0/2
$_matched or defined $score
$_matched
defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 2951 | { | ||||||||||||||||||||||||||||||||||||||
| 2952 | |||||||||||||||||||||||||||||||||||||||
| 2953 | |||||||||||||||||||||||||||||||||||||||
| 2954 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 2955 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2956 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2957 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2958 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2959 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2960 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||
| 2961 | } | ||||||||||||||||||||||||||||||||||||||
| 2962 | 159 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 2963 | { | ||||||||||||||||||||||||||||||||||||||
| 2964 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2965 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2966 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2967 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 2968 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 2969 | } | ||||||||||||||||||||||||||||||||||||||
| 2970 | 159 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 2971 | 159 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2972 | 159 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2973 | { | ||||||||||||||||||||||||||||||||||||||
| 2974 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 2975 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 2976 | q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2977 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 2978 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 2979 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 2980 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 2981 | , q{identifier_list}, | ||||||||||||||||||||||||||||||||||||||
| 2982 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 2983 | } | ||||||||||||||||||||||||||||||||||||||
| 2984 | 159 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 2985 | 159 | return $return; | |||||||||||||||||||||||||||||||||||||
| 2986 | } | ||||||||||||||||||||||||||||||||||||||
| 2987 | |||||||||||||||||||||||||||||||||||||||
| 2988 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 2989 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::expr | ||||||||||||||||||||||||||||||||||||||
| 2990 | 1779 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
expr: called CC=26 SCAR=39.3
| |||||||||||||||||||||||||||||||||||||||
| 2991 | 1779 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 2992 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 2993 | 1779 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 2994 | 1779 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 2995 | 1779 | my $thisrule = $thisparser->{"rules"}{"expr"}; | |||||||||||||||||||||||||||||||||||||
| 2996 | |||||||||||||||||||||||||||||||||||||||
| 2997 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [expr]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 2998 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 2999 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3000 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3001 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3002 | |||||||||||||||||||||||||||||||||||||||
| 3003 | |||||||||||||||||||||||||||||||||||||||
| 3004 | 1779 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 3005 | |||||||||||||||||||||||||||||||||||||||
| 3006 | 1779 | my $score; | |||||||||||||||||||||||||||||||||||||
| 3007 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 3008 | 1779 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 3009 | 1779 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 3010 | 1779 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 3011 | 1779 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 3012 | 1779 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 3013 | 1779 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 3014 | 1779 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 3015 | 1779 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 3016 | 1779 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3017 | 1779 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 3018 | 1779 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3019 | 1779 | my $text; | |||||||||||||||||||||||||||||||||||||
| 3020 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 3021 | 1779 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 3022 | 1779 | my $expectation = new Parse::RecDescent::Expectation(q{addition}); | |||||||||||||||||||||||||||||||||||||
| 3023 | 1779 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 3024 | |||||||||||||||||||||||||||||||||||||||
| 3025 | 1779 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 3026 | 1779 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 3027 | |||||||||||||||||||||||||||||||||||||||
| 3028 | |||||||||||||||||||||||||||||||||||||||
| 3029 | |||||||||||||||||||||||||||||||||||||||
| 3030 | 1779 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3031 | { | ||||||||||||||||||||||||||||||||||||||
| 3032 | |||||||||||||||||||||||||||||||||||||||
| 3033 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying production: [addition]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3034 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3035 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3036 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3037 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3038 | 1779 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 3039 | 1779 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3040 | 1779 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3041 | 1779 | @item = (q{expr}); | |||||||||||||||||||||||||||||||||||||
| 3042 | 1779 | %item = (__RULE__ => q{expr}); | |||||||||||||||||||||||||||||||||||||
| 3043 | 1779 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3044 | |||||||||||||||||||||||||||||||||||||||
| 3045 | |||||||||||||||||||||||||||||||||||||||
| 3046 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [addition]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3047 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3048 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3049 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3050 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3051 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 3052 | 1779 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3053 | 1779 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::addition($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3054 | { | ||||||||||||||||||||||||||||||||||||||
| 3055 | |||||||||||||||||||||||||||||||||||||||
| 3056 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [addition]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3057 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3058 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3059 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3060 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3061 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3062 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 3063 | } | ||||||||||||||||||||||||||||||||||||||
| 3064 | 1779 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [addition]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3065 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 3066 | |||||||||||||||||||||||||||||||||||||||
| 3067 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3068 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3069 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3070 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3071 | 1779 | $item{q{addition}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 3072 | 1779 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 3073 | |||||||||||||||||||||||||||||||||||||||
| 3074 | } | ||||||||||||||||||||||||||||||||||||||
| 3075 | |||||||||||||||||||||||||||||||||||||||
| 3076 | 1779 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3077 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3078 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3079 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3080 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3081 | |||||||||||||||||||||||||||||||||||||||
| 3082 | |||||||||||||||||||||||||||||||||||||||
| 3083 | 1779 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3084 | #warn 'expr ' if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 3085 | 1779 | $item[1] | |||||||||||||||||||||||||||||||||||||
| 3086 | }; | ||||||||||||||||||||||||||||||||||||||
| 3087 | 1779 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3088 | { | ||||||||||||||||||||||||||||||||||||||
| 3089 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3090 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3091 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 3092 | } | ||||||||||||||||||||||||||||||||||||||
| 3093 | 1779 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3094 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3095 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3096 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3097 | 1779 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 3098 | 1779 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 3099 | |||||||||||||||||||||||||||||||||||||||
| 3100 | |||||||||||||||||||||||||||||||||||||||
| 3101 | 1779 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [addition]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3102 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3103 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3104 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3105 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3106 | |||||||||||||||||||||||||||||||||||||||
| 3107 | |||||||||||||||||||||||||||||||||||||||
| 3108 | |||||||||||||||||||||||||||||||||||||||
| 3109 | 1779 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3110 | 1779 | last; | |||||||||||||||||||||||||||||||||||||
| 3111 | } | ||||||||||||||||||||||||||||||||||||||
| 3112 | |||||||||||||||||||||||||||||||||||||||
| 3113 | |||||||||||||||||||||||||||||||||||||||
| 3114 | 1779 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or defined $score
MC/DC0%0/2
$_matched or defined $score
$_matched
defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 3115 | { | ||||||||||||||||||||||||||||||||||||||
| 3116 | |||||||||||||||||||||||||||||||||||||||
| 3117 | |||||||||||||||||||||||||||||||||||||||
| 3118 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 3119 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3120 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3121 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3122 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3123 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3124 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||
| 3125 | } | ||||||||||||||||||||||||||||||||||||||
| 3126 | 1779 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 3127 | { | ||||||||||||||||||||||||||||||||||||||
| 3128 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3129 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3130 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3131 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3132 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 3133 | } | ||||||||||||||||||||||||||||||||||||||
| 3134 | 1779 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 3135 | 1779 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3136 | 1779 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3137 | { | ||||||||||||||||||||||||||||||||||||||
| 3138 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 3139 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 3140 | q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3141 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 3142 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 3143 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3144 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3145 | , q{expr}, | ||||||||||||||||||||||||||||||||||||||
| 3146 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3147 | } | ||||||||||||||||||||||||||||||||||||||
| 3148 | 1779 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 3149 | 1779 | return $return; | |||||||||||||||||||||||||||||||||||||
| 3150 | } | ||||||||||||||||||||||||||||||||||||||
| 3151 | |||||||||||||||||||||||||||||||||||||||
| 3152 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 3153 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::mult_op | ||||||||||||||||||||||||||||||||||||||
| 3154 | 2922 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
mult_op: called CC=35 SCAR=38.8
| |||||||||||||||||||||||||||||||||||||||
| 3155 | 2922 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 3156 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 3157 | 2922 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 3158 | 2922 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 3159 | 2922 | my $thisrule = $thisparser->{"rules"}{"mult_op"}; | |||||||||||||||||||||||||||||||||||||
| 3160 | |||||||||||||||||||||||||||||||||||||||
| 3161 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [mult_op]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3162 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3163 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3164 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3165 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3166 | |||||||||||||||||||||||||||||||||||||||
| 3167 | |||||||||||||||||||||||||||||||||||||||
| 3168 | 2922 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 3169 | |||||||||||||||||||||||||||||||||||||||
| 3170 | 2922 | my $score; | |||||||||||||||||||||||||||||||||||||
| 3171 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 3172 | 2922 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 3173 | 2922 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 3174 | 2922 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 3175 | 2922 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 3176 | 2922 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 3177 | 2922 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 3178 | 2922 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 3179 | 2922 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 3180 | 2922 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3181 | 2922 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 3182 | 2922 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3183 | 2922 | my $text; | |||||||||||||||||||||||||||||||||||||
| 3184 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 3185 | 2922 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 3186 | 2922 | my $expectation = new Parse::RecDescent::Expectation(q{'*', or '/'}); | |||||||||||||||||||||||||||||||||||||
| 3187 | 2922 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 3188 | |||||||||||||||||||||||||||||||||||||||
| 3189 | 2922 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 3190 | 2922 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 3191 | |||||||||||||||||||||||||||||||||||||||
| 3192 | |||||||||||||||||||||||||||||||||||||||
| 3193 | |||||||||||||||||||||||||||||||||||||||
| 3194 | 2922 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3195 | { | ||||||||||||||||||||||||||||||||||||||
| 3196 | |||||||||||||||||||||||||||||||||||||||
| 3197 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['*']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3198 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3199 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3200 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3201 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3202 | 2922 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 3203 | 2922 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3204 | 2922 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3205 | 2922 | @item = (q{mult_op}); | |||||||||||||||||||||||||||||||||||||
| 3206 | 2922 | %item = (__RULE__ => q{mult_op}); | |||||||||||||||||||||||||||||||||||||
| 3207 | 2922 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3208 | |||||||||||||||||||||||||||||||||||||||
| 3209 | |||||||||||||||||||||||||||||||||||||||
| 3210 | 2922 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['*']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3211 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3212 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3213 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3214 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3215 | 2922 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3216 | 2922 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3217 | |||||||||||||||||||||||||||||||||||||||
| 3218 | |||||||||||||||||||||||||||||||||||||||
| 3219 | 2922 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\*/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\*/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\*/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\*/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\*/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3220 | { | ||||||||||||||||||||||||||||||||||||||
| 3221 | 2356 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3222 | |||||||||||||||||||||||||||||||||||||||
| 3223 | 2356 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3224 | 2356 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3225 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3226 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3227 | 2356 | last; | |||||||||||||||||||||||||||||||||||||
| 3228 | } | ||||||||||||||||||||||||||||||||||||||
| 3229 | 566 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3230 | 566 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3231 | 566 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3232 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3233 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3234 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3235 | 566 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3236 | |||||||||||||||||||||||||||||||||||||||
| 3237 | |||||||||||||||||||||||||||||||||||||||
| 3238 | 566 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['*']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3239 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3240 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3241 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3242 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3243 | |||||||||||||||||||||||||||||||||||||||
| 3244 | |||||||||||||||||||||||||||||||||||||||
| 3245 | |||||||||||||||||||||||||||||||||||||||
| 3246 | 566 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3247 | 566 | last; | |||||||||||||||||||||||||||||||||||||
| 3248 | } | ||||||||||||||||||||||||||||||||||||||
| 3249 | |||||||||||||||||||||||||||||||||||||||
| 3250 | |||||||||||||||||||||||||||||||||||||||
| 3251 | 2922 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3252 | { | ||||||||||||||||||||||||||||||||||||||
| 3253 | |||||||||||||||||||||||||||||||||||||||
| 3254 | 2356 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['/']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3255 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3256 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3257 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3258 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3259 | 2356 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||
| 3260 | 2356 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3261 | 2356 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3262 | 2356 | @item = (q{mult_op}); | |||||||||||||||||||||||||||||||||||||
| 3263 | 2356 | %item = (__RULE__ => q{mult_op}); | |||||||||||||||||||||||||||||||||||||
| 3264 | 2356 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3265 | |||||||||||||||||||||||||||||||||||||||
| 3266 | |||||||||||||||||||||||||||||||||||||||
| 3267 | 2356 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['/']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3268 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3269 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3270 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3271 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3272 | 2356 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3273 | 2356 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3274 | |||||||||||||||||||||||||||||||||||||||
| 3275 | |||||||||||||||||||||||||||||||||||||||
| 3276 | 2356 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\//) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ m[\A/]
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ m[\A/]
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ m[\A/]
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ m[\A/]
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3277 | { | ||||||||||||||||||||||||||||||||||||||
| 3278 | 2271 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3279 | |||||||||||||||||||||||||||||||||||||||
| 3280 | 2271 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3281 | 2271 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3282 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3283 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3284 | 2271 | last; | |||||||||||||||||||||||||||||||||||||
| 3285 | } | ||||||||||||||||||||||||||||||||||||||
| 3286 | 85 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3287 | 85 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3288 | 85 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3289 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3290 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3291 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3292 | 85 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3293 | |||||||||||||||||||||||||||||||||||||||
| 3294 | |||||||||||||||||||||||||||||||||||||||
| 3295 | 85 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['/']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3296 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3297 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3298 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3299 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3300 | |||||||||||||||||||||||||||||||||||||||
| 3301 | |||||||||||||||||||||||||||||||||||||||
| 3302 | |||||||||||||||||||||||||||||||||||||||
| 3303 | 85 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3304 | 85 | last; | |||||||||||||||||||||||||||||||||||||
| 3305 | } | ||||||||||||||||||||||||||||||||||||||
| 3306 | |||||||||||||||||||||||||||||||||||||||
| 3307 | |||||||||||||||||||||||||||||||||||||||
| 3308 | 2922 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or defined $score
MC/DC50%1/2
$_matched or defined $score
$_matched
defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 3309 | { | ||||||||||||||||||||||||||||||||||||||
| 3310 | |||||||||||||||||||||||||||||||||||||||
| 3311 | |||||||||||||||||||||||||||||||||||||||
| 3312 | 2271 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 3313 | 2271 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3314 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3315 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3316 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3317 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3318 | 2271 | return undef; | |||||||||||||||||||||||||||||||||||||
| 3319 | } | ||||||||||||||||||||||||||||||||||||||
| 3320 | 651 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 3321 | { | ||||||||||||||||||||||||||||||||||||||
| 3322 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3323 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3324 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3325 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3326 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 3327 | } | ||||||||||||||||||||||||||||||||||||||
| 3328 | 651 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 3329 | 651 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3330 | 651 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3331 | { | ||||||||||||||||||||||||||||||||||||||
| 3332 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 3333 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 3334 | q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3335 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 3336 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 3337 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3338 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3339 | , q{mult_op}, | ||||||||||||||||||||||||||||||||||||||
| 3340 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3341 | } | ||||||||||||||||||||||||||||||||||||||
| 3342 | 651 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 3343 | 651 | return $return; | |||||||||||||||||||||||||||||||||||||
| 3344 | } | ||||||||||||||||||||||||||||||||||||||
| 3345 | |||||||||||||||||||||||||||||||||||||||
| 3346 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 3347 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::function_name | ||||||||||||||||||||||||||||||||||||||
| 3348 | 4325 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
function_name: called CC=211 SCAR=63.9
| |||||||||||||||||||||||||||||||||||||||
| 3349 | 4325 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 3350 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 3351 | 4325 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 3352 | 4325 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 3353 | 4325 | my $thisrule = $thisparser->{"rules"}{"function_name"}; | |||||||||||||||||||||||||||||||||||||
| 3354 | |||||||||||||||||||||||||||||||||||||||
| 3355 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [function_name]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3356 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3357 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3358 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3359 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3360 | |||||||||||||||||||||||||||||||||||||||
| 3361 | |||||||||||||||||||||||||||||||||||||||
| 3362 | 4325 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 3363 | |||||||||||||||||||||||||||||||||||||||
| 3364 | 4325 | my $score; | |||||||||||||||||||||||||||||||||||||
| 3365 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 3366 | 4325 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 3367 | 4325 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 3368 | 4325 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 3369 | 4325 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 3370 | 4325 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 3371 | 4325 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 3372 | 4325 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 3373 | 4325 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 3374 | 4325 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3375 | 4325 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 3376 | 4325 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3377 | 4325 | my $text; | |||||||||||||||||||||||||||||||||||||
| 3378 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 3379 | 4325 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 3380 | 4325 | my $expectation = new Parse::RecDescent::Expectation(q{'log', or 'partial_derivative', or 'total_derivative', or 'sinh', or 'cosh', or 'asinh', or 'acosh', or 'asin', or 'acos', or 'atan2', or 'atan', or 'acot', or 'sin', or 'cos', or 'tan', or 'cot', or 'exp', or 'sqrt'}); | |||||||||||||||||||||||||||||||||||||
| 3381 | 4325 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 3382 | |||||||||||||||||||||||||||||||||||||||
| 3383 | 4325 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 3384 | 4325 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 3385 | |||||||||||||||||||||||||||||||||||||||
| 3386 | |||||||||||||||||||||||||||||||||||||||
| 3387 | |||||||||||||||||||||||||||||||||||||||
| 3388 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3389 | { | ||||||||||||||||||||||||||||||||||||||
| 3390 | |||||||||||||||||||||||||||||||||||||||
| 3391 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['log']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3392 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3393 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3394 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3395 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3396 | 4325 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 3397 | 4325 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3398 | 4325 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3399 | 4325 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3400 | 4325 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3401 | 4325 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3402 | |||||||||||||||||||||||||||||||||||||||
| 3403 | |||||||||||||||||||||||||||||||||||||||
| 3404 | 4325 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['log']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3405 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3406 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3407 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3408 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3409 | 4325 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3410 | 4325 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3411 | |||||||||||||||||||||||||||||||||||||||
| 3412 | |||||||||||||||||||||||||||||||||||||||
| 3413 | 4325 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Alog/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Alog/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Alog/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Alog/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Alog/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3414 | { | ||||||||||||||||||||||||||||||||||||||
| 3415 | 4293 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3416 | |||||||||||||||||||||||||||||||||||||||
| 3417 | 4293 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3418 | 4293 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3419 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3420 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3421 | 4293 | last; | |||||||||||||||||||||||||||||||||||||
| 3422 | } | ||||||||||||||||||||||||||||||||||||||
| 3423 | 32 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3424 | 32 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3425 | 32 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3426 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3427 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3428 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3429 | 32 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3430 | |||||||||||||||||||||||||||||||||||||||
| 3431 | |||||||||||||||||||||||||||||||||||||||
| 3432 | 32 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['log']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3433 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3434 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3435 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3436 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3437 | |||||||||||||||||||||||||||||||||||||||
| 3438 | |||||||||||||||||||||||||||||||||||||||
| 3439 | |||||||||||||||||||||||||||||||||||||||
| 3440 | 32 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3441 | 32 | last; | |||||||||||||||||||||||||||||||||||||
| 3442 | } | ||||||||||||||||||||||||||||||||||||||
| 3443 | |||||||||||||||||||||||||||||||||||||||
| 3444 | |||||||||||||||||||||||||||||||||||||||
| 3445 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3446 | { | ||||||||||||||||||||||||||||||||||||||
| 3447 | |||||||||||||||||||||||||||||||||||||||
| 3448 | 4293 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['partial_derivative']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3449 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3450 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3451 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3452 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3453 | 4293 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||
| 3454 | 4293 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3455 | 4293 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3456 | 4293 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3457 | 4293 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3458 | 4293 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3459 | |||||||||||||||||||||||||||||||||||||||
| 3460 | |||||||||||||||||||||||||||||||||||||||
| 3461 | 4293 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['partial_derivative']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3462 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3463 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3464 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3465 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3466 | 4293 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3467 | 4293 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3468 | |||||||||||||||||||||||||||||||||||||||
| 3469 | |||||||||||||||||||||||||||||||||||||||
| 3470 | 4293 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Apartial_derivative/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Apartial_derivative/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Apartial_derivative/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Apartial_derivative/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Apartial_derivative/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3471 | { | ||||||||||||||||||||||||||||||||||||||
| 3472 | 4049 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3473 | |||||||||||||||||||||||||||||||||||||||
| 3474 | 4049 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3475 | 4049 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3476 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3477 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3478 | 4049 | last; | |||||||||||||||||||||||||||||||||||||
| 3479 | } | ||||||||||||||||||||||||||||||||||||||
| 3480 | 244 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3481 | 244 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3482 | 244 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3483 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3484 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3485 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3486 | 244 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3487 | |||||||||||||||||||||||||||||||||||||||
| 3488 | |||||||||||||||||||||||||||||||||||||||
| 3489 | 244 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['partial_derivative']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3490 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3491 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3492 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3493 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3494 | |||||||||||||||||||||||||||||||||||||||
| 3495 | |||||||||||||||||||||||||||||||||||||||
| 3496 | |||||||||||||||||||||||||||||||||||||||
| 3497 | 244 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3498 | 244 | last; | |||||||||||||||||||||||||||||||||||||
| 3499 | } | ||||||||||||||||||||||||||||||||||||||
| 3500 | |||||||||||||||||||||||||||||||||||||||
| 3501 | |||||||||||||||||||||||||||||||||||||||
| 3502 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3503 | { | ||||||||||||||||||||||||||||||||||||||
| 3504 | |||||||||||||||||||||||||||||||||||||||
| 3505 | 4049 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['total_derivative']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3506 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3507 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3508 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3509 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3510 | 4049 | my $thisprod = $thisrule->{"prods"}[2]; | |||||||||||||||||||||||||||||||||||||
| 3511 | 4049 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3512 | 4049 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3513 | 4049 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3514 | 4049 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3515 | 4049 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3516 | |||||||||||||||||||||||||||||||||||||||
| 3517 | |||||||||||||||||||||||||||||||||||||||
| 3518 | 4049 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['total_derivative']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3519 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3520 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3521 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3522 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3523 | 4049 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3524 | 4049 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3525 | |||||||||||||||||||||||||||||||||||||||
| 3526 | |||||||||||||||||||||||||||||||||||||||
| 3527 | 4049 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Atotal_derivative/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Atotal_derivative/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Atotal_derivative/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Atotal_derivative/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Atotal_derivative/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3528 | { | ||||||||||||||||||||||||||||||||||||||
| 3529 | 4023 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3530 | |||||||||||||||||||||||||||||||||||||||
| 3531 | 4023 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3532 | 4023 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3533 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3534 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3535 | 4023 | last; | |||||||||||||||||||||||||||||||||||||
| 3536 | } | ||||||||||||||||||||||||||||||||||||||
| 3537 | 26 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3538 | 26 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3539 | 26 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3540 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3541 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3542 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3543 | 26 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3544 | |||||||||||||||||||||||||||||||||||||||
| 3545 | |||||||||||||||||||||||||||||||||||||||
| 3546 | 26 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['total_derivative']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3547 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3548 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3549 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3550 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3551 | |||||||||||||||||||||||||||||||||||||||
| 3552 | |||||||||||||||||||||||||||||||||||||||
| 3553 | |||||||||||||||||||||||||||||||||||||||
| 3554 | 26 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3555 | 26 | last; | |||||||||||||||||||||||||||||||||||||
| 3556 | } | ||||||||||||||||||||||||||||||||||||||
| 3557 | |||||||||||||||||||||||||||||||||||||||
| 3558 | |||||||||||||||||||||||||||||||||||||||
| 3559 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3560 | { | ||||||||||||||||||||||||||||||||||||||
| 3561 | |||||||||||||||||||||||||||||||||||||||
| 3562 | 4023 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['sinh']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3563 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3564 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3565 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3566 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3567 | 4023 | my $thisprod = $thisrule->{"prods"}[3]; | |||||||||||||||||||||||||||||||||||||
| 3568 | 4023 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3569 | 4023 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3570 | 4023 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3571 | 4023 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3572 | 4023 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3573 | |||||||||||||||||||||||||||||||||||||||
| 3574 | |||||||||||||||||||||||||||||||||||||||
| 3575 | 4023 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['sinh']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3576 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3577 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3578 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3579 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3580 | 4023 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3581 | 4023 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3582 | |||||||||||||||||||||||||||||||||||||||
| 3583 | |||||||||||||||||||||||||||||||||||||||
| 3584 | 4023 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Asinh/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Asinh/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Asinh/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Asinh/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Asinh/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3585 | { | ||||||||||||||||||||||||||||||||||||||
| 3586 | 4013 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3587 | |||||||||||||||||||||||||||||||||||||||
| 3588 | 4013 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3589 | 4013 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3590 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3591 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3592 | 4013 | last; | |||||||||||||||||||||||||||||||||||||
| 3593 | } | ||||||||||||||||||||||||||||||||||||||
| 3594 | 10 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3595 | 10 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3596 | 10 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3597 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3598 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3599 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3600 | 10 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3601 | |||||||||||||||||||||||||||||||||||||||
| 3602 | |||||||||||||||||||||||||||||||||||||||
| 3603 | 10 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['sinh']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3604 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3605 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3606 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3607 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3608 | |||||||||||||||||||||||||||||||||||||||
| 3609 | |||||||||||||||||||||||||||||||||||||||
| 3610 | |||||||||||||||||||||||||||||||||||||||
| 3611 | 10 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3612 | 10 | last; | |||||||||||||||||||||||||||||||||||||
| 3613 | } | ||||||||||||||||||||||||||||||||||||||
| 3614 | |||||||||||||||||||||||||||||||||||||||
| 3615 | |||||||||||||||||||||||||||||||||||||||
| 3616 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3617 | { | ||||||||||||||||||||||||||||||||||||||
| 3618 | |||||||||||||||||||||||||||||||||||||||
| 3619 | 4013 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['cosh']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3620 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3621 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3622 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3623 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3624 | 4013 | my $thisprod = $thisrule->{"prods"}[4]; | |||||||||||||||||||||||||||||||||||||
| 3625 | 4013 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3626 | 4013 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3627 | 4013 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3628 | 4013 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3629 | 4013 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3630 | |||||||||||||||||||||||||||||||||||||||
| 3631 | |||||||||||||||||||||||||||||||||||||||
| 3632 | 4013 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['cosh']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3633 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3634 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3635 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3636 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3637 | 4013 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3638 | 4013 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3639 | |||||||||||||||||||||||||||||||||||||||
| 3640 | |||||||||||||||||||||||||||||||||||||||
| 3641 | 4013 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Acosh/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Acosh/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Acosh/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Acosh/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Acosh/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3642 | { | ||||||||||||||||||||||||||||||||||||||
| 3643 | 4003 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3644 | |||||||||||||||||||||||||||||||||||||||
| 3645 | 4003 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3646 | 4003 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3647 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3648 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3649 | 4003 | last; | |||||||||||||||||||||||||||||||||||||
| 3650 | } | ||||||||||||||||||||||||||||||||||||||
| 3651 | 10 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3652 | 10 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3653 | 10 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3654 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3655 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3656 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3657 | 10 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3658 | |||||||||||||||||||||||||||||||||||||||
| 3659 | |||||||||||||||||||||||||||||||||||||||
| 3660 | 10 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['cosh']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3661 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3662 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3663 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3664 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3665 | |||||||||||||||||||||||||||||||||||||||
| 3666 | |||||||||||||||||||||||||||||||||||||||
| 3667 | |||||||||||||||||||||||||||||||||||||||
| 3668 | 10 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3669 | 10 | last; | |||||||||||||||||||||||||||||||||||||
| 3670 | } | ||||||||||||||||||||||||||||||||||||||
| 3671 | |||||||||||||||||||||||||||||||||||||||
| 3672 | |||||||||||||||||||||||||||||||||||||||
| 3673 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3674 | { | ||||||||||||||||||||||||||||||||||||||
| 3675 | |||||||||||||||||||||||||||||||||||||||
| 3676 | 4003 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['asinh']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3677 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3678 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3679 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3680 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3681 | 4003 | my $thisprod = $thisrule->{"prods"}[5]; | |||||||||||||||||||||||||||||||||||||
| 3682 | 4003 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3683 | 4003 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3684 | 4003 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3685 | 4003 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3686 | 4003 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3687 | |||||||||||||||||||||||||||||||||||||||
| 3688 | |||||||||||||||||||||||||||||||||||||||
| 3689 | 4003 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['asinh']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3690 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3691 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3692 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3693 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3694 | 4003 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3695 | 4003 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3696 | |||||||||||||||||||||||||||||||||||||||
| 3697 | |||||||||||||||||||||||||||||||||||||||
| 3698 | 4003 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aasinh/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aasinh/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aasinh/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Aasinh/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aasinh/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3699 | { | ||||||||||||||||||||||||||||||||||||||
| 3700 | 4001 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3701 | |||||||||||||||||||||||||||||||||||||||
| 3702 | 4001 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3703 | 4001 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3704 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3705 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3706 | 4001 | last; | |||||||||||||||||||||||||||||||||||||
| 3707 | } | ||||||||||||||||||||||||||||||||||||||
| 3708 | 2 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3709 | 2 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3710 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3711 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3712 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3713 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3714 | 2 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3715 | |||||||||||||||||||||||||||||||||||||||
| 3716 | |||||||||||||||||||||||||||||||||||||||
| 3717 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['asinh']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3718 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3719 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3720 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3721 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3722 | |||||||||||||||||||||||||||||||||||||||
| 3723 | |||||||||||||||||||||||||||||||||||||||
| 3724 | |||||||||||||||||||||||||||||||||||||||
| 3725 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3726 | 2 | last; | |||||||||||||||||||||||||||||||||||||
| 3727 | } | ||||||||||||||||||||||||||||||||||||||
| 3728 | |||||||||||||||||||||||||||||||||||||||
| 3729 | |||||||||||||||||||||||||||||||||||||||
| 3730 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3731 | { | ||||||||||||||||||||||||||||||||||||||
| 3732 | |||||||||||||||||||||||||||||||||||||||
| 3733 | 4001 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['acosh']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3734 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3735 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3736 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3737 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3738 | 4001 | my $thisprod = $thisrule->{"prods"}[6]; | |||||||||||||||||||||||||||||||||||||
| 3739 | 4001 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3740 | 4001 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3741 | 4001 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3742 | 4001 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3743 | 4001 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3744 | |||||||||||||||||||||||||||||||||||||||
| 3745 | |||||||||||||||||||||||||||||||||||||||
| 3746 | 4001 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['acosh']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3747 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3748 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3749 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3750 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3751 | 4001 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3752 | 4001 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3753 | |||||||||||||||||||||||||||||||||||||||
| 3754 | |||||||||||||||||||||||||||||||||||||||
| 3755 | 4001 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aacosh/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aacosh/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aacosh/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Aacosh/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aacosh/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3756 | { | ||||||||||||||||||||||||||||||||||||||
| 3757 | 3999 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3758 | |||||||||||||||||||||||||||||||||||||||
| 3759 | 3999 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3760 | 3999 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3761 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3762 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3763 | 3999 | last; | |||||||||||||||||||||||||||||||||||||
| 3764 | } | ||||||||||||||||||||||||||||||||||||||
| 3765 | 2 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3766 | 2 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3767 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3768 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3769 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3770 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3771 | 2 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3772 | |||||||||||||||||||||||||||||||||||||||
| 3773 | |||||||||||||||||||||||||||||||||||||||
| 3774 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['acosh']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3775 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3776 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3777 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3778 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3779 | |||||||||||||||||||||||||||||||||||||||
| 3780 | |||||||||||||||||||||||||||||||||||||||
| 3781 | |||||||||||||||||||||||||||||||||||||||
| 3782 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3783 | 2 | last; | |||||||||||||||||||||||||||||||||||||
| 3784 | } | ||||||||||||||||||||||||||||||||||||||
| 3785 | |||||||||||||||||||||||||||||||||||||||
| 3786 | |||||||||||||||||||||||||||||||||||||||
| 3787 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3788 | { | ||||||||||||||||||||||||||||||||||||||
| 3789 | |||||||||||||||||||||||||||||||||||||||
| 3790 | 3999 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['asin']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3791 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3792 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3793 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3794 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3795 | 3999 | my $thisprod = $thisrule->{"prods"}[7]; | |||||||||||||||||||||||||||||||||||||
| 3796 | 3999 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3797 | 3999 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3798 | 3999 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3799 | 3999 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3800 | 3999 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3801 | |||||||||||||||||||||||||||||||||||||||
| 3802 | |||||||||||||||||||||||||||||||||||||||
| 3803 | 3999 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['asin']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3804 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3805 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3806 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3807 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3808 | 3999 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3809 | 3999 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3810 | |||||||||||||||||||||||||||||||||||||||
| 3811 | |||||||||||||||||||||||||||||||||||||||
| 3812 | 3999 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aasin/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aasin/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aasin/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Aasin/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aasin/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3813 | { | ||||||||||||||||||||||||||||||||||||||
| 3814 | 3997 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3815 | |||||||||||||||||||||||||||||||||||||||
| 3816 | 3997 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3817 | 3997 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3818 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3819 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3820 | 3997 | last; | |||||||||||||||||||||||||||||||||||||
| 3821 | } | ||||||||||||||||||||||||||||||||||||||
| 3822 | 2 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3823 | 2 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3824 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3825 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3826 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3827 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3828 | 2 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3829 | |||||||||||||||||||||||||||||||||||||||
| 3830 | |||||||||||||||||||||||||||||||||||||||
| 3831 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['asin']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3832 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3833 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3834 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3835 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3836 | |||||||||||||||||||||||||||||||||||||||
| 3837 | |||||||||||||||||||||||||||||||||||||||
| 3838 | |||||||||||||||||||||||||||||||||||||||
| 3839 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3840 | 2 | last; | |||||||||||||||||||||||||||||||||||||
| 3841 | } | ||||||||||||||||||||||||||||||||||||||
| 3842 | |||||||||||||||||||||||||||||||||||||||
| 3843 | |||||||||||||||||||||||||||||||||||||||
| 3844 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3845 | { | ||||||||||||||||||||||||||||||||||||||
| 3846 | |||||||||||||||||||||||||||||||||||||||
| 3847 | 3997 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['acos']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3848 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3849 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3850 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3851 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3852 | 3997 | my $thisprod = $thisrule->{"prods"}[8]; | |||||||||||||||||||||||||||||||||||||
| 3853 | 3997 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3854 | 3997 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3855 | 3997 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3856 | 3997 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3857 | 3997 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3858 | |||||||||||||||||||||||||||||||||||||||
| 3859 | |||||||||||||||||||||||||||||||||||||||
| 3860 | 3997 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['acos']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3861 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3862 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3863 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3864 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3865 | 3997 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3866 | 3997 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3867 | |||||||||||||||||||||||||||||||||||||||
| 3868 | |||||||||||||||||||||||||||||||||||||||
| 3869 | 3997 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aacos/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aacos/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aacos/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Aacos/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aacos/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3870 | { | ||||||||||||||||||||||||||||||||||||||
| 3871 | 3993 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3872 | |||||||||||||||||||||||||||||||||||||||
| 3873 | 3993 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3874 | 3993 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3875 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3876 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3877 | 3993 | last; | |||||||||||||||||||||||||||||||||||||
| 3878 | } | ||||||||||||||||||||||||||||||||||||||
| 3879 | 4 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3880 | 4 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3881 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3882 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3883 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3884 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3885 | 4 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3886 | |||||||||||||||||||||||||||||||||||||||
| 3887 | |||||||||||||||||||||||||||||||||||||||
| 3888 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['acos']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3889 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3890 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3891 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3892 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3893 | |||||||||||||||||||||||||||||||||||||||
| 3894 | |||||||||||||||||||||||||||||||||||||||
| 3895 | |||||||||||||||||||||||||||||||||||||||
| 3896 | 4 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3897 | 4 | last; | |||||||||||||||||||||||||||||||||||||
| 3898 | } | ||||||||||||||||||||||||||||||||||||||
| 3899 | |||||||||||||||||||||||||||||||||||||||
| 3900 | |||||||||||||||||||||||||||||||||||||||
| 3901 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3902 | { | ||||||||||||||||||||||||||||||||||||||
| 3903 | |||||||||||||||||||||||||||||||||||||||
| 3904 | 3993 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['atan2']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3905 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3906 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3907 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3908 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3909 | 3993 | my $thisprod = $thisrule->{"prods"}[9]; | |||||||||||||||||||||||||||||||||||||
| 3910 | 3993 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3911 | 3993 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3912 | 3993 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3913 | 3993 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3914 | 3993 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3915 | |||||||||||||||||||||||||||||||||||||||
| 3916 | |||||||||||||||||||||||||||||||||||||||
| 3917 | 3993 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['atan2']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3918 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3919 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3920 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3921 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3922 | 3993 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3923 | 3993 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3924 | |||||||||||||||||||||||||||||||||||||||
| 3925 | |||||||||||||||||||||||||||||||||||||||
| 3926 | 3993 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aatan2/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aatan2/
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aatan2/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Aatan2/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aatan2/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3927 | { | ||||||||||||||||||||||||||||||||||||||
| 3928 | 3993 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3929 | |||||||||||||||||||||||||||||||||||||||
| 3930 | 3993 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3931 | 3993 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3932 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3933 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3934 | 3993 | last; | |||||||||||||||||||||||||||||||||||||
| 3935 | } | ||||||||||||||||||||||||||||||||||||||
| 3936 | 0 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3937 | 0 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3938 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3939 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3940 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3941 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3942 | 0 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 3943 | |||||||||||||||||||||||||||||||||||||||
| 3944 | |||||||||||||||||||||||||||||||||||||||
| 3945 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['atan2']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3946 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3947 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3948 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3949 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3950 | |||||||||||||||||||||||||||||||||||||||
| 3951 | |||||||||||||||||||||||||||||||||||||||
| 3952 | |||||||||||||||||||||||||||||||||||||||
| 3953 | 0 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 3954 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 3955 | } | ||||||||||||||||||||||||||||||||||||||
| 3956 | |||||||||||||||||||||||||||||||||||||||
| 3957 | |||||||||||||||||||||||||||||||||||||||
| 3958 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 3959 | { | ||||||||||||||||||||||||||||||||||||||
| 3960 | |||||||||||||||||||||||||||||||||||||||
| 3961 | 3993 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['atan']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3962 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 3963 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3964 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3965 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3966 | 3993 | my $thisprod = $thisrule->{"prods"}[10]; | |||||||||||||||||||||||||||||||||||||
| 3967 | 3993 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 3968 | 3993 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 3969 | 3993 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3970 | 3993 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 3971 | 3993 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 3972 | |||||||||||||||||||||||||||||||||||||||
| 3973 | |||||||||||||||||||||||||||||||||||||||
| 3974 | 3993 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['atan']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3975 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 3976 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 3977 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 3978 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3979 | 3993 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 3980 | 3993 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 3981 | |||||||||||||||||||||||||||||||||||||||
| 3982 | |||||||||||||||||||||||||||||||||||||||
| 3983 | 3993 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aatan/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aatan/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aatan/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Aatan/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aatan/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 3984 | { | ||||||||||||||||||||||||||||||||||||||
| 3985 | 3991 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3986 | |||||||||||||||||||||||||||||||||||||||
| 3987 | 3991 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 3988 | 3991 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3989 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3990 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3991 | 3991 | last; | |||||||||||||||||||||||||||||||||||||
| 3992 | } | ||||||||||||||||||||||||||||||||||||||
| 3993 | 2 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 3994 | 2 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 3995 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 3996 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 3997 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 3998 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 3999 | 2 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4000 | |||||||||||||||||||||||||||||||||||||||
| 4001 | |||||||||||||||||||||||||||||||||||||||
| 4002 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['atan']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4003 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4004 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4005 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4006 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4007 | |||||||||||||||||||||||||||||||||||||||
| 4008 | |||||||||||||||||||||||||||||||||||||||
| 4009 | |||||||||||||||||||||||||||||||||||||||
| 4010 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4011 | 2 | last; | |||||||||||||||||||||||||||||||||||||
| 4012 | } | ||||||||||||||||||||||||||||||||||||||
| 4013 | |||||||||||||||||||||||||||||||||||||||
| 4014 | |||||||||||||||||||||||||||||||||||||||
| 4015 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4016 | { | ||||||||||||||||||||||||||||||||||||||
| 4017 | |||||||||||||||||||||||||||||||||||||||
| 4018 | 3991 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['acot']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4019 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4020 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4021 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4022 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4023 | 3991 | my $thisprod = $thisrule->{"prods"}[11]; | |||||||||||||||||||||||||||||||||||||
| 4024 | 3991 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4025 | 3991 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4026 | 3991 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4027 | 3991 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4028 | 3991 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4029 | |||||||||||||||||||||||||||||||||||||||
| 4030 | |||||||||||||||||||||||||||||||||||||||
| 4031 | 3991 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['acot']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4032 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4033 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4034 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4035 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4036 | 3991 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4037 | 3991 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4038 | |||||||||||||||||||||||||||||||||||||||
| 4039 | |||||||||||||||||||||||||||||||||||||||
| 4040 | 3991 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aacot/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aacot/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aacot/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Aacot/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aacot/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4041 | { | ||||||||||||||||||||||||||||||||||||||
| 4042 | 3989 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4043 | |||||||||||||||||||||||||||||||||||||||
| 4044 | 3989 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4045 | 3989 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4046 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4047 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4048 | 3989 | last; | |||||||||||||||||||||||||||||||||||||
| 4049 | } | ||||||||||||||||||||||||||||||||||||||
| 4050 | 2 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4051 | 2 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4052 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4053 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4054 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4055 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4056 | 2 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4057 | |||||||||||||||||||||||||||||||||||||||
| 4058 | |||||||||||||||||||||||||||||||||||||||
| 4059 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['acot']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4060 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4061 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4062 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4063 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4064 | |||||||||||||||||||||||||||||||||||||||
| 4065 | |||||||||||||||||||||||||||||||||||||||
| 4066 | |||||||||||||||||||||||||||||||||||||||
| 4067 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4068 | 2 | last; | |||||||||||||||||||||||||||||||||||||
| 4069 | } | ||||||||||||||||||||||||||||||||||||||
| 4070 | |||||||||||||||||||||||||||||||||||||||
| 4071 | |||||||||||||||||||||||||||||||||||||||
| 4072 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4073 | { | ||||||||||||||||||||||||||||||||||||||
| 4074 | |||||||||||||||||||||||||||||||||||||||
| 4075 | 3989 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['sin']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4076 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4077 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4078 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4079 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4080 | 3989 | my $thisprod = $thisrule->{"prods"}[12]; | |||||||||||||||||||||||||||||||||||||
| 4081 | 3989 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4082 | 3989 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4083 | 3989 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4084 | 3989 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4085 | 3989 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4086 | |||||||||||||||||||||||||||||||||||||||
| 4087 | |||||||||||||||||||||||||||||||||||||||
| 4088 | 3989 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['sin']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4089 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4090 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4091 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4092 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4093 | 3989 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4094 | 3989 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4095 | |||||||||||||||||||||||||||||||||||||||
| 4096 | |||||||||||||||||||||||||||||||||||||||
| 4097 | 3989 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Asin/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Asin/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Asin/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Asin/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Asin/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4098 | { | ||||||||||||||||||||||||||||||||||||||
| 4099 | 3895 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4100 | |||||||||||||||||||||||||||||||||||||||
| 4101 | 3895 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4102 | 3895 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4103 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4104 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4105 | 3895 | last; | |||||||||||||||||||||||||||||||||||||
| 4106 | } | ||||||||||||||||||||||||||||||||||||||
| 4107 | 94 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4108 | 94 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4109 | 94 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4110 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4111 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4112 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4113 | 94 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4114 | |||||||||||||||||||||||||||||||||||||||
| 4115 | |||||||||||||||||||||||||||||||||||||||
| 4116 | 94 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['sin']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4117 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4118 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4119 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4120 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4121 | |||||||||||||||||||||||||||||||||||||||
| 4122 | |||||||||||||||||||||||||||||||||||||||
| 4123 | |||||||||||||||||||||||||||||||||||||||
| 4124 | 94 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4125 | 94 | last; | |||||||||||||||||||||||||||||||||||||
| 4126 | } | ||||||||||||||||||||||||||||||||||||||
| 4127 | |||||||||||||||||||||||||||||||||||||||
| 4128 | |||||||||||||||||||||||||||||||||||||||
| 4129 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4130 | { | ||||||||||||||||||||||||||||||||||||||
| 4131 | |||||||||||||||||||||||||||||||||||||||
| 4132 | 3895 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['cos']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4133 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4134 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4135 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4136 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4137 | 3895 | my $thisprod = $thisrule->{"prods"}[13]; | |||||||||||||||||||||||||||||||||||||
| 4138 | 3895 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4139 | 3895 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4140 | 3895 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4141 | 3895 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4142 | 3895 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4143 | |||||||||||||||||||||||||||||||||||||||
| 4144 | |||||||||||||||||||||||||||||||||||||||
| 4145 | 3895 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['cos']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4146 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4147 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4148 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4149 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4150 | 3895 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4151 | 3895 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4152 | |||||||||||||||||||||||||||||||||||||||
| 4153 | |||||||||||||||||||||||||||||||||||||||
| 4154 | 3895 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Acos/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Acos/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Acos/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Acos/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Acos/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4155 | { | ||||||||||||||||||||||||||||||||||||||
| 4156 | 3857 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4157 | |||||||||||||||||||||||||||||||||||||||
| 4158 | 3857 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4159 | 3857 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4160 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4161 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4162 | 3857 | last; | |||||||||||||||||||||||||||||||||||||
| 4163 | } | ||||||||||||||||||||||||||||||||||||||
| 4164 | 38 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4165 | 38 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4166 | 38 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4167 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4168 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4169 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4170 | 38 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4171 | |||||||||||||||||||||||||||||||||||||||
| 4172 | |||||||||||||||||||||||||||||||||||||||
| 4173 | 38 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['cos']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4174 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4175 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4176 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4177 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4178 | |||||||||||||||||||||||||||||||||||||||
| 4179 | |||||||||||||||||||||||||||||||||||||||
| 4180 | |||||||||||||||||||||||||||||||||||||||
| 4181 | 38 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4182 | 38 | last; | |||||||||||||||||||||||||||||||||||||
| 4183 | } | ||||||||||||||||||||||||||||||||||||||
| 4184 | |||||||||||||||||||||||||||||||||||||||
| 4185 | |||||||||||||||||||||||||||||||||||||||
| 4186 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4187 | { | ||||||||||||||||||||||||||||||||||||||
| 4188 | |||||||||||||||||||||||||||||||||||||||
| 4189 | 3857 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['tan']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4190 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4191 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4192 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4193 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4194 | 3857 | my $thisprod = $thisrule->{"prods"}[14]; | |||||||||||||||||||||||||||||||||||||
| 4195 | 3857 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4196 | 3857 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4197 | 3857 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4198 | 3857 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4199 | 3857 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4200 | |||||||||||||||||||||||||||||||||||||||
| 4201 | |||||||||||||||||||||||||||||||||||||||
| 4202 | 3857 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['tan']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4203 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4204 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4205 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4206 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4207 | 3857 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4208 | 3857 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4209 | |||||||||||||||||||||||||||||||||||||||
| 4210 | |||||||||||||||||||||||||||||||||||||||
| 4211 | 3857 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Atan/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Atan/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Atan/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Atan/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Atan/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4212 | { | ||||||||||||||||||||||||||||||||||||||
| 4213 | 3845 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4214 | |||||||||||||||||||||||||||||||||||||||
| 4215 | 3845 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4216 | 3845 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4217 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4218 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4219 | 3845 | last; | |||||||||||||||||||||||||||||||||||||
| 4220 | } | ||||||||||||||||||||||||||||||||||||||
| 4221 | 12 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4222 | 12 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4223 | 12 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4224 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4225 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4226 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4227 | 12 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4228 | |||||||||||||||||||||||||||||||||||||||
| 4229 | |||||||||||||||||||||||||||||||||||||||
| 4230 | 12 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['tan']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4231 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4232 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4233 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4234 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4235 | |||||||||||||||||||||||||||||||||||||||
| 4236 | |||||||||||||||||||||||||||||||||||||||
| 4237 | |||||||||||||||||||||||||||||||||||||||
| 4238 | 12 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4239 | 12 | last; | |||||||||||||||||||||||||||||||||||||
| 4240 | } | ||||||||||||||||||||||||||||||||||||||
| 4241 | |||||||||||||||||||||||||||||||||||||||
| 4242 | |||||||||||||||||||||||||||||||||||||||
| 4243 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4244 | { | ||||||||||||||||||||||||||||||||||||||
| 4245 | |||||||||||||||||||||||||||||||||||||||
| 4246 | 3845 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['cot']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4247 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4248 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4249 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4250 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4251 | 3845 | my $thisprod = $thisrule->{"prods"}[15]; | |||||||||||||||||||||||||||||||||||||
| 4252 | 3845 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4253 | 3845 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4254 | 3845 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4255 | 3845 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4256 | 3845 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4257 | |||||||||||||||||||||||||||||||||||||||
| 4258 | |||||||||||||||||||||||||||||||||||||||
| 4259 | 3845 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['cot']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4260 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4261 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4262 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4263 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4264 | 3845 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4265 | 3845 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4266 | |||||||||||||||||||||||||||||||||||||||
| 4267 | |||||||||||||||||||||||||||||||||||||||
| 4268 | 3845 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Acot/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Acot/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Acot/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Acot/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Acot/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4269 | { | ||||||||||||||||||||||||||||||||||||||
| 4270 | 3843 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4271 | |||||||||||||||||||||||||||||||||||||||
| 4272 | 3843 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4273 | 3843 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4274 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4275 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4276 | 3843 | last; | |||||||||||||||||||||||||||||||||||||
| 4277 | } | ||||||||||||||||||||||||||||||||||||||
| 4278 | 2 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4279 | 2 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4280 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4281 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4282 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4283 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4284 | 2 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4285 | |||||||||||||||||||||||||||||||||||||||
| 4286 | |||||||||||||||||||||||||||||||||||||||
| 4287 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['cot']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4288 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4289 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4290 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4291 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4292 | |||||||||||||||||||||||||||||||||||||||
| 4293 | |||||||||||||||||||||||||||||||||||||||
| 4294 | |||||||||||||||||||||||||||||||||||||||
| 4295 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4296 | 2 | last; | |||||||||||||||||||||||||||||||||||||
| 4297 | } | ||||||||||||||||||||||||||||||||||||||
| 4298 | |||||||||||||||||||||||||||||||||||||||
| 4299 | |||||||||||||||||||||||||||||||||||||||
| 4300 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4301 | { | ||||||||||||||||||||||||||||||||||||||
| 4302 | |||||||||||||||||||||||||||||||||||||||
| 4303 | 3843 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['exp']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4304 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4305 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4306 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4307 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4308 | 3843 | my $thisprod = $thisrule->{"prods"}[16]; | |||||||||||||||||||||||||||||||||||||
| 4309 | 3843 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4310 | 3843 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4311 | 3843 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4312 | 3843 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4313 | 3843 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4314 | |||||||||||||||||||||||||||||||||||||||
| 4315 | |||||||||||||||||||||||||||||||||||||||
| 4316 | 3843 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['exp']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4317 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4318 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4319 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4320 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4321 | 3843 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4322 | 3843 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4323 | |||||||||||||||||||||||||||||||||||||||
| 4324 | |||||||||||||||||||||||||||||||||||||||
| 4325 | 3843 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aexp/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aexp/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Aexp/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Aexp/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aexp/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4326 | { | ||||||||||||||||||||||||||||||||||||||
| 4327 | 3837 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4328 | |||||||||||||||||||||||||||||||||||||||
| 4329 | 3837 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4330 | 3837 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4331 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4332 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4333 | 3837 | last; | |||||||||||||||||||||||||||||||||||||
| 4334 | } | ||||||||||||||||||||||||||||||||||||||
| 4335 | 6 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4336 | 6 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4337 | 6 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4338 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4339 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4340 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4341 | 6 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4342 | |||||||||||||||||||||||||||||||||||||||
| 4343 | |||||||||||||||||||||||||||||||||||||||
| 4344 | 6 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['exp']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4345 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4346 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4347 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4348 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4349 | |||||||||||||||||||||||||||||||||||||||
| 4350 | |||||||||||||||||||||||||||||||||||||||
| 4351 | |||||||||||||||||||||||||||||||||||||||
| 4352 | 6 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4353 | 6 | last; | |||||||||||||||||||||||||||||||||||||
| 4354 | } | ||||||||||||||||||||||||||||||||||||||
| 4355 | |||||||||||||||||||||||||||||||||||||||
| 4356 | |||||||||||||||||||||||||||||||||||||||
| 4357 | 4325 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4358 | { | ||||||||||||||||||||||||||||||||||||||
| 4359 | |||||||||||||||||||||||||||||||||||||||
| 4360 | 3837 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['sqrt']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4361 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4362 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4363 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4364 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4365 | 3837 | my $thisprod = $thisrule->{"prods"}[17]; | |||||||||||||||||||||||||||||||||||||
| 4366 | 3837 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4367 | 3837 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4368 | 3837 | @item = (q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4369 | 3837 | %item = (__RULE__ => q{function_name}); | |||||||||||||||||||||||||||||||||||||
| 4370 | 3837 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4371 | |||||||||||||||||||||||||||||||||||||||
| 4372 | |||||||||||||||||||||||||||||||||||||||
| 4373 | 3837 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['sqrt']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4374 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4375 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4376 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4377 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4378 | 3837 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4379 | 3837 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4380 | |||||||||||||||||||||||||||||||||||||||
| 4381 | |||||||||||||||||||||||||||||||||||||||
| 4382 | 3837 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Asqrt/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Asqrt/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\Asqrt/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\Asqrt/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\Asqrt/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4383 | { | ||||||||||||||||||||||||||||||||||||||
| 4384 | 3835 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4385 | |||||||||||||||||||||||||||||||||||||||
| 4386 | 3835 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4387 | 3835 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4388 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4389 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4390 | 3835 | last; | |||||||||||||||||||||||||||||||||||||
| 4391 | } | ||||||||||||||||||||||||||||||||||||||
| 4392 | 2 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4393 | 2 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4394 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4395 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4396 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4397 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4398 | 2 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4399 | |||||||||||||||||||||||||||||||||||||||
| 4400 | |||||||||||||||||||||||||||||||||||||||
| 4401 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['sqrt']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4402 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4403 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4404 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4405 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4406 | |||||||||||||||||||||||||||||||||||||||
| 4407 | |||||||||||||||||||||||||||||||||||||||
| 4408 | |||||||||||||||||||||||||||||||||||||||
| 4409 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4410 | 2 | last; | |||||||||||||||||||||||||||||||||||||
| 4411 | } | ||||||||||||||||||||||||||||||||||||||
| 4412 | |||||||||||||||||||||||||||||||||||||||
| 4413 | |||||||||||||||||||||||||||||||||||||||
| 4414 | 4325 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or defined $score
MC/DC50%1/2
$_matched or defined $score
$_matched
defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 4415 | { | ||||||||||||||||||||||||||||||||||||||
| 4416 | |||||||||||||||||||||||||||||||||||||||
| 4417 | |||||||||||||||||||||||||||||||||||||||
| 4418 | 3835 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 4419 | 3835 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4420 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4421 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4422 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4423 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4424 | 3835 | return undef; | |||||||||||||||||||||||||||||||||||||
| 4425 | } | ||||||||||||||||||||||||||||||||||||||
| 4426 | 490 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 4427 | { | ||||||||||||||||||||||||||||||||||||||
| 4428 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4429 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4430 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4431 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4432 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 4433 | } | ||||||||||||||||||||||||||||||||||||||
| 4434 | 490 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 4435 | 490 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4436 | 490 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4437 | { | ||||||||||||||||||||||||||||||||||||||
| 4438 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 4439 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 4440 | q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4441 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 4442 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 4443 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4444 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4445 | , q{function_name}, | ||||||||||||||||||||||||||||||||||||||
| 4446 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4447 | } | ||||||||||||||||||||||||||||||||||||||
| 4448 | 490 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 4449 | 490 | return $return; | |||||||||||||||||||||||||||||||||||||
| 4450 | } | ||||||||||||||||||||||||||||||||||||||
| 4451 | |||||||||||||||||||||||||||||||||||||||
| 4452 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 4453 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::add_op | ||||||||||||||||||||||||||||||||||||||
| 4454 | 2271 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
add_op: called CC=35 SCAR=38.8
| |||||||||||||||||||||||||||||||||||||||
| 4455 | 2271 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 4456 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 4457 | 2271 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 4458 | 2271 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 4459 | 2271 | my $thisrule = $thisparser->{"rules"}{"add_op"}; | |||||||||||||||||||||||||||||||||||||
| 4460 | |||||||||||||||||||||||||||||||||||||||
| 4461 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [add_op]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4462 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4463 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4464 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4465 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4466 | |||||||||||||||||||||||||||||||||||||||
| 4467 | |||||||||||||||||||||||||||||||||||||||
| 4468 | 2271 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 4469 | |||||||||||||||||||||||||||||||||||||||
| 4470 | 2271 | my $score; | |||||||||||||||||||||||||||||||||||||
| 4471 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 4472 | 2271 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 4473 | 2271 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 4474 | 2271 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 4475 | 2271 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 4476 | 2271 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 4477 | 2271 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 4478 | 2271 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 4479 | 2271 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 4480 | 2271 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4481 | 2271 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 4482 | 2271 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4483 | 2271 | my $text; | |||||||||||||||||||||||||||||||||||||
| 4484 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 4485 | 2271 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 4486 | 2271 | my $expectation = new Parse::RecDescent::Expectation(q{'+', or '-'}); | |||||||||||||||||||||||||||||||||||||
| 4487 | 2271 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 4488 | |||||||||||||||||||||||||||||||||||||||
| 4489 | 2271 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 4490 | 2271 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 4491 | |||||||||||||||||||||||||||||||||||||||
| 4492 | |||||||||||||||||||||||||||||||||||||||
| 4493 | |||||||||||||||||||||||||||||||||||||||
| 4494 | 2271 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4495 | { | ||||||||||||||||||||||||||||||||||||||
| 4496 | |||||||||||||||||||||||||||||||||||||||
| 4497 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['+']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4498 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4499 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4500 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4501 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4502 | 2271 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 4503 | 2271 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4504 | 2271 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4505 | 2271 | @item = (q{add_op}); | |||||||||||||||||||||||||||||||||||||
| 4506 | 2271 | %item = (__RULE__ => q{add_op}); | |||||||||||||||||||||||||||||||||||||
| 4507 | 2271 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4508 | |||||||||||||||||||||||||||||||||||||||
| 4509 | |||||||||||||||||||||||||||||||||||||||
| 4510 | 2271 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['+']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4511 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4512 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4513 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4514 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4515 | 2271 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4516 | 2271 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4517 | |||||||||||||||||||||||||||||||||||||||
| 4518 | |||||||||||||||||||||||||||||||||||||||
| 4519 | 2271 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\+/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\+/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\+/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\+/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\+/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4520 | { | ||||||||||||||||||||||||||||||||||||||
| 4521 | 1896 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4522 | |||||||||||||||||||||||||||||||||||||||
| 4523 | 1896 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4524 | 1896 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4525 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4526 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4527 | 1896 | last; | |||||||||||||||||||||||||||||||||||||
| 4528 | } | ||||||||||||||||||||||||||||||||||||||
| 4529 | 375 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4530 | 375 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4531 | 375 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4532 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4533 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4534 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4535 | 375 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4536 | |||||||||||||||||||||||||||||||||||||||
| 4537 | |||||||||||||||||||||||||||||||||||||||
| 4538 | 375 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['+']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4539 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4540 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4541 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4542 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4543 | |||||||||||||||||||||||||||||||||||||||
| 4544 | |||||||||||||||||||||||||||||||||||||||
| 4545 | |||||||||||||||||||||||||||||||||||||||
| 4546 | 375 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4547 | 375 | last; | |||||||||||||||||||||||||||||||||||||
| 4548 | } | ||||||||||||||||||||||||||||||||||||||
| 4549 | |||||||||||||||||||||||||||||||||||||||
| 4550 | |||||||||||||||||||||||||||||||||||||||
| 4551 | 2271 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4552 | { | ||||||||||||||||||||||||||||||||||||||
| 4553 | |||||||||||||||||||||||||||||||||||||||
| 4554 | 1896 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['-']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4555 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4556 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4557 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4558 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4559 | 1896 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||
| 4560 | 1896 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4561 | 1896 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4562 | 1896 | @item = (q{add_op}); | |||||||||||||||||||||||||||||||||||||
| 4563 | 1896 | %item = (__RULE__ => q{add_op}); | |||||||||||||||||||||||||||||||||||||
| 4564 | 1896 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4565 | |||||||||||||||||||||||||||||||||||||||
| 4566 | |||||||||||||||||||||||||||||||||||||||
| 4567 | 1896 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['-']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4568 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4569 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4570 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4571 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4572 | 1896 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4573 | 1896 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4574 | |||||||||||||||||||||||||||||||||||||||
| 4575 | |||||||||||||||||||||||||||||||||||||||
| 4576 | 1896 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\-/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\-/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\-/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\-/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\-/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4577 | { | ||||||||||||||||||||||||||||||||||||||
| 4578 | 1779 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4579 | |||||||||||||||||||||||||||||||||||||||
| 4580 | 1779 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4581 | 1779 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4582 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4583 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4584 | 1779 | last; | |||||||||||||||||||||||||||||||||||||
| 4585 | } | ||||||||||||||||||||||||||||||||||||||
| 4586 | 117 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4587 | 117 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4588 | 117 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4589 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4590 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4591 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4592 | 117 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4593 | |||||||||||||||||||||||||||||||||||||||
| 4594 | |||||||||||||||||||||||||||||||||||||||
| 4595 | 117 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['-']<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4596 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4597 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4598 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4599 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4600 | |||||||||||||||||||||||||||||||||||||||
| 4601 | |||||||||||||||||||||||||||||||||||||||
| 4602 | |||||||||||||||||||||||||||||||||||||||
| 4603 | 117 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4604 | 117 | last; | |||||||||||||||||||||||||||||||||||||
| 4605 | } | ||||||||||||||||||||||||||||||||||||||
| 4606 | |||||||||||||||||||||||||||||||||||||||
| 4607 | |||||||||||||||||||||||||||||||||||||||
| 4608 | 2271 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or defined $score
MC/DC50%1/2
$_matched or defined $score
$_matched
defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 4609 | { | ||||||||||||||||||||||||||||||||||||||
| 4610 | |||||||||||||||||||||||||||||||||||||||
| 4611 | |||||||||||||||||||||||||||||||||||||||
| 4612 | 1779 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 4613 | 1779 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4614 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4615 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4616 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4617 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4618 | 1779 | return undef; | |||||||||||||||||||||||||||||||||||||
| 4619 | } | ||||||||||||||||||||||||||||||||||||||
| 4620 | 492 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 4621 | { | ||||||||||||||||||||||||||||||||||||||
| 4622 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4623 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4624 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4625 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4626 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 4627 | } | ||||||||||||||||||||||||||||||||||||||
| 4628 | 492 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 4629 | 492 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4630 | 492 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4631 | { | ||||||||||||||||||||||||||||||||||||||
| 4632 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 4633 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 4634 | q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4635 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 4636 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 4637 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4638 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4639 | , q{add_op}, | ||||||||||||||||||||||||||||||||||||||
| 4640 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4641 | } | ||||||||||||||||||||||||||||||||||||||
| 4642 | 492 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 4643 | 492 | return $return; | |||||||||||||||||||||||||||||||||||||
| 4644 | } | ||||||||||||||||||||||||||||||||||||||
| 4645 | |||||||||||||||||||||||||||||||||||||||
| 4646 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||||||||||||||||||||||||||||||||||||||
| 4647 | sub Parse::RecDescent::Math::Symbolic::Parser::Precompiled::expr_list | ||||||||||||||||||||||||||||||||||||||
| 4648 | 490 | ▶ | { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
expr_list: called CC=46 SCAR=48.0
| |||||||||||||||||||||||||||||||||||||||
| 4649 | 490 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||
| 4650 | 23 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 4651 | 490 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel || 0
$Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Math::Symbolic::Parser::Precompiled::tracelevel
| |||||||||||||||||||||||||||||||||||||||
| 4652 | 490 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||
| 4653 | 490 | my $thisrule = $thisparser->{"rules"}{"expr_list"}; | |||||||||||||||||||||||||||||||||||||
| 4654 | |||||||||||||||||||||||||||||||||||||||
| 4655 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [expr_list]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4656 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4657 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4658 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4659 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4660 | |||||||||||||||||||||||||||||||||||||||
| 4661 | |||||||||||||||||||||||||||||||||||||||
| 4662 | 490 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||
| 4663 | |||||||||||||||||||||||||||||||||||||||
| 4664 | 490 | my $score; | |||||||||||||||||||||||||||||||||||||
| 4665 | my $score_return; | ||||||||||||||||||||||||||||||||||||||
| 4666 | 490 | my $_tok; | |||||||||||||||||||||||||||||||||||||
| 4667 | 490 | my $return = undef; | |||||||||||||||||||||||||||||||||||||
| 4668 | 490 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||
| 4669 | 490 | my $commit=0; | |||||||||||||||||||||||||||||||||||||
| 4670 | 490 | my @item = (); | |||||||||||||||||||||||||||||||||||||
| 4671 | 490 | my %item = (); | |||||||||||||||||||||||||||||||||||||
| 4672 | 490 | my $repeating = $_[2]; | |||||||||||||||||||||||||||||||||||||
| 4673 | 490 | my $_noactions = $_[3]; | |||||||||||||||||||||||||||||||||||||
| 4674 | 490 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4675 | 490 | my $_itempos = $_[5]; | |||||||||||||||||||||||||||||||||||||
| 4676 | 490 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4677 | 490 | my $text; | |||||||||||||||||||||||||||||||||||||
| 4678 | my $lastsep; | ||||||||||||||||||||||||||||||||||||||
| 4679 | 490 | my $current_match; | |||||||||||||||||||||||||||||||||||||
| 4680 | 490 | my $expectation = new Parse::RecDescent::Expectation(q{<leftop: expr ',' expr>}); | |||||||||||||||||||||||||||||||||||||
| 4681 | 490 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||
| 4682 | |||||||||||||||||||||||||||||||||||||||
| 4683 | 490 | my $thisline; | |||||||||||||||||||||||||||||||||||||
| 4684 | 490 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||
| 4685 | |||||||||||||||||||||||||||||||||||||||
| 4686 | |||||||||||||||||||||||||||||||||||||||
| 4687 | |||||||||||||||||||||||||||||||||||||||
| 4688 | 490 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||
| 4689 | { | ||||||||||||||||||||||||||||||||||||||
| 4690 | |||||||||||||||||||||||||||||||||||||||
| 4691 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying production: [<leftop: expr ',' expr>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4692 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4693 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4694 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4695 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4696 | 490 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||
| 4697 | 490 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||
| 4698 | 490 | my $_savetext; | |||||||||||||||||||||||||||||||||||||
| 4699 | 490 | @item = (q{expr_list}); | |||||||||||||||||||||||||||||||||||||
| 4700 | 490 | %item = (__RULE__ => q{expr_list}); | |||||||||||||||||||||||||||||||||||||
| 4701 | 490 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4702 | |||||||||||||||||||||||||||||||||||||||
| 4703 | |||||||||||||||||||||||||||||||||||||||
| 4704 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying operator: [<leftop: expr ',' expr>]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4705 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4706 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4707 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4708 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4709 | 490 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4710 | |||||||||||||||||||||||||||||||||||||||
| 4711 | 490 | $_tok = undef; | |||||||||||||||||||||||||||||||||||||
| 4712 | 490 | OPLOOP: while (1) | |||||||||||||||||||||||||||||||||||||
| 4713 | { | ||||||||||||||||||||||||||||||||||||||
| 4714 | 490 | $repcount = 0; | |||||||||||||||||||||||||||||||||||||
| 4715 | 490 | my @item; | |||||||||||||||||||||||||||||||||||||
| 4716 | my %item; | ||||||||||||||||||||||||||||||||||||||
| 4717 | |||||||||||||||||||||||||||||||||||||||
| 4718 | # MATCH LEFTARG | ||||||||||||||||||||||||||||||||||||||
| 4719 | |||||||||||||||||||||||||||||||||||||||
| 4720 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [expr]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4721 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4722 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4723 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4724 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4725 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 4726 | 490 | $expectation->is(q{expr})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4727 | 490 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::expr($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4728 | { | ||||||||||||||||||||||||||||||||||||||
| 4729 | |||||||||||||||||||||||||||||||||||||||
| 4730 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [expr]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4731 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4732 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4733 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4734 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4735 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4736 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 4737 | } | ||||||||||||||||||||||||||||||||||||||
| 4738 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [expr]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4739 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 4740 | |||||||||||||||||||||||||||||||||||||||
| 4741 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4742 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4743 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4744 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4745 | 490 | $item{q{expr}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 4746 | 490 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 4747 | |||||||||||||||||||||||||||||||||||||||
| 4748 | } | ||||||||||||||||||||||||||||||||||||||
| 4749 | |||||||||||||||||||||||||||||||||||||||
| 4750 | |||||||||||||||||||||||||||||||||||||||
| 4751 | |||||||||||||||||||||||||||||||||||||||
| 4752 | 490 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 4753 | |||||||||||||||||||||||||||||||||||||||
| 4754 | 490 | my $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 4755 | 490 | my $backtrack; | |||||||||||||||||||||||||||||||||||||
| 4756 | |||||||||||||||||||||||||||||||||||||||
| 4757 | # MATCH (OP RIGHTARG)(s) | ||||||||||||||||||||||||||||||||||||||
| 4758 | 490 | ▶ | while ($repcount < 100000000) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4759 | { | ||||||||||||||||||||||||||||||||||||||
| 4760 | 792 | $backtrack = 0; | |||||||||||||||||||||||||||||||||||||
| 4761 | |||||||||||||||||||||||||||||||||||||||
| 4762 | 792 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [',']}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4763 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4764 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4765 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4766 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4767 | 792 | undef $lastsep; | |||||||||||||||||||||||||||||||||||||
| 4768 | 792 | $expectation->is(q{','})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4769 | |||||||||||||||||||||||||||||||||||||||
| 4770 | |||||||||||||||||||||||||||||||||||||||
| 4771 | 792 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\,/) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\,/
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e and $text =~ /\A\,/
$text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/e
$text =~ /\A\,/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Math::Symbolic::Parser::Precompiled::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\,/
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||
| 4772 | { | ||||||||||||||||||||||||||||||||||||||
| 4773 | 490 | ▶ | $text = $lastsep . $text if defined $lastsep; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4774 | |||||||||||||||||||||||||||||||||||||||
| 4775 | 490 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4776 | 490 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4777 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4778 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4779 | 490 | last; | |||||||||||||||||||||||||||||||||||||
| 4780 | } | ||||||||||||||||||||||||||||||||||||||
| 4781 | 302 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | |||||||||||||||||||||||||||||||||||||
| 4782 | 302 | substr($text,0,length($current_match),q{}); | |||||||||||||||||||||||||||||||||||||
| 4783 | 302 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4784 | . $current_match . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4785 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4786 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4787 | 302 | push @item, $item{__STRING1__}=$current_match; | |||||||||||||||||||||||||||||||||||||
| 4788 | |||||||||||||||||||||||||||||||||||||||
| 4789 | |||||||||||||||||||||||||||||||||||||||
| 4790 | 302 | pop @item; | |||||||||||||||||||||||||||||||||||||
| 4791 | |||||||||||||||||||||||||||||||||||||||
| 4792 | |||||||||||||||||||||||||||||||||||||||
| 4793 | 302 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [expr]}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4794 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4795 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4796 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4797 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4798 | 23 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 4799 | 302 | $expectation->is(q{expr})->at($text); | |||||||||||||||||||||||||||||||||||||
| 4800 | 302 | ▶ | unless (defined ($_tok = Parse::RecDescent::Math::Symbolic::Parser::Precompiled::expr($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4801 | { | ||||||||||||||||||||||||||||||||||||||
| 4802 | |||||||||||||||||||||||||||||||||||||||
| 4803 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [expr]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4804 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4805 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4806 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4807 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4808 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4809 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 4810 | } | ||||||||||||||||||||||||||||||||||||||
| 4811 | 302 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [expr]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4812 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||
| 4813 | |||||||||||||||||||||||||||||||||||||||
| 4814 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4815 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4816 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4817 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4818 | 302 | $item{q{expr}} = $_tok; | |||||||||||||||||||||||||||||||||||||
| 4819 | 302 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 4820 | |||||||||||||||||||||||||||||||||||||||
| 4821 | } | ||||||||||||||||||||||||||||||||||||||
| 4822 | |||||||||||||||||||||||||||||||||||||||
| 4823 | 302 | $savetext = $text; | |||||||||||||||||||||||||||||||||||||
| 4824 | 302 | $repcount++; | |||||||||||||||||||||||||||||||||||||
| 4825 | } | ||||||||||||||||||||||||||||||||||||||
| 4826 | 490 | $text = $savetext; | |||||||||||||||||||||||||||||||||||||
| 4827 | 490 | ▶ | pop @item if $backtrack; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4828 | |||||||||||||||||||||||||||||||||||||||
| 4829 | 0 | ▶ | unless (@item) { undef $_tok; last } | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4830 | 490 | $_tok = [ @item ]; | |||||||||||||||||||||||||||||||||||||
| 4831 | |||||||||||||||||||||||||||||||||||||||
| 4832 | 490 | last; | |||||||||||||||||||||||||||||||||||||
| 4833 | } # end of OPLOOP | ||||||||||||||||||||||||||||||||||||||
| 4834 | |||||||||||||||||||||||||||||||||||||||
| 4835 | 490 | ▶ | unless ($repcount>=1) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4836 | { | ||||||||||||||||||||||||||||||||||||||
| 4837 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match operator: [<leftop: expr ',' expr>]>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4838 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4839 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4840 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4841 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4842 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||
| 4843 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 4844 | } | ||||||||||||||||||||||||||||||||||||||
| 4845 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched operator: [<leftop: expr ',' expr>]<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4846 | 0 | ▶ | . qq{@{$_tok||[]}} . q{]}, | ||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table0%0/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 4847 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4848 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4849 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4850 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4851 | |||||||||||||||||||||||||||||||||||||||
| 4852 | 490 | ▶ | push @item, $item{__DIRECTIVE1__}=$_tok||[]; | ||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table50%1/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||
| 4853 | |||||||||||||||||||||||||||||||||||||||
| 4854 | 490 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4855 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4856 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4857 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4858 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4859 | |||||||||||||||||||||||||||||||||||||||
| 4860 | |||||||||||||||||||||||||||||||||||||||
| 4861 | 490 | ▶ | $_tok = ($_noactions) ? 0 : do { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4862 | #warn 'expr_list ' | ||||||||||||||||||||||||||||||||||||||
| 4863 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 4864 | 490 | $item[1] | |||||||||||||||||||||||||||||||||||||
| 4865 | }; | ||||||||||||||||||||||||||||||||||||||
| 4866 | 490 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4867 | { | ||||||||||||||||||||||||||||||||||||||
| 4868 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4869 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4870 | 0 | last; | |||||||||||||||||||||||||||||||||||||
| 4871 | } | ||||||||||||||||||||||||||||||||||||||
| 4872 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4873 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4874 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||
| 4875 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4876 | 490 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||
| 4877 | 490 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||
| 4878 | |||||||||||||||||||||||||||||||||||||||
| 4879 | |||||||||||||||||||||||||||||||||||||||
| 4880 | 490 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [<leftop: expr ',' expr>]<<}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4881 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4882 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4883 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4884 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4885 | |||||||||||||||||||||||||||||||||||||||
| 4886 | |||||||||||||||||||||||||||||||||||||||
| 4887 | |||||||||||||||||||||||||||||||||||||||
| 4888 | 490 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||
| 4889 | 490 | last; | |||||||||||||||||||||||||||||||||||||
| 4890 | } | ||||||||||||||||||||||||||||||||||||||
| 4891 | |||||||||||||||||||||||||||||||||||||||
| 4892 | |||||||||||||||||||||||||||||||||||||||
| 4893 | 490 | ▶ | unless ( $_matched || defined($score) ) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or defined $score
MC/DC0%0/2
$_matched or defined $score
$_matched
defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 4894 | { | ||||||||||||||||||||||||||||||||||||||
| 4895 | |||||||||||||||||||||||||||||||||||||||
| 4896 | |||||||||||||||||||||||||||||||||||||||
| 4897 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||
| 4898 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4899 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||
| 4900 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4901 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4902 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4903 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||
| 4904 | } | ||||||||||||||||||||||||||||||||||||||
| 4905 | 490 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||
| 4906 | { | ||||||||||||||||||||||||||||||||||||||
| 4907 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4908 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4909 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4910 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||
| 4911 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||
| 4912 | } | ||||||||||||||||||||||||||||||||||||||
| 4913 | 490 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||
| 4914 | 490 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4915 | 490 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 4916 | { | ||||||||||||||||||||||||||||||||||||||
| 4917 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||
| 4918 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||
| 4919 | q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4920 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||
| 4921 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||
| 4922 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||
| 4923 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||
| 4924 | , q{expr_list}, | ||||||||||||||||||||||||||||||||||||||
| 4925 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||
| 4926 | } | ||||||||||||||||||||||||||||||||||||||
| 4927 | 490 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||
| 4928 | 490 | return $return; | |||||||||||||||||||||||||||||||||||||
| 4929 | } | ||||||||||||||||||||||||||||||||||||||
| 4930 | } | ||||||||||||||||||||||||||||||||||||||
| 4931 | 24 | ▶ | package Math::Symbolic::Parser::Precompiled; sub new { my $self = bless( { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||
| 4932 | 'localvars' => '', | ||||||||||||||||||||||||||||||||||||||
| 4933 | 'startcode' => '', | ||||||||||||||||||||||||||||||||||||||
| 4934 | 'namespace' => 'Parse::RecDescent::Math::Symbolic::Parser::Precompiled', | ||||||||||||||||||||||||||||||||||||||
| 4935 | 'rules' => { | ||||||||||||||||||||||||||||||||||||||
| 4936 | 'exp' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 4937 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4938 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 4939 | 'factor' | ||||||||||||||||||||||||||||||||||||||
| 4940 | ], | ||||||||||||||||||||||||||||||||||||||
| 4941 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4942 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 4943 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 4944 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4945 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 4946 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 4947 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 4948 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 4949 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4950 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 4951 | 'op' => [], | ||||||||||||||||||||||||||||||||||||||
| 4952 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 4953 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 4954 | 'expected' => '<rightop: factor \'^\' factor>', | ||||||||||||||||||||||||||||||||||||||
| 4955 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||
| 4956 | 'name' => '', | ||||||||||||||||||||||||||||||||||||||
| 4957 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||
| 4958 | 'leftarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 4959 | 'subrule' => 'factor', | ||||||||||||||||||||||||||||||||||||||
| 4960 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4961 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 4962 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 4963 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4964 | 'line' => 58 | ||||||||||||||||||||||||||||||||||||||
| 4965 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 4966 | 'rightarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 4967 | 'subrule' => 'factor', | ||||||||||||||||||||||||||||||||||||||
| 4968 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4969 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 4970 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 4971 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4972 | 'line' => 58 | ||||||||||||||||||||||||||||||||||||||
| 4973 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 4974 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||
| 4975 | 'type' => 'rightop', | ||||||||||||||||||||||||||||||||||||||
| 4976 | 'op' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 4977 | 'pattern' => '^', | ||||||||||||||||||||||||||||||||||||||
| 4978 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 4979 | 'description' => '\'^\'', | ||||||||||||||||||||||||||||||||||||||
| 4980 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4981 | 'line' => 58 | ||||||||||||||||||||||||||||||||||||||
| 4982 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 4983 | }, 'Parse::RecDescent::Operator' ), | ||||||||||||||||||||||||||||||||||||||
| 4984 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 4985 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 4986 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 4987 | 'line' => 59, | ||||||||||||||||||||||||||||||||||||||
| 4988 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 4989 | #warn \'exp \' if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 4990 | if (@{$item[1]} == 1) { | ||||||||||||||||||||||||||||||||||||||
| 4991 | $item[1][0] | ||||||||||||||||||||||||||||||||||||||
| 4992 | } | ||||||||||||||||||||||||||||||||||||||
| 4993 | else { | ||||||||||||||||||||||||||||||||||||||
| 4994 | my @it = reverse @{$item[1]}; | ||||||||||||||||||||||||||||||||||||||
| 4995 | my $tree = shift @it; | ||||||||||||||||||||||||||||||||||||||
| 4996 | while (@it) { | ||||||||||||||||||||||||||||||||||||||
| 4997 | $tree = Math::Symbolic::Operator->new( | ||||||||||||||||||||||||||||||||||||||
| 4998 | \'^\', shift(@it), $tree | ||||||||||||||||||||||||||||||||||||||
| 4999 | ); | ||||||||||||||||||||||||||||||||||||||
| 5000 | } | ||||||||||||||||||||||||||||||||||||||
| 5001 | $tree; | ||||||||||||||||||||||||||||||||||||||
| 5002 | } | ||||||||||||||||||||||||||||||||||||||
| 5003 | }' | ||||||||||||||||||||||||||||||||||||||
| 5004 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5005 | ], | ||||||||||||||||||||||||||||||||||||||
| 5006 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5007 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5008 | ], | ||||||||||||||||||||||||||||||||||||||
| 5009 | 'name' => 'exp', | ||||||||||||||||||||||||||||||||||||||
| 5010 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5011 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5012 | 'line' => 58 | ||||||||||||||||||||||||||||||||||||||
| 5013 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5014 | 'variable' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5015 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5016 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 5017 | 'identifier_list' | ||||||||||||||||||||||||||||||||||||||
| 5018 | ], | ||||||||||||||||||||||||||||||||||||||
| 5019 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5020 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5021 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5022 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5023 | 'strcount' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5024 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5025 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5026 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5027 | 'patcount' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5028 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5029 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5030 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5031 | 'description' => '/[a-zA-Z][a-zA-Z0-9_]*/', | ||||||||||||||||||||||||||||||||||||||
| 5032 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5033 | 'pattern' => '[a-zA-Z][a-zA-Z0-9_]*', | ||||||||||||||||||||||||||||||||||||||
| 5034 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5035 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5036 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5037 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5038 | 'line' => 200 | ||||||||||||||||||||||||||||||||||||||
| 5039 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5040 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5041 | 'description' => '/\\\\\'*/', | ||||||||||||||||||||||||||||||||||||||
| 5042 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5043 | 'pattern' => '\\\'*', | ||||||||||||||||||||||||||||||||||||||
| 5044 | 'hashname' => '__PATTERN2__', | ||||||||||||||||||||||||||||||||||||||
| 5045 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5046 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5047 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5048 | 'line' => 200 | ||||||||||||||||||||||||||||||||||||||
| 5049 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5050 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5051 | 'pattern' => '(', | ||||||||||||||||||||||||||||||||||||||
| 5052 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5053 | 'description' => '\'(\'', | ||||||||||||||||||||||||||||||||||||||
| 5054 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5055 | 'line' => 200 | ||||||||||||||||||||||||||||||||||||||
| 5056 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||
| 5057 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5058 | 'subrule' => 'identifier_list', | ||||||||||||||||||||||||||||||||||||||
| 5059 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5060 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5061 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5062 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5063 | 'line' => 200 | ||||||||||||||||||||||||||||||||||||||
| 5064 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5065 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5066 | 'pattern' => ')', | ||||||||||||||||||||||||||||||||||||||
| 5067 | 'hashname' => '__STRING2__', | ||||||||||||||||||||||||||||||||||||||
| 5068 | 'description' => '\')\'', | ||||||||||||||||||||||||||||||||||||||
| 5069 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5070 | 'line' => 200 | ||||||||||||||||||||||||||||||||||||||
| 5071 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||
| 5072 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5073 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5074 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5075 | 'line' => 201, | ||||||||||||||||||||||||||||||||||||||
| 5076 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5077 | #warn \'variable \' | ||||||||||||||||||||||||||||||||||||||
| 5078 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5079 | my $varname = $item[1]; | ||||||||||||||||||||||||||||||||||||||
| 5080 | my $ticks = $item[2]; | ||||||||||||||||||||||||||||||||||||||
| 5081 | if ($ticks) { | ||||||||||||||||||||||||||||||||||||||
| 5082 | my $n = length($ticks); | ||||||||||||||||||||||||||||||||||||||
| 5083 | my $sig = $item[4] || [\'x\']; | ||||||||||||||||||||||||||||||||||||||
| 5084 | my $dep_var = $sig->[0]; | ||||||||||||||||||||||||||||||||||||||
| 5085 | my $return = Math::Symbolic::Variable->new( | ||||||||||||||||||||||||||||||||||||||
| 5086 | { name => $varname, signature => $sig } | ||||||||||||||||||||||||||||||||||||||
| 5087 | ); | ||||||||||||||||||||||||||||||||||||||
| 5088 | foreach (1..$n) { | ||||||||||||||||||||||||||||||||||||||
| 5089 | $return = Math::Symbolic::Operator->new( | ||||||||||||||||||||||||||||||||||||||
| 5090 | \'partial_derivative\', | ||||||||||||||||||||||||||||||||||||||
| 5091 | $return, $dep_var, | ||||||||||||||||||||||||||||||||||||||
| 5092 | ); | ||||||||||||||||||||||||||||||||||||||
| 5093 | } | ||||||||||||||||||||||||||||||||||||||
| 5094 | $return; | ||||||||||||||||||||||||||||||||||||||
| 5095 | } | ||||||||||||||||||||||||||||||||||||||
| 5096 | else { | ||||||||||||||||||||||||||||||||||||||
| 5097 | Math::Symbolic::Variable->new( | ||||||||||||||||||||||||||||||||||||||
| 5098 | { name => $varname, signature => $item[4] } | ||||||||||||||||||||||||||||||||||||||
| 5099 | ); | ||||||||||||||||||||||||||||||||||||||
| 5100 | } | ||||||||||||||||||||||||||||||||||||||
| 5101 | }' | ||||||||||||||||||||||||||||||||||||||
| 5102 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5103 | ], | ||||||||||||||||||||||||||||||||||||||
| 5104 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5105 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5106 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5107 | 'number' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5108 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5109 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5110 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5111 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5112 | 'patcount' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5113 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5114 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5115 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5116 | 'description' => '/[a-zA-Z][a-zA-Z0-9_]*/', | ||||||||||||||||||||||||||||||||||||||
| 5117 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5118 | 'pattern' => '[a-zA-Z][a-zA-Z0-9_]*', | ||||||||||||||||||||||||||||||||||||||
| 5119 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5120 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5121 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5122 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5123 | 'line' => 228 | ||||||||||||||||||||||||||||||||||||||
| 5124 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5125 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5126 | 'description' => '/\\\\\'*/', | ||||||||||||||||||||||||||||||||||||||
| 5127 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5128 | 'pattern' => '\\\'*', | ||||||||||||||||||||||||||||||||||||||
| 5129 | 'hashname' => '__PATTERN2__', | ||||||||||||||||||||||||||||||||||||||
| 5130 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5131 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5132 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5133 | 'line' => 228 | ||||||||||||||||||||||||||||||||||||||
| 5134 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5135 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5136 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5137 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5138 | 'line' => 229, | ||||||||||||||||||||||||||||||||||||||
| 5139 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5140 | #warn \'variable \' | ||||||||||||||||||||||||||||||||||||||
| 5141 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5142 | my $varname = $item[1]; | ||||||||||||||||||||||||||||||||||||||
| 5143 | my $ticks = $item[2]; | ||||||||||||||||||||||||||||||||||||||
| 5144 | if ($ticks) { | ||||||||||||||||||||||||||||||||||||||
| 5145 | my $n = length($ticks); | ||||||||||||||||||||||||||||||||||||||
| 5146 | my $return = Math::Symbolic::Variable->new( | ||||||||||||||||||||||||||||||||||||||
| 5147 | { name => $varname, signature => [\'x\'] } | ||||||||||||||||||||||||||||||||||||||
| 5148 | ); | ||||||||||||||||||||||||||||||||||||||
| 5149 | foreach (1..$n) { | ||||||||||||||||||||||||||||||||||||||
| 5150 | $return = Math::Symbolic::Operator->new( | ||||||||||||||||||||||||||||||||||||||
| 5151 | \'partial_derivative\', | ||||||||||||||||||||||||||||||||||||||
| 5152 | $return, \'x\', | ||||||||||||||||||||||||||||||||||||||
| 5153 | ); | ||||||||||||||||||||||||||||||||||||||
| 5154 | } | ||||||||||||||||||||||||||||||||||||||
| 5155 | $return; | ||||||||||||||||||||||||||||||||||||||
| 5156 | } | ||||||||||||||||||||||||||||||||||||||
| 5157 | else { | ||||||||||||||||||||||||||||||||||||||
| 5158 | Math::Symbolic::Variable->new( $varname ); | ||||||||||||||||||||||||||||||||||||||
| 5159 | } | ||||||||||||||||||||||||||||||||||||||
| 5160 | }' | ||||||||||||||||||||||||||||||||||||||
| 5161 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5162 | ], | ||||||||||||||||||||||||||||||||||||||
| 5163 | 'line' => 228 | ||||||||||||||||||||||||||||||||||||||
| 5164 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5165 | ], | ||||||||||||||||||||||||||||||||||||||
| 5166 | 'name' => 'variable', | ||||||||||||||||||||||||||||||||||||||
| 5167 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5168 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5169 | 'line' => 200 | ||||||||||||||||||||||||||||||||||||||
| 5170 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5171 | 'function' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5172 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5173 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 5174 | 'function_name', | ||||||||||||||||||||||||||||||||||||||
| 5175 | 'expr_list' | ||||||||||||||||||||||||||||||||||||||
| 5176 | ], | ||||||||||||||||||||||||||||||||||||||
| 5177 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5178 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5179 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5180 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5181 | 'strcount' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5182 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5183 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5184 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5185 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5186 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5187 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5188 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5189 | 'subrule' => 'function_name', | ||||||||||||||||||||||||||||||||||||||
| 5190 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5191 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5192 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5193 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5194 | 'line' => 151 | ||||||||||||||||||||||||||||||||||||||
| 5195 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5196 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5197 | 'pattern' => '(', | ||||||||||||||||||||||||||||||||||||||
| 5198 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5199 | 'description' => '\'(\'', | ||||||||||||||||||||||||||||||||||||||
| 5200 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5201 | 'line' => 151 | ||||||||||||||||||||||||||||||||||||||
| 5202 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||
| 5203 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5204 | 'subrule' => 'expr_list', | ||||||||||||||||||||||||||||||||||||||
| 5205 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5206 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5207 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5208 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5209 | 'line' => 151 | ||||||||||||||||||||||||||||||||||||||
| 5210 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5211 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5212 | 'pattern' => ')', | ||||||||||||||||||||||||||||||||||||||
| 5213 | 'hashname' => '__STRING2__', | ||||||||||||||||||||||||||||||||||||||
| 5214 | 'description' => '\')\'', | ||||||||||||||||||||||||||||||||||||||
| 5215 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5216 | 'line' => 151 | ||||||||||||||||||||||||||||||||||||||
| 5217 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||
| 5218 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5219 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5220 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5221 | 'line' => 152, | ||||||||||||||||||||||||||||||||||||||
| 5222 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5223 | #warn \'function \' | ||||||||||||||||||||||||||||||||||||||
| 5224 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5225 | my $fname = $item[1]; | ||||||||||||||||||||||||||||||||||||||
| 5226 | my $function; | ||||||||||||||||||||||||||||||||||||||
| 5227 | if (exists($Math::Symbolic::Parser::Parser_Functions{$fname})) { | ||||||||||||||||||||||||||||||||||||||
| 5228 | $function = $Math::Symbolic::Parser::Parser_Functions{$fname}->($fname, @{$item[3]}); | ||||||||||||||||||||||||||||||||||||||
| 5229 | die "Invalid function \'$fname\'!" | ||||||||||||||||||||||||||||||||||||||
| 5230 | unless defined $function; | ||||||||||||||||||||||||||||||||||||||
| 5231 | } | ||||||||||||||||||||||||||||||||||||||
| 5232 | else { | ||||||||||||||||||||||||||||||||||||||
| 5233 | $function = $Math::Symbolic::Operator::Op_Symbols{ $fname }; | ||||||||||||||||||||||||||||||||||||||
| 5234 | die "Invalid function \'$fname\'!" | ||||||||||||||||||||||||||||||||||||||
| 5235 | unless defined $function; | ||||||||||||||||||||||||||||||||||||||
| 5236 | $function = Math::Symbolic::Operator->new( | ||||||||||||||||||||||||||||||||||||||
| 5237 | { type => $function, operands => $item[3] } | ||||||||||||||||||||||||||||||||||||||
| 5238 | ); | ||||||||||||||||||||||||||||||||||||||
| 5239 | } | ||||||||||||||||||||||||||||||||||||||
| 5240 | $function | ||||||||||||||||||||||||||||||||||||||
| 5241 | }' | ||||||||||||||||||||||||||||||||||||||
| 5242 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5243 | ], | ||||||||||||||||||||||||||||||||||||||
| 5244 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5245 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5246 | ], | ||||||||||||||||||||||||||||||||||||||
| 5247 | 'name' => 'function', | ||||||||||||||||||||||||||||||||||||||
| 5248 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5249 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5250 | 'line' => 151 | ||||||||||||||||||||||||||||||||||||||
| 5251 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5252 | 'number' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5253 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5254 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||
| 5255 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5256 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5257 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5258 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5259 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5260 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5261 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5262 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5263 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5264 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5265 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5266 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5267 | 'description' => '/([+-]?)(?=\\\\d|\\\\.\\\\d)\\\\d*(\\\\.\\\\d*)?([Ee]([+-]?\\\\d+))?/', | ||||||||||||||||||||||||||||||||||||||
| 5268 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5269 | 'pattern' => '([+-]?)(?=\\d|\\.\\d)\\d*(\\.\\d*)?([Ee]([+-]?\\d+))?', | ||||||||||||||||||||||||||||||||||||||
| 5270 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5271 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5272 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5273 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5274 | 'line' => 144 | ||||||||||||||||||||||||||||||||||||||
| 5275 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5276 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5277 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5278 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5279 | 'line' => 145, | ||||||||||||||||||||||||||||||||||||||
| 5280 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5281 | #warn \'number \' | ||||||||||||||||||||||||||||||||||||||
| 5282 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5283 | Math::Symbolic::Constant->new($item[1]) | ||||||||||||||||||||||||||||||||||||||
| 5284 | }' | ||||||||||||||||||||||||||||||||||||||
| 5285 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5286 | ], | ||||||||||||||||||||||||||||||||||||||
| 5287 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5288 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5289 | ], | ||||||||||||||||||||||||||||||||||||||
| 5290 | 'name' => 'number', | ||||||||||||||||||||||||||||||||||||||
| 5291 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5292 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5293 | 'line' => 144 | ||||||||||||||||||||||||||||||||||||||
| 5294 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5295 | 'multiplication' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5296 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5297 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 5298 | 'exp', | ||||||||||||||||||||||||||||||||||||||
| 5299 | 'mult_op' | ||||||||||||||||||||||||||||||||||||||
| 5300 | ], | ||||||||||||||||||||||||||||||||||||||
| 5301 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5302 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5303 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5304 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5305 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5306 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5307 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5308 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5309 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5310 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5311 | 'op' => [], | ||||||||||||||||||||||||||||||||||||||
| 5312 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5313 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5314 | 'expected' => '<leftop: exp mult_op exp>', | ||||||||||||||||||||||||||||||||||||||
| 5315 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5316 | 'name' => '', | ||||||||||||||||||||||||||||||||||||||
| 5317 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||
| 5318 | 'leftarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5319 | 'subrule' => 'exp', | ||||||||||||||||||||||||||||||||||||||
| 5320 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5321 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5322 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5323 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5324 | 'line' => 35 | ||||||||||||||||||||||||||||||||||||||
| 5325 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5326 | 'rightarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5327 | 'subrule' => 'exp', | ||||||||||||||||||||||||||||||||||||||
| 5328 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5329 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5330 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5331 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5332 | 'line' => 35 | ||||||||||||||||||||||||||||||||||||||
| 5333 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5334 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||
| 5335 | 'type' => 'leftop', | ||||||||||||||||||||||||||||||||||||||
| 5336 | 'op' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5337 | 'subrule' => 'mult_op', | ||||||||||||||||||||||||||||||||||||||
| 5338 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5339 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5340 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5341 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5342 | 'line' => 35 | ||||||||||||||||||||||||||||||||||||||
| 5343 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||
| 5344 | }, 'Parse::RecDescent::Operator' ), | ||||||||||||||||||||||||||||||||||||||
| 5345 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5346 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5347 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5348 | 'line' => 36, | ||||||||||||||||||||||||||||||||||||||
| 5349 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5350 | #warn \'multiplication \' | ||||||||||||||||||||||||||||||||||||||
| 5351 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5352 | if (@{$item[1]} == 1) { | ||||||||||||||||||||||||||||||||||||||
| 5353 | $item[1][0] | ||||||||||||||||||||||||||||||||||||||
| 5354 | } | ||||||||||||||||||||||||||||||||||||||
| 5355 | else { | ||||||||||||||||||||||||||||||||||||||
| 5356 | my @it = @{$item[1]}; | ||||||||||||||||||||||||||||||||||||||
| 5357 | my $tree = shift @it; | ||||||||||||||||||||||||||||||||||||||
| 5358 | while (@it) { | ||||||||||||||||||||||||||||||||||||||
| 5359 | $tree = Math::Symbolic::Operator->new( | ||||||||||||||||||||||||||||||||||||||
| 5360 | shift(@it), $tree, shift(@it) | ||||||||||||||||||||||||||||||||||||||
| 5361 | ); | ||||||||||||||||||||||||||||||||||||||
| 5362 | } | ||||||||||||||||||||||||||||||||||||||
| 5363 | $tree; | ||||||||||||||||||||||||||||||||||||||
| 5364 | } | ||||||||||||||||||||||||||||||||||||||
| 5365 | }' | ||||||||||||||||||||||||||||||||||||||
| 5366 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5367 | ], | ||||||||||||||||||||||||||||||||||||||
| 5368 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5369 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5370 | ], | ||||||||||||||||||||||||||||||||||||||
| 5371 | 'name' => 'multiplication', | ||||||||||||||||||||||||||||||||||||||
| 5372 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5373 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5374 | 'line' => 35 | ||||||||||||||||||||||||||||||||||||||
| 5375 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5376 | 'parse' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5377 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5378 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 5379 | 'expr' | ||||||||||||||||||||||||||||||||||||||
| 5380 | ], | ||||||||||||||||||||||||||||||||||||||
| 5381 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5382 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5383 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5384 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5385 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5386 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5387 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5388 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5389 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5390 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5391 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5392 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5393 | 'subrule' => 'expr', | ||||||||||||||||||||||||||||||||||||||
| 5394 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5395 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5396 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5397 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5398 | 'line' => 1 | ||||||||||||||||||||||||||||||||||||||
| 5399 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5400 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5401 | 'description' => '/^\\\\Z/', | ||||||||||||||||||||||||||||||||||||||
| 5402 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5403 | 'pattern' => '^\\Z', | ||||||||||||||||||||||||||||||||||||||
| 5404 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5405 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5406 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5407 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5408 | 'line' => 1 | ||||||||||||||||||||||||||||||||||||||
| 5409 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5410 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5411 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5412 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5413 | 'line' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5414 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5415 | $return = $item[1] | ||||||||||||||||||||||||||||||||||||||
| 5416 | }' | ||||||||||||||||||||||||||||||||||||||
| 5417 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5418 | ], | ||||||||||||||||||||||||||||||||||||||
| 5419 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5420 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5421 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5422 | 'number' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5423 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5424 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5425 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5426 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5427 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5428 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5429 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5430 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5431 | 'description' => '//', | ||||||||||||||||||||||||||||||||||||||
| 5432 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5433 | 'pattern' => '', | ||||||||||||||||||||||||||||||||||||||
| 5434 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5435 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5436 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5437 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5438 | 'line' => 5 | ||||||||||||||||||||||||||||||||||||||
| 5439 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5440 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5441 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5442 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5443 | 'line' => 5, | ||||||||||||||||||||||||||||||||||||||
| 5444 | 'code' => '{undef}' | ||||||||||||||||||||||||||||||||||||||
| 5445 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5446 | ], | ||||||||||||||||||||||||||||||||||||||
| 5447 | 'line' => 5 | ||||||||||||||||||||||||||||||||||||||
| 5448 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5449 | ], | ||||||||||||||||||||||||||||||||||||||
| 5450 | 'name' => 'parse', | ||||||||||||||||||||||||||||||||||||||
| 5451 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5452 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5453 | 'line' => 1 | ||||||||||||||||||||||||||||||||||||||
| 5454 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5455 | 'addition' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5456 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5457 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 5458 | 'multiplication', | ||||||||||||||||||||||||||||||||||||||
| 5459 | 'add_op' | ||||||||||||||||||||||||||||||||||||||
| 5460 | ], | ||||||||||||||||||||||||||||||||||||||
| 5461 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5462 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5463 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5464 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5465 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5466 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5467 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5468 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5469 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5470 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5471 | 'op' => [], | ||||||||||||||||||||||||||||||||||||||
| 5472 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5473 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5474 | 'expected' => '<leftop: multiplication add_op multiplication>', | ||||||||||||||||||||||||||||||||||||||
| 5475 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5476 | 'name' => '', | ||||||||||||||||||||||||||||||||||||||
| 5477 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||
| 5478 | 'leftarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5479 | 'subrule' => 'multiplication', | ||||||||||||||||||||||||||||||||||||||
| 5480 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5481 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5482 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5483 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5484 | 'line' => 13 | ||||||||||||||||||||||||||||||||||||||
| 5485 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5486 | 'rightarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5487 | 'subrule' => 'multiplication', | ||||||||||||||||||||||||||||||||||||||
| 5488 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5489 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5490 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5491 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5492 | 'line' => 13 | ||||||||||||||||||||||||||||||||||||||
| 5493 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5494 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||
| 5495 | 'type' => 'leftop', | ||||||||||||||||||||||||||||||||||||||
| 5496 | 'op' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5497 | 'subrule' => 'add_op', | ||||||||||||||||||||||||||||||||||||||
| 5498 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5499 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5500 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5501 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5502 | 'line' => 13 | ||||||||||||||||||||||||||||||||||||||
| 5503 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||
| 5504 | }, 'Parse::RecDescent::Operator' ), | ||||||||||||||||||||||||||||||||||||||
| 5505 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5506 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5507 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5508 | 'line' => 14, | ||||||||||||||||||||||||||||||||||||||
| 5509 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5510 | #warn \'addition \' | ||||||||||||||||||||||||||||||||||||||
| 5511 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5512 | if (@{$item[1]} == 1) { | ||||||||||||||||||||||||||||||||||||||
| 5513 | $item[1][0] | ||||||||||||||||||||||||||||||||||||||
| 5514 | } | ||||||||||||||||||||||||||||||||||||||
| 5515 | else { | ||||||||||||||||||||||||||||||||||||||
| 5516 | my @it = @{$item[1]}; | ||||||||||||||||||||||||||||||||||||||
| 5517 | my $tree = shift @it; | ||||||||||||||||||||||||||||||||||||||
| 5518 | while (@it) { | ||||||||||||||||||||||||||||||||||||||
| 5519 | $tree = Math::Symbolic::Operator->new( | ||||||||||||||||||||||||||||||||||||||
| 5520 | shift(@it), $tree, shift(@it) | ||||||||||||||||||||||||||||||||||||||
| 5521 | ); | ||||||||||||||||||||||||||||||||||||||
| 5522 | } | ||||||||||||||||||||||||||||||||||||||
| 5523 | $tree; | ||||||||||||||||||||||||||||||||||||||
| 5524 | } | ||||||||||||||||||||||||||||||||||||||
| 5525 | }' | ||||||||||||||||||||||||||||||||||||||
| 5526 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5527 | ], | ||||||||||||||||||||||||||||||||||||||
| 5528 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5529 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5530 | ], | ||||||||||||||||||||||||||||||||||||||
| 5531 | 'name' => 'addition', | ||||||||||||||||||||||||||||||||||||||
| 5532 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5533 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5534 | 'line' => 13 | ||||||||||||||||||||||||||||||||||||||
| 5535 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5536 | 'factor' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5537 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5538 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 5539 | 'number', | ||||||||||||||||||||||||||||||||||||||
| 5540 | 'function', | ||||||||||||||||||||||||||||||||||||||
| 5541 | 'variable', | ||||||||||||||||||||||||||||||||||||||
| 5542 | 'expr' | ||||||||||||||||||||||||||||||||||||||
| 5543 | ], | ||||||||||||||||||||||||||||||||||||||
| 5544 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5545 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5546 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5547 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5548 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5549 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5550 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5551 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5552 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5553 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5554 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5555 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5556 | 'description' => '/(?:\\\\+|-)*/', | ||||||||||||||||||||||||||||||||||||||
| 5557 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5558 | 'pattern' => '(?:\\+|-)*', | ||||||||||||||||||||||||||||||||||||||
| 5559 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5560 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5561 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5562 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5563 | 'line' => 76 | ||||||||||||||||||||||||||||||||||||||
| 5564 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5565 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5566 | 'subrule' => 'number', | ||||||||||||||||||||||||||||||||||||||
| 5567 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5568 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5569 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5570 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5571 | 'line' => 76 | ||||||||||||||||||||||||||||||||||||||
| 5572 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5573 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5574 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5575 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5576 | 'line' => 77, | ||||||||||||||||||||||||||||||||||||||
| 5577 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5578 | #warn \'unary_n \' | ||||||||||||||||||||||||||||||||||||||
| 5579 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5580 | if ($item[1]) { | ||||||||||||||||||||||||||||||||||||||
| 5581 | my @it = split //, $item[1]; | ||||||||||||||||||||||||||||||||||||||
| 5582 | my $ret = $item[2]; | ||||||||||||||||||||||||||||||||||||||
| 5583 | foreach (grep {$_ eq \'-\'} @it) { | ||||||||||||||||||||||||||||||||||||||
| 5584 | $ret = Math::Symbolic::Operator->new(\'neg\',$ret); | ||||||||||||||||||||||||||||||||||||||
| 5585 | } | ||||||||||||||||||||||||||||||||||||||
| 5586 | $ret | ||||||||||||||||||||||||||||||||||||||
| 5587 | } | ||||||||||||||||||||||||||||||||||||||
| 5588 | else { | ||||||||||||||||||||||||||||||||||||||
| 5589 | $item[2] | ||||||||||||||||||||||||||||||||||||||
| 5590 | } | ||||||||||||||||||||||||||||||||||||||
| 5591 | }' | ||||||||||||||||||||||||||||||||||||||
| 5592 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5593 | ], | ||||||||||||||||||||||||||||||||||||||
| 5594 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5595 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5596 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5597 | 'number' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5598 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5599 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5600 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5601 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5602 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5603 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5604 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5605 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5606 | 'description' => '/(?:\\\\+|-)*/', | ||||||||||||||||||||||||||||||||||||||
| 5607 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5608 | 'pattern' => '(?:\\+|-)*', | ||||||||||||||||||||||||||||||||||||||
| 5609 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5610 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5611 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5612 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5613 | 'line' => 93 | ||||||||||||||||||||||||||||||||||||||
| 5614 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5615 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5616 | 'subrule' => 'function', | ||||||||||||||||||||||||||||||||||||||
| 5617 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5618 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5619 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5620 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5621 | 'line' => 93 | ||||||||||||||||||||||||||||||||||||||
| 5622 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5623 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5624 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5625 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5626 | 'line' => 94, | ||||||||||||||||||||||||||||||||||||||
| 5627 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5628 | #warn \'unary_f \' | ||||||||||||||||||||||||||||||||||||||
| 5629 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5630 | if ($item[1]) { | ||||||||||||||||||||||||||||||||||||||
| 5631 | my @it = split //, $item[1]; | ||||||||||||||||||||||||||||||||||||||
| 5632 | my $ret = $item[2]; | ||||||||||||||||||||||||||||||||||||||
| 5633 | foreach (grep {$_ eq \'-\'} @it) { | ||||||||||||||||||||||||||||||||||||||
| 5634 | $ret = Math::Symbolic::Operator->new(\'neg\',$ret); | ||||||||||||||||||||||||||||||||||||||
| 5635 | } | ||||||||||||||||||||||||||||||||||||||
| 5636 | $ret | ||||||||||||||||||||||||||||||||||||||
| 5637 | } | ||||||||||||||||||||||||||||||||||||||
| 5638 | else { | ||||||||||||||||||||||||||||||||||||||
| 5639 | $item[2] | ||||||||||||||||||||||||||||||||||||||
| 5640 | } | ||||||||||||||||||||||||||||||||||||||
| 5641 | }' | ||||||||||||||||||||||||||||||||||||||
| 5642 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5643 | ], | ||||||||||||||||||||||||||||||||||||||
| 5644 | 'line' => 93 | ||||||||||||||||||||||||||||||||||||||
| 5645 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5646 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5647 | 'number' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5648 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5649 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5650 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5651 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5652 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5653 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5654 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5655 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5656 | 'description' => '/(?:\\\\+|-)*/', | ||||||||||||||||||||||||||||||||||||||
| 5657 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5658 | 'pattern' => '(?:\\+|-)*', | ||||||||||||||||||||||||||||||||||||||
| 5659 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5660 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5661 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5662 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5663 | 'line' => 110 | ||||||||||||||||||||||||||||||||||||||
| 5664 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5665 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5666 | 'subrule' => 'variable', | ||||||||||||||||||||||||||||||||||||||
| 5667 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5668 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5669 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5670 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5671 | 'line' => 110 | ||||||||||||||||||||||||||||||||||||||
| 5672 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5673 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5674 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5675 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5676 | 'line' => 111, | ||||||||||||||||||||||||||||||||||||||
| 5677 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5678 | #warn \'unary_v \' | ||||||||||||||||||||||||||||||||||||||
| 5679 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5680 | if ($item[1]) { | ||||||||||||||||||||||||||||||||||||||
| 5681 | my @it = split //, $item[1]; | ||||||||||||||||||||||||||||||||||||||
| 5682 | my $ret = $item[2]; | ||||||||||||||||||||||||||||||||||||||
| 5683 | foreach (grep {$_ eq \'-\'} @it) { | ||||||||||||||||||||||||||||||||||||||
| 5684 | $ret = Math::Symbolic::Operator->new(\'neg\',$ret); | ||||||||||||||||||||||||||||||||||||||
| 5685 | } | ||||||||||||||||||||||||||||||||||||||
| 5686 | $ret | ||||||||||||||||||||||||||||||||||||||
| 5687 | } | ||||||||||||||||||||||||||||||||||||||
| 5688 | else { | ||||||||||||||||||||||||||||||||||||||
| 5689 | $item[2] | ||||||||||||||||||||||||||||||||||||||
| 5690 | } | ||||||||||||||||||||||||||||||||||||||
| 5691 | }' | ||||||||||||||||||||||||||||||||||||||
| 5692 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5693 | ], | ||||||||||||||||||||||||||||||||||||||
| 5694 | 'line' => 110 | ||||||||||||||||||||||||||||||||||||||
| 5695 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5696 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5697 | 'number' => 3, | ||||||||||||||||||||||||||||||||||||||
| 5698 | 'strcount' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5699 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5700 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5701 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5702 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5703 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5704 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5705 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5706 | 'description' => '/(?:\\\\+|-)*/', | ||||||||||||||||||||||||||||||||||||||
| 5707 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5708 | 'pattern' => '(?:\\+|-)*', | ||||||||||||||||||||||||||||||||||||||
| 5709 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5710 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5711 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5712 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5713 | 'line' => 127 | ||||||||||||||||||||||||||||||||||||||
| 5714 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5715 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5716 | 'pattern' => '(', | ||||||||||||||||||||||||||||||||||||||
| 5717 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5718 | 'description' => '\'(\'', | ||||||||||||||||||||||||||||||||||||||
| 5719 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5720 | 'line' => 127 | ||||||||||||||||||||||||||||||||||||||
| 5721 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||
| 5722 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5723 | 'subrule' => 'expr', | ||||||||||||||||||||||||||||||||||||||
| 5724 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5725 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5726 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5727 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5728 | 'line' => 127 | ||||||||||||||||||||||||||||||||||||||
| 5729 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5730 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5731 | 'pattern' => ')', | ||||||||||||||||||||||||||||||||||||||
| 5732 | 'hashname' => '__STRING2__', | ||||||||||||||||||||||||||||||||||||||
| 5733 | 'description' => '\')\'', | ||||||||||||||||||||||||||||||||||||||
| 5734 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5735 | 'line' => 127 | ||||||||||||||||||||||||||||||||||||||
| 5736 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||
| 5737 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5738 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5739 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5740 | 'line' => 128, | ||||||||||||||||||||||||||||||||||||||
| 5741 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5742 | #warn \'unary_expr \' | ||||||||||||||||||||||||||||||||||||||
| 5743 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5744 | if ($item[1]) { | ||||||||||||||||||||||||||||||||||||||
| 5745 | my @it = split //, $item[1]; | ||||||||||||||||||||||||||||||||||||||
| 5746 | my $ret = $item[3]; | ||||||||||||||||||||||||||||||||||||||
| 5747 | foreach (grep {$_ eq \'-\'} @it) { | ||||||||||||||||||||||||||||||||||||||
| 5748 | $ret = Math::Symbolic::Operator->new(\'neg\',$ret); | ||||||||||||||||||||||||||||||||||||||
| 5749 | } | ||||||||||||||||||||||||||||||||||||||
| 5750 | $ret | ||||||||||||||||||||||||||||||||||||||
| 5751 | } | ||||||||||||||||||||||||||||||||||||||
| 5752 | else { | ||||||||||||||||||||||||||||||||||||||
| 5753 | $item[3] | ||||||||||||||||||||||||||||||||||||||
| 5754 | } | ||||||||||||||||||||||||||||||||||||||
| 5755 | }' | ||||||||||||||||||||||||||||||||||||||
| 5756 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5757 | ], | ||||||||||||||||||||||||||||||||||||||
| 5758 | 'line' => 127 | ||||||||||||||||||||||||||||||||||||||
| 5759 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5760 | ], | ||||||||||||||||||||||||||||||||||||||
| 5761 | 'name' => 'factor', | ||||||||||||||||||||||||||||||||||||||
| 5762 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5763 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5764 | 'line' => 76 | ||||||||||||||||||||||||||||||||||||||
| 5765 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5766 | 'identifier_list' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5767 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5768 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||
| 5769 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5770 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5771 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5772 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5773 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5774 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5775 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5776 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5777 | 'patcount' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5778 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5779 | 'op' => [], | ||||||||||||||||||||||||||||||||||||||
| 5780 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5781 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5782 | 'expected' => '<leftop: /[a-zA-Z][a-zA-Z0-9_]*/ \',\' /[a-zA-Z][a-zA-Z0-9_]*/>', | ||||||||||||||||||||||||||||||||||||||
| 5783 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5784 | 'name' => '', | ||||||||||||||||||||||||||||||||||||||
| 5785 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||
| 5786 | 'leftarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5787 | 'description' => '/[a-zA-Z][a-zA-Z0-9_]*/', | ||||||||||||||||||||||||||||||||||||||
| 5788 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5789 | 'pattern' => '[a-zA-Z][a-zA-Z0-9_]*', | ||||||||||||||||||||||||||||||||||||||
| 5790 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||
| 5791 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5792 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5793 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5794 | 'line' => 252 | ||||||||||||||||||||||||||||||||||||||
| 5795 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5796 | 'rightarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5797 | 'description' => '/[a-zA-Z][a-zA-Z0-9_]*/', | ||||||||||||||||||||||||||||||||||||||
| 5798 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5799 | 'pattern' => '[a-zA-Z][a-zA-Z0-9_]*', | ||||||||||||||||||||||||||||||||||||||
| 5800 | 'hashname' => '__PATTERN2__', | ||||||||||||||||||||||||||||||||||||||
| 5801 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5802 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5803 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||
| 5804 | 'line' => 252 | ||||||||||||||||||||||||||||||||||||||
| 5805 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||
| 5806 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||
| 5807 | 'type' => 'leftop', | ||||||||||||||||||||||||||||||||||||||
| 5808 | 'op' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5809 | 'pattern' => ',', | ||||||||||||||||||||||||||||||||||||||
| 5810 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5811 | 'description' => '\',\'', | ||||||||||||||||||||||||||||||||||||||
| 5812 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5813 | 'line' => 252 | ||||||||||||||||||||||||||||||||||||||
| 5814 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 5815 | }, 'Parse::RecDescent::Operator' ), | ||||||||||||||||||||||||||||||||||||||
| 5816 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5817 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5818 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5819 | 'line' => 253, | ||||||||||||||||||||||||||||||||||||||
| 5820 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5821 | #warn \'identifier_list \' | ||||||||||||||||||||||||||||||||||||||
| 5822 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5823 | $item[1] | ||||||||||||||||||||||||||||||||||||||
| 5824 | }' | ||||||||||||||||||||||||||||||||||||||
| 5825 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5826 | ], | ||||||||||||||||||||||||||||||||||||||
| 5827 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5828 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5829 | ], | ||||||||||||||||||||||||||||||||||||||
| 5830 | 'name' => 'identifier_list', | ||||||||||||||||||||||||||||||||||||||
| 5831 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5832 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5833 | 'line' => 252 | ||||||||||||||||||||||||||||||||||||||
| 5834 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5835 | 'expr' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5836 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5837 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 5838 | 'addition' | ||||||||||||||||||||||||||||||||||||||
| 5839 | ], | ||||||||||||||||||||||||||||||||||||||
| 5840 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5841 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5842 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5843 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5844 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5845 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5846 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5847 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5848 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5849 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5850 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5851 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5852 | 'subrule' => 'addition', | ||||||||||||||||||||||||||||||||||||||
| 5853 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5854 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5855 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5856 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5857 | 'line' => 7 | ||||||||||||||||||||||||||||||||||||||
| 5858 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 5859 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5860 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 5861 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5862 | 'line' => 8, | ||||||||||||||||||||||||||||||||||||||
| 5863 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 5864 | #warn \'expr \' if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 5865 | $item[1] | ||||||||||||||||||||||||||||||||||||||
| 5866 | }' | ||||||||||||||||||||||||||||||||||||||
| 5867 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 5868 | ], | ||||||||||||||||||||||||||||||||||||||
| 5869 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5870 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5871 | ], | ||||||||||||||||||||||||||||||||||||||
| 5872 | 'name' => 'expr', | ||||||||||||||||||||||||||||||||||||||
| 5873 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5874 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5875 | 'line' => 7 | ||||||||||||||||||||||||||||||||||||||
| 5876 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5877 | 'mult_op' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5878 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5879 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||
| 5880 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5881 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5882 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5883 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5884 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5885 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5886 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5887 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5888 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5889 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5890 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5891 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5892 | 'pattern' => '*', | ||||||||||||||||||||||||||||||||||||||
| 5893 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5894 | 'description' => '\'*\'', | ||||||||||||||||||||||||||||||||||||||
| 5895 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5896 | 'line' => 54 | ||||||||||||||||||||||||||||||||||||||
| 5897 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 5898 | ], | ||||||||||||||||||||||||||||||||||||||
| 5899 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5900 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5901 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5902 | 'number' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5903 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5904 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5905 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5906 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5907 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5908 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5909 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5910 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5911 | 'pattern' => '/', | ||||||||||||||||||||||||||||||||||||||
| 5912 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5913 | 'description' => '\'/\'', | ||||||||||||||||||||||||||||||||||||||
| 5914 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5915 | 'line' => 55 | ||||||||||||||||||||||||||||||||||||||
| 5916 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 5917 | ], | ||||||||||||||||||||||||||||||||||||||
| 5918 | 'line' => 55 | ||||||||||||||||||||||||||||||||||||||
| 5919 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 5920 | ], | ||||||||||||||||||||||||||||||||||||||
| 5921 | 'name' => 'mult_op', | ||||||||||||||||||||||||||||||||||||||
| 5922 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 5923 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5924 | 'line' => 54 | ||||||||||||||||||||||||||||||||||||||
| 5925 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 5926 | 'function_name' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 5927 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5928 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||
| 5929 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5930 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 5931 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5932 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5933 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5934 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5935 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5936 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5937 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5938 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5939 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5940 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5941 | 'pattern' => 'log', | ||||||||||||||||||||||||||||||||||||||
| 5942 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5943 | 'description' => '\'log\'', | ||||||||||||||||||||||||||||||||||||||
| 5944 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5945 | 'line' => 173 | ||||||||||||||||||||||||||||||||||||||
| 5946 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 5947 | ], | ||||||||||||||||||||||||||||||||||||||
| 5948 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 5949 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5950 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5951 | 'number' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5952 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5953 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5954 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5955 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5956 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5957 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5958 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5959 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5960 | 'pattern' => 'partial_derivative', | ||||||||||||||||||||||||||||||||||||||
| 5961 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5962 | 'description' => '\'partial_derivative\'', | ||||||||||||||||||||||||||||||||||||||
| 5963 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5964 | 'line' => 174 | ||||||||||||||||||||||||||||||||||||||
| 5965 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 5966 | ], | ||||||||||||||||||||||||||||||||||||||
| 5967 | 'line' => 174 | ||||||||||||||||||||||||||||||||||||||
| 5968 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5969 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5970 | 'number' => 2, | ||||||||||||||||||||||||||||||||||||||
| 5971 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5972 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5973 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5974 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5975 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5976 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5977 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5978 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5979 | 'pattern' => 'total_derivative', | ||||||||||||||||||||||||||||||||||||||
| 5980 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 5981 | 'description' => '\'total_derivative\'', | ||||||||||||||||||||||||||||||||||||||
| 5982 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5983 | 'line' => 175 | ||||||||||||||||||||||||||||||||||||||
| 5984 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 5985 | ], | ||||||||||||||||||||||||||||||||||||||
| 5986 | 'line' => 175 | ||||||||||||||||||||||||||||||||||||||
| 5987 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 5988 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5989 | 'number' => 3, | ||||||||||||||||||||||||||||||||||||||
| 5990 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 5991 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5992 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5993 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 5994 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5995 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 5996 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 5997 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 5998 | 'pattern' => 'sinh', | ||||||||||||||||||||||||||||||||||||||
| 5999 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6000 | 'description' => '\'sinh\'', | ||||||||||||||||||||||||||||||||||||||
| 6001 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6002 | 'line' => 176 | ||||||||||||||||||||||||||||||||||||||
| 6003 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6004 | ], | ||||||||||||||||||||||||||||||||||||||
| 6005 | 'line' => 176 | ||||||||||||||||||||||||||||||||||||||
| 6006 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6007 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6008 | 'number' => 4, | ||||||||||||||||||||||||||||||||||||||
| 6009 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6010 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6011 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6012 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6013 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6014 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6015 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6016 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6017 | 'pattern' => 'cosh', | ||||||||||||||||||||||||||||||||||||||
| 6018 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6019 | 'description' => '\'cosh\'', | ||||||||||||||||||||||||||||||||||||||
| 6020 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6021 | 'line' => 177 | ||||||||||||||||||||||||||||||||||||||
| 6022 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6023 | ], | ||||||||||||||||||||||||||||||||||||||
| 6024 | 'line' => 177 | ||||||||||||||||||||||||||||||||||||||
| 6025 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6026 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6027 | 'number' => 5, | ||||||||||||||||||||||||||||||||||||||
| 6028 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6029 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6030 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6031 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6032 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6033 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6034 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6035 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6036 | 'pattern' => 'asinh', | ||||||||||||||||||||||||||||||||||||||
| 6037 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6038 | 'description' => '\'asinh\'', | ||||||||||||||||||||||||||||||||||||||
| 6039 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6040 | 'line' => 178 | ||||||||||||||||||||||||||||||||||||||
| 6041 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6042 | ], | ||||||||||||||||||||||||||||||||||||||
| 6043 | 'line' => 178 | ||||||||||||||||||||||||||||||||||||||
| 6044 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6045 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6046 | 'number' => 6, | ||||||||||||||||||||||||||||||||||||||
| 6047 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6048 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6049 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6050 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6051 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6052 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6053 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6054 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6055 | 'pattern' => 'acosh', | ||||||||||||||||||||||||||||||||||||||
| 6056 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6057 | 'description' => '\'acosh\'', | ||||||||||||||||||||||||||||||||||||||
| 6058 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6059 | 'line' => 179 | ||||||||||||||||||||||||||||||||||||||
| 6060 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6061 | ], | ||||||||||||||||||||||||||||||||||||||
| 6062 | 'line' => 179 | ||||||||||||||||||||||||||||||||||||||
| 6063 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6064 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6065 | 'number' => 7, | ||||||||||||||||||||||||||||||||||||||
| 6066 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6067 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6068 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6069 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6070 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6071 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6072 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6073 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6074 | 'pattern' => 'asin', | ||||||||||||||||||||||||||||||||||||||
| 6075 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6076 | 'description' => '\'asin\'', | ||||||||||||||||||||||||||||||||||||||
| 6077 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6078 | 'line' => 180 | ||||||||||||||||||||||||||||||||||||||
| 6079 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6080 | ], | ||||||||||||||||||||||||||||||||||||||
| 6081 | 'line' => 180 | ||||||||||||||||||||||||||||||||||||||
| 6082 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6083 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6084 | 'number' => 8, | ||||||||||||||||||||||||||||||||||||||
| 6085 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6086 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6087 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6088 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6089 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6090 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6091 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6092 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6093 | 'pattern' => 'acos', | ||||||||||||||||||||||||||||||||||||||
| 6094 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6095 | 'description' => '\'acos\'', | ||||||||||||||||||||||||||||||||||||||
| 6096 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6097 | 'line' => 181 | ||||||||||||||||||||||||||||||||||||||
| 6098 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6099 | ], | ||||||||||||||||||||||||||||||||||||||
| 6100 | 'line' => 181 | ||||||||||||||||||||||||||||||||||||||
| 6101 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6102 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6103 | 'number' => 9, | ||||||||||||||||||||||||||||||||||||||
| 6104 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6105 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6106 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6107 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6108 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6109 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6110 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6111 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6112 | 'pattern' => 'atan2', | ||||||||||||||||||||||||||||||||||||||
| 6113 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6114 | 'description' => '\'atan2\'', | ||||||||||||||||||||||||||||||||||||||
| 6115 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6116 | 'line' => 182 | ||||||||||||||||||||||||||||||||||||||
| 6117 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6118 | ], | ||||||||||||||||||||||||||||||||||||||
| 6119 | 'line' => 182 | ||||||||||||||||||||||||||||||||||||||
| 6120 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6121 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6122 | 'number' => 10, | ||||||||||||||||||||||||||||||||||||||
| 6123 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6124 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6125 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6126 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6127 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6128 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6129 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6130 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6131 | 'pattern' => 'atan', | ||||||||||||||||||||||||||||||||||||||
| 6132 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6133 | 'description' => '\'atan\'', | ||||||||||||||||||||||||||||||||||||||
| 6134 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6135 | 'line' => 183 | ||||||||||||||||||||||||||||||||||||||
| 6136 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6137 | ], | ||||||||||||||||||||||||||||||||||||||
| 6138 | 'line' => 183 | ||||||||||||||||||||||||||||||||||||||
| 6139 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6140 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6141 | 'number' => 11, | ||||||||||||||||||||||||||||||||||||||
| 6142 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6143 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6144 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6145 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6146 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6147 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6148 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6149 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6150 | 'pattern' => 'acot', | ||||||||||||||||||||||||||||||||||||||
| 6151 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6152 | 'description' => '\'acot\'', | ||||||||||||||||||||||||||||||||||||||
| 6153 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6154 | 'line' => 184 | ||||||||||||||||||||||||||||||||||||||
| 6155 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6156 | ], | ||||||||||||||||||||||||||||||||||||||
| 6157 | 'line' => 184 | ||||||||||||||||||||||||||||||||||||||
| 6158 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6159 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6160 | 'number' => 12, | ||||||||||||||||||||||||||||||||||||||
| 6161 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6162 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6163 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6164 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6165 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6166 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6167 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6168 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6169 | 'pattern' => 'sin', | ||||||||||||||||||||||||||||||||||||||
| 6170 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6171 | 'description' => '\'sin\'', | ||||||||||||||||||||||||||||||||||||||
| 6172 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6173 | 'line' => 185 | ||||||||||||||||||||||||||||||||||||||
| 6174 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6175 | ], | ||||||||||||||||||||||||||||||||||||||
| 6176 | 'line' => 185 | ||||||||||||||||||||||||||||||||||||||
| 6177 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6178 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6179 | 'number' => 13, | ||||||||||||||||||||||||||||||||||||||
| 6180 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6181 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6182 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6183 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6184 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6185 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6186 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6187 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6188 | 'pattern' => 'cos', | ||||||||||||||||||||||||||||||||||||||
| 6189 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6190 | 'description' => '\'cos\'', | ||||||||||||||||||||||||||||||||||||||
| 6191 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6192 | 'line' => 186 | ||||||||||||||||||||||||||||||||||||||
| 6193 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6194 | ], | ||||||||||||||||||||||||||||||||||||||
| 6195 | 'line' => 186 | ||||||||||||||||||||||||||||||||||||||
| 6196 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6197 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6198 | 'number' => 14, | ||||||||||||||||||||||||||||||||||||||
| 6199 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6200 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6201 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6202 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6203 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6204 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6205 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6206 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6207 | 'pattern' => 'tan', | ||||||||||||||||||||||||||||||||||||||
| 6208 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6209 | 'description' => '\'tan\'', | ||||||||||||||||||||||||||||||||||||||
| 6210 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6211 | 'line' => 187 | ||||||||||||||||||||||||||||||||||||||
| 6212 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6213 | ], | ||||||||||||||||||||||||||||||||||||||
| 6214 | 'line' => 187 | ||||||||||||||||||||||||||||||||||||||
| 6215 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6216 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6217 | 'number' => 15, | ||||||||||||||||||||||||||||||||||||||
| 6218 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6219 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6220 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6221 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6222 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6223 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6224 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6225 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6226 | 'pattern' => 'cot', | ||||||||||||||||||||||||||||||||||||||
| 6227 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6228 | 'description' => '\'cot\'', | ||||||||||||||||||||||||||||||||||||||
| 6229 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6230 | 'line' => 188 | ||||||||||||||||||||||||||||||||||||||
| 6231 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6232 | ], | ||||||||||||||||||||||||||||||||||||||
| 6233 | 'line' => 188 | ||||||||||||||||||||||||||||||||||||||
| 6234 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6235 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6236 | 'number' => 16, | ||||||||||||||||||||||||||||||||||||||
| 6237 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6238 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6239 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6240 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6241 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6242 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6243 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6244 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6245 | 'pattern' => 'exp', | ||||||||||||||||||||||||||||||||||||||
| 6246 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6247 | 'description' => '\'exp\'', | ||||||||||||||||||||||||||||||||||||||
| 6248 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6249 | 'line' => 189 | ||||||||||||||||||||||||||||||||||||||
| 6250 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6251 | ], | ||||||||||||||||||||||||||||||||||||||
| 6252 | 'line' => 189 | ||||||||||||||||||||||||||||||||||||||
| 6253 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6254 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6255 | 'number' => 17, | ||||||||||||||||||||||||||||||||||||||
| 6256 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6257 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6258 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6259 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6260 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6261 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6262 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6263 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6264 | 'pattern' => 'sqrt', | ||||||||||||||||||||||||||||||||||||||
| 6265 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6266 | 'description' => '\'sqrt\'', | ||||||||||||||||||||||||||||||||||||||
| 6267 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6268 | 'line' => 190 | ||||||||||||||||||||||||||||||||||||||
| 6269 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6270 | ], | ||||||||||||||||||||||||||||||||||||||
| 6271 | 'line' => 190 | ||||||||||||||||||||||||||||||||||||||
| 6272 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 6273 | ], | ||||||||||||||||||||||||||||||||||||||
| 6274 | 'name' => 'function_name', | ||||||||||||||||||||||||||||||||||||||
| 6275 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 6276 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6277 | 'line' => 173 | ||||||||||||||||||||||||||||||||||||||
| 6278 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 6279 | 'add_op' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 6280 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6281 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||
| 6282 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6283 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 6284 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6285 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6286 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6287 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6288 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6289 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6290 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6291 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6292 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6293 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6294 | 'pattern' => '+', | ||||||||||||||||||||||||||||||||||||||
| 6295 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6296 | 'description' => '\'+\'', | ||||||||||||||||||||||||||||||||||||||
| 6297 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6298 | 'line' => 32 | ||||||||||||||||||||||||||||||||||||||
| 6299 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6300 | ], | ||||||||||||||||||||||||||||||||||||||
| 6301 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 6302 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||
| 6303 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6304 | 'number' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6305 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6306 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6307 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6308 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6309 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6310 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6311 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6312 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6313 | 'pattern' => '-', | ||||||||||||||||||||||||||||||||||||||
| 6314 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6315 | 'description' => '\'-\'', | ||||||||||||||||||||||||||||||||||||||
| 6316 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6317 | 'line' => 33 | ||||||||||||||||||||||||||||||||||||||
| 6318 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6319 | ], | ||||||||||||||||||||||||||||||||||||||
| 6320 | 'line' => 33 | ||||||||||||||||||||||||||||||||||||||
| 6321 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 6322 | ], | ||||||||||||||||||||||||||||||||||||||
| 6323 | 'name' => 'add_op', | ||||||||||||||||||||||||||||||||||||||
| 6324 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 6325 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6326 | 'line' => 32 | ||||||||||||||||||||||||||||||||||||||
| 6327 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||
| 6328 | 'expr_list' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 6329 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6330 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||
| 6331 | 'expr' | ||||||||||||||||||||||||||||||||||||||
| 6332 | ], | ||||||||||||||||||||||||||||||||||||||
| 6333 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6334 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||
| 6335 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6336 | 'number' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6337 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6338 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6339 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6340 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6341 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6342 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6343 | 'op' => [], | ||||||||||||||||||||||||||||||||||||||
| 6344 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||
| 6345 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6346 | 'expected' => '<leftop: expr \',\' expr>', | ||||||||||||||||||||||||||||||||||||||
| 6347 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||
| 6348 | 'name' => '', | ||||||||||||||||||||||||||||||||||||||
| 6349 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||
| 6350 | 'leftarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 6351 | 'subrule' => 'expr', | ||||||||||||||||||||||||||||||||||||||
| 6352 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6353 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6354 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6355 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6356 | 'line' => 193 | ||||||||||||||||||||||||||||||||||||||
| 6357 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 6358 | 'rightarg' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 6359 | 'subrule' => 'expr', | ||||||||||||||||||||||||||||||||||||||
| 6360 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6361 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6362 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6363 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6364 | 'line' => 193 | ||||||||||||||||||||||||||||||||||||||
| 6365 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||
| 6366 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||
| 6367 | 'type' => 'leftop', | ||||||||||||||||||||||||||||||||||||||
| 6368 | 'op' => bless( { | ||||||||||||||||||||||||||||||||||||||
| 6369 | 'pattern' => ',', | ||||||||||||||||||||||||||||||||||||||
| 6370 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||
| 6371 | 'description' => '\',\'', | ||||||||||||||||||||||||||||||||||||||
| 6372 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6373 | 'line' => 193 | ||||||||||||||||||||||||||||||||||||||
| 6374 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||
| 6375 | }, 'Parse::RecDescent::Operator' ), | ||||||||||||||||||||||||||||||||||||||
| 6376 | bless( { | ||||||||||||||||||||||||||||||||||||||
| 6377 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||
| 6378 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6379 | 'line' => 194, | ||||||||||||||||||||||||||||||||||||||
| 6380 | 'code' => '{ | ||||||||||||||||||||||||||||||||||||||
| 6381 | #warn \'expr_list \' | ||||||||||||||||||||||||||||||||||||||
| 6382 | # if $Math::Symbolic::Parser::DEBUG; | ||||||||||||||||||||||||||||||||||||||
| 6383 | $item[1] | ||||||||||||||||||||||||||||||||||||||
| 6384 | }' | ||||||||||||||||||||||||||||||||||||||
| 6385 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||
| 6386 | ], | ||||||||||||||||||||||||||||||||||||||
| 6387 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||
| 6388 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||
| 6389 | ], | ||||||||||||||||||||||||||||||||||||||
| 6390 | 'name' => 'expr_list', | ||||||||||||||||||||||||||||||||||||||
| 6391 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||
| 6392 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||
| 6393 | 'line' => 193 | ||||||||||||||||||||||||||||||||||||||
| 6394 | }, 'Parse::RecDescent::Rule' ) | ||||||||||||||||||||||||||||||||||||||
| 6395 | }, | ||||||||||||||||||||||||||||||||||||||
| 6396 | '_AUTOTREE' => undef, | ||||||||||||||||||||||||||||||||||||||
| 6397 | '_check' => { | ||||||||||||||||||||||||||||||||||||||
| 6398 | 'thisoffset' => '', | ||||||||||||||||||||||||||||||||||||||
| 6399 | 'itempos' => '', | ||||||||||||||||||||||||||||||||||||||
| 6400 | 'prevoffset' => '', | ||||||||||||||||||||||||||||||||||||||
| 6401 | 'prevline' => '', | ||||||||||||||||||||||||||||||||||||||
| 6402 | 'prevcolumn' => '', | ||||||||||||||||||||||||||||||||||||||
| 6403 | 'thiscolumn' => '' | ||||||||||||||||||||||||||||||||||||||
| 6404 | }, | ||||||||||||||||||||||||||||||||||||||
| 6405 | '_AUTOACTION' => undef | ||||||||||||||||||||||||||||||||||||||
| 6406 | }, 'Parse::RecDescent' ); | ||||||||||||||||||||||||||||||||||||||
| 6407 | } | ||||||||||||||||||||||||||||||||||||||
| 6408 | 23 | 1; | |||||||||||||||||||||||||||||||||||||