terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
PrimalityTests.cs
Go to the documentation of this file.
1using System;
4
5namespace Mono.Math.Prime
6{
7 [global::Cpp2ILInjected.Token(Token = "0x2000055")]
8 internal sealed class PrimalityTests
9 {
10 [global::Cpp2ILInjected.Token(Token = "0x6000203")]
11 [global::Cpp2ILInjected.Address(RVA = "0x1AC5C4C", Offset = "0x1AC5C4C", Length = "0x184")]
12 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
13 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PrimalityTests), Member = "RabinMillerTest", MemberParameters = new object[]
14 {
15 typeof(BigInteger),
17 }, ReturnType = typeof(bool))]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PrimalityTests), Member = "SmallPrimeSppTest", MemberParameters = new object[]
19 {
20 typeof(BigInteger),
22 }, ReturnType = typeof(bool))]
23 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "BitCount", ReturnType = typeof(int))]
25 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
26 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
27 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
29 {
30 throw null;
31 }
32
33 [global::Cpp2ILInjected.Token(Token = "0x6000204")]
34 [global::Cpp2ILInjected.Address(RVA = "0x1AC4E4C", Offset = "0x1AC4E4C", Length = "0x44")]
35 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BigInteger), Member = "IsProbablePrime", ReturnType = typeof(bool))]
37 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "BitCount", ReturnType = typeof(int))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PrimalityTests), Member = "SmallPrimeSppTest", MemberParameters = new object[]
40 {
43 }, ReturnType = typeof(bool))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PrimalityTests), Member = "RabinMillerTest", MemberParameters = new object[]
45 {
48 }, ReturnType = typeof(bool))]
50 {
51 throw null;
52 }
53
54 [global::Cpp2ILInjected.Token(Token = "0x6000205")]
55 [global::Cpp2ILInjected.Address(RVA = "0x1AC5F84", Offset = "0x1AC5F84", Length = "0x280")]
56 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
57 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PrimalityTests), Member = "Test", MemberParameters = new object[]
58 {
61 }, ReturnType = typeof(bool))]
62 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "BitCount", ReturnType = typeof(int))]
64 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Implicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(BigInteger))]
65 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PrimalityTests), Member = "GetSPPRounds", MemberParameters = new object[]
66 {
67 typeof(BigInteger),
69 }, ReturnType = typeof(int))]
70 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Subtraction", MemberParameters = new object[]
71 {
72 typeof(BigInteger),
73 typeof(BigInteger)
74 }, ReturnType = typeof(BigInteger))]
75 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "LowestSetBit", ReturnType = typeof(int))]
76 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "Mono.Math.BigInteger.Kernel", Member = "RightShift", MemberParameters = new object[]
77 {
78 typeof(BigInteger),
79 typeof(int)
80 }, ReturnType = typeof(BigInteger))]
81 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger.ModulusRing), Member = ".ctor", MemberParameters = new object[] { typeof(BigInteger) }, ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger.ModulusRing), Member = "Pow", MemberParameters = new object[]
83 {
84 typeof(uint),
85 typeof(BigInteger)
86 }, ReturnType = typeof(BigInteger))]
87 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Equality", MemberParameters = new object[]
88 {
89 typeof(BigInteger),
90 typeof(BigInteger)
91 }, ReturnType = typeof(bool))]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "GenerateRandom", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(BigInteger))]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "Mono.Math.BigInteger.Kernel", Member = "Compare", MemberParameters = new object[]
94 {
95 typeof(BigInteger),
96 typeof(BigInteger)
97 }, ReturnType = typeof(BigInteger.Sign))]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger.ModulusRing), Member = "Pow", MemberParameters = new object[]
99 {
100 typeof(BigInteger),
101 typeof(BigInteger)
102 }, ReturnType = typeof(BigInteger))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Equality", MemberParameters = new object[]
104 {
105 typeof(BigInteger),
106 typeof(uint)
107 }, ReturnType = typeof(bool))]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Inequality", MemberParameters = new object[]
109 {
110 typeof(BigInteger),
111 typeof(BigInteger)
112 }, ReturnType = typeof(bool))]
113 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
115 {
116 throw null;
117 }
118
119 [global::Cpp2ILInjected.Token(Token = "0x6000206")]
120 [global::Cpp2ILInjected.Address(RVA = "0x1AC5DD0", Offset = "0x1AC5DD0", Length = "0x1B4")]
121 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
122 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PrimalityTests), Member = "Test", MemberParameters = new object[]
123 {
126 }, ReturnType = typeof(bool))]
127 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PrimalityTests), Member = "GetSPPRounds", MemberParameters = new object[]
129 {
131 typeof(ConfidenceFactor)
132 }, ReturnType = typeof(int))]
133 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Implicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(BigInteger))]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Subtraction", MemberParameters = new object[]
135 {
136 typeof(BigInteger),
137 typeof(BigInteger)
138 }, ReturnType = typeof(BigInteger))]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "LowestSetBit", ReturnType = typeof(int))]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "Mono.Math.BigInteger.Kernel", Member = "RightShift", MemberParameters = new object[]
141 {
142 typeof(BigInteger),
143 typeof(int)
144 }, ReturnType = typeof(BigInteger))]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger.ModulusRing), Member = ".ctor", MemberParameters = new object[] { typeof(BigInteger) }, ReturnType = typeof(void))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger.ModulusRing), Member = "Pow", MemberParameters = new object[]
147 {
148 typeof(uint),
149 typeof(BigInteger)
150 }, ReturnType = typeof(BigInteger))]
151 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Equality", MemberParameters = new object[]
152 {
153 typeof(BigInteger),
154 typeof(uint)
155 }, ReturnType = typeof(bool))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Equality", MemberParameters = new object[]
157 {
158 typeof(BigInteger),
159 typeof(BigInteger)
160 }, ReturnType = typeof(bool))]
161 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Multiply", MemberParameters = new object[]
162 {
163 typeof(BigInteger),
164 typeof(BigInteger)
165 }, ReturnType = typeof(BigInteger))]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "Mono.Math.BigInteger.Kernel", Member = "multiByteDivide", MemberParameters = new object[]
167 {
168 typeof(BigInteger),
169 typeof(BigInteger)
170 }, ReturnType = typeof(BigInteger[]))]
171 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
173 {
174 throw null;
175 }
176 }
177}
class f__AnonymousType0<< Count > j__TPar
static bool RabinMillerTest(BigInteger n, ConfidenceFactor confidence)
static int GetSPPRounds(BigInteger bi, ConfidenceFactor confidence)
static bool Test(BigInteger n, ConfidenceFactor confidence)
static bool SmallPrimeSppTest(BigInteger bi, ConfidenceFactor confidence)