blib/lib/Geo/IP2Location.pm

filter: Statementstmt 47.5% 536 / 1128 Branchbran 20.0% 98 / 488 Conditioncond 36.0% 67 / 186 MC/DCmcdc 3.2% 4 / 122 Subroutinesub 72.2% 86 / 119 Podpod 58.8% 30 / 51 totaltotal 39.2% 821 / 2094 SCAR 100.2
CC
311
Cov
39%
get_ipv6_record
5044.8
get_ipv4_record
4955.2
validate_ip
15.5
CRAP 22371.7
↑ Summary
1 #MIT License
2 #
3 #Copyright (c) 2023 IP2Location.com
4 #
5 #Permission is hereby granted, free of charge, to any person obtaining a copy
6 #of this software and associated documentation files (the "Software"), to deal
7 #in the Software without restriction, including without limitation the rights
8 #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 #copies of the Software, and to permit persons to whom the Software is
10 #furnished to do so, subject to the following conditions:
11 #
12 #The above copyright notice and this permission notice shall be included in all
13 #copies or substantial portions of the Software.
14 #
15 #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 #SOFTWARE.
22  
23 package Geo::IP2Location;
24  
25 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 3 ▶use vars qw(@ISA $VERSION @EXPORT);
Subroutine BEGIN: called CC=1 SCAR=0.0
27 3 ▶use Math::BigInt;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 3 ▶use bigint;
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 3 $VERSION = '8.70';
31 3 require Exporter;
32 3 @ISA = qw(Exporter);
33  
34 3 ▶use constant UNKNOWN => "UNKNOWN IP ADDRESS";
Subroutine BEGIN: called CC=1 SCAR=0.0
35 3 ▶use constant IPV6_ADDRESS_IN_IPV4_BIN => "IPV6 ADDRESS MISSING IN IPV4 BIN";
Subroutine BEGIN: called CC=1 SCAR=0.0
36 3 ▶use constant NO_IP => "MISSING IP ADDRESS";
Subroutine BEGIN: called CC=1 SCAR=0.0
37 3 ▶use constant INVALID_IPV6_ADDRESS => "INVALID IPV6 ADDRESS";
Subroutine BEGIN: called CC=1 SCAR=0.0
38 3 ▶use constant INVALID_IPV4_ADDRESS => "INVALID IPV4 ADDRESS";
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 ▶use constant INVALID_IP_ADDRESS => "INVALID IP ADDRESS";
Subroutine BEGIN: called CC=1 SCAR=0.0
40 3 ▶use constant INVALID_BIN_DATABASE => "Incorrect IP2Location BIN file format. Please make sure that you are using the latest IP2Location BIN file.";
Subroutine BEGIN: called CC=1 SCAR=0.0
41 3 ▶use constant NOT_SUPPORTED => "This parameter is unavailable in selected .BIN data file. Please upgrade data file.";
Subroutine BEGIN: called CC=1 SCAR=0.0
42 3 ▶use constant MAX_IPV4_RANGE => 4294967295;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 3 ▶use constant MAX_IPV6_RANGE => 340282366920938463463374607431768211455;
Subroutine BEGIN: called CC=1 SCAR=0.0
44 3 ▶use constant IP_COUNTRY => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
45 3 ▶use constant IP_COUNTRY_ISP => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
46 3 ▶use constant IP_COUNTRY_REGION_CITY => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
47 3 ▶use constant IP_COUNTRY_REGION_CITY_ISP => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
48 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
49 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ISP => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
50 3 ▶use constant IP_COUNTRY_REGION_CITY_ISP_DOMAIN => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
51 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ISP_DOMAIN => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
52 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE => 9;
Subroutine BEGIN: called CC=1 SCAR=0.0
53 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_ISP_DOMAIN => 10;
Subroutine BEGIN: called CC=1 SCAR=0.0
54 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE => 11;
Subroutine BEGIN: called CC=1 SCAR=0.0
55 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN => 12;
Subroutine BEGIN: called CC=1 SCAR=0.0
56 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_TIMEZONE_NETSPEED => 13;
Subroutine BEGIN: called CC=1 SCAR=0.0
57 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN_NETSPEED => 14;
Subroutine BEGIN: called CC=1 SCAR=0.0
58 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_AREACODE => 15;
Subroutine BEGIN: called CC=1 SCAR=0.0
59 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN_NETSPEED_AREACODE => 16;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_TIMEZONE_NETSPEED_WEATHER => 17;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN_NETSPEED_AREACODE_WEATHER => 18;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ISP_DOMAIN_MOBILE => 19;
Subroutine BEGIN: called CC=1 SCAR=0.0
63 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN_NETSPEED_AREACODE_WEATHER_MOBILE => 20;
Subroutine BEGIN: called CC=1 SCAR=0.0
64 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_AREACODE_ELEVATION => 21;
Subroutine BEGIN: called CC=1 SCAR=0.0
65 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN_NETSPEED_AREACODE_WEATHER_MOBILE_ELEVATION => 22;
Subroutine BEGIN: called CC=1 SCAR=0.0
66 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ISP_DOMAIN_MOBILE_USAGETYPE => 23;
Subroutine BEGIN: called CC=1 SCAR=0.0
67 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN_NETSPEED_AREACODE_WEATHER_MOBILE_ELEVATION_USAGETYPE => 24;
Subroutine BEGIN: called CC=1 SCAR=0.0
68 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN_NETSPEED_AREACODE_WEATHER_MOBILE_ELEVATION_USAGETYPE_ADDRESSTYPE_CATEGORY => 25;
Subroutine BEGIN: called CC=1 SCAR=0.0
69 3 ▶use constant IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE_ISP_DOMAIN_NETSPEED_AREACODE_WEATHER_MOBILE_ELEVATION_USAGETYPE_ADDRESSTYPE_CATEGORY_DISTRICT_ASN => 26;
Subroutine BEGIN: called CC=1 SCAR=0.0
70  
71 3 ▶use constant COUNTRYSHORT => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
72 3 ▶use constant COUNTRYLONG => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
73 3 ▶use constant REGION => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
74 3 ▶use constant CITY => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
75 3 ▶use constant ISP => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
76 3 ▶use constant LATITUDE => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
77 3 ▶use constant LONGITUDE => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
78 3 ▶use constant DOMAIN => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
79 3 ▶use constant ZIPCODE => 9;
Subroutine BEGIN: called CC=1 SCAR=0.0
80 3 ▶use constant TIMEZONE => 10;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 3 ▶use constant NETSPEED => 11;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 3 ▶use constant IDDCODE => 12;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 3 ▶use constant AREACODE => 13;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 3 ▶use constant WEATHERSTATIONCODE => 14;
Subroutine BEGIN: called CC=1 SCAR=0.0
85 3 ▶use constant WEATHERSTATIONNAME => 15;
Subroutine BEGIN: called CC=1 SCAR=0.0
86 3 ▶use constant MCC => 16;
Subroutine BEGIN: called CC=1 SCAR=0.0
87 3 ▶use constant MNC => 17;
Subroutine BEGIN: called CC=1 SCAR=0.0
88 3 ▶use constant MOBILEBRAND => 18;
Subroutine BEGIN: called CC=1 SCAR=0.0
89 3 ▶use constant ELEVATION => 19;
Subroutine BEGIN: called CC=1 SCAR=0.0
90 3 ▶use constant USAGETYPE => 20;
Subroutine BEGIN: called CC=1 SCAR=0.0
91 3 ▶use constant ADDRESSTYPE => 21;
Subroutine BEGIN: called CC=1 SCAR=0.0
92 3 ▶use constant CATEGORY => 22;
Subroutine BEGIN: called CC=1 SCAR=0.0
93 3 ▶use constant DISTRICT => 23;
Subroutine BEGIN: called CC=1 SCAR=0.0
94 3 ▶use constant ASN => 24;
Subroutine BEGIN: called CC=1 SCAR=0.0
95 3 ▶use constant AS => 25;
Subroutine BEGIN: called CC=1 SCAR=0.0
96  
97 3 ▶use constant ALL => 100;
Subroutine BEGIN: called CC=1 SCAR=0.0
98 3 ▶use constant IPV4 => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
99 3 ▶use constant IPV6 => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
100  
101 3 my @COUNTRY_POSITION = (0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
102 3 my @REGION_POSITION = (0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3);
103 3 my @CITY_POSITION = (0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4);
104 3 my @LATITUDE_POSITION = (0, 0, 0, 0, 0, 5, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5);
105 3 my @LONGITUDE_POSITION = (0, 0, 0, 0, 0, 6, 6, 0, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6);
106 3 my @ZIPCODE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 0, 7, 7, 7, 0, 7, 0, 7, 7, 7, 0, 7, 7, 7);
107 3 my @TIMEZONE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 7, 8, 8, 8, 7, 8, 0, 8, 8, 8, 0, 8, 8, 8);
108 3 my @ISP_POSITION = (0, 0, 3, 0, 5, 0, 7, 5, 7, 0, 8, 0, 9, 0, 9, 0, 9, 0, 9, 7, 9, 0, 9, 7, 9, 9, 9);
109 3 my @DOMAIN_POSITION = (0, 0, 0, 0, 0, 0, 0, 6, 8, 0, 9, 0, 10, 0, 10, 0, 10, 0, 10, 8, 10, 0, 10, 8, 10, 10, 10);
110 3 my @NETSPEED_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 11, 0, 11, 8, 11, 0, 11, 0, 11, 0, 11, 11, 11);
111 3 my @IDDCODE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 12, 0, 12, 0, 12, 9, 12, 0, 12, 12, 12);
112 3 my @AREACODE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 13, 0, 13, 0, 13, 10, 13, 0, 13, 13, 13);
113 3 my @WEATHERSTATIONCODE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 14, 0, 14, 0, 14, 0, 14, 14, 14);
114 3 my @WEATHERSTATIONNAME_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 15, 0, 15, 0, 15, 0, 15, 15, 15);
115 3 my @MCC_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 16, 0, 16, 9, 16, 16, 16);
116 3 my @MNC_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 17, 0, 17, 10, 17, 17, 17);
117 3 my @MOBILEBRAND_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 18, 0, 18, 11, 18, 18, 18);
118 3 my @ELEVATION_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 19, 0, 19, 19, 19);
119 3 my @USAGETYPE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 20, 20, 20);
120 3 my @ADDRESSTYPE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21);
121 3 my @CATEGORY_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 22);
122 3 my @DISTRICT_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23);
123 3 my @ASN_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24);
124 3 my @AS_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25);
125 3 my @COLUMN_SIZE = (0, 2, 3, 4, 5, 6, 7, 6, 8, 7, 9, 8, 10, 8, 11, 10, 13, 10, 15, 11, 18, 11, 19, 12, 20, 22, 25);
126  
127 3 my @IPV6_COUNTRY_POSITION = (0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
128 3 my @IPV6_REGION_POSITION = (0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3);
129 3 my @IPV6_CITY_POSITION = (0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4);
130 3 my @IPV6_LATITUDE_POSITION = (0, 0, 0, 0, 0, 5, 5, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5);
131 3 my @IPV6_LONGITUDE_POSITION = (0, 0, 0, 0, 0, 6, 6, 0, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6);
132 3 my @IPV6_ZIPCODE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 0, 7, 7, 7, 0, 7, 0, 7, 7, 7, 0, 7, 7, 7);
133 3 my @IPV6_TIMEZONE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 7, 8, 8, 8, 7, 8, 0, 8, 8, 8, 0, 8, 8, 8);
134 3 my @IPV6_ISP_POSITION = (0, 0, 3, 0, 5, 0, 7, 5, 7, 0, 8, 0, 9, 0, 9, 0, 9, 0, 9, 7, 9, 0, 9, 7, 9, 9, 9);
135 3 my @IPV6_DOMAIN_POSITION = (0, 0, 0, 0, 0, 0, 0, 6, 8, 0, 9, 0, 10, 0, 10, 0, 10, 0, 10, 8, 10, 0, 10, 8, 10, 10, 10);
136 3 my @IPV6_NETSPEED_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 11, 0, 11, 8, 11, 0, 11, 0, 11, 0, 11, 11, 11);
137 3 my @IPV6_IDDCODE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 12, 0, 12, 0, 12, 9, 12, 0, 12, 12, 12);
138 3 my @IPV6_AREACODE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 13, 0, 13, 0, 13, 10, 13, 0, 13, 13, 13);
139 3 my @IPV6_WEATHERSTATIONCODE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 14, 0, 14, 0, 14, 0, 14, 14, 14);
140 3 my @IPV6_WEATHERSTATIONNAME_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 15, 0, 15, 0, 15, 0, 15, 15, 15);
141 3 my @IPV6_MCC_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 16, 0, 16, 9, 16, 16, 16);
142 3 my @IPV6_MNC_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 17, 0, 17, 10, 17, 17, 17);
143 3 my @IPV6_MOBILEBRAND_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 18, 0, 18, 11, 18, 18, 18);
144 3 my @IPV6_ELEVATION_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 19, 0, 19, 19, 19);
145 3 my @IPV6_USAGETYPE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 20, 20, 20);
146 3 my @IPV6_ADDRESSTYPE_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21);
147 3 my @IPV6_CATEGORY_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 22);
148 3 my @IPV6_DISTRICT_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23);
149 3 my @IPV6_ASN_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24);
150 3 my @IPV6_AS_POSITION = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25);
151 3 my @IPV6_COLUMN_SIZE = (0, 2, 3, 4, 5, 6, 7, 6, 8, 7, 9, 8, 10, 8, 11, 10, 13, 10, 15, 11, 18, 11, 19, 12, 20, 22, 25);
152  
153 3 my $IPv6_re = qr/:(?::[0-9a-fA-F]{1,4}){0,5}(?:(?::[0-9a-fA-F]{1,4}){1,2}|:(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})))|[0-9a-fA-F]{1,4}:(?:[0-9a-fA-F]{1,4}:(?:[0-9a-fA-F]{1,4}:(?:[0-9a-fA-F]{1,4}:(?:[0-9a-fA-F]{1,4}:(?:[0-9a-fA-F]{1,4}:(?:[0-9a-fA-F]{1,4}:(?:[0-9a-fA-F]{1,4}|:)|(?::(?:[0-9a-fA-F]{1,4})?|(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}))))|:(?:(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}))|[0-9a-fA-F]{1,4}(?::[0-9a-fA-F]{1,4})?|))|(?::(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}))|:[0-9a-fA-F]{1,4}(?::(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}))|(?::[0-9a-fA-F]{1,4}){0,2})|:))|(?:(?::[0-9a-fA-F]{1,4}){0,2}(?::(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}))|(?::[0-9a-fA-F]{1,4}){1,2})|:))|(?:(?::[0-9a-fA-F]{1,4}){0,3}(?::(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}))|(?::[0-9a-fA-F]{1,4}){1,2})|:))|(?:(?::[0-9a-fA-F]{1,4}){0,4}(?::(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.](?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}))|(?::[0-9a-fA-F]{1,4}){1,2})|:))/;
154 3 my $IPv4_re = qr/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/;
155  
156 3 my $getLastErrorMessage = "";
157  
158 sub open {
159 2 ▶ unless( (@_ > 1) && ($_[1]) ) {
Subroutine open: called CC=7 SCAR=25.7
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
unless (@_ > bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $_[1]) 0 2 2
Condition33%1/3
@_ > bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $_[1]
!ll&&!rl&&r
002
MC/DC0%0/2
@_ > bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $_[1]
@_ > bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $_[1]
Truth table33%1/3
A and B
A= @_ > bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $_[1]
ABresult
0X0
100
111
160 0 $getLastErrorMessage = "Geo::IP2Location::open() requires a database path name.";
161 0 die "Geo::IP2Location::open() requires a database path name";
162 }
163 2 my ($class, $db_file) = @_;
164 2 my $handle;
165 my $obj;
166 2 ▶ unless (CORE::open $handle, "$db_file") {
Branch: 1 branch
BranchTrueFalseTotal
unless (CORE::open $handle, "$db_file") 0 2 2
167 0 $getLastErrorMessage = "Geo::IP2Location::open() error in opening $db_file" . ".";
168 0 die "Geo::IP2Location::open() error in opening $db_file";
169 }
170 2 binmode($handle);
171 2 $obj = bless {filehandle => $handle}, $class;
172 2 $obj->initialize();
173 2 ▶ if ($obj->{"productcode"} == 1) {
Branch: 1 branch
BranchTrueFalseTotal
if ($obj->{'productcode'} == {sign => '+', value => ['1']}) { } 0 2 2
174 } else {
175 2 ▶ if (($obj->{"databaseyear"} <= 20) && ($obj->{"productcode"} == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($obj->{'databaseyear'} <= {sign => '+', value => ['20']} and $obj->{'productcode'} == {sign => '+', value => ['0']}) { } 2 0 2
Condition33%1/3
$obj->{"databaseyear"} <= bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $obj->{"productcode"} == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
002
MC/DC0%0/2
$obj->{"databaseyear"} <= bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $obj->{"productcode"} == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$obj->{"databaseyear"} <= bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $obj->{"productcode"} == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $obj->{"databaseyear"} <= bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $obj->{"productcode"} == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
176 } else {
177 0 $obj->close();
178 0 undef $obj;
179 0 $getLastErrorMessage = INVALID_BIN_DATABASE;
180 0 die INVALID_BIN_DATABASE;
181 }
182 }
183 2 return $obj;
184 }
185  
186 sub close {
187 0 ▶ my ($class) = @_;
Subroutine close: not called CC=2 SCAR=17.9
Pod undocumented
188 0 ▶ if (CORE::close($class->{filehandle})) {
Branch: 1 branch
BranchTrueFalseTotal
if (CORE::close $class->{'filehandle'}) { } 0 0 0
189 0 return 0;
190 } else {
191 0 return 1;
192 }
193 }
194  
195 sub initialize {
196 2 ▶ my ($obj) = @_;
Subroutine initialize: called CC=1 SCAR=0.0
Pod undocumented
197 2 my @header = $obj->read512($obj->{filehandle}, 1);
198 2 $obj->{"databasetype"} = unpack("C", $header[0]);
199 2 $obj->{"databasecolumn"} = unpack("C", $header[1]);
200 2 $obj->{"databaseyear"} = unpack("C", $header[2]);
201 2 $obj->{"databasemonth"} = unpack("C", $header[3]);
202 2 $obj->{"databaseday"} = unpack("C", $header[4]);
203 2 $obj->{"ipv4databasecount"} = unpack("V", join('', @header[5..8]));
204 2 $obj->{"ipv4databaseaddr"} = unpack("V", join('', @header[9..12]));
205 2 $obj->{"ipv6databasecount"} = unpack("V", join('', @header[13..16]));
206 2 $obj->{"ipv6databaseaddr"} = unpack("V", join('', @header[17..20]));
207 2 $obj->{"ipv4indexbaseaddr"} = unpack("V", join('', @header[21..24]));
208 2 $obj->{"ipv6indexbaseaddr"} = unpack("V", join('', @header[25..28]));
209 2 $obj->{"productcode"} = unpack("C", $header[29]);
210 2 $obj->{"licensecode"} = unpack("C", $header[30]);
211 2 $obj->{"databasesize"} = unpack("V", join('', @header[31..34]));
212 2 return $obj;
213 }
214  
215 sub get_last_error_message {
216 0 ▶ my $class = shift(@_);
Subroutine get_last_error_message: not called CC=1 SCAR=6.9
Pod documented
217 0 return ($getLastErrorMessage);
218 }
219  
220 sub get_module_version {
221 0 ▶ my $obj = shift(@_);
Subroutine get_module_version: not called CC=1 SCAR=6.9
Pod documented
222 0 return $VERSION;
223 }
224  
225 sub get_database_version {
226 0 ▶ my $obj = shift(@_);
Subroutine get_database_version: not called CC=1 SCAR=6.9
Pod documented
227 0 return $obj->{"databaseyear"} . "." . $obj->{"databasemonth"} . "." . $obj->{"databaseday"};
228 }
229  
230 sub get_country_short {
231 20 ▶ my $obj = shift(@_);
Subroutine get_country_short: called CC=3 SCAR=11.1
Pod documented
232 20 my $ipaddr = shift(@_);
233 20 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
234 20 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 10 10 20
235 10 return $obj->get_ipv4_record($ipnum, COUNTRYSHORT);
236 } else {
237 10 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 10 0 10
238 10 return $obj->get_ipv6_record($ipnum, COUNTRYSHORT);
239 } else {
240 0 return INVALID_IP_ADDRESS;
241 }
242 }
243 }
244  
245 sub get_country_long {
246 0 ▶ my $obj = shift(@_);
Subroutine get_country_long: not called CC=3 SCAR=24.8
Pod documented
247 0 my $ipaddr = shift(@_);
248 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
249 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
250 0 return $obj->get_ipv4_record($ipnum, COUNTRYLONG);
251 } else {
252 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
253 0 return $obj->get_ipv6_record($ipnum, COUNTRYLONG);
254 } else {
255 0 return INVALID_IP_ADDRESS;
256 }
257 }
258 }
259  
260 sub get_region {
261 0 ▶ my $obj = shift(@_);
Subroutine get_region: not called CC=3 SCAR=24.8
Pod documented
262 0 my $ipaddr = shift(@_);
263 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
264 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
265 0 return $obj->get_ipv4_record($ipnum, REGION);
266 } else {
267 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
268 0 return $obj->get_ipv6_record($ipnum, REGION);
269 } else {
270 0 return INVALID_IP_ADDRESS;
271 }
272 }
273 }
274  
275 sub get_city {
276 0 ▶ my $obj = shift(@_);
Subroutine get_city: not called CC=3 SCAR=24.8
Pod documented
277 0 my $ipaddr = shift(@_);
278 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
279 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
280 0 return $obj->get_ipv4_record($ipnum, CITY);
281 } else {
282 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
283 0 return $obj->get_ipv6_record($ipnum, CITY);
284 } else {
285 0 return INVALID_IP_ADDRESS;
286 }
287 }
288 }
289  
290 sub get_isp {
291 0 ▶ my $obj = shift(@_);
Subroutine get_isp: not called CC=3 SCAR=24.8
Pod documented
292 0 my $ipaddr = shift(@_);
293 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
294 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
295 0 return $obj->get_ipv4_record($ipnum, ISP);
296 } else {
297 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
298 0 return $obj->get_ipv6_record($ipnum, ISP);
299 } else {
300 0 return INVALID_IP_ADDRESS;
301 }
302 }
303 }
304  
305 sub get_latitude {
306 0 ▶ my $obj = shift(@_);
Subroutine get_latitude: not called CC=3 SCAR=24.8
Pod documented
307 0 my $ipaddr = shift(@_);
308 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
309 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
310 0 return $obj->get_ipv4_record($ipnum, LATITUDE);
311 } else {
312 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
313 0 return $obj->get_ipv6_record($ipnum, LATITUDE);
314 } else {
315 0 return INVALID_IP_ADDRESS;
316 }
317 }
318 }
319  
320 sub get_zipcode {
321 0 ▶ my $obj = shift(@_);
Subroutine get_zipcode: not called CC=3 SCAR=24.8
Pod documented
322 0 my $ipaddr = shift(@_);
323 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
324 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
325 0 return $obj->get_ipv4_record($ipnum, ZIPCODE);
326 } else {
327 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
328 0 return $obj->get_ipv6_record($ipnum, ZIPCODE);
329 } else {
330 0 return INVALID_IP_ADDRESS;
331 }
332 }
333 }
334  
335 sub get_longitude {
336 0 ▶ my $obj = shift(@_);
Subroutine get_longitude: not called CC=3 SCAR=24.8
Pod documented
337 0 my $ipaddr = shift(@_);
338 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
339 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
340 0 return $obj->get_ipv4_record($ipnum, LONGITUDE);
341 } else {
342 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
343 0 return $obj->get_ipv6_record($ipnum, LONGITUDE);
344 } else {
345 0 return INVALID_IP_ADDRESS;
346 }
347 }
348 }
349  
350 sub get_domain {
351 0 ▶ my $obj = shift(@_);
Subroutine get_domain: not called CC=3 SCAR=24.8
Pod documented
352 0 my $ipaddr = shift(@_);
353 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
354 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
355 0 return $obj->get_ipv4_record($ipnum, DOMAIN);
356 } else {
357 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
358 0 return $obj->get_ipv6_record($ipnum, DOMAIN);
359 } else {
360 0 return INVALID_IP_ADDRESS;
361 }
362 }
363 }
364  
365 sub get_timezone {
366 0 ▶ my $obj = shift(@_);
Subroutine get_timezone: not called CC=3 SCAR=24.8
Pod documented
367 0 my $ipaddr = shift(@_);
368 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
369 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
370 0 return $obj->get_ipv4_record($ipnum, TIMEZONE);
371 } else {
372 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
373 0 return $obj->get_ipv6_record($ipnum, TIMEZONE);
374 } else {
375 0 return INVALID_IP_ADDRESS;
376 }
377 }
378 }
379  
380 sub get_netspeed {
381 0 ▶ my $obj = shift(@_);
Subroutine get_netspeed: not called CC=3 SCAR=24.8
Pod documented
382 0 my $ipaddr = shift(@_);
383 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
384 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
385 0 return $obj->get_ipv4_record($ipnum, NETSPEED);
386 } else {
387 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
388 0 return $obj->get_ipv6_record($ipnum, NETSPEED);
389 } else {
390 0 return INVALID_IP_ADDRESS;
391 }
392 }
393 }
394  
395 sub get_iddcode {
396 0 ▶ my $obj = shift(@_);
Subroutine get_iddcode: not called CC=3 SCAR=24.8
Pod documented
397 0 my $ipaddr = shift(@_);
398 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
399 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
400 0 return $obj->get_ipv4_record($ipnum, IDDCODE);
401 } else {
402 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
403 0 return $obj->get_ipv6_record($ipnum, IDDCODE);
404 } else {
405 0 return INVALID_IP_ADDRESS;
406 }
407 }
408 }
409  
410 sub get_areacode {
411 0 ▶ my $obj = shift(@_);
Subroutine get_areacode: not called CC=3 SCAR=24.8
Pod documented
412 0 my $ipaddr = shift(@_);
413 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
414 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
415 0 return $obj->get_ipv4_record($ipnum, AREACODE);
416 } else {
417 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
418 0 return $obj->get_ipv6_record($ipnum, AREACODE);
419 } else {
420 0 return INVALID_IP_ADDRESS;
421 }
422 }
423 }
424  
425 sub get_weatherstationcode {
426 0 ▶ my $obj = shift(@_);
Subroutine get_weatherstationcode: not called CC=3 SCAR=24.8
Pod documented
427 0 my $ipaddr = shift(@_);
428 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
429 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
430 0 return $obj->get_ipv4_record($ipnum, WEATHERSTATIONCODE);
431 } else {
432 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
433 0 return $obj->get_ipv6_record($ipnum, WEATHERSTATIONCODE);
434 } else {
435 0 return INVALID_IP_ADDRESS;
436 }
437 }
438 }
439  
440 sub get_weatherstationname {
441 0 ▶ my $obj = shift(@_);
Subroutine get_weatherstationname: not called CC=3 SCAR=24.8
Pod documented
442 0 my $ipaddr = shift(@_);
443 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
444 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
445 0 return $obj->get_ipv4_record($ipnum, WEATHERSTATIONNAME);
446 } else {
447 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
448 0 return $obj->get_ipv6_record($ipnum, WEATHERSTATIONNAME);
449 } else {
450 0 return INVALID_IP_ADDRESS;
451 }
452 }
453 }
454  
455 sub get_mcc {
456 0 ▶ my $obj = shift(@_);
Subroutine get_mcc: not called CC=3 SCAR=24.8
Pod documented
457 0 my $ipaddr = shift(@_);
458 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
459 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
460 0 return $obj->get_ipv4_record($ipnum, MCC);
461 } else {
462 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
463 0 return $obj->get_ipv6_record($ipnum, MCC);
464 } else {
465 0 return INVALID_IP_ADDRESS;
466 }
467 }
468 }
469  
470 sub get_mnc {
471 0 ▶ my $obj = shift(@_);
Subroutine get_mnc: not called CC=3 SCAR=24.8
Pod documented
472 0 my $ipaddr = shift(@_);
473 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
474 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
475 0 return $obj->get_ipv4_record($ipnum, MNC);
476 } else {
477 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
478 0 return $obj->get_ipv6_record($ipnum, MNC);
479 } else {
480 0 return INVALID_IP_ADDRESS;
481 }
482 }
483 }
484  
485 sub get_mobilebrand {
486 0 ▶ my $obj = shift(@_);
Subroutine get_mobilebrand: not called CC=3 SCAR=24.8
Pod documented
487 0 my $ipaddr = shift(@_);
488 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
489 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
490 0 return $obj->get_ipv4_record($ipnum, MOBILEBRAND);
491 } else {
492 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
493 0 return $obj->get_ipv6_record($ipnum, MOBILEBRAND);
494 } else {
495 0 return INVALID_IP_ADDRESS;
496 }
497 }
498 }
499  
500 sub get_elevation {
501 0 ▶ my $obj = shift(@_);
Subroutine get_elevation: not called CC=3 SCAR=24.8
Pod documented
502 0 my $ipaddr = shift(@_);
503 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
504 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
505 0 return $obj->get_ipv4_record($ipnum, ELEVATION);
506 } else {
507 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
508 0 return $obj->get_ipv6_record($ipnum, ELEVATION);
509 } else {
510 0 return INVALID_IP_ADDRESS;
511 }
512 }
513 }
514  
515 sub get_usagetype {
516 0 ▶ my $obj = shift(@_);
Subroutine get_usagetype: not called CC=3 SCAR=24.8
Pod documented
517 0 my $ipaddr = shift(@_);
518 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
519 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
520 0 return $obj->get_ipv4_record($ipnum, USAGETYPE);
521 } else {
522 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
523 0 return $obj->get_ipv6_record($ipnum, USAGETYPE);
524 } else {
525 0 return INVALID_IP_ADDRESS;
526 }
527 }
528 }
529  
530 sub get_addresstype {
531 0 ▶ my $obj = shift(@_);
Subroutine get_addresstype: not called CC=3 SCAR=24.8
Pod documented
532 0 my $ipaddr = shift(@_);
533 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
534 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
535 0 return $obj->get_ipv4_record($ipnum, ADDRESSTYPE);
536 } else {
537 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
538 0 return $obj->get_ipv6_record($ipnum, ADDRESSTYPE);
539 } else {
540 0 return INVALID_IP_ADDRESS;
541 }
542 }
543 }
544  
545 sub get_category {
546 0 ▶ my $obj = shift(@_);
Subroutine get_category: not called CC=3 SCAR=24.8
Pod documented
547 0 my $ipaddr = shift(@_);
548 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
549 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
550 0 return $obj->get_ipv4_record($ipnum, CATEGORY);
551 } else {
552 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
553 0 return $obj->get_ipv6_record($ipnum, CATEGORY);
554 } else {
555 0 return INVALID_IP_ADDRESS;
556 }
557 }
558 }
559  
560 sub get_district {
561 0 ▶ my $obj = shift(@_);
Subroutine get_district: not called CC=3 SCAR=24.8
Pod documented
562 0 my $ipaddr = shift(@_);
563 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
564 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
565 0 return $obj->get_ipv4_record($ipnum, DISTRICT);
566 } else {
567 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
568 0 return $obj->get_ipv6_record($ipnum, DISTRICT);
569 } else {
570 0 return INVALID_IP_ADDRESS;
571 }
572 }
573 }
574  
575 sub get_asn {
576 0 ▶ my $obj = shift(@_);
Subroutine get_asn: not called CC=3 SCAR=24.8
Pod documented
577 0 my $ipaddr = shift(@_);
578 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
579 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
580 0 return $obj->get_ipv4_record($ipnum, ASN);
581 } else {
582 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
583 0 return $obj->get_ipv6_record($ipnum, ASN);
584 } else {
585 0 return INVALID_IP_ADDRESS;
586 }
587 }
588 }
589  
590 sub get_as {
591 0 ▶ my $obj = shift(@_);
Subroutine get_as: not called CC=3 SCAR=24.8
Pod documented
592 0 my $ipaddr = shift(@_);
593 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
594 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
595 0 return $obj->get_ipv4_record($ipnum, AS);
596 } else {
597 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
598 0 return $obj->get_ipv6_record($ipnum, AS);
599 } else {
600 0 return INVALID_IP_ADDRESS;
601 }
602 }
603 }
604  
605 sub get_all {
606 0 ▶ my $obj = shift(@_);
Subroutine get_all: not called CC=3 SCAR=24.8
Pod documented
607 0 my $ipaddr = shift(@_);
608 0 my ($ipv, $ipnum) = $obj->validate_ip($ipaddr);
609 0 ▶ if ($ipv == 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['4']}) { } 0 0 0
610 0 return $obj->get_ipv4_record($ipnum, ALL);
611 } else {
612 0 ▶ if ($ipv == 6) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipv == {sign => '+', value => ['6']}) { } 0 0 0
613 0 return $obj->get_ipv6_record($ipnum, ALL);
614 } else {
615 0 return (INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS, INVALID_IP_ADDRESS);
616 }
617 }
618 }
619  
620 sub get_ipv6_record {
621 10 ▶ my $obj = shift(@_);
Subroutine get_ipv6_record: called CC=112 SCAR=85.3
Pod undocumented
622 10 my $ipnum = shift(@_);
623 10 my $mode = shift(@_);
624 10 my $dbtype = $obj->{"databasetype"};
625  
626 10 ▶ if ($ipnum eq "") {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipnum eq "") 0 10 10
627 0 ▶ if ($mode == ALL) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == {sign => '+', value => ['100']}) { } 0 0 0
628 0 return (NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP);
629 } else {
630 0 return NO_IP;
631 }
632 }
633  
634 10 ▶ if (($mode == COUNTRYSHORT) && ($IPV6_COUNTRY_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
0100
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
635 0 return NOT_SUPPORTED;
636 }
637 10 ▶ if (($mode == COUNTRYLONG) && ($IPV6_COUNTRY_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
638 0 return NOT_SUPPORTED;
639 }
640 10 ▶ if (($mode == REGION) && ($IPV6_REGION_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
641 0 return NOT_SUPPORTED;
642 }
643 10 ▶ if (($mode == CITY) && ($IPV6_CITY_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
644 0 return NOT_SUPPORTED;
645 }
646 10 ▶ if (($mode == ISP) && ($IPV6_ISP_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
647 0 return NOT_SUPPORTED;
648 }
649 10 ▶ if (($mode == LATITUDE) && ($IPV6_LATITUDE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
650 0 return NOT_SUPPORTED;
651 }
652 10 ▶ if (($mode == LONGITUDE) && ($IPV6_LONGITUDE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
653 0 return NOT_SUPPORTED;
654 }
655 10 ▶ if (($mode == DOMAIN) && ($IPV6_DOMAIN_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
656 0 return NOT_SUPPORTED;
657 }
658 10 ▶ if (($mode == ZIPCODE) && ($IPV6_ZIPCODE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
659 0 return NOT_SUPPORTED;
660 }
661 10 ▶ if (($mode == TIMEZONE) && ($IPV6_TIMEZONE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
662 0 return NOT_SUPPORTED;
663 }
664 10 ▶ if (($mode == NETSPEED) && ($IPV6_NETSPEED_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
665 0 return NOT_SUPPORTED;
666 }
667 10 ▶ if (($mode == IDDCODE) && ($IPV6_IDDCODE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
668 0 return NOT_SUPPORTED;
669 }
670 10 ▶ if (($mode == AREACODE) && ($IPV6_AREACODE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
671 0 return NOT_SUPPORTED;
672 }
673 10 ▶ if (($mode == WEATHERSTATIONCODE) && ($IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
674 0 return NOT_SUPPORTED;
675 }
676 10 ▶ if (($mode == WEATHERSTATIONNAME) && ($IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
677 0 return NOT_SUPPORTED;
678 }
679 10 ▶ if (($mode == MCC) && ($IPV6_MCC_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
680 0 return NOT_SUPPORTED;
681 }
682 10 ▶ if (($mode == MNC) && ($IPV6_MNC_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
683 0 return NOT_SUPPORTED;
684 }
685 10 ▶ if (($mode == MOBILEBRAND) && ($IPV6_MOBILEBRAND_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
686 0 return NOT_SUPPORTED;
687 }
688 10 ▶ if (($mode == ELEVATION) && ($IPV6_ELEVATION_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
689 0 return NOT_SUPPORTED;
690 }
691 10 ▶ if (($mode == USAGETYPE) && ($IPV6_USAGETYPE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
692 0 return NOT_SUPPORTED;
693 }
694 10 ▶ if (($mode == ADDRESSTYPE) && ($IPV6_ADDRESSTYPE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
695 0 return NOT_SUPPORTED;
696 }
697 10 ▶ if (($mode == CATEGORY) && ($IPV6_CATEGORY_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
698 0 return NOT_SUPPORTED;
699 }
700 10 ▶ if (($mode == DISTRICT) && ($IPV6_DISTRICT_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
701 0 return NOT_SUPPORTED;
702 }
703 10 ▶ if (($mode == ASN) && ($IPV6_ASN_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
704 0 return NOT_SUPPORTED;
705 }
706 10 ▶ if (($mode == AS) && ($IPV6_AS_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IPV6_AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IPV6_AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IPV6_AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
707 0 return NOT_SUPPORTED;
708 }
709  
710 10 my $realipno = $ipnum;
711 10 my $handle = $obj->{"filehandle"};
712 10 my $baseaddr = $obj->{"ipv6databaseaddr"};
713 10 my $dbcount = $obj->{"ipv6databasecount"};
714 10 my $dbcolumn = $obj->{"databasecolumn"};
715 10 my $indexbaseaddr = $obj->{"ipv6indexbaseaddr"};
716  
717 10 ▶ if ($dbcount == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($dbcount == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
718 0 ▶ if ($mode == ALL) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == {sign => '+', value => ['100']}) { } 0 0 0
719 0 return (IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN, IPV6_ADDRESS_IN_IPV4_BIN);
720 } else {
721 0 return IPV6_ADDRESS_IN_IPV4_BIN;
722 }
723 }
724  
725 10 my $ipnum1_2 = new Math::BigInt($ipnum);
726 10 my $remainder = 0;
727 10 ($ipnum1_2, $remainder) = $ipnum1_2->bdiv(2**112);
728 10 my $indexaddr = $indexbaseaddr + ($ipnum1_2 << 3);
729  
730 10 my $low = 0;
731 10 my $high = $dbcount;
732 10 ▶ if ($indexbaseaddr > 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($indexbaseaddr > bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 10 0 10
733 10 ($low, $high) = $obj->read32x2($handle, $indexaddr);
734 }
735  
736 10 my $mid = 0;
737 10 my $ipfrom = 0;
738 10 my $ipto = 0;
739 10 my $ipno = 0;
740  
741 10 $ipno = $realipno;
742 10 ▶ if ($realipno == "340282366920938463463374607431768211455") {
Branch: 1 branch
BranchTrueFalseTotal
if ($realipno == "340282366920938463463374607431768211455") 0 10 10
743 0 $ipno = $ipno->bsub(1);
744 }
745  
746 10 my $raw_positions_row;
747
748 10 ▶ while ($low <= $high) {
Branch: 1 branch
BranchTrueFalseTotal
if ($low <= $high) 104 0 104
749 104 $mid = int(($low + $high)/2);
750 104 ($ipfrom, $ipto, $raw_positions_row) = $obj->readRow128($handle, $baseaddr + $mid * (($dbcolumn * 4) + 12), $dbcolumn);
751
752 104 ▶ if (($ipno >= $ipfrom) && ($ipno < $ipto)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipno >= $ipfrom and $ipno < $ipto) { } 10 94 104
Condition100%3/3
$ipno >= $ipfrom and $ipno < $ipto
!ll&&!rl&&r
821210
MC/DC100%2/2
$ipno >= $ipfrom and $ipno < $ipto
$ipno >= $ipfrom $ipno < $ipto
Truth table100%3/3
A and B
A= $ipno >= $ipfromB= $ipno < $ipto
ABresult
0X0
100
111
753 10 my $row_pointer = $baseaddr + $mid * (($dbcolumn * 4) + 12);
754
755 10 ▶ if ($mode == ALL) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [100], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
756 0 my $country_short = NOT_SUPPORTED;
757 0 my $country_long = NOT_SUPPORTED;
758 0 my $region = NOT_SUPPORTED;
759 0 my $city = NOT_SUPPORTED;
760 0 my $isp = NOT_SUPPORTED;
761 0 my $latitude = NOT_SUPPORTED;
762 0 my $longitude = NOT_SUPPORTED;
763 0 my $domain = NOT_SUPPORTED;
764 0 my $zipcode = NOT_SUPPORTED;
765 0 my $timezone = NOT_SUPPORTED;
766 0 my $netspeed = NOT_SUPPORTED;
767 0 my $iddcode = NOT_SUPPORTED;
768 0 my $areacode = NOT_SUPPORTED;
769 0 my $weatherstationcode = NOT_SUPPORTED;
770 0 my $weatherstationname = NOT_SUPPORTED;
771 0 my $mcc = NOT_SUPPORTED;
772 0 my $mnc = NOT_SUPPORTED;
773 0 my $mobilebrand = NOT_SUPPORTED;
774 0 my $elevation = NOT_SUPPORTED;
775 0 my $usagetype = NOT_SUPPORTED;
776 0 my $addresstype = NOT_SUPPORTED;
777 0 my $category = NOT_SUPPORTED;
778 0 my $district = NOT_SUPPORTED;
779 0 my $asn = NOT_SUPPORTED;
780 0 my $as = NOT_SUPPORTED;
781
782 0 ▶ if ($IPV6_COUNTRY_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_COUNTRY_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
783 0 $country_short = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_COUNTRY_POSITION[$dbtype]+2), 4)));
784 0 $country_long = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_COUNTRY_POSITION[$dbtype]+2), 4)) + 3);
785 }
786 0 ▶ if ($IPV6_REGION_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_REGION_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
787 0 $region = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_REGION_POSITION[$dbtype]+2), 4)));
788 }
789 0 ▶ if ($IPV6_CITY_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_CITY_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
790 0 $city = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_CITY_POSITION[$dbtype]+2), 4)));
791 }
792 0 ▶ if ($IPV6_ISP_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_ISP_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
793 0 $isp = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ISP_POSITION[$dbtype]+2), 4)));
794 }
795 0 ▶ if ($IPV6_LATITUDE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_LATITUDE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
796 0 $latitude = $obj->readFloat(substr($raw_positions_row, 4 * ($IPV6_LATITUDE_POSITION[$dbtype]+2)));
797 0 $latitude = sprintf("%.6f", $latitude);
798 }
799 0 ▶ if ($IPV6_LONGITUDE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_LONGITUDE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
800 0 $longitude = $obj->readFloat(substr($raw_positions_row, 4 * ($IPV6_LONGITUDE_POSITION[$dbtype]+2)));
801 0 $longitude = sprintf("%.6f", $longitude);
802 }
803 0 ▶ if ($IPV6_DOMAIN_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_DOMAIN_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
804 0 $domain = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_DOMAIN_POSITION[$dbtype]+2), 4)));
805 }
806 0 ▶ if ($IPV6_ZIPCODE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_ZIPCODE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
807 0 $zipcode = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ZIPCODE_POSITION[$dbtype]+2), 4)));
808 }
809 0 ▶ if ($IPV6_TIMEZONE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_TIMEZONE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
810 0 $timezone = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_TIMEZONE_POSITION[$dbtype]+2), 4)));
811 }
812 0 ▶ if ($IPV6_NETSPEED_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_NETSPEED_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
813 0 $netspeed = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_NETSPEED_POSITION[$dbtype]+2), 4)));
814 }
815 0 ▶ if ($IPV6_IDDCODE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_IDDCODE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
816 0 $iddcode = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_IDDCODE_POSITION[$dbtype]+2), 4)));
817 }
818 0 ▶ if ($IPV6_AREACODE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_AREACODE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
819 0 $areacode = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_AREACODE_POSITION[$dbtype]+2), 4)));
820 }
821 0 ▶ if ($IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_WEATHERSTATIONCODE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
822 0 $weatherstationcode = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_WEATHERSTATIONCODE_POSITION[$dbtype]+2), 4)));
823 }
824 0 ▶ if ($IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_WEATHERSTATIONNAME_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
825 0 $weatherstationname = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_WEATHERSTATIONNAME_POSITION[$dbtype]+2), 4)));
826 }
827 0 ▶ if ($IPV6_MCC_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_MCC_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
828 0 $mcc = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_MCC_POSITION[$dbtype]+2), 4)));
829 }
830 0 ▶ if ($IPV6_MNC_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_MNC_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
831 0 $mnc = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_MNC_POSITION[$dbtype]+2), 4)));
832 }
833 0 ▶ if ($IPV6_MOBILEBRAND_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_MOBILEBRAND_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
834 0 $mobilebrand = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_MOBILEBRAND_POSITION[$dbtype]+2), 4)));
835 }
836 0 ▶ if ($IPV6_ELEVATION_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_ELEVATION_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
837 0 $elevation = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ELEVATION_POSITION[$dbtype]+2), 4)));
838 }
839 0 ▶ if ($IPV6_USAGETYPE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_USAGETYPE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
840 0 $usagetype = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_USAGETYPE_POSITION[$dbtype]+2), 4)));
841 }
842 0 ▶ if ($IPV6_ADDRESSTYPE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_ADDRESSTYPE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
843 0 $addresstype = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ADDRESSTYPE_POSITION[$dbtype]+2), 4)));
844 }
845 0 ▶ if ($IPV6_CATEGORY_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_CATEGORY_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
846 0 $category = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_CATEGORY_POSITION[$dbtype]+2), 4)));
847 }
848 0 ▶ if ($IPV6_DISTRICT_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_DISTRICT_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
849 0 $district = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_DISTRICT_POSITION[$dbtype]+2), 4)));
850 }
851 0 ▶ if ($IPV6_ASN_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_ASN_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
852 0 $asn = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ASN_POSITION[$dbtype]+2), 4)));
853 }
854 0 ▶ if ($IPV6_AS_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IPV6_AS_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
855 0 $as = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_AS_POSITION[$dbtype]+2), 4)));
856 }
857  
858 0 return ($country_short, $country_long, $region, $city, $latitude, $longitude, $zipcode, $timezone, $isp, $domain, $netspeed, $iddcode, $areacode, $weatherstationcode, $weatherstationname, $mcc, $mnc, $mobilebrand, $elevation, $usagetype, $addresstype, $category, $district, $asn, $as);
859 }
860 10 ▶ if ($mode == COUNTRYSHORT) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 10 0 10
861 10 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_COUNTRY_POSITION[$dbtype]+2), 4)));
862 }
863 0 ▶ if ($mode == COUNTRYLONG) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
864 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_COUNTRY_POSITION[$dbtype]+2), 4)) + 3);
865 }
866 0 ▶ if ($mode == REGION) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
867 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_REGION_POSITION[$dbtype]+2), 4)));
868 }
869 0 ▶ if ($mode == CITY) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
870 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_CITY_POSITION[$dbtype]+2), 4)));
871 }
872 0 ▶ if ($mode == ISP) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
873 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ISP_POSITION[$dbtype]+2), 4)));
874 }
875 0 ▶ if ($mode == LATITUDE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
876 0 my $lat = $obj->readFloat(substr($raw_positions_row, 4 * ($IPV6_LATITUDE_POSITION[$dbtype]+2)));
877 0 $lat = sprintf("%.6f", $lat);
878 0 return $lat;
879 }
880 0 ▶ if ($mode == LONGITUDE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
881 0 my $lon = $obj->readFloat(substr($raw_positions_row, 4 * ($IPV6_LONGITUDE_POSITION[$dbtype]+2)));
882 0 $lon = sprintf("%.6f", $lon);
883 0 return $lon;
884 }
885 0 ▶ if ($mode == DOMAIN) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
886 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_DOMAIN_POSITION[$dbtype]+2), 4)));
887 }
888 0 ▶ if ($mode == ZIPCODE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
889 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ZIPCODE_POSITION[$dbtype]+2), 4)));
890 }
891 0 ▶ if ($mode == TIMEZONE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
892 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_TIMEZONE_POSITION[$dbtype]+2), 4)));
893 }
894 0 ▶ if ($mode == NETSPEED) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
895 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_NETSPEED_POSITION[$dbtype]+2), 4)));
896 }
897 0 ▶ if ($mode == IDDCODE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
898 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_IDDCODE_POSITION[$dbtype]+2), 4)));
899 }
900 0 ▶ if ($mode == AREACODE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
901 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_AREACODE_POSITION[$dbtype]+2), 4)));
902 }
903 0 ▶ if ($mode == WEATHERSTATIONCODE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
904 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_WEATHERSTATIONCODE_POSITION[$dbtype]+2), 4)));
905 }
906 0 ▶ if ($mode == WEATHERSTATIONNAME) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
907 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_WEATHERSTATIONNAME_POSITION[$dbtype]+2), 4)));
908 }
909 0 ▶ if ($mode == MCC) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
910 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_MCC_POSITION[$dbtype]+2), 4)));
911 }
912 0 ▶ if ($mode == MNC) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
913 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_MNC_POSITION[$dbtype]+2), 4)));
914 }
915 0 ▶ if ($mode == MOBILEBRAND) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
916 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_MOBILEBRAND_POSITION[$dbtype]+2), 4)));
917 }
918 0 ▶ if ($mode == ELEVATION) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
919 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ELEVATION_POSITION[$dbtype]+2), 4)));
920 }
921 0 ▶ if ($mode == USAGETYPE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
922 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_USAGETYPE_POSITION[$dbtype]+2), 4)));
923 }
924 0 ▶ if ($mode == ADDRESSTYPE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
925 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ADDRESSTYPE_POSITION[$dbtype]+2), 4)));
926 }
927 0 ▶ if ($mode == CATEGORY) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
928 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_CATEGORY_POSITION[$dbtype]+2), 4)));
929 }
930 0 ▶ if ($mode == DISTRICT) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
931 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_DISTRICT_POSITION[$dbtype]+2), 4)));
932 }
933 0 ▶ if ($mode == ASN) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
934 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_ASN_POSITION[$dbtype]+2), 4)));
935 }
936 0 ▶ if ($mode == AS) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
937 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IPV6_AS_POSITION[$dbtype]+2), 4)));
938 }
939 } else {
940 94 ▶ if ($ipno < $ipfrom) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipno < $ipfrom) { } 82 12 94
941 82 $high = $mid - 1;
942 } else {
943 12 $low = $mid + 1;
944 }
945 }
946 }
947 0 ▶ if ($mode == ALL) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == {sign => '+', value => ['100']}) { } 0 0 0
948 0 return (UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN);
949 } else {
950 0 return UNKNOWN;
951 }
952 }
953  
954 sub get_ipv4_record {
955 10 ▶ my $obj = shift(@_);
Subroutine get_ipv4_record: called CC=110 SCAR=85.1
Pod undocumented
956 10 my $ipnum = shift(@_);
957 10 my $mode = shift(@_);
958 10 my $dbtype= $obj->{"databasetype"};
959
960 10 ▶ if ($ipnum eq "") {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipnum eq "") 0 10 10
961 0 ▶ if ($mode == ALL) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == {sign => '+', value => ['100']}) { } 0 0 0
962 0 return (NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP, NO_IP);
963 } else {
964 0 return NO_IP;
965 }
966 }
967
968 10 ▶ if (($mode == COUNTRYSHORT) && ($COUNTRY_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
0100
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
969 0 return NOT_SUPPORTED;
970 }
971 10 ▶ if (($mode == COUNTRYLONG) && ($COUNTRY_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $COUNTRY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
972 0 return NOT_SUPPORTED;
973 }
974 10 ▶ if (($mode == REGION) && ($REGION_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $REGION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
975 0 return NOT_SUPPORTED;
976 }
977 10 ▶ if (($mode == CITY) && ($CITY_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $CITY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
978 0 return NOT_SUPPORTED;
979 }
980 10 ▶ if (($mode == ISP) && ($ISP_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $ISP_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
981 0 return NOT_SUPPORTED;
982 }
983 10 ▶ if (($mode == LATITUDE) && ($LATITUDE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $LATITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
984 0 return NOT_SUPPORTED;
985 }
986 10 ▶ if (($mode == LONGITUDE) && ($LONGITUDE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $LONGITUDE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
987 0 return NOT_SUPPORTED;
988 }
989 10 ▶ if (($mode == DOMAIN) && ($DOMAIN_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $DOMAIN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
990 0 return NOT_SUPPORTED;
991 }
992 10 ▶ if (($mode == ZIPCODE) && ($ZIPCODE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $ZIPCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
993 0 return NOT_SUPPORTED;
994 }
995 10 ▶ if (($mode == TIMEZONE) && ($TIMEZONE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $TIMEZONE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
996 0 return NOT_SUPPORTED;
997 }
998 10 ▶ if (($mode == NETSPEED) && ($NETSPEED_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $NETSPEED_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
999 0 return NOT_SUPPORTED;
1000 }
1001 10 ▶ if (($mode == IDDCODE) && ($IDDCODE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $IDDCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1002 0 return NOT_SUPPORTED;
1003 }
1004 10 ▶ if (($mode == AREACODE) && ($AREACODE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $AREACODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1005 0 return NOT_SUPPORTED;
1006 }
1007 10 ▶ if (($mode == WEATHERSTATIONCODE) && ($WEATHERSTATIONCODE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $WEATHERSTATIONCODE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1008 0 return NOT_SUPPORTED;
1009 }
1010 10 ▶ if (($mode == WEATHERSTATIONNAME) && ($WEATHERSTATIONNAME_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $WEATHERSTATIONNAME_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1011 0 return NOT_SUPPORTED;
1012 }
1013 10 ▶ if (($mode == MCC) && ($MCC_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $MCC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1014 0 return NOT_SUPPORTED;
1015 }
1016 10 ▶ if (($mode == MNC) && ($MNC_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $MNC_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1017 0 return NOT_SUPPORTED;
1018 }
1019 10 ▶ if (($mode == MOBILEBRAND) && ($MOBILEBRAND_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $MOBILEBRAND_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1020 0 return NOT_SUPPORTED;
1021 }
1022 10 ▶ if (($mode == ELEVATION) && ($ELEVATION_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $ELEVATION_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1023 0 return NOT_SUPPORTED;
1024 }
1025 10 ▶ if (($mode == USAGETYPE) && ($USAGETYPE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $USAGETYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1026 0 return NOT_SUPPORTED;
1027 }
1028 10 ▶ if (($mode == ADDRESSTYPE) && ($ADDRESSTYPE_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $ADDRESSTYPE_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1029 0 return NOT_SUPPORTED;
1030 }
1031 10 ▶ if (($mode == CATEGORY) && ($CATEGORY_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $CATEGORY_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1032 0 return NOT_SUPPORTED;
1033 }
1034 10 ▶ if (($mode == DISTRICT) && ($DISTRICT_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $DISTRICT_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1035 0 return NOT_SUPPORTED;
1036 }
1037 10 ▶ if (($mode == ASN) && ($ASN_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $ASN_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1038 0 return NOT_SUPPORTED;
1039 }
1040 10 ▶ if (($mode == AS) && ($AS_POSITION[$dbtype] == 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
1000
MC/DC0%0/2
$mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $AS_POSITION[$dbtype] == bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1041 0 return NOT_SUPPORTED;
1042 }
1043
1044 10 my $realipno = $ipnum;
1045 10 my $handle = $obj->{"filehandle"};
1046 10 my $baseaddr = $obj->{"ipv4databaseaddr"};
1047 10 my $dbcount = $obj->{"ipv4databasecount"};
1048 10 my $dbcolumn = $obj->{"databasecolumn"};
1049 10 my $indexbaseaddr = $obj->{"ipv4indexbaseaddr"};
1050  
1051 10 my $ipnum1_2 = int($ipnum >> 16);
1052 10 my $indexaddr = $indexbaseaddr + ($ipnum1_2 << 3);
1053  
1054 10 my $low = 0;
1055 10 my $high = $dbcount;
1056 10 ▶ if ($indexbaseaddr > 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($indexbaseaddr > bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 10 0 10
1057 10 ($low, $high) = $obj->read32x2($handle, $indexaddr);
1058 }
1059 10 my $mid = 0;
1060 10 my $ipfrom = 0;
1061 10 my $ipto = 0;
1062 10 my $ipno = 0;
1063  
1064 10 ▶ if ($realipno == MAX_IPV4_RANGE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($realipno == {sign => '+', value => [294967295, 4]}) { } 0 10 10
1065 0 $ipno = $realipno - 1;
1066 } else {
1067 10 $ipno = $realipno;
1068 }
1069  
1070 10 my $raw_positions_row;
1071  
1072 10 ▶ while ($low <= $high) {
Branch: 1 branch
BranchTrueFalseTotal
if ($low <= $high) 15 0 15
1073 15 $mid = int(($low + $high) >> 1);
1074  
1075 15 ($ipfrom, $ipto, $raw_positions_row) = $obj->readRow32($handle, $baseaddr + $mid * $dbcolumn * 4, $dbcolumn);
1076  
1077 15 ▶ if (($ipno >= $ipfrom) && ($ipno < $ipto)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipno >= $ipfrom and $ipno < $ipto) { } 10 5 15
Condition100%3/3
$ipno >= $ipfrom and $ipno < $ipto
!ll&&!rl&&r
4110
MC/DC100%2/2
$ipno >= $ipfrom and $ipno < $ipto
$ipno >= $ipfrom $ipno < $ipto
Truth table100%3/3
A and B
A= $ipno >= $ipfromB= $ipno < $ipto
ABresult
0X0
100
111
1078 10 ▶ if ($mode == ALL) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [100], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
1079 0 my $country_short = NOT_SUPPORTED;
1080 0 my $country_long = NOT_SUPPORTED;
1081 0 my $region = NOT_SUPPORTED;
1082 0 my $city = NOT_SUPPORTED;
1083 0 my $isp = NOT_SUPPORTED;
1084 0 my $latitude = NOT_SUPPORTED;
1085 0 my $longitude = NOT_SUPPORTED;
1086 0 my $domain = NOT_SUPPORTED;
1087 0 my $zipcode = NOT_SUPPORTED;
1088 0 my $timezone = NOT_SUPPORTED;
1089 0 my $netspeed = NOT_SUPPORTED;
1090 0 my $iddcode = NOT_SUPPORTED;
1091 0 my $areacode = NOT_SUPPORTED;
1092 0 my $weatherstationcode = NOT_SUPPORTED;
1093 0 my $weatherstationname = NOT_SUPPORTED;
1094 0 my $mcc = NOT_SUPPORTED;
1095 0 my $mnc = NOT_SUPPORTED;
1096 0 my $mobilebrand = NOT_SUPPORTED;
1097 0 my $elevation = NOT_SUPPORTED;
1098 0 my $usagetype = NOT_SUPPORTED;
1099 0 my $addresstype = NOT_SUPPORTED;
1100 0 my $category = NOT_SUPPORTED;
1101 0 my $district = NOT_SUPPORTED;
1102 0 my $asn = NOT_SUPPORTED;
1103 0 my $as = NOT_SUPPORTED;
1104
1105 0 ▶ if ($COUNTRY_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($COUNTRY_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1106 0 $country_short = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($COUNTRY_POSITION[$dbtype]-1), 4)));
1107 0 $country_long = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($COUNTRY_POSITION[$dbtype]-1), 4)) + 3);
1108 }
1109  
1110 0 ▶ if ($REGION_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($REGION_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1111 0 $region = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($REGION_POSITION[$dbtype]-1), 4)));
1112 }
1113 0 ▶ if ($CITY_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($CITY_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1114 0 $city = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($CITY_POSITION[$dbtype]-1), 4)));
1115 }
1116 0 ▶ if ($ISP_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ISP_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1117 0 $isp = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ISP_POSITION[$dbtype]-1), 4)));
1118 }
1119 0 ▶ if ($LATITUDE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($LATITUDE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1120 0 $latitude = $obj->readFloat(substr($raw_positions_row, 4 * ($LATITUDE_POSITION[$dbtype]-1), 4));
1121 0 $latitude = sprintf("%.6f", $latitude);
1122 }
1123 0 ▶ if ($LONGITUDE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($LONGITUDE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1124 0 $longitude = $obj->readFloat(substr($raw_positions_row, 4 * ($LONGITUDE_POSITION[$dbtype]-1), 4));
1125 0 $longitude = sprintf("%.6f", $longitude);
1126 }
1127 0 ▶ if ($DOMAIN_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($DOMAIN_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1128 0 $domain = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($DOMAIN_POSITION[$dbtype]-1), 4)));
1129 }
1130 0 ▶ if ($ZIPCODE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ZIPCODE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1131 0 $zipcode = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ZIPCODE_POSITION[$dbtype]-1), 4)));
1132 }
1133 0 ▶ if ($TIMEZONE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($TIMEZONE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1134 0 $timezone = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($TIMEZONE_POSITION[$dbtype]-1), 4)));
1135 }
1136 0 ▶ if ($NETSPEED_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($NETSPEED_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1137 0 $netspeed = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($NETSPEED_POSITION[$dbtype]-1), 4)));
1138 }
1139 0 ▶ if ($IDDCODE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($IDDCODE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1140 0 $iddcode = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IDDCODE_POSITION[$dbtype]-1), 4)));
1141 }
1142 0 ▶ if ($AREACODE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($AREACODE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1143 0 $areacode = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($AREACODE_POSITION[$dbtype]-1), 4)));
1144 }
1145 0 ▶ if ($WEATHERSTATIONCODE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($WEATHERSTATIONCODE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1146 0 $weatherstationcode = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($WEATHERSTATIONCODE_POSITION[$dbtype]-1), 4)));
1147 }
1148 0 ▶ if ($WEATHERSTATIONNAME_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($WEATHERSTATIONNAME_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1149 0 $weatherstationname = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($WEATHERSTATIONNAME_POSITION[$dbtype]-1), 4)));
1150 }
1151 0 ▶ if ($MCC_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($MCC_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1152 0 $mcc = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($MCC_POSITION[$dbtype]-1), 4)));
1153 }
1154 0 ▶ if ($MNC_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($MNC_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1155 0 $mnc = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($MNC_POSITION[$dbtype]-1), 4)));
1156 }
1157 0 ▶ if ($MOBILEBRAND_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($MOBILEBRAND_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1158 0 $mobilebrand = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($MOBILEBRAND_POSITION[$dbtype]-1), 4)));
1159 }
1160 0 ▶ if ($ELEVATION_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ELEVATION_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1161 0 $elevation = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ELEVATION_POSITION[$dbtype]-1), 4)));
1162 }
1163 0 ▶ if ($USAGETYPE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($USAGETYPE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1164 0 $usagetype = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($USAGETYPE_POSITION[$dbtype]-1), 4)));
1165 }
1166 0 ▶ if ($ADDRESSTYPE_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ADDRESSTYPE_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1167 0 $addresstype = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ADDRESSTYPE_POSITION[$dbtype]-1), 4)));
1168 }
1169 0 ▶ if ($CATEGORY_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($CATEGORY_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1170 0 $category = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($CATEGORY_POSITION[$dbtype]-1), 4)));
1171 }
1172 0 ▶ if ($DISTRICT_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($DISTRICT_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1173 0 $district = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($DISTRICT_POSITION[$dbtype]-1), 4)));
1174 }
1175 0 ▶ if ($ASN_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ASN_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1176 0 $asn = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ASN_POSITION[$dbtype]-1), 4)));
1177 }
1178 0 ▶ if ($AS_POSITION[$dbtype] != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($AS_POSITION[$dbtype] != bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1179 0 $as = $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($AS_POSITION[$dbtype]-1), 4)));
1180 }
1181  
1182 0 return ($country_short, $country_long, $region, $city, $latitude, $longitude, $zipcode, $timezone, $isp, $domain, $netspeed, $iddcode, $areacode, $weatherstationcode, $weatherstationname, $mcc, $mnc, $mobilebrand, $elevation, $usagetype, $addresstype, $category, $district, $asn, $as);
1183 }
1184 10 ▶ if ($mode == COUNTRYSHORT) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 10 0 10
1185 10 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($COUNTRY_POSITION[$dbtype]-1), 4)));
1186 }
1187 0 ▶ if ($mode == COUNTRYLONG) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [2], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1188 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($COUNTRY_POSITION[$dbtype]-1), 4)) + 3);
1189 }
1190 0 ▶ if ($mode == REGION) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1191 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($REGION_POSITION[$dbtype]-1), 4)));
1192 }
1193 0 ▶ if ($mode == CITY) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1194 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($CITY_POSITION[$dbtype]-1), 4)));
1195 }
1196 0 ▶ if ($mode == ISP) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [5], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1197 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ISP_POSITION[$dbtype]-1), 4)));
1198 }
1199 0 ▶ if ($mode == LATITUDE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [6], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1200 0 my $lat = $obj->readFloat(substr($raw_positions_row, 4 * ($LATITUDE_POSITION[$dbtype]-1), 4));
1201 0 $lat = sprintf("%.6f", $lat);
1202 0 return $lat;
1203 }
1204 0 ▶ if ($mode == LONGITUDE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [7], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1205 0 my $lon = $obj->readFloat(substr($raw_positions_row, 4 * ($LONGITUDE_POSITION[$dbtype]-1), 4));
1206 0 $lon = sprintf("%.6f", $lon);
1207 0 return $lon;
1208 }
1209 0 ▶ if ($mode == DOMAIN) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1210 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($DOMAIN_POSITION[$dbtype]-1), 4)));
1211 }
1212 0 ▶ if ($mode == ZIPCODE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [9], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1213 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ZIPCODE_POSITION[$dbtype]-1), 4)));
1214 }
1215 0 ▶ if ($mode == TIMEZONE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [10], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1216 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($TIMEZONE_POSITION[$dbtype]-1), 4)));
1217 }
1218 0 ▶ if ($mode == NETSPEED) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [11], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1219 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($NETSPEED_POSITION[$dbtype]-1), 4)));
1220 }
1221 0 ▶ if ($mode == IDDCODE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [12], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1222 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($IDDCODE_POSITION[$dbtype]-1), 4)));
1223 }
1224 0 ▶ if ($mode == AREACODE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [13], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1225 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($AREACODE_POSITION[$dbtype]-1), 4)));
1226 }
1227 0 ▶ if ($mode == WEATHERSTATIONCODE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [14], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1228 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($WEATHERSTATIONCODE_POSITION[$dbtype]-1), 4)));
1229 }
1230 0 ▶ if ($mode == WEATHERSTATIONNAME) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1231 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($WEATHERSTATIONNAME_POSITION[$dbtype]-1), 4)));
1232 }
1233 0 ▶ if ($mode == MCC) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [16], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1234 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($MCC_POSITION[$dbtype]-1), 4)));
1235 }
1236 0 ▶ if ($mode == MNC) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [17], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1237 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($MNC_POSITION[$dbtype]-1), 4)));
1238 }
1239 0 ▶ if ($mode == MOBILEBRAND) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [18], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1240 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($MOBILEBRAND_POSITION[$dbtype]-1), 4)));
1241 }
1242 0 ▶ if ($mode == ELEVATION) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [19], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1243 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ELEVATION_POSITION[$dbtype]-1), 4)));
1244 }
1245 0 ▶ if ($mode == USAGETYPE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [20], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1246 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($USAGETYPE_POSITION[$dbtype]-1), 4)));
1247 }
1248 0 ▶ if ($mode == ADDRESSTYPE) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [21], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1249 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ADDRESSTYPE_POSITION[$dbtype]-1), 4)));
1250 }
1251 0 ▶ if ($mode == CATEGORY) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [22], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1252 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($CATEGORY_POSITION[$dbtype]-1), 4)));
1253 }
1254 0 ▶ if ($mode == DISTRICT) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [23], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1255 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($DISTRICT_POSITION[$dbtype]-1), 4)));
1256 }
1257 0 ▶ if ($mode == ASN) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [24], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1258 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($ASN_POSITION[$dbtype]-1), 4)));
1259 }
1260 0 ▶ if ($mode == AS) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == bless( {"sign" => "+","value" => bless( [25], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 0 0
1261 0 return $obj->readStr($handle, unpack("V", substr($raw_positions_row, 4 * ($AS_POSITION[$dbtype]-1), 4)));
1262 }
1263 } else {
1264 5 ▶ if ($ipno < $ipfrom) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipno < $ipfrom) { } 4 1 5
1265 4 $high = $mid - 1;
1266 } else {
1267 1 $low = $mid + 1;
1268 }
1269 }
1270 }
1271 0 ▶ if ($mode == ALL) {
Branch: 1 branch
BranchTrueFalseTotal
if ($mode == {sign => '+', value => ['100']}) { } 0 0 0
1272 0 return (UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN);
1273 } else {
1274 0 return UNKNOWN;
1275 }
1276 }
1277  
1278 sub readRow32 {
1279 15 ▶ my ($obj, $handle, $position, $column) = @_;
Subroutine readRow32: called CC=1 SCAR=0.0
Pod undocumented
1280 15 my $data = "";
1281 15 my $data_length = $column * 4 + 4;
1282 15 seek($handle, $position-1, 0);
1283 15 read($handle, $data, $data_length);
1284 15 my $ipfrom = substr($data, 0, 4);
1285 15 my $ipfrom_next = substr($data, $data_length - 4, 4);
1286 15 my $result_row = substr($data, 0, $data_length - 4);
1287 15 return (unpack("V", $ipfrom), unpack("V", $ipfrom_next), $result_row);
1288 }
1289  
1290 sub readRow128 {
1291 104 ▶ my ($obj, $handle, $position, $column) = @_;
Subroutine readRow128: called CC=1 SCAR=0.0
Pod undocumented
1292 104 my $data = "";
1293 104 my $data_length = $column * 4 + 12 + 16;
1294 104 seek($handle, $position-1, 0);
1295 104 read($handle, $data, $data_length);
1296 104 my $ipfrom = substr($data, 0, 16);
1297 104 my $ipfrom_next = substr($data, $data_length - 16, 16);
1298 104 my $result_row = substr($data, 0, $data_length - 16);
1299 104 return (&bytesInt($ipfrom), &bytesInt($ipfrom_next), $result_row);
1300 }
1301  
1302 sub read512 {
1303 2 ▶ my ($obj, $handle, $position) = @_;
Subroutine read512: called CC=2 SCAR=7.1
Pod undocumented
1304 2 my $data = "";
1305 2 seek($handle, $position-1, 0);
1306 2 read($handle, $data, 64);
1307 2 my @data_array = split('', $data);
1308 2 ▶ while ($#data_array < 63) {
Branch: 1 branch
BranchTrueFalseTotal
if ($#data_array < bless( {"sign" => "+","value" => bless( [63], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 2 2
1309 0 $data_array[$#data_array+1] = 0x00;
1310 }
1311 2 return @data_array;
1312 }
1313  
1314 sub read32x2 {
1315 20 ▶ my ($obj, $handle, $position) = @_;
Subroutine read32x2: called CC=1 SCAR=0.0
Pod undocumented
1316 20 my $data = "";
1317 20 seek($handle, $position-1, 0);
1318 20 read($handle, $data, 8);
1319 20 my $data_1 = substr($data, 0, 4);
1320 20 my $data_2 = substr($data, 4, 4);
1321 20 return (unpack("V", $data_1), unpack("V", $data_2));
1322 }
1323  
1324 sub read128 {
1325 0 ▶ my ($obj, $handle, $position) = @_;
Subroutine read128: not called CC=1 SCAR=6.9
Pod undocumented
1326 0 my $data = "";
1327 0 seek($handle, $position-1, 0);
1328 0 read($handle, $data, 16);
1329 0 return &bytesInt($data);
1330 }
1331  
1332 sub read32 {
1333 0 ▶ my ($obj, $handle, $position) = @_;
Subroutine read32: not called CC=1 SCAR=6.9
Pod undocumented
1334 0 my $data = "";
1335 0 seek($handle, $position-1, 0);
1336 0 read($handle, $data, 4);
1337 0 return unpack("V", $data);
1338 }
1339  
1340 sub read8 {
1341 0 ▶ my ($obj, $handle, $position) = @_;
Subroutine read8: not called CC=1 SCAR=6.9
Pod undocumented
1342 0 my $data = "";
1343 0 seek($handle, $position-1, 0);
1344 0 read($handle, $data, 1);
1345 0 return unpack("C", $data);
1346 }
1347  
1348 sub readStr {
1349 20 ▶ my ($obj, $handle, $position) = @_;
Subroutine readStr: called CC=1 SCAR=0.0
Pod undocumented
1350 20 my $data = "";
1351 20 seek($handle, $position, 0);
1352 20 read($handle, $data, 257);
1353 20 my $char_count = unpack("C", substr($data, 0, 1));
1354 20 my $string = substr($data, 1, $char_count);
1355 20 return $string;
1356 }
1357  
1358 sub readFloat {
1359 0 ▶ my ($obj, $data) = @_;
Subroutine readFloat: not called CC=2 SCAR=17.9
Pod undocumented
1360 0 my $is_little_endian = unpack("h*", pack("s", 1));
1361 0 ▶ if ($is_little_endian =~ m/^1/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($is_little_endian =~ /^1/) { } 0 0 0
1362 # "LITTLE ENDIAN - x86\n";
1363 0 return unpack("f", $data);
1364 } else {
1365 # "BIG ENDIAN - MAC\n";
1366 0 return unpack("f", reverse($data));
1367 }
1368 }
1369  
1370 sub bytesInt {
1371 208 ▶ my $binip = shift(@_);
Subroutine bytesInt: called CC=2 SCAR=6.9
Pod undocumented
1372 208 my @array = split(//, $binip);
1373 208 ▶ return 0 if ($#array != 15);
Branch: 1 branch
BranchTrueFalseTotal
if $#array != bless( {"sign" => "+","value" => bless( [15], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) 0 208 208
1374 208 my $ip96_127 = unpack("V", $array[0] . $array[1] . $array[2] . $array[3]);
1375 208 my $ip64_95 = unpack("V", $array[4] . $array[5] . $array[6] . $array[7]);
1376 208 my $ip32_63 = unpack("V", $array[8] . $array[9] . $array[10] . $array[11]);
1377 208 my $ip1_31 = unpack("V", $array[12] . $array[13] . $array[14] . $array[15]);
1378  
1379 208 my $big1 = Math::BigInt->new("$ip96_127");
1380 208 my $big2 = Math::BigInt->new("$ip64_95")->blsft(32);
1381 208 my $big3 = Math::BigInt->new("$ip32_63")->blsft(64);
1382 208 my $big4 = Math::BigInt->new("$ip1_31")->blsft(96);
1383 208 $big1 = $big1->badd($big2)->badd($big3)->badd($big4);
1384
1385 208 return $big1->bstr();
1386 }
1387  
1388 sub validate_ip {
1389 20 ▶ my $obj = shift(@_);
Subroutine validate_ip: called CC=9 SCAR=27.4
Pod undocumented
1390 20 my $ip = shift(@_);
1391 20 my $ipv = -1;
1392 20 my $ipnum = -1;
1393 #name server lookup if domain name
1394 20 $ip = $obj->name2ip($ip);
1395
1396 20 ▶ if ($obj->ip_is_ipv4($ip)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($obj->ip_is_ipv4($ip)) { } 10 10 20
1397 #ipv4 address
1398 10 $ipv = 4;
1399 10 $ipnum = $obj->ip2no($ip);
1400 } else {
1401 #expand ipv6 address
1402 10 $ip = $obj->expand_ipv6_address($ip);
1403 10 ▶ if ($obj->ip_is_ipv6($ip)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($obj->ip_is_ipv6($ip)) { } 10 0 10
1404 #ipv6 address
1405 10 $ipv = 6;
1406 10 $ipnum = $obj->hex2int($ip);
1407
1408 #reformat ipv4 address in ipv6
1409 10 ▶ if (($ipnum >= 281470681743360) && ($ipnum <= 281474976710655)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipnum >= bless( {"sign" => "+","value" => bless( [681743360,281470], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [976710655,281474], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$ipnum >= bless( {"sign" => "+","value" => bless( [681743360,281470], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [976710655,281474], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
0100
MC/DC0%0/2
$ipnum >= bless( {"sign" => "+","value" => bless( [681743360,281470], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [976710655,281474], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$ipnum >= bless( {"sign" => "+","value" => bless( [681743360,281470], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $ipnum <= bless( {"sign" => "+","value" => bless( [976710655,281474], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $ipnum >= bless( {"sign" => "+","value" => bless( [681743360,281470], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $ipnum <= bless( {"sign" => "+","value" => bless( [976710655,281474], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1410 0 $ipv = 4;
1411 0 $ipnum = $ipnum - 281470681743360;
1412 }
1413  
1414 #reformat 6to4 address to ipv4 address 2002:: to 2002:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF
1415 10 ▶ if (($ipnum >= 42545680458834377588178886921629466624) && ($ipnum <= 42550872755692912415807417417958686719)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipnum >= bless( {"sign" => "+","value" => bless( [629466624,178886921,834377588,545680458,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [958686719,807417417,692912415,550872755,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$ipnum >= bless( {"sign" => "+","value" => bless( [629466624,178886921,834377588,545680458,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [958686719,807417417,692912415,550872755,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
0100
MC/DC0%0/2
$ipnum >= bless( {"sign" => "+","value" => bless( [629466624,178886921,834377588,545680458,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [958686719,807417417,692912415,550872755,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$ipnum >= bless( {"sign" => "+","value" => bless( [629466624,178886921,834377588,545680458,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $ipnum <= bless( {"sign" => "+","value" => bless( [958686719,807417417,692912415,550872755,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $ipnum >= bless( {"sign" => "+","value" => bless( [629466624,178886921,834377588,545680458,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $ipnum <= bless( {"sign" => "+","value" => bless( [958686719,807417417,692912415,550872755,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1416 0 $ipv = 4;
1417 #bitshift right 80 bits
1418 0 $ipnum->brsft(80);
1419 #bitwise modulus to get the last 32 bit
1420 0 $ipnum->bmod(4294967296);
1421 }
1422  
1423 #reformat Teredo address to ipv4 address 2001:0000:: to 2001:0000:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:
1424 10 ▶ if (($ipnum >= 42540488161975842760550356425300246528) && ($ipnum <= 42540488241204005274814694018844196863)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ipnum >= bless( {"sign" => "+","value" => bless( [300246528,550356425,975842760,540488161,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [844196863,814694018,204005274,540488241,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
Condition33%1/3
$ipnum >= bless( {"sign" => "+","value" => bless( [300246528,550356425,975842760,540488161,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [844196863,814694018,204005274,540488241,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
!ll&&!rl&&r
0100
MC/DC0%0/2
$ipnum >= bless( {"sign" => "+","value" => bless( [300246528,550356425,975842760,540488161,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) and $ipnum <= bless( {"sign" => "+","value" => bless( [844196863,814694018,204005274,540488241,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$ipnum >= bless( {"sign" => "+","value" => bless( [300246528,550356425,975842760,540488161,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $ipnum <= bless( {"sign" => "+","value" => bless( [844196863,814694018,204005274,540488241,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A and B
A= $ipnum >= bless( {"sign" => "+","value" => bless( [300246528,550356425,975842760,540488161,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $ipnum <= bless( {"sign" => "+","value" => bless( [844196863,814694018,204005274,540488241,42], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
0X0
100
111
1425 0 $ipv = 4;
1426 0 $ipnum = Math::BigInt->new($ipnum);
1427 #bitwise not to invert binary
1428 0 $ipnum->bnot();
1429 #bitwise modulus to get the last 32 bit
1430 0 $ipnum->bmod(4294967296);
1431 }
1432  
1433 } else {
1434 #not IPv4 and IPv6
1435 }
1436 }
1437 20 return ($ipv, $ipnum);
1438 }
1439  
1440 sub expand_ipv6_address {
1441 10 ▶ my $obj = shift(@_);
Subroutine expand_ipv6_address: called CC=7 SCAR=25.3
Pod undocumented
1442 10 my $ip = shift(@_);
1443 10 $ip =~ s/\:\:/\:Z\:/;
1444 10 my @ip = split(/\:/, $ip);
1445 10 my $num = scalar(@ip);
1446  
1447 10 my $l = 8;
1448 10 ▶ if ($ip[$#ip] =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ip[$#ip] =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/) 0 10 10
1449 0 my $a = sprintf("%x", ($1*256 + $2));
1450 0 my $b = sprintf("%x", ($3*256 + $4));
1451 0 $ip[$#ip] = $a;
1452 0 $ip[$#ip+1] = $b;
1453 0 $l--;
1454 }
1455  
1456 10 ▶ if ($#ip == 8) {
Branch: 1 branch
BranchTrueFalseTotal
if ($#ip == bless( {"sign" => "+","value" => bless( [8], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
1457 0 shift(@ip);
1458 0 $l++;
1459 }
1460  
1461 10 foreach (0..(scalar(@ip)-1)) {
1462 80 ▶ next if (length($ip[$_]) > 3);
Branch: 1 branch
BranchTrueFalseTotal
if length $ip[$_] > bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) 80 0 80
1463 0 $ip[$_] = ('0'x(4-length($ip[$_]))).$ip[$_];
1464 }
1465
1466 10 foreach (0..(scalar(@ip)-1)) {
1467 80 ▶ next unless ($ip[$_] eq '000Z');
Branch: 1 branch
BranchTrueFalseTotal
unless $ip[$_] eq "000Z" 80 0 80
1468 0 my @empty = map { $_ = '0'x4 } (0..7);
1469 0 $ip[$_] = join(':', @empty[0..$l-$num]);
1470 0 last;
1471 }
1472  
1473 10 return (uc(join ':', @ip));
1474 }
1475  
1476 sub hex2int {
1477 10 ▶ my $obj = shift(@_);
Subroutine hex2int: called CC=4 SCAR=13.9
Pod undocumented
1478 10 my $hexip = shift(@_);
1479  
1480 10 $hexip =~ s/\://g;
1481  
1482 10 ▶ unless (length($hexip) == 32) {
Branch: 1 branch
BranchTrueFalseTotal
unless (length $hexip == bless( {"sign" => "+","value" => bless( [32], 'Math::BigInt::Calc' )}, 'Math::BigInt' )) 0 10 10
1483 0 return 0;
1484 };
1485  
1486 10 my $binip = unpack('B128', pack('H32', $hexip));
1487 10 my ($n, $dec) = (Math::BigInt->new(1), Math::BigInt->new(0));
1488  
1489 10 foreach (reverse (split('', $binip))) {
1490 1280 ▶ $_ && ($dec += $n);
Branch: 1 branch
BranchTrueFalseTotal
$_ and $dec += $n 56 1224 1280
1491 1280 $n *= 2;
1492 }
1493  
1494 10 $dec =~ s/^\+//;
1495 10 return $dec;
1496 }
1497  
1498 sub ip2no {
1499 10 ▶ my $obj = shift(@_);
Subroutine ip2no: called CC=1 SCAR=0.0
Pod undocumented
1500 10 my $ip = shift(@_);
1501 10 my @block = split(/\./, $ip);
1502 10 my $no = 0;
1503 10 $no = $block[3];
1504 10 $no = $no + $block[2] * 256;
1505 10 $no = $no + $block[1] * 256 * 256;
1506 10 $no = $no + $block[0] * 256 * 256 * 256;
1507 10 return $no;
1508 }
1509  
1510 sub name2ip {
1511 20 ▶ my $obj = shift(@_);
Subroutine name2ip: called CC=5 SCAR=20.9
Pod undocumented
1512 20 my $host = shift(@_);
1513 20 my $ip_address = "";
1514 20 ▶ if (($host =~ m/^$IPv4_re$/) || ($host =~ m/^$IPv6_re$/) || ($host =~ m/^\:\:$/)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/ or $host =~ /^\:\:$/) { } 20 0 20
Condition50%3/6
$host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/ or $host =~ /^\:\:$/
l!l&&r!l&&!r
2000
$host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/
l!l&&r!l&&!r
10100
MC/DC0%0/3
$host =~ /^$IPv4_re$/ or $host =~ /^$IPv6_re$/ or $host =~ /^\:\:$/
$host =~ /^$IPv4_re$/ $host =~ /^$IPv6_re$/ $host =~ /^\:\:$/
Truth table50%2/4
A or B or C
A= $host =~ /^$IPv4_re$/B= $host =~ /^$IPv6_re$/C= $host =~ /^\:\:$/
ABCresult
1XX1
01X1
0011
0000
1515 20 $ip_address = $host;
1516 } else {
1517 # TO_DO: Can we return IPv6 address too?
1518 0 my @hostname = gethostbyname($host);
1519 0 ▶ if ($#hostname < 4) {
Branch: 1 branch
BranchTrueFalseTotal
if ($#hostname < {sign => '+', value => ['4']}) { } 0 0 0
1520 0 $ip_address = $host;
1521 } else {
1522 0 $ip_address = join('.', unpack('C4', $hostname[4]));
1523 }
1524 }
1525 20 return $ip_address;
1526 }
1527  
1528 sub ip_is_ipv4 {
1529 20 ▶ my $obj = shift(@_);
Subroutine ip_is_ipv4: called CC=5 SCAR=16.5
Pod undocumented
1530 20 my $ip = shift(@_);
1531 20 ▶ if ($ip =~ m/^$IPv4_re$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ip =~ /^$IPv4_re$/) { } 10 10 20
1532 10 my @octet = split(/\./, $ip);
1533 10 foreach my $i (0 .. $#octet) {
1534 40 ▶ return 0 if (($octet[$i] > 255) || ($octet[$i] < 0));
Branch: 1 branch
BranchTrueFalseTotal
if $octet[$i] > bless( {"sign" => "+","value" => bless( [255], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) or $octet[$i] < bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) 0 40 40
Condition33%1/3
$octet[$i] > bless( {"sign" => "+","value" => bless( [255], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) or $octet[$i] < bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
l!l&&r!l&&!r
0040
MC/DC0%0/2
$octet[$i] > bless( {"sign" => "+","value" => bless( [255], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) or $octet[$i] < bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
$octet[$i] > bless( {"sign" => "+","value" => bless( [255], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) $octet[$i] < bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
Truth table33%1/3
A or B
A= $octet[$i] > bless( {"sign" => "+","value" => bless( [255], 'Math::BigInt::Calc' )}, 'Math::BigInt' )B= $octet[$i] < bless( {"sign" => "+","value" => bless( [0], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
ABresult
1X1
011
000
1535 }
1536 10 return 1;
1537 } else {
1538 10 return 0;
1539 }
1540 }
1541  
1542 sub ip_is_ipv6 {
1543 10 ▶ my $obj = shift(@_);
Subroutine ip_is_ipv6: called CC=4 SCAR=17.2
Pod undocumented
1544 10 my $ip = shift(@_);
1545 10 ▶ if (($ip =~ m/^$IPv6_re$/) || ($ip =~ m/^$IPv4_re$/) || ($ip =~ m/^\:\:$/)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ip =~ /^$IPv6_re$/ or $ip =~ /^$IPv4_re$/ or $ip =~ /^\:\:$/) { } 10 0 10
Condition33%2/6
$ip =~ /^$IPv6_re$/ or $ip =~ /^$IPv4_re$/ or $ip =~ /^\:\:$/
l!l&&r!l&&!r
1000
$ip =~ /^$IPv6_re$/ or $ip =~ /^$IPv4_re$/
l!l&&r!l&&!r
1000
MC/DC0%0/3
$ip =~ /^$IPv6_re$/ or $ip =~ /^$IPv4_re$/ or $ip =~ /^\:\:$/
$ip =~ /^$IPv6_re$/ $ip =~ /^$IPv4_re$/ $ip =~ /^\:\:$/
Truth table25%1/4
A or B or C
A= $ip =~ /^$IPv6_re$/B= $ip =~ /^$IPv4_re$/C= $ip =~ /^\:\:$/
ABCresult
1XX1
01X1
0011
0000
1546 10 return 1;
1547 } else {
1548 0 return 0;
1549 }
1550 }
1551  
1552 3 1;
1553 __END__
↑ Summary