1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern mscorlib
{ }
.assembly 'test'
{ }
.class private auto ansi Test extends [mscorlib]System.Object
{
.method private hidebysig static int32 Main() il managed
{
.entrypoint
.maxstack 8
.locals (unsigned int64[0...], native unsigned int[0...], native unsigned int, native unsigned int)
ldc.i4 16
newobj instance void native unsigned int[0...]::.ctor(int32)
stloc.0
ldc.i4 16
newobj instance void unsigned int64[0...]::.ctor(int32)
stloc.1
ldc.i4 0x12345678
conv.i
stloc.2
ldc.i4.1
stloc.3
loop_begin:
ldloc.3
switch (err1,a1,a1,a1,a1,a2,a2,a2,a2)
err1:
newobj instance void [mscorlib]System.Exception::.ctor()
throw
a1:
ldloc.0
ldstr "branch1.1"
br.s end_a
a2:
ldloc.1
ldstr "branch1.2"
end_a:
call void [System.Console]System.Console::WriteLine(string)
dup
ldloc.3
dup
dup
switch (err2,b1,b2,b1,b2,b1,b2,b1,b2)
err2:
newobj instance void [mscorlib]System.Exception::.ctor()
throw
b1:
stelem.i
ldstr "branch2.1"
br end_b
b2:
stelem.i8
ldstr "branch2.2"
end_b:
call void [System.Console]System.Console::WriteLine(string)
dup
call void [System.Console]System.Console::WriteLine(class [mscorlib]System.Object)
ldloc.3
dup
switch (err3,c1,c1,c2,c2,c1,c1,c2,c2)
err3:
newobj instance void [mscorlib]System.Exception::.ctor()
throw
err4:
newobj instance void [mscorlib]System.Exception::.ctor()
throw
c1:
ldelem.i
ldstr "branch3.1"
br end_c
c2:
ldelem.i8
ldstr "branch3.2"
end_c:
call void [System.Console]System.Console::WriteLine(string)
ldloc.3
ceq
brfalse err4
ldloc.3
ldc.i4.1
conv.i
add
dup
stloc.3
ldc.i4 9
conv.i
ceq
brfalse loop_begin
ldc.i4 0x64
ret
} // end of method 'Test::Main'
.method public hidebysig specialname rtspecialname
instance void .ctor() il managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
} // end of method 'Test::.ctor'
} // end of class 'Test'
|