line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Math::ModInt::Trivial; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
859
|
use 5.006; |
|
4
|
|
|
|
|
16
|
|
4
|
4
|
|
|
4
|
|
24
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
88
|
|
5
|
4
|
|
|
4
|
|
18
|
use warnings; |
|
4
|
|
|
|
|
50
|
|
|
4
|
|
|
|
|
133
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ----- object definition ----- |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Math::ModInt::Trivial=ARRAY(...) |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# .......... index .......... # .......... value .......... |
12
|
4
|
|
|
4
|
|
22
|
use constant NFIELDS => 0; |
|
4
|
|
|
|
|
29
|
|
|
4
|
|
|
|
|
416
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# ----- class data ----- |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
BEGIN { |
17
|
4
|
|
|
4
|
|
30
|
require Math::ModInt; |
18
|
4
|
|
|
|
|
75
|
our @ISA = qw(Math::ModInt); |
19
|
4
|
|
|
|
|
832
|
our $VERSION = '0.013'; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
*signed_residue = |
23
|
|
|
|
|
|
|
*centered_residue = \&residue; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
my $singleton = bless []; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# ----- overridden methods ----- |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
1
|
|
2
|
sub _NEG { $singleton } |
30
|
3
|
|
|
3
|
|
6
|
sub _ADD { $singleton } |
31
|
3
|
|
|
3
|
|
9
|
sub _SUB { $singleton } |
32
|
3
|
|
|
3
|
|
7
|
sub _MUL { $singleton } |
33
|
3
|
|
|
3
|
|
14
|
sub _DIV { $singleton } |
34
|
8
|
|
|
8
|
|
17
|
sub _POW { $singleton } |
35
|
1
|
|
|
1
|
|
3
|
sub _INV { $singleton } |
36
|
14
|
|
|
14
|
|
32
|
sub _NEW { $singleton } |
37
|
1
|
|
|
1
|
|
4
|
sub _NEW2 { ($_[1], $singleton) } |
38
|
|
|
|
|
|
|
|
39
|
66
|
|
|
66
|
1
|
234
|
sub modulus { 1 } |
40
|
46
|
|
|
46
|
1
|
395
|
sub residue { 0 } |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |