line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Math::Int64::die_on_overflow; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
538
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
51
|
|
4
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Math::Int64 (); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
111
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub import { |
9
|
1
|
|
|
1
|
|
11
|
require Math::Int64; |
10
|
1
|
|
|
|
|
4
|
Math::Int64::_set_may_die_on_overflow(1); |
11
|
1
|
|
|
|
|
5
|
$^H{'Math::Int64::die_on_overflow'} = 1; |
12
|
1
|
|
|
|
|
5
|
goto &Math::Int64::_check_pragma_compatibility; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub unimport { |
17
|
1
|
|
|
1
|
|
3759
|
undef $^H{'Math::Int64::die_on_overflow'} |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# ABSTRACT: catch overflows when using Math::Int64 |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |