| 1 | package Data::Sah::Compiler::perl::TH::float; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 4 | ▶ | use 5.010; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 4 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 4 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | #use Log::Any '$log'; | ||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 4 | ▶ | use Mo qw(build default); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 4 | ▶ | use Role::Tiny::With; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 4 | extends 'Data::Sah::Compiler::perl::TH::num'; | |||||||||||||||||||||||||||
| 12 | 4 | with 'Data::Sah::Type::float'; | |||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 4 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |||||||||||||||||||||||||||
| 15 | 4 | our $DATE = '2024-02-16'; # DATE | |||||||||||||||||||||||||||
| 16 | 4 | our $DIST = 'Data-Sah'; # DIST | |||||||||||||||||||||||||||
| 17 | 4 | our $VERSION = '0.917'; # VERSION | |||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 666 | ▶ | sub handle_type { | ||||||||||||||||||||||||||
|
Subroutine
handle_type: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 20 | 666 | my ($self, $cd) = @_; | |||||||||||||||||||||||||||
| 21 | 666 | my $c = $self->compiler; | |||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 666 | my $dt = $cd->{data_term}; | |||||||||||||||||||||||||||
| 24 | 666 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 25 | 60 | $cd->{_ccl_check_type} = "$dt =~ ".'/\A(?:[+-]?(?:0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?|((?i)\s*nan\s*)|((?i)\s*[+-]?inf(inity)?)\s*)\z/'; | |||||||||||||||||||||||||||
| 26 | } else { | ||||||||||||||||||||||||||||
| 27 | 606 | $c->add_sun_module($cd); | |||||||||||||||||||||||||||
| 28 | # we use isnum = isint + isfloat, because isfloat(3) is false | ||||||||||||||||||||||||||||
| 29 | 606 | $cd->{_ccl_check_type} = "$cd->{_sun_module}::isnum($dt)"; | |||||||||||||||||||||||||||
| 30 | } | ||||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | 19 | ▶ | sub clause_is_nan { | ||||||||||||||||||||||||||
|
Subroutine
clause_is_nan: called CC=10 SCAR=25.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 34 | 19 | my ($self, $cd) = @_; | |||||||||||||||||||||||||||
| 35 | 19 | my $c = $self->compiler; | |||||||||||||||||||||||||||
| 36 | 19 | my $ct = $cd->{cl_term}; | |||||||||||||||||||||||||||
| 37 | 19 | my $dt = $cd->{data_term}; | |||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | 19 | ▶ | if ($cd->{cl_is_expr}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 40 | 0 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC0%0/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table0%0/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 41 | 0 | $c->add_ccl( | |||||||||||||||||||||||||||
| 42 | $cd, | ||||||||||||||||||||||||||||
| 43 | qq[$ct ? lc($dt+0) eq "nan" : defined($ct) ? lc($dt+0) ne "nan" : 1], | ||||||||||||||||||||||||||||
| 44 | ); | ||||||||||||||||||||||||||||
| 45 | } else { | ||||||||||||||||||||||||||||
| 46 | 0 | $c->add_ccl( | |||||||||||||||||||||||||||
| 47 | $cd, | ||||||||||||||||||||||||||||
| 48 | join( | ||||||||||||||||||||||||||||
| 49 | "", | ||||||||||||||||||||||||||||
| 50 | "$ct ? $cd->{_sun_module}::isnan($dt) : ", | ||||||||||||||||||||||||||||
| 51 | "defined($ct) ? !$cd->{_sun_module}::isnan($dt) : 1", | ||||||||||||||||||||||||||||
| 52 | ) | ||||||||||||||||||||||||||||
| 53 | ); | ||||||||||||||||||||||||||||
| 54 | } | ||||||||||||||||||||||||||||
| 55 | } else { | ||||||||||||||||||||||||||||
| 56 | 19 | ▶ | if ($cd->{cl_value}) { | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 57 | 11 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 58 | 4 | $c->add_ccl($cd, qq[lc($dt+0) eq "nan"]); | |||||||||||||||||||||||||||
| 59 | } else { | ||||||||||||||||||||||||||||
| 60 | 7 | $c->add_ccl($cd, "$cd->{_sun_module}::isnan($dt)"); | |||||||||||||||||||||||||||
| 61 | } | ||||||||||||||||||||||||||||
| 62 | } elsif (defined $cd->{cl_value}) { | ||||||||||||||||||||||||||||
| 63 | 8 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 64 | 4 | $c->add_ccl($cd, qq[lc($dt+0) ne "nan"]); | |||||||||||||||||||||||||||
| 65 | } else { | ||||||||||||||||||||||||||||
| 66 | 4 | $c->add_ccl($cd, "!$cd->{_sun_module}::isnan($dt)"); | |||||||||||||||||||||||||||
| 67 | } | ||||||||||||||||||||||||||||
| 68 | } | ||||||||||||||||||||||||||||
| 69 | } | ||||||||||||||||||||||||||||
| 70 | } | ||||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||
| 72 | 28 | ▶ | sub clause_is_neg_inf { | ||||||||||||||||||||||||||
|
Subroutine
clause_is_neg_inf: called CC=10 SCAR=25.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 73 | 28 | my ($self, $cd) = @_; | |||||||||||||||||||||||||||
| 74 | 28 | my $c = $self->compiler; | |||||||||||||||||||||||||||
| 75 | 28 | my $ct = $cd->{cl_term}; | |||||||||||||||||||||||||||
| 76 | 28 | my $dt = $cd->{data_term}; | |||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||
| 78 | 28 | ▶ | if ($cd->{cl_is_expr}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 79 | 0 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC0%0/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table0%0/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 80 | 0 | $c->add_ccl( | |||||||||||||||||||||||||||
| 81 | $cd, join( | ||||||||||||||||||||||||||||
| 82 | '', | ||||||||||||||||||||||||||||
| 83 | qq[$ct ? $dt =~ /\\A\\s*-inf(inity)?\\s*\\z/i : ], | ||||||||||||||||||||||||||||
| 84 | qq[defined($ct) ? $dt !~ /\\A\\s*inf(inity)?\\s*\\z/i : 1] | ||||||||||||||||||||||||||||
| 85 | )); | ||||||||||||||||||||||||||||
| 86 | } else { | ||||||||||||||||||||||||||||
| 87 | 0 | $c->add_ccl( | |||||||||||||||||||||||||||
| 88 | $cd, join( | ||||||||||||||||||||||||||||
| 89 | '', | ||||||||||||||||||||||||||||
| 90 | "$ct ? $cd->{_sun_module}::isinf($dt) && $cd->{_sun_module}::isneg($dt) : ", | ||||||||||||||||||||||||||||
| 91 | "defined($ct) ? !($cd->{_sun_module}::isinf($dt) && $cd->{_sun_module}::isneg($dt)) : 1", | ||||||||||||||||||||||||||||
| 92 | )); | ||||||||||||||||||||||||||||
| 93 | } | ||||||||||||||||||||||||||||
| 94 | } else { | ||||||||||||||||||||||||||||
| 95 | 28 | ▶ | if ($cd->{cl_value}) { | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 96 | 16 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 97 | 6 | $c->add_ccl($cd, qq[$dt =~ /\\A\\s*-inf(inity)?\\s*\\z/i]); | |||||||||||||||||||||||||||
| 98 | } else { | ||||||||||||||||||||||||||||
| 99 | 10 | $c->add_ccl($cd, "$cd->{_sun_module}::isinf($dt) && $cd->{_sun_module}::isneg($dt)"); | |||||||||||||||||||||||||||
| 100 | } | ||||||||||||||||||||||||||||
| 101 | } elsif (defined $cd->{cl_value}) { | ||||||||||||||||||||||||||||
| 102 | 12 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 103 | 6 | $c->add_ccl($cd, qq[$dt !~ /\\A\\s*-inf(inity)?\\s*\\z/i]); | |||||||||||||||||||||||||||
| 104 | } else { | ||||||||||||||||||||||||||||
| 105 | 6 | $c->add_ccl($cd, "!($cd->{_sun_module}::isinf($dt) && $cd->{_sun_module}::isneg($dt))"); | |||||||||||||||||||||||||||
| 106 | } | ||||||||||||||||||||||||||||
| 107 | } | ||||||||||||||||||||||||||||
| 108 | } | ||||||||||||||||||||||||||||
| 109 | } | ||||||||||||||||||||||||||||
| 110 | |||||||||||||||||||||||||||||
| 111 | 28 | ▶ | sub clause_is_pos_inf { | ||||||||||||||||||||||||||
|
Subroutine
clause_is_pos_inf: called CC=10 SCAR=25.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 112 | 28 | my ($self, $cd) = @_; | |||||||||||||||||||||||||||
| 113 | 28 | my $c = $self->compiler; | |||||||||||||||||||||||||||
| 114 | 28 | my $ct = $cd->{cl_term}; | |||||||||||||||||||||||||||
| 115 | 28 | my $dt = $cd->{data_term}; | |||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||
| 117 | 28 | ▶ | if ($cd->{cl_is_expr}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 118 | 0 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC0%0/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table0%0/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 119 | 0 | $c->add_ccl( | |||||||||||||||||||||||||||
| 120 | $cd, join( | ||||||||||||||||||||||||||||
| 121 | '', | ||||||||||||||||||||||||||||
| 122 | qq[$ct ? $dt =~ /\\A\\s*inf(inity)?\\s*\\z/i : ], | ||||||||||||||||||||||||||||
| 123 | qq[defined($ct) ? $dt !~ /\\A\\s*inf(inity)?\\s*\\z/i : 1] | ||||||||||||||||||||||||||||
| 124 | )); | ||||||||||||||||||||||||||||
| 125 | } else { | ||||||||||||||||||||||||||||
| 126 | 0 | $c->add_ccl( | |||||||||||||||||||||||||||
| 127 | $cd, join( | ||||||||||||||||||||||||||||
| 128 | '', | ||||||||||||||||||||||||||||
| 129 | "$ct ? $cd->{_sun_module}::isinf($dt) && !$cd->{_sun_module}::isneg($dt) : ", | ||||||||||||||||||||||||||||
| 130 | "defined($ct) ? !($cd->{_sun_module}::isinf($dt) && !$cd->{_sun_module}::isneg($dt)) : 1", | ||||||||||||||||||||||||||||
| 131 | )); | ||||||||||||||||||||||||||||
| 132 | } | ||||||||||||||||||||||||||||
| 133 | } else { | ||||||||||||||||||||||||||||
| 134 | 28 | ▶ | if ($cd->{cl_value}) { | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 135 | 16 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 136 | 6 | $c->add_ccl($cd, qq[$dt =~ /\\A\\s*inf(inity)?\\s*\\z/i]); | |||||||||||||||||||||||||||
| 137 | } else { | ||||||||||||||||||||||||||||
| 138 | 10 | $c->add_ccl($cd, "$cd->{_sun_module}::isinf($dt) && !$cd->{_sun_module}::isneg($dt)"); | |||||||||||||||||||||||||||
| 139 | } | ||||||||||||||||||||||||||||
| 140 | } elsif (defined $cd->{cl_value}) { | ||||||||||||||||||||||||||||
| 141 | 12 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 142 | 6 | $c->add_ccl($cd, qq[$dt !~ /\\A\\s*inf(inity)?\\s*\\z/i]); | |||||||||||||||||||||||||||
| 143 | } else { | ||||||||||||||||||||||||||||
| 144 | 6 | $c->add_ccl($cd, "!($cd->{_sun_module}::isinf($dt) && !$cd->{_sun_module}::isneg($dt))"); | |||||||||||||||||||||||||||
| 145 | } | ||||||||||||||||||||||||||||
| 146 | } | ||||||||||||||||||||||||||||
| 147 | } | ||||||||||||||||||||||||||||
| 148 | } | ||||||||||||||||||||||||||||
| 149 | |||||||||||||||||||||||||||||
| 150 | 28 | ▶ | sub clause_is_inf { | ||||||||||||||||||||||||||
|
Subroutine
clause_is_inf: called CC=10 SCAR=25.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 151 | 28 | my ($self, $cd) = @_; | |||||||||||||||||||||||||||
| 152 | 28 | my $c = $self->compiler; | |||||||||||||||||||||||||||
| 153 | 28 | my $ct = $cd->{cl_term}; | |||||||||||||||||||||||||||
| 154 | 28 | my $dt = $cd->{data_term}; | |||||||||||||||||||||||||||
| 155 | |||||||||||||||||||||||||||||
| 156 | 28 | ▶ | if ($cd->{cl_is_expr}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 157 | 0 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC0%0/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table0%0/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 158 | 0 | $c->add_ccl( | |||||||||||||||||||||||||||
| 159 | $cd, join( | ||||||||||||||||||||||||||||
| 160 | '', | ||||||||||||||||||||||||||||
| 161 | qq[$ct ? $dt =~ /\\A\\s*-?inf(inity)?\\s*\\z/i : ], | ||||||||||||||||||||||||||||
| 162 | qq[defined($ct) ? $dt+0 !~ /\\A-?inf\\z/ : 1] | ||||||||||||||||||||||||||||
| 163 | )); | ||||||||||||||||||||||||||||
| 164 | } else { | ||||||||||||||||||||||||||||
| 165 | 0 | $c->add_ccl($cd, "$ct ? $cd->{_sun_module}::isinf($dt) : ". | |||||||||||||||||||||||||||
| 166 | "defined($ct) ? $cd->{_sun_module}::isinf($dt) : 1"); | ||||||||||||||||||||||||||||
| 167 | } | ||||||||||||||||||||||||||||
| 168 | } else { | ||||||||||||||||||||||||||||
| 169 | 28 | ▶ | if ($cd->{cl_value}) { | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 170 | 16 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 171 | 6 | $c->add_ccl($cd, qq[$dt =~ /\\A\\s*-?inf(inity)?\\s*\\z/i]); | |||||||||||||||||||||||||||
| 172 | } else { | ||||||||||||||||||||||||||||
| 173 | 10 | $c->add_ccl($cd, "$cd->{_sun_module}::isinf($dt)"); | |||||||||||||||||||||||||||
| 174 | } | ||||||||||||||||||||||||||||
| 175 | } elsif (defined $cd->{cl_value}) { | ||||||||||||||||||||||||||||
| 176 | 12 | ▶ | if ($cd->{args}{core} || $cd->{args}{no_modules}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
MC/DC100%2/2
$cd->{"args"}{"core"} or $cd->{"args"}{"no_modules"}
$cd->{"args"}{"core"}
$cd->{"args"}{"no_modules"}
Truth table100%3/3
A or B
A= $cd->{"args"}{"core"}B= $cd->{"args"}{"no_modules"}
| |||||||||||||||||||||||||||||
| 177 | 6 | $c->add_ccl($cd, qq[$dt !~ /\\A\\s*-?inf(inity)?\\s*\\z/i]); | |||||||||||||||||||||||||||
| 178 | } else { | ||||||||||||||||||||||||||||
| 179 | 6 | $c->add_ccl($cd, "!$cd->{_sun_module}::isinf($dt)"); | |||||||||||||||||||||||||||
| 180 | } | ||||||||||||||||||||||||||||
| 181 | } | ||||||||||||||||||||||||||||
| 182 | } | ||||||||||||||||||||||||||||
| 183 | } | ||||||||||||||||||||||||||||
| 184 | |||||||||||||||||||||||||||||
| 185 | 4 | 1; | |||||||||||||||||||||||||||
| 186 | # ABSTRACT: perl's type handler for type "float" | ||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||
| 188 | __END__ | ||||||||||||||||||||||||||||