[t] Fix codingstd_tests related to fp_equality.t
[parrot.git] / examples / mops / mops.il
blob69278d866a4f5dc325cae31f24d0f09c5076488d
2 //  Microsoft (R) .NET Framework IL Disassembler.  Version 1.0.3705.0
3 //  Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.
5 .assembly extern mscorlib
7   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
8   .ver 1:0:3300:0
10 .assembly hello
12   // --- The following custom attribute is added automatically, do not uncomment -------
13   //  .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(bool,
14   //                                                                                bool) = ( 01 00 01 00 00 00 ) 
15   .hash algorithm 0x00008004
16   .ver 0:0:0:0
18 .module hello.exe
19 // MVID: {B0E5F267-024F-4374-8B69-829095D88C15}
20 .imagebase 0x00400000
21 .subsystem 0x00000003
22 .file alignment 512
23 .corflags 0x00000001
24 // Image base: 0x03010000
26 // ============== CLASS STRUCTURE DECLARATION ==================
28 .class private auto ansi beforefieldinit App
29        extends [mscorlib]System.Object
31 } // end of class App
34 // =============================================================
37 // =============== GLOBAL FIELDS AND METHODS ===================
40 // =============================================================
43 // =============== CLASS MEMBERS DECLARATION ===================
44 //   note that class flags, 'extends' and 'implements' clauses
45 //          are provided here for information only
47 .class private auto ansi beforefieldinit App
48        extends [mscorlib]System.Object
50   .method public hidebysig static int32  Main(string[] args) cil managed
51   {
52     .entrypoint
53     // Code size       171 (0xab)
54     .maxstack  2
55     .locals init ([0] int64 i1,
56              [1] int64 i5,
57              [2] int64 i3,
58              [3] int64 i4,
59              [4] valuetype [mscorlib]System.DateTime start,
60              [5] valuetype [mscorlib]System.DateTime end,
61              [6] float64 n1,
62              [7] float64 n2,
63              [8] valuetype [mscorlib]System.TimeSpan CS$00000000$00000000)
64     .language '{3F5162F8-07C6-11D3-9053-00C04FA302A1}', '{994B45C4-E6E9-11D2-903F-00C04FA302A1}', '{5A869D0B-6611-11D3-BD2A-0000F80849BD}'
65 // Source File 'c:\test\hello.cs' 
66 //000009:               long i4 = 100000000;
67     IL_0000:  ldc.i4.1
68     IL_0001:  conv.i8
69     IL_0002:  stloc.2
70 //000010:               DateTime start, end;
71     IL_0003:  ldc.i4     0x5f5e100
72     IL_0008:  conv.i8
73     IL_0009:  stloc.3
74 //000011:               double n1, n2;
75 //000012:               Console.WriteLine("Iterations:    {0}", i4);
76 //000013: 
77     IL_000a:  ldstr      "Iterations:    {0}"
78     IL_000f:  ldloc.3
79     IL_0010:  box        [mscorlib]System.Int64
80     IL_0015:  call       void [mscorlib]System.Console::WriteLine(string,
81                                                                   object)
83 //000024:               i1 = 8;
84 //000025:               i5 = i4 * i1;
85     IL_001a:  ldc.i4.8
86     IL_001b:  conv.i8
87     IL_001c:  stloc.0
88 //000026:               Console.WriteLine("Estimated ops: {0}", i5);
89     IL_001d:  ldloc.3
90     IL_001e:  ldloc.0
91     IL_001f:  mul
92     IL_0020:  stloc.1
93 //000027:               start = DateTime.Now;
94     IL_0021:  ldstr      "Estimated ops: {0}"
95     IL_0026:  ldloc.1
96     IL_0027:  box        [mscorlib]System.Int64
97     IL_002c:  call       void [mscorlib]System.Console::WriteLine(string,
98                                                                   object)
99 //000028:               REDO:
100     IL_0031:  call       valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::get_Now()
101     IL_0036:  stloc.s    start
102 //000029:                       i4 = i4 - i3;
103 //000030:               if (i4 > 0)
104     IL_0038:  ldloc.3
105     IL_0039:  ldloc.2
106     IL_003a:  sub
107     IL_003b:  stloc.3
108 //000031:                       goto REDO;
109     IL_003c:  ldloc.3
110     IL_003d:  ldc.i4.0
111     IL_003e:  conv.i8
112     IL_003f:  bgt.s      IL_0038
114 //000032:               end = DateTime.Now;
115 //000033:               n2 = (end-start).TotalMilliseconds;
116     IL_0041:  call       valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::get_Now()
117     IL_0046:  stloc.s    end
118 //000034:               n2 /= 1000; // Milliseconds to seconds
119     IL_0048:  ldloc.s    end
120     IL_004a:  ldloc.s    start
121     IL_004c:  call       valuetype [mscorlib]System.TimeSpan [mscorlib]System.DateTime::op_Subtraction(valuetype [mscorlib]System.DateTime,
122                                                                                                        valuetype [mscorlib]System.DateTime)
123     IL_0051:  stloc.s    CS$00000000$00000000
124     IL_0053:  ldloca.s   CS$00000000$00000000
125     IL_0055:  call       instance float64 [mscorlib]System.TimeSpan::get_TotalMilliseconds()
126     IL_005a:  stloc.s    n2
127 //000035:               Console.WriteLine("Elapsed Time:  {0}", n2);
128     IL_005c:  ldloc.s    n2
129     IL_005e:  ldc.r8     1000.
130     IL_0067:  div
131     IL_0068:  stloc.s    n2
132 //000036:               n1 = i5;
133     IL_006a:  ldstr      "Elapsed Time:  {0}"
134     IL_006f:  ldloc.s    n2
135     IL_0071:  box        [mscorlib]System.Double
136     IL_0076:  call       void [mscorlib]System.Console::WriteLine(string,
137                                                                   object)
138 //000037:               n1 /= n2;
139     IL_007b:  ldloc.1
140     IL_007c:  conv.r8
141     IL_007d:  stloc.s    n1
142 //000038:               n2 = 100000.0;
143     IL_007f:  ldloc.s    n1
144     IL_0081:  ldloc.s    n2
145     IL_0083:  div
146     IL_0084:  stloc.s    n1
147 //000039:               n1 /= n2;
148     IL_0086:  ldc.r8     100000.
149     IL_008f:  stloc.s    n2
150 //000040:               Console.WriteLine("M op/s:        {0}", n1);
151     IL_0091:  ldloc.s    n1
152     IL_0093:  ldloc.s    n2
153     IL_0095:  div
154     IL_0096:  stloc.s    n1
155 //000041:               return 0;
156     IL_0098:  ldstr      "M op/s:        {0}"
157     IL_009d:  ldloc.s    n1
158     IL_009f:  box        [mscorlib]System.Double
159     IL_00a4:  call       void [mscorlib]System.Console::WriteLine(string,
160                                                                   object)
161 //000042:       }
162     IL_00a9:  ldc.i4.0
163     IL_00aa:  ret
164   } // end of method App::Main
166   .method public hidebysig specialname rtspecialname 
167           instance void  .ctor() cil managed
168   {
169     // Code size       7 (0x7)
170     .maxstack  1
171     IL_0000:  ldarg.0
172     IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
173     IL_0006:  ret
174   } // end of method App::.ctor
176 } // end of class App
179 // =============================================================
181 //*********** DISASSEMBLY COMPLETE ***********************
182 // WARNING: Created Win32 resource file hello.res