terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
BigInteger.cs
Go to the documentation of this file.
1using System;
4
5namespace Mono.Math
6{
7 // Token: 0x02000062 RID: 98
8 public class BigInteger
9 {
10 // Token: 0x060002AE RID: 686 RVA: 0x0000B194 File Offset: 0x00009394
11 [CLSCompliant(false)]
12 public BigInteger(BigInteger.Sign sign, uint len)
13 {
14 this.length = 1U;
15 base..ctor();
16 this.length = len;
17 }
18
19 // Token: 0x060002AF RID: 687 RVA: 0x0000B1B8 File Offset: 0x000093B8
21 {
22 this.length = 1U;
23 base..ctor();
24 uint[] array = bi.data;
25 object obj;
26 if (obj != null)
27 {
28 if (obj != null)
29 {
30 this.data = obj;
31 if (obj != null)
32 {
33 goto IL_002A;
34 }
35 }
36 throw new InvalidCastException();
37 }
38 IL_002A:
39 uint num = bi.length;
40 this.length = num;
41 }
42
43 // Token: 0x060002B0 RID: 688 RVA: 0x0000B200 File Offset: 0x00009400
44 [CLSCompliant(false)]
45 public BigInteger(BigInteger bi, uint len)
46 {
47 int num = 1;
48 this.length = (uint)num;
49 base..ctor();
50 if (bi.length != 0U)
51 {
52 uint[] array = bi.data;
53 uint num2 = bi.length;
54 return;
55 }
56 long num3 = 0L;
57 this.length = (uint)num3;
58 }
59
60 // Token: 0x060002B1 RID: 689 RVA: 0x0000B240 File Offset: 0x00009440
61 public BigInteger(byte[] inData)
62 {
63 int num = 1;
64 this.length = (uint)num;
65 base..ctor();
66 int num2;
67 if (num == 0)
68 {
69 num2 = 1;
70 }
71 this.length = (uint)num2;
72 }
73
74 // Token: 0x060002B2 RID: 690 RVA: 0x0000B290 File Offset: 0x00009490
75 [CLSCompliant(false)]
76 public BigInteger(uint ui)
77 {
78 this.length = 1U;
79 base..ctor();
80 }
81
82 // Token: 0x060002B3 RID: 691 RVA: 0x00002050 File Offset: 0x00000250
83 [CLSCompliant(false)]
84 public static implicit operator BigInteger(uint value)
85 {
86 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
87 }
88
89 // Token: 0x060002B4 RID: 692 RVA: 0x00002050 File Offset: 0x00000250
90 public static implicit operator BigInteger(int value)
91 {
92 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
93 }
94
95 // Token: 0x060002B5 RID: 693 RVA: 0x0000B2AC File Offset: 0x000094AC
97 {
98 if (!true)
99 {
100 }
101 long num = 0L;
102 bool flag = bi1 == (uint)num;
104 return bigInteger;
105 }
106
107 // Token: 0x060002B6 RID: 694 RVA: 0x0000B2C8 File Offset: 0x000094C8
109 {
110 if (!true)
111 {
112 }
113 long num = 0L;
114 bool flag = bi1 == (uint)num;
115 BigInteger.Sign sign;
116 if (sign != BigInteger.Sign.Zero)
117 {
119 return bigInteger;
120 }
121 return 0;
122 }
123
124 // Token: 0x060002B7 RID: 695 RVA: 0x0000B2F0 File Offset: 0x000094F0
125 [CLSCompliant(false)]
126 public static uint operator %(BigInteger bi, uint ui)
127 {
128 }
129
130 // Token: 0x060002B8 RID: 696 RVA: 0x0000B300 File Offset: 0x00009500
132 {
134 return array;
135 }
136
137 // Token: 0x060002B9 RID: 697 RVA: 0x0000B310 File Offset: 0x00009510
139 {
141 return array;
142 }
143
144 // Token: 0x060002BA RID: 698 RVA: 0x0000B320 File Offset: 0x00009520
146 {
147 int num = 1;
148 if (num == 0)
149 {
150 }
151 if (num == 0)
152 {
153 }
154 long num2 = 0L;
155 bool flag = bi1 == (uint)num2;
156 if (num == 0)
157 {
158 }
159 return 0;
160 }
161
162 // Token: 0x060002BB RID: 699 RVA: 0x0000B370 File Offset: 0x00009570
164 {
166 return bigInteger;
167 }
168
169 // Token: 0x060002BC RID: 700 RVA: 0x0000B380 File Offset: 0x00009580
171 {
173 return bigInteger;
174 }
175
176 // Token: 0x170000C0 RID: 192
177 // (get) Token: 0x060002BD RID: 701 RVA: 0x0000B390 File Offset: 0x00009590
179 {
180 get
181 {
182 /*
183An exception occurred when decompiling this method (060002BD)
184
185ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Cryptography.RandomNumberGenerator Mono.Math.BigInteger::get_Rng()
186
187 ---> System.Exception: Basic block has to end with unconditional control flow.
188{
189 Block_0:
190 stloc:RandomNumberGenerator(var_1_07, call:RandomNumberGenerator(RandomNumberGenerator::Create))
191}
192
193 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
194 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
195 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
196 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
197 --- End of inner exception stack trace ---
198 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
199 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
200*/;
201 }
202 }
203
204 // Token: 0x060002BE RID: 702 RVA: 0x0000B3A4 File Offset: 0x000095A4
206 {
207 /*
208An exception occurred when decompiling this method (060002BE)
209
210ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Math.BigInteger Mono.Math.BigInteger::GenerateRandom(System.Int32,System.Security.Cryptography.RandomNumberGenerator)
211
212 ---> System.Exception: Basic block has to end with unconditional control flow.
213{
214 IL_0000:
215 brtrue(IL_0000, ldc.i4:bool(1))
216}
217
218 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
219 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
220 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
221 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
222 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
223 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
224 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
225 --- End of inner exception stack trace ---
226 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
227 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
228*/;
229 }
230
231 // Token: 0x060002BF RID: 703 RVA: 0x0000B3B4 File Offset: 0x000095B4
232 public static BigInteger GenerateRandom(int bits)
233 {
234 if (!true)
235 {
236 }
239 return bigInteger;
240 }
241
242 // Token: 0x060002C0 RID: 704 RVA: 0x0000B3CC File Offset: 0x000095CC
243 public int BitCount()
244 {
245 /*
246An exception occurred when decompiling this method (060002C0)
247
248ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Mono.Math.BigInteger::BitCount()
249
250 ---> System.Exception: Basic block has to end with unconditional control flow.
251{
252 IL_0011:
253 stloc:int32(var_2_12, ldc.i4:int32(1))
254 stfld:uint32(BigInteger::length, ldloc:BigInteger(this), ldloc:int32[exp:uint32](var_2_12))
255}
256
257 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
258 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
259 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
260 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
261 --- End of inner exception stack trace ---
262 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
263 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
264*/;
265 }
266
267 // Token: 0x060002C1 RID: 705 RVA: 0x0000B3F4 File Offset: 0x000095F4
268 public bool TestBit(int bitNum)
269 {
270 /*
271An exception occurred when decompiling this method (060002C1)
272
273ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Mono.Math.BigInteger::TestBit(System.Int32)
274
275 ---> System.Exception: Basic block has to end with unconditional control flow.
276{
277 Block_0:
278 stloc:uint32[](var_0_06, ldfld:uint32[](BigInteger::data, ldloc:BigInteger(this)))
279}
280
281 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
282 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
283 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
284 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
285 --- End of inner exception stack trace ---
286 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
287 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
288*/;
289 }
290
291 // Token: 0x060002C2 RID: 706 RVA: 0x0000B40C File Offset: 0x0000960C
292 [CLSCompliant(false)]
293 public void SetBit(uint bitNum)
294 {
295 uint num = this.length;
296 uint[] array = this.data;
297 }
298
299 // Token: 0x060002C3 RID: 707 RVA: 0x0000B428 File Offset: 0x00009628
300 [CLSCompliant(false)]
301 public void SetBit(uint bitNum, bool value)
302 {
303 uint num = this.length;
304 uint[] array = this.data;
305 }
306
307 // Token: 0x060002C4 RID: 708 RVA: 0x0000B444 File Offset: 0x00009644
308 public int LowestSetBit()
309 {
310 if (!true)
311 {
312 }
313 long num = 0L;
314 bool flag = this == (uint)num;
315 bool flag2 = this.TestBit(0);
316 return 0;
317 }
318
319 // Token: 0x060002C5 RID: 709 RVA: 0x0000B468 File Offset: 0x00009668
320 public byte[] GetBytes()
321 {
322 /*
323An exception occurred when decompiling this method (060002C5)
324
325ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] Mono.Math.BigInteger::GetBytes()
326
327 ---> System.Exception: Basic block has to end with unconditional control flow.
328{
329 IL_0003:
330 stloc:int64(var_0_04, ldc.i4:int64(0))
331 stloc:bool(var_1_0C, call:bool(BigInteger::op_Equality, ldloc:BigInteger(this), ldloc:int64[exp:uint32](var_0_04)))
332 stloc:int32(var_3_15, call:int32(BigInteger::BitCount, ldloc:BigInteger(this)))
333 stloc:uint32(var_4_1C, ldfld:uint32(BigInteger::length, ldloc:BigInteger(this)))
334 stloc:uint32[](var_5_24, ldfld:uint32[](BigInteger::data, ldloc:BigInteger(this)))
335}
336
337 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
338 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
339 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
340 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
341 --- End of inner exception stack trace ---
342 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
343 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
344*/;
345 }
346
347 // Token: 0x060002C6 RID: 710 RVA: 0x0000B49C File Offset: 0x0000969C
348 [CLSCompliant(false)]
349 public static bool operator ==(BigInteger bi1, uint ui)
350 {
351 while (!true)
352 {
353 }
354 }
355
356 // Token: 0x060002C7 RID: 711 RVA: 0x0000B4B0 File Offset: 0x000096B0
357 [CLSCompliant(false)]
358 public static bool operator !=(BigInteger bi1, uint ui)
359 {
360 while (!true)
361 {
362 }
363 }
364
365 // Token: 0x060002C8 RID: 712 RVA: 0x0000B4C4 File Offset: 0x000096C4
367 {
368 if (!true)
369 {
370 }
371 if (!true)
372 {
373 }
374 return true;
375 }
376
377 // Token: 0x060002C9 RID: 713 RVA: 0x0000B4E0 File Offset: 0x000096E0
379 {
380 if (!true)
381 {
382 }
383 if (!true)
384 {
385 }
386 return true;
387 }
388
389 // Token: 0x060002CA RID: 714 RVA: 0x00002050 File Offset: 0x00000250
391 {
392 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
393 }
394
395 // Token: 0x060002CB RID: 715 RVA: 0x00002050 File Offset: 0x00000250
397 {
398 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
399 }
400
401 // Token: 0x060002CC RID: 716 RVA: 0x00002050 File Offset: 0x00000250
403 {
404 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
405 }
406
407 // Token: 0x060002CD RID: 717 RVA: 0x00002050 File Offset: 0x00000250
409 {
410 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
411 }
412
413 // Token: 0x060002CE RID: 718 RVA: 0x0000B4FC File Offset: 0x000096FC
414 [CLSCompliant(false)]
415 public string ToString(uint radix)
416 {
417 return this.ToString(radix, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
418 }
419
420 // Token: 0x060002CF RID: 719 RVA: 0x0000B518 File Offset: 0x00009718
421 [CLSCompliant(false)]
422 public string ToString(uint radix, string characterSet)
423 {
424 if (!true)
425 {
426 }
427 long num = 0L;
428 bool flag = this == (uint)num;
429 if ("0" == null)
430 {
431 }
432 bool flag2 = this == (uint)1;
433 if ("" == null)
434 {
435 }
436 uint num2;
437 return characterSet[(int)num2].ToString() + "";
438 }
439
440 // Token: 0x060002D0 RID: 720 RVA: 0x0000B570 File Offset: 0x00009770
441 private void Normalize()
442 {
443 uint[] array = this.data;
444 int num = 1;
445 this.length = (uint)num;
446 }
447
448 // Token: 0x060002D1 RID: 721 RVA: 0x0000B590 File Offset: 0x00009790
449 public void Clear()
450 {
451 if (this.length != 0U)
452 {
453 uint[] array = this.data;
454 uint num = this.length;
455 }
456 }
457
458 // Token: 0x060002D2 RID: 722 RVA: 0x0000B5B8 File Offset: 0x000097B8
459 public override int GetHashCode()
460 {
461 if (this.length != 0U)
462 {
463 uint[] array = this.data;
464 return;
465 }
466 }
467
468 // Token: 0x060002D3 RID: 723 RVA: 0x0000B5DC File Offset: 0x000097DC
469 public override string ToString()
470 {
471 return this.ToString((uint)10);
472 }
473
474 // Token: 0x060002D4 RID: 724 RVA: 0x0000B5F4 File Offset: 0x000097F4
475 public override bool Equals(object o)
476 {
477 if (o != null)
478 {
479 bool flag;
480 return flag;
481 }
482 throw new InvalidCastException();
483 }
484
485 // Token: 0x060002D5 RID: 725 RVA: 0x0000B610 File Offset: 0x00009810
490
491 // Token: 0x060002D6 RID: 726 RVA: 0x0000B624 File Offset: 0x00009824
493 {
495 return bigInteger;
496 }
497
498 // Token: 0x060002D7 RID: 727 RVA: 0x00002050 File Offset: 0x00000250
499 public static BigInteger GeneratePseudoPrime(int bits)
500 {
501 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
502 }
503
504 // Token: 0x060002D8 RID: 728 RVA: 0x0000B634 File Offset: 0x00009834
505 public void Incr2()
506 {
507 uint[] array = this.data;
508 uint num = this.length;
509 this.length = num;
510 }
511
512 // Token: 0x060002D9 RID: 729 RVA: 0x0000B658 File Offset: 0x00009858
513 // Note: this type is marked as 'beforefieldinit'.
514 static BigInteger()
515 {
516 }
517
518 // Token: 0x04000294 RID: 660
519 private uint length;
520
521 // Token: 0x04000295 RID: 661
522 private uint[] data;
523
524 // Token: 0x04000296 RID: 662
525 internal static readonly uint[] smallPrimes;
526
527 // Token: 0x04000297 RID: 663
529
530 // Token: 0x02000063 RID: 99
531 public enum Sign
532 {
533 // Token: 0x04000299 RID: 665
534 Negative = -1,
535 // Token: 0x0400029A RID: 666
536 Zero,
537 // Token: 0x0400029B RID: 667
539 }
540
541 // Token: 0x02000064 RID: 100
542 public sealed class ModulusRing
543 {
544 // Token: 0x060002DA RID: 730 RVA: 0x0000B668 File Offset: 0x00009868
546 {
547 int num = 1;
548 base..ctor();
550 uint length = modulus.length;
552 if (num == 0)
553 {
554 }
555 this.constant = num;
556 }
557
558 // Token: 0x060002DB RID: 731 RVA: 0x0000B6A0 File Offset: 0x000098A0
560 {
562 uint length = x.length;
563 uint length2 = bigInteger.length;
564 uint[] data = x.data;
565 uint length3 = this.constant.length;
567 uint length4 = x.length;
568 uint[] data2 = x.data;
569 uint[] data3 = bigInteger2.data;
570 uint length5 = bigInteger2.length;
571 uint length6 = x.length;
573 if (length4 != 0U)
574 {
575 uint[] data4 = x.data;
577 }
578 int num = 1;
579 x.length = (uint)num;
580 uint[] data5 = bigInteger.data;
581 uint length7 = bigInteger.length;
582 if (length4 != 0U)
583 {
584 }
585 if (!true)
586 {
587 }
588 }
589
590 // Token: 0x060002DC RID: 732 RVA: 0x0000B754 File Offset: 0x00009954
592 {
593 if (!true)
594 {
595 }
596 long num = 0L;
597 bool flag = a == (uint)num;
598 if (!true)
599 {
600 }
601 long num2 = 0L;
602 bool flag2 = b == (uint)num2;
603 if (!true)
604 {
605 }
606 return 0;
607 }
608
609 // Token: 0x060002DD RID: 733 RVA: 0x0000B7F0 File Offset: 0x000099F0
611 {
612 while (BigInteger.Kernel.Compare(a, b) != BigInteger.Sign.Zero)
613 {
614 }
615 if (!true)
616 {
617 }
618 return 0;
619 }
620
621 // Token: 0x060002DE RID: 734 RVA: 0x0000B874 File Offset: 0x00009A74
623 {
624 if (!true)
625 {
626 }
627 long num = 0L;
628 bool flag = k == (uint)num;
629 uint[] data = k.data;
630 int num2 = k.BitCount();
631 int num3 = 1;
632 BigInteger bigInteger = this.Multiply(a, a);
633 bool flag2 = k.TestBit(num3);
634 int num4 = k.BitCount();
636 return bigInteger2;
637 }
638
639 // Token: 0x060002DF RID: 735 RVA: 0x0000B8C4 File Offset: 0x00009AC4
640 [CLSCompliant(false)]
641 public BigInteger Pow(uint b, BigInteger exp)
642 {
644 return bigInteger;
645 }
646
647 // Token: 0x0400029C RID: 668
649
650 // Token: 0x0400029D RID: 669
652 }
653
654 // Token: 0x02000065 RID: 101
655 private sealed class Kernel
656 {
657 // Token: 0x060002E0 RID: 736 RVA: 0x0000B8D4 File Offset: 0x00009AD4
659 {
660 uint length = bi1.length;
661 long num = 0L;
662 if (false)
663 {
664 }
665 if (num != 0L)
666 {
667 return;
668 }
669 }
670
671 // Token: 0x060002E1 RID: 737 RVA: 0x0000B8F8 File Offset: 0x00009AF8
673 {
674 /*
675An exception occurred when decompiling this method (060002E1)
676
677ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Math.BigInteger Mono.Math.BigInteger/Kernel::Subtract(Mono.Math.BigInteger,Mono.Math.BigInteger)
678
679 ---> System.Exception: Basic block has to end with unconditional control flow.
680{
681 IL_0015:
682 brtrue(IL_0000, logicnot:bool(ldloc:int64[exp:bool](var_1_08)))
683}
684
685 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
686 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
687 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
688 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
689 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
690 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
691 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
692 --- End of inner exception stack trace ---
693 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
694 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
695*/;
696 }
697
698 // Token: 0x060002E2 RID: 738 RVA: 0x0000B91C File Offset: 0x00009B1C
699 public static void MinusEq(BigInteger big, BigInteger small)
700 {
701 uint[] data = big.data;
702 uint[] data2 = small.data;
703 long num = 0L;
704 uint length = small.length;
705 uint length2 = big.length;
706 uint length3 = big.length;
707 if (length3 != 0U)
708 {
709 if (length3 != 0U)
710 {
711 return;
712 }
713 big.length = (uint)num;
714 }
715 int num2 = 1;
716 big.length = (uint)num2;
717 }
718
719 // Token: 0x060002E3 RID: 739 RVA: 0x0000B970 File Offset: 0x00009B70
720 public static void PlusEq(BigInteger bi1, BigInteger bi2)
721 {
722 uint length = bi1.length;
723 uint length2 = bi2.length;
724 uint[] data = bi1.data;
725 long num = 0L;
726 long num2 = 0L;
727 if (num2 != 0L)
728 {
729 }
730 length2.m_value = (uint)num2;
731 bi1.length = (uint)num;
732 if (num == 0L)
733 {
734 return;
735 }
736 }
737
738 // Token: 0x060002E4 RID: 740 RVA: 0x0000B9BC File Offset: 0x00009BBC
740 {
741 /*
742An exception occurred when decompiling this method (060002E4)
743
744ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Math.BigInteger/Sign Mono.Math.BigInteger/Kernel::Compare(Mono.Math.BigInteger,Mono.Math.BigInteger)
745
746 ---> System.Exception: Basic block has to end with unconditional control flow.
747{
748 IL_0017:
749 stloc:uint32[](var_3_1F, ldfld:uint32[](BigInteger::data, ldloc:BigInteger(bi1)))
750 stloc:uint32[](var_4_26, ldfld:uint32[](BigInteger::data, ldloc:BigInteger(bi1)))
751}
752
753 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
754 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
755 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
756 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
757 --- End of inner exception stack trace ---
758 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
759 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
760*/;
761 }
762
763 // Token: 0x060002E5 RID: 741 RVA: 0x0000B9F0 File Offset: 0x00009BF0
764 public static uint SingleByteDivideInPlace(BigInteger n, uint d)
765 {
766 while (n == null)
767 {
768 }
769 }
770
771 // Token: 0x060002E6 RID: 742 RVA: 0x0000BA04 File Offset: 0x00009C04
772 public static uint DwordMod(BigInteger n, uint d)
773 {
774 }
775
776 // Token: 0x060002E7 RID: 743 RVA: 0x0000BA14 File Offset: 0x00009C14
777 public static BigInteger[] DwordDivMod(BigInteger n, uint d)
778 {
779 if (true)
780 {
781 }
782 long num = 0L;
783 if (n != null)
784 {
785 }
786 if (!true)
787 {
788 }
789 BigInteger bigInteger = (uint)num;
790 if (bigInteger == null || bigInteger != null)
791 {
792 }
793 throw new ArrayTypeMismatchException();
794 }
795
796 // Token: 0x060002E8 RID: 744 RVA: 0x0000BA40 File Offset: 0x00009C40
798 {
799 int num = 1;
800 if (bi1.length != 0U)
801 {
802 uint[] data = bi1.data;
803 if (num != 0)
804 {
805 long num2 = 0L;
807 uint[] data2 = bigInteger.data;
809 uint length = bigInteger2.length;
810 uint[] data3 = bigInteger2.data;
811 while (bigInteger2 == null)
812 {
813 }
814 long num3 = 0L;
815 if (num3 != 0L)
816 {
817 }
818 if (data3 == null || length == 0U)
819 {
820 }
821 uint length2 = bigInteger.length;
822 if (length2 != 0U)
823 {
824 uint[] data4 = bigInteger.data;
825 if (length != 0U)
826 {
827 goto IL_00AD;
828 }
830 }
831 int num4 = 1;
832 bigInteger.length = (uint)num4;
833 IL_00AD:
834 if (bigInteger != null)
835 {
836 while (num2 == 0L)
837 {
838 }
840 while (bigInteger3 != null)
841 {
842 }
843 return bigInteger3;
844 }
845 throw new ArrayTypeMismatchException();
846 }
847 }
848 int num5 = 1;
849 bi1.length = (uint)num5;
850 uint[] data5 = bi1.data;
852 return array;
853 }
854
855 // Token: 0x060002E9 RID: 745 RVA: 0x0000BB1C File Offset: 0x00009D1C
856 public static BigInteger LeftShift(BigInteger bi, int n)
857 {
858 /*
859An exception occurred when decompiling this method (060002E9)
860
861ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Math.BigInteger Mono.Math.BigInteger/Kernel::LeftShift(Mono.Math.BigInteger,System.Int32)
862
863 ---> System.Exception: Basic block has to end with unconditional control flow.
864{
865 IL_0005:
866 brtrue(IL_0000, logicnot:bool(ldloc:int64[exp:bool](var_0)))
867}
868
869 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
870 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
871 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
872 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
873 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
874 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
875 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
876 --- End of inner exception stack trace ---
877 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
878 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
879*/;
880 }
881
882 // Token: 0x060002EA RID: 746 RVA: 0x0000BB34 File Offset: 0x00009D34
883 public static BigInteger RightShift(BigInteger bi, int n)
884 {
885 /*
886An exception occurred when decompiling this method (060002EA)
887
888ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Math.BigInteger Mono.Math.BigInteger/Kernel::RightShift(Mono.Math.BigInteger,System.Int32)
889
890 ---> System.Exception: Basic block has to end with unconditional control flow.
891{
892 IL_0000:
893 brtrue(IL_0000, logicnot:bool(ldloc:BigInteger[exp:bool](bi)))
894}
895
896 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
897 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
898 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
899 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
900 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
901 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
902 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
903 --- End of inner exception stack trace ---
904 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
905 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
906*/;
907 }
908
909 // Token: 0x060002EB RID: 747 RVA: 0x0000BB44 File Offset: 0x00009D44
910 public static void Multiply(uint[] x, uint xOffset, uint xLen, uint[] y, uint yOffset, uint yLen, uint[] d, uint dOffset)
911 {
912 if (x != null)
913 {
914 if (y == null)
915 {
916 return;
917 }
918 }
919 else if (y == null)
920 {
921 if (d != null)
922 {
923 return;
924 }
925 return;
926 }
927 if (d == null)
928 {
929 return;
930 }
931 }
932
933 // Token: 0x060002EC RID: 748 RVA: 0x0000BB6C File Offset: 0x00009D6C
934 public static void MultiplyMod2p32pmod(uint[] x, int xOffset, int xLen, uint[] y, int yOffest, int yLen, uint[] d, int dOffset, int mod)
935 {
936 if (x != null)
937 {
938 if (y == null)
939 {
940 return;
941 }
942 }
943 else if (y == null)
944 {
945 if (d != null)
946 {
947 return;
948 }
949 return;
950 }
951 if (d == null)
952 {
953 return;
954 }
955 }
956
957 // Token: 0x060002ED RID: 749 RVA: 0x0000BB94 File Offset: 0x00009D94
958 public static uint modInverse(BigInteger bi, uint modulus)
959 {
960 /*
961An exception occurred when decompiling this method (060002ED)
962
963ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt32 Mono.Math.BigInteger/Kernel::modInverse(Mono.Math.BigInteger,System.UInt32)
964
965 ---> System.Exception: Basic block has to end with unconditional control flow.
966{
967 IL_000B:
968 brtrue(IL_000B, ldloc:int64[exp:bool](var_0_04))
969}
970
971 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
972 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
973 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
974 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
975 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
976 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
977 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
978 --- End of inner exception stack trace ---
979 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
980 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
981*/;
982 }
983
984 // Token: 0x060002EE RID: 750 RVA: 0x0000BBB0 File Offset: 0x00009DB0
986 {
987 uint length = bi.length;
988 uint[] data = bi.data;
989 uint num;
990 return num;
991 }
992 }
993 }
994}
class f__AnonymousType0<< Count > j__TPar
static BigInteger AddSameSign(BigInteger bi1, BigInteger bi2)
static void MultiplyMod2p32pmod(uint[] x, int xOffset, int xLen, uint[] y, int yOffest, int yLen, uint[] d, int dOffset, int mod)
static uint SingleByteDivideInPlace(BigInteger n, uint d)
static BigInteger RightShift(BigInteger bi, int n)
static BigInteger[] DwordDivMod(BigInteger n, uint d)
static uint modInverse(BigInteger bi, uint modulus)
static BigInteger LeftShift(BigInteger bi, int n)
static uint DwordMod(BigInteger n, uint d)
static BigInteger modInverse(BigInteger bi, BigInteger modulus)
static BigInteger.Sign Compare(BigInteger bi1, BigInteger bi2)
static void MinusEq(BigInteger big, BigInteger small)
static BigInteger Subtract(BigInteger big, BigInteger small)
static void Multiply(uint[] x, uint xOffset, uint xLen, uint[] y, uint yOffset, uint yLen, uint[] d, uint dOffset)
static BigInteger[] multiByteDivide(BigInteger bi1, BigInteger bi2)
static void PlusEq(BigInteger bi1, BigInteger bi2)
BigInteger Multiply(BigInteger a, BigInteger b)
BigInteger Difference(BigInteger a, BigInteger b)
void BarrettReduction(BigInteger x)
BigInteger Pow(BigInteger a, BigInteger k)
BigInteger Pow(uint b, BigInteger exp)
ModulusRing(BigInteger modulus)
static bool operator<=(BigInteger bi1, BigInteger bi2)
static BigInteger operator/(BigInteger bi1, BigInteger bi2)
BigInteger ModInverse(BigInteger modulus)
BigInteger ModPow(BigInteger exp, BigInteger n)
void SetBit(uint bitNum, bool value)
static BigInteger operator+(BigInteger bi1, BigInteger bi2)
Definition BigInteger.cs:96
static bool operator!=(BigInteger bi1, uint ui)
BigInteger(BigInteger bi)
Definition BigInteger.cs:20
static bool operator<(BigInteger bi1, BigInteger bi2)
BigInteger(BigInteger.Sign sign, uint len)
Definition BigInteger.cs:12
BigInteger(BigInteger bi, uint len)
Definition BigInteger.cs:45
override int GetHashCode()
static RandomNumberGenerator Rng
static BigInteger operator>>(BigInteger bi1, int shiftVal)
static BigInteger GenerateRandom(int bits)
static BigInteger operator*(BigInteger bi1, BigInteger bi2)
static BigInteger operator-(BigInteger bi1, BigInteger bi2)
string ToString(uint radix, string characterSet)
static bool operator>(BigInteger bi1, BigInteger bi2)
override bool Equals(object o)
static BigInteger GeneratePseudoPrime(int bits)
override string ToString()
bool TestBit(int bitNum)
static BigInteger GenerateRandom(int bits, RandomNumberGenerator rng)
static BigInteger operator<<(BigInteger bi1, int shiftVal)
void SetBit(uint bitNum)
string ToString(uint radix)
static readonly uint[] smallPrimes
static uint operator%(BigInteger bi, uint ui)
static bool operator>=(BigInteger bi1, BigInteger bi2)
static RandomNumberGenerator rng
static bool operator==(BigInteger bi1, uint ui)
BigInteger(byte[] inData)
Definition BigInteger.cs:61