Debian Codegraph @

Test/Resources/il/hello.il

raw
1 .assembly extern mscorlib
2 {
3 .publickeytoken = (B7 7A 5C 56 19 34 E0 89)
4 .ver 2:0:0:0
5 }
6
7 .assembly Hello {}
8
9 .module Hello.dll
10
11 .class private auto ansi Foo {
12
13 .method public specialname rtspecialname instance void .ctor () cil managed
14 {
15 ldarg.0
16 call instance void [mscorlib]System.Object::.ctor ()
17 ret
18 }
19
20 .method public static void Bar (int32 a, int32 b)
21 {
22 .locals init (int32 res)
23 ldarg.0
24 ldarg.1
25 mul
26 stloc.0
27 ldloc.0
28 call void Foo::Baz (int32)
29 ret
30 }
31
32 .method public static void Baz (int32 a)
33 {
34 ret
35 }
36
37 .method public void Gazonk ()
38 {
39 ldarg 0
40 pop
41 ret
42 }
43
44 .method public static void PrintEmpty ()
45 {
46 ldsfld string [mscorlib]System.String::Empty
47 call void [mscorlib]System.Console::WriteLine(string)
48 ret
49 }
50
51 .method public static bool TestFilter (bool b) cil managed
52 {
53 .maxstack 2
54 .locals init (bool flag)
55 beginTry:
56 newobj instance void [mscorlib]System.Exception::.ctor ()
57 throw
58 leave endCatch
59 startFilter:
60 pop
61 ldarg.0
62 endfilter
63 startCatch:
64 ldc.i4.1
65 stloc.0
66 leave return
67 leave endCatch
68 endCatch:
69 L_001b: ldc.i4.0
70 L_001c: stloc.0
71 return:
72 L_001d: ldloc.0
73 L_001e: ret
74 .try beginTry to startFilter filter startFilter handler startCatch to endCatch
75 }
76
77 .method public static !!T GetState<T>(string var, [opt] !!T defaultValue) cil managed
78 {
79 .param [2] = nullref
80
81 ldarg.1
82 ret
83 }
84 }