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 = "0x2000068")]
8 public sealed class PrimalityTests
9 {
10 [global::Cpp2ILInjected.Token(Token = "0x60002F1")]
11 [global::Cpp2ILInjected.Address(RVA = "0x1AA8754", Offset = "0x1AA8754", Length = "0x184")]
12 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
13 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PrimalityTests), Member = "RabinMillerTest", MemberParameters = new object[]
14 {
17 }, ReturnType = typeof(bool))]
18 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
19 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "BitCount", ReturnType = typeof(int))]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
24 {
25 throw null;
26 }
27
28 [global::Cpp2ILInjected.Token(Token = "0x60002F2")]
29 [global::Cpp2ILInjected.Address(RVA = "0x1AA88D8", Offset = "0x1AA88D8", Length = "0x280")]
30 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
31 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "BitCount", ReturnType = typeof(int))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Implicit", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(BigInteger))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(PrimalityTests), Member = "GetSPPRounds", MemberParameters = new object[]
35 {
38 }, ReturnType = typeof(int))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Subtraction", MemberParameters = new object[]
40 {
41 typeof(BigInteger),
42 typeof(BigInteger)
43 }, ReturnType = typeof(BigInteger))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "LowestSetBit", ReturnType = typeof(int))]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "Mono.Math.BigInteger.Kernel", Member = "RightShift", MemberParameters = new object[]
46 {
47 typeof(BigInteger),
48 typeof(int)
49 }, ReturnType = typeof(BigInteger))]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger.ModulusRing), Member = ".ctor", MemberParameters = new object[] { typeof(BigInteger) }, ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger.ModulusRing), Member = "Pow", MemberParameters = new object[]
52 {
53 typeof(uint),
54 typeof(BigInteger)
55 }, ReturnType = typeof(BigInteger))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Equality", MemberParameters = new object[]
57 {
58 typeof(BigInteger),
59 typeof(BigInteger)
60 }, ReturnType = typeof(bool))]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "GenerateRandom", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(BigInteger))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "Mono.Math.BigInteger.Kernel", Member = "Compare", MemberParameters = new object[]
63 {
64 typeof(BigInteger),
65 typeof(BigInteger)
66 }, ReturnType = typeof(BigInteger.Sign))]
67 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger.ModulusRing), Member = "Pow", MemberParameters = new object[]
68 {
69 typeof(BigInteger),
70 typeof(BigInteger)
71 }, ReturnType = typeof(BigInteger))]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Equality", MemberParameters = new object[]
73 {
74 typeof(BigInteger),
75 typeof(uint)
76 }, ReturnType = typeof(bool))]
77 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BigInteger), Member = "op_Inequality", MemberParameters = new object[]
78 {
79 typeof(BigInteger),
80 typeof(BigInteger)
81 }, ReturnType = typeof(bool))]
82 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
84 {
85 throw null;
86 }
87 }
88}
class f__AnonymousType0<< Count > j__TPar
static bool RabinMillerTest(BigInteger n, ConfidenceFactor confidence)
static int GetSPPRounds(BigInteger bi, ConfidenceFactor confidence)