Created
May 17, 2017 13:20
-
-
Save nosami/f777919512012d0892c4882f54743038 to your computer and use it in GitHub Desktop.
Working Reflection.Emit log when running interactively https://github.com/fsharp/fsharp/issues/739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13:38 $ mono ../fsharp/Release/net40/bin/fsi.exe | |
F# Interactive for F# 4.1 | |
Freely distributed under the Apache 2.0 Open Source License | |
For help type #help;; | |
> open System | |
open System.Reflection | |
open System.Reflection.Emit | |
let assemblyBuilder1028156023 = System.AppDomain.CurrentDomain.DefineDynamicAssembly(AssemblyName(Name="FSI-ASSEMBLY"),enum 3,".") | |
let moduleBuilder430293066 = assemblyBuilder1028156023.DefineDynamicModule("FSI-ASSEMBLY","FSI-ASSEMBLY.dll",true) | |
let typeBuilder469169281 = moduleBuilder430293066.DefineType("FSI_0001",enum 385) | |
moduleBuilder430293066.GetType("FSI_0001",false,false) |> ignore | |
let typeBuilder1562124200 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0001>.$FSI_0001",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0001>.$FSI_0001",false,false) |> ignore | |
typeBuilder469169281.SetParent(typeof<System.Object>) | |
typeBuilder1562124200.SetParent(typeof<System.Object>) | |
let methodBuilder569342189 = typeBuilder1562124200.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
typeBuilder469169281.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg1459150094 = methodBuilder569342189.GetILGenerator() | |
let label1459150094_0 = ilg1459150094.DefineLabel() | |
let label1459150094_1 = ilg1459150094.DefineLabel() | |
let label1459150094_2 = ilg1459150094.DefineLabel() | |
ilg1459150094.Emit(OpCodes.Nop) | |
ilg1459150094.MarkLabel(label1459150094_2) | |
ilg1459150094.MarkLabel(label1459150094_1) | |
ilg1459150094.MarkLabel(label1459150094_0) | |
ilg1459150094.Emit(OpCodes.Ret) | |
typeBuilder469169281.CreateType() | |
typeBuilder1562124200.CreateType() | |
typeBuilder2078651136.CreateType() | |
typeBuilder2049352408.CreateType() | |
typeBuilder2049352408.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
- open Syste.IO;; | |
open Syste.IO;; | |
-----^^^^^ | |
/Users/jason/src/fsharp739/stdin(1,6): error FS0039: The namespace or module 'Syste' is not defined. Maybe you want one of the following: | |
System | |
> open System.IO;; | |
let typeBuilder1513345341 = moduleBuilder430293066.DefineType("FSI_0003",enum 385) | |
moduleBuilder430293066.GetType("FSI_0003",false,false) |> ignore | |
let typeBuilder1789723055 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0003>.$FSI_0003",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0003>.$FSI_0003",false,false) |> ignore | |
typeBuilder1513345341.SetParent(typeof<System.Object>) | |
typeBuilder1789723055.SetParent(typeof<System.Object>) | |
let methodBuilder569342189 = typeBuilder1789723055.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
typeBuilder1513345341.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg627633359 = methodBuilder569342189.GetILGenerator() | |
let label627633359_0 = ilg627633359.DefineLabel() | |
let label627633359_1 = ilg627633359.DefineLabel() | |
let label627633359_2 = ilg627633359.DefineLabel() | |
ilg627633359.Emit(OpCodes.Nop) | |
ilg627633359.MarkLabel(label627633359_2) | |
ilg627633359.MarkLabel(label627633359_1) | |
ilg627633359.MarkLabel(label627633359_0) | |
ilg627633359.Emit(OpCodes.Ret) | |
typeBuilder1513345341.CreateType() | |
typeBuilder1789723055.CreateType() | |
typeBuilder2049353104.CreateType() | |
typeBuilder2059732376.CreateType() | |
typeBuilder2059732376.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
> type Observation = { Label:string; Pixels:int[] };; | |
let typeBuilder22988282 = moduleBuilder430293066.DefineType("FSI_0004",enum 385) | |
moduleBuilder430293066.GetType("FSI_0004",false,false) |> ignore | |
let typeBuilder980813727 = typeBuilder22988282.DefineNestedType("Observation",enum 8450) | |
moduleBuilder430293066.GetType("FSI_0004+Observation",false,false) |> ignore | |
let typeBuilder1856045891 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0004>.$FSI_0004",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0004>.$FSI_0004",false,false) |> ignore | |
typeBuilder22988282.SetParent(typeof<System.Object>) | |
typeBuilder980813727.SetParent(typeof<System.Object>) | |
typeBuilder1856045891.SetParent(typeof<System.Object>) | |
typeBuilder980813727.AddInterfaceImplementation(System.IEquatable`1[FSI_0004+Observation]) | |
typeBuilder980813727.AddInterfaceImplementation(System.Collections.IStructuralEquatable) | |
typeBuilder980813727.AddInterfaceImplementation(System.IComparable`1[FSI_0004+Observation]) | |
typeBuilder980813727.AddInterfaceImplementation(System.IComparable) | |
typeBuilder980813727.AddInterfaceImplementation(System.Collections.IStructuralComparable) | |
let methodBuilder298307973 = typeBuilder980813727.DefineMethod("get_Label",enum 2182,enum 32) | |
methodBuilder298307973.SetParameters([||]) | |
methodBuilder298307973.SetReturnType(typeof<System.String>) | |
methodBuilder298307973.SetImplementationFlags(enum 0) | |
let methodBuilder771301806 = typeBuilder980813727.DefineMethod("get_Pixels",enum 2182,enum 32) | |
methodBuilder771301806.SetParameters([||]) | |
methodBuilder771301806.SetReturnType(typeof<System.Int32[]>) | |
methodBuilder771301806.SetImplementationFlags(enum 0) | |
let constructorBuilder91382678 = typeBuilder980813727.DefineConstructor(enum 2054,CallingConventions.HasThis,[|System.String; System.Int32[]|]) | |
constructorBuilder91382678.SetImplementationFlags(enum 0) | |
let methodBuilder891462610 = typeBuilder980813727.DefineMethod("ToString",enum 582,enum 32) | |
methodBuilder891462610.SetParameters([||]) | |
methodBuilder891462610.SetReturnType(typeof<System.String>) | |
methodBuilder891462610.SetImplementationFlags(enum 0) | |
let methodBuilder2129836076 = typeBuilder980813727.DefineMethod("CompareTo",enum 230,enum 32) | |
methodBuilder2129836076.SetParameters([|FSI_0004+Observation|]) | |
methodBuilder2129836076.SetReturnType(typeof<System.Int32>) | |
methodBuilder2129836076.SetImplementationFlags(enum 0) | |
let methodBuilder2129836076 = typeBuilder980813727.DefineMethod("CompareTo",enum 230,enum 32) | |
methodBuilder2129836076.SetParameters([|System.Object|]) | |
methodBuilder2129836076.SetReturnType(typeof<System.Int32>) | |
methodBuilder2129836076.SetImplementationFlags(enum 0) | |
let methodBuilder2129836076 = typeBuilder980813727.DefineMethod("CompareTo",enum 230,enum 32) | |
methodBuilder2129836076.SetParameters([|System.Object; System.Collections.IComparer|]) | |
methodBuilder2129836076.SetReturnType(typeof<System.Int32>) | |
methodBuilder2129836076.SetImplementationFlags(enum 0) | |
let methodBuilder481831937 = typeBuilder980813727.DefineMethod("GetHashCode",enum 230,enum 32) | |
methodBuilder481831937.SetParameters([|System.Collections.IEqualityComparer|]) | |
methodBuilder481831937.SetReturnType(typeof<System.Int32>) | |
methodBuilder481831937.SetImplementationFlags(enum 0) | |
let methodBuilder481831937 = typeBuilder980813727.DefineMethod("GetHashCode",enum 230,enum 32) | |
methodBuilder481831937.SetParameters([||]) | |
methodBuilder481831937.SetReturnType(typeof<System.Int32>) | |
methodBuilder481831937.SetImplementationFlags(enum 0) | |
let methodBuilder1014339031 = typeBuilder980813727.DefineMethod("Equals",enum 230,enum 32) | |
methodBuilder1014339031.SetParameters([|System.Object; System.Collections.IEqualityComparer|]) | |
methodBuilder1014339031.SetReturnType(typeof<System.Boolean>) | |
methodBuilder1014339031.SetImplementationFlags(enum 0) | |
let methodBuilder1014339031 = typeBuilder980813727.DefineMethod("Equals",enum 230,enum 32) | |
methodBuilder1014339031.SetParameters([|FSI_0004+Observation|]) | |
methodBuilder1014339031.SetReturnType(typeof<System.Boolean>) | |
methodBuilder1014339031.SetImplementationFlags(enum 0) | |
let methodBuilder1014339031 = typeBuilder980813727.DefineMethod("Equals",enum 230,enum 32) | |
methodBuilder1014339031.SetParameters([|System.Object|]) | |
methodBuilder1014339031.SetReturnType(typeof<System.Boolean>) | |
methodBuilder1014339031.SetImplementationFlags(enum 0) | |
let fieldBuilder421721425 = typeBuilder980813727.DefineField("Label@",typeof<System.String>,enum 3) | |
let fieldBuilder1202562495 = typeBuilder980813727.DefineField("Pixels@",typeof<System.Int32[]>,enum 3) | |
typeBuilder980813727.DefineProperty(""Label"",enum 0,typeof<System.String>,[||]) | |
typeBuilder980813727.DefineProperty(""Pixels"",enum 0,typeof<System.Int32[]>,[||]) | |
let methodBuilder569342189 = typeBuilder1856045891.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
typeBuilder22988282.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg304548258 = methodBuilder298307973.GetILGenerator() | |
ilg304548258.Emit(OpCodes.Ldarg, int16 0) | |
ilg304548258.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg304548258.Emit(OpCodes.Ret) | |
let ilg1522739917 = methodBuilder771301806.GetILGenerator() | |
ilg1522739917.Emit(OpCodes.Ldarg, int16 0) | |
ilg1522739917.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg1522739917.Emit(OpCodes.Ret) | |
constructorBuilder91382678.DefineParameter(1,enum 0,"label") | |
constructorBuilder91382678.DefineParameter(2,enum 0,"pixels") | |
ilg2114022140.Emit(OpCodes.Ldarg, int16 0) | |
ilg2114022140.Emit(OpCodes.Call,constructor_Object) | |
ilg2114022140.Emit(OpCodes.Ldarg, int16 0) | |
ilg2114022140.Emit(OpCodes.Ldarg, int16 1) | |
ilg2114022140.Emit(OpCodes.Stfld, fieldBuilder421721425) // field Label@ | |
ilg2114022140.Emit(OpCodes.Ldarg, int16 0) | |
ilg2114022140.Emit(OpCodes.Ldarg, int16 2) | |
ilg2114022140.Emit(OpCodes.Stfld, fieldBuilder1202562495) // field Pixels@ | |
ilg2114022140.Emit(OpCodes.Ret) | |
let ilg1230371896 = methodBuilder891462610.GetILGenerator() | |
ilg1230371896.Emit(OpCodes.Ldstr,"@%+A") | |
ilg1230371896.Emit(OpCodes.Newobj,constructor_PrintfFormat`5) | |
ilg1230371896.Emit(OpCodes.Call, methodBuilder1916221604) // method PrintFormatToString | |
ilg1230371896.Emit(OpCodes.Ldarg, int16 0) | |
ilg1230371896.Emit(OpCodes.Callvirt, methodBuilder8470992) // method Invoke | |
ilg1230371896.Emit(OpCodes.Ret) | |
methodBuilder891462610.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder2129836076.DefineParameter(1,enum 0,"obj") | |
let ilg1245631380 = methodBuilder2129836076.GetILGenerator() | |
ilg1245631380.DeclareLocal(typeof<System.Int32>,false) | |
ilg1245631380.DeclareLocal(typeof<System.Collections.IComparer>,false) | |
let label1245631380_0 = ilg1245631380.DefineLabel() | |
let label1245631380_1 = ilg1245631380.DefineLabel() | |
let label1245631380_2 = ilg1245631380.DefineLabel() | |
let label1245631380_3 = ilg1245631380.DefineLabel() | |
let label1245631380_4 = ilg1245631380.DefineLabel() | |
let label1245631380_5 = ilg1245631380.DefineLabel() | |
let label1245631380_6 = ilg1245631380.DefineLabel() | |
let label1245631380_7 = ilg1245631380.DefineLabel() | |
let label1245631380_8 = ilg1245631380.DefineLabel() | |
let label1245631380_9 = ilg1245631380.DefineLabel() | |
let label1245631380_10 = ilg1245631380.DefineLabel() | |
let label1245631380_11 = ilg1245631380.DefineLabel() | |
let label1245631380_12 = ilg1245631380.DefineLabel() | |
let label1245631380_13 = ilg1245631380.DefineLabel() | |
let label1245631380_14 = ilg1245631380.DefineLabel() | |
let label1245631380_15 = ilg1245631380.DefineLabel() | |
let label1245631380_16 = ilg1245631380.DefineLabel() | |
let label1245631380_17 = ilg1245631380.DefineLabel() | |
let label1245631380_18 = ilg1245631380.DefineLabel() | |
let label1245631380_19 = ilg1245631380.DefineLabel() | |
let label1245631380_20 = ilg1245631380.DefineLabel() | |
let label1245631380_21 = ilg1245631380.DefineLabel() | |
let label1245631380_22 = ilg1245631380.DefineLabel() | |
let label1245631380_23 = ilg1245631380.DefineLabel() | |
let label1245631380_24 = ilg1245631380.DefineLabel() | |
let label1245631380_25 = ilg1245631380.DefineLabel() | |
let label1245631380_26 = ilg1245631380.DefineLabel() | |
let label1245631380_27 = ilg1245631380.DefineLabel() | |
let label1245631380_28 = ilg1245631380.DefineLabel() | |
let label1245631380_29 = ilg1245631380.DefineLabel() | |
let label1245631380_30 = ilg1245631380.DefineLabel() | |
let label1245631380_31 = ilg1245631380.DefineLabel() | |
let label1245631380_32 = ilg1245631380.DefineLabel() | |
let label1245631380_33 = ilg1245631380.DefineLabel() | |
let label1245631380_34 = ilg1245631380.DefineLabel() | |
let label1245631380_35 = ilg1245631380.DefineLabel() | |
let label1245631380_36 = ilg1245631380.DefineLabel() | |
let label1245631380_37 = ilg1245631380.DefineLabel() | |
let label1245631380_38 = ilg1245631380.DefineLabel() | |
let label1245631380_39 = ilg1245631380.DefineLabel() | |
let label1245631380_40 = ilg1245631380.DefineLabel() | |
let label1245631380_41 = ilg1245631380.DefineLabel() | |
let label1245631380_42 = ilg1245631380.DefineLabel() | |
let label1245631380_43 = ilg1245631380.DefineLabel() | |
let label1245631380_44 = ilg1245631380.DefineLabel() | |
let label1245631380_45 = ilg1245631380.DefineLabel() | |
let label1245631380_46 = ilg1245631380.DefineLabel() | |
let label1245631380_47 = ilg1245631380.DefineLabel() | |
let label1245631380_48 = ilg1245631380.DefineLabel() | |
let label1245631380_49 = ilg1245631380.DefineLabel() | |
let label1245631380_50 = ilg1245631380.DefineLabel() | |
let label1245631380_51 = ilg1245631380.DefineLabel() | |
let label1245631380_52 = ilg1245631380.DefineLabel() | |
let label1245631380_53 = ilg1245631380.DefineLabel() | |
let label1245631380_54 = ilg1245631380.DefineLabel() | |
let label1245631380_55 = ilg1245631380.DefineLabel() | |
let label1245631380_56 = ilg1245631380.DefineLabel() | |
ilg1245631380.Emit(OpCodes.Nop) | |
ilg1245631380.MarkLabel(label1245631380_0) | |
ilg1245631380.Emit(OpCodes.Ldarg, int16 0) | |
ilg1245631380.Emit(OpCodes.Ldnull) | |
ilg1245631380.Emit(OpCodes.Cgt_un) | |
ilg1245631380.Emit(OpCodes.Brfalse,label1245631380_41) | |
ilg1245631380.MarkLabel(label1245631380_3) | |
ilg1245631380.MarkLabel(label1245631380_2) | |
ilg1245631380.MarkLabel(label1245631380_1) | |
ilg1245631380.Emit(OpCodes.Ldarg, int16 1) | |
ilg1245631380.Emit(OpCodes.Ldnull) | |
ilg1245631380.Emit(OpCodes.Cgt_un) | |
ilg1245631380.Emit(OpCodes.Brfalse,label1245631380_34) | |
ilg1245631380.MarkLabel(label1245631380_8) | |
ilg1245631380.MarkLabel(label1245631380_7) | |
ilg1245631380.MarkLabel(label1245631380_6) | |
ilg1245631380.MarkLabel(label1245631380_5) | |
ilg1245631380.MarkLabel(label1245631380_4) | |
ilg1245631380.Emit(OpCodes.Call, methodBuilder430375444) // method get_GenericComparer | |
ilg1245631380.Emit(OpCodes.Stloc, int16 1) | |
ilg1245631380.Emit(OpCodes.Ldarg, int16 0) | |
ilg1245631380.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg1245631380.Emit(OpCodes.Ldarg, int16 1) | |
ilg1245631380.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg1245631380.Emit(OpCodes.Call, methodBuilder1026119192) // method CompareOrdinal | |
ilg1245631380.MarkLabel(label1245631380_9) | |
ilg1245631380.Emit(OpCodes.Stloc, int16 0) | |
ilg1245631380.Emit(OpCodes.Ldloc, int16 0) | |
ilg1245631380.Emit(OpCodes.Ldc_I4, 0) | |
ilg1245631380.Emit(OpCodes.Bge,label1245631380_14) | |
ilg1245631380.MarkLabel(label1245631380_12) | |
ilg1245631380.MarkLabel(label1245631380_11) | |
ilg1245631380.MarkLabel(label1245631380_10) | |
ilg1245631380.Emit(OpCodes.Ldloc, int16 0) | |
ilg1245631380.Emit(OpCodes.Ret) | |
ilg1245631380.MarkLabel(label1245631380_17) | |
ilg1245631380.MarkLabel(label1245631380_16) | |
ilg1245631380.MarkLabel(label1245631380_15) | |
ilg1245631380.MarkLabel(label1245631380_14) | |
ilg1245631380.MarkLabel(label1245631380_13) | |
ilg1245631380.Emit(OpCodes.Ldloc, int16 0) | |
ilg1245631380.Emit(OpCodes.Ldc_I4, 0) | |
ilg1245631380.Emit(OpCodes.Ble,label1245631380_22) | |
ilg1245631380.MarkLabel(label1245631380_20) | |
ilg1245631380.MarkLabel(label1245631380_19) | |
ilg1245631380.MarkLabel(label1245631380_18) | |
ilg1245631380.Emit(OpCodes.Ldloc, int16 0) | |
ilg1245631380.Emit(OpCodes.Ret) | |
ilg1245631380.MarkLabel(label1245631380_25) | |
ilg1245631380.MarkLabel(label1245631380_24) | |
ilg1245631380.MarkLabel(label1245631380_23) | |
ilg1245631380.MarkLabel(label1245631380_22) | |
ilg1245631380.MarkLabel(label1245631380_21) | |
ilg1245631380.Emit(OpCodes.Call, methodBuilder430375444) // method get_GenericComparer | |
ilg1245631380.Emit(OpCodes.Ldarg, int16 0) | |
ilg1245631380.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg1245631380.Emit(OpCodes.Ldarg, int16 1) | |
ilg1245631380.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg1245631380.MarkLabel(label1245631380_26) | |
ilg1245631380.Emit(OpCodes.Tail_) | |
ilg1245631380.Emit(OpCodes.Call, methodBuilder1832792028) // method GenericComparisonWithComparerIntrinsic | |
ilg1245631380.Emit(OpCodes.Ret) | |
ilg1245631380.Emit(OpCodes.Ret) | |
ilg1245631380.MarkLabel(label1245631380_37) | |
ilg1245631380.MarkLabel(label1245631380_36) | |
ilg1245631380.MarkLabel(label1245631380_35) | |
ilg1245631380.MarkLabel(label1245631380_34) | |
ilg1245631380.MarkLabel(label1245631380_33) | |
ilg1245631380.MarkLabel(label1245631380_32) | |
ilg1245631380.MarkLabel(label1245631380_31) | |
ilg1245631380.MarkLabel(label1245631380_30) | |
ilg1245631380.MarkLabel(label1245631380_29) | |
ilg1245631380.MarkLabel(label1245631380_28) | |
ilg1245631380.MarkLabel(label1245631380_27) | |
ilg1245631380.Emit(OpCodes.Ldc_I4, 1) | |
ilg1245631380.Emit(OpCodes.Ret) | |
ilg1245631380.MarkLabel(label1245631380_44) | |
ilg1245631380.MarkLabel(label1245631380_43) | |
ilg1245631380.MarkLabel(label1245631380_42) | |
ilg1245631380.MarkLabel(label1245631380_41) | |
ilg1245631380.MarkLabel(label1245631380_40) | |
ilg1245631380.MarkLabel(label1245631380_39) | |
ilg1245631380.MarkLabel(label1245631380_38) | |
ilg1245631380.Emit(OpCodes.Ldarg, int16 1) | |
ilg1245631380.Emit(OpCodes.Ldnull) | |
ilg1245631380.Emit(OpCodes.Cgt_un) | |
ilg1245631380.Emit(OpCodes.Brfalse,label1245631380_49) | |
ilg1245631380.MarkLabel(label1245631380_47) | |
ilg1245631380.MarkLabel(label1245631380_46) | |
ilg1245631380.MarkLabel(label1245631380_45) | |
ilg1245631380.Emit(OpCodes.Ldc_I4, -1) | |
ilg1245631380.Emit(OpCodes.Ret) | |
ilg1245631380.MarkLabel(label1245631380_52) | |
ilg1245631380.MarkLabel(label1245631380_51) | |
ilg1245631380.MarkLabel(label1245631380_50) | |
ilg1245631380.MarkLabel(label1245631380_49) | |
ilg1245631380.MarkLabel(label1245631380_48) | |
ilg1245631380.Emit(OpCodes.Ldc_I4, 0) | |
ilg1245631380.Emit(OpCodes.Ret) | |
ilg1245631380.MarkLabel(label1245631380_56) | |
ilg1245631380.MarkLabel(label1245631380_55) | |
ilg1245631380.MarkLabel(label1245631380_54) | |
ilg1245631380.MarkLabel(label1245631380_53) | |
methodBuilder2129836076.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder2129836076.DefineParameter(1,enum 0,"obj") | |
let ilg1007717551 = methodBuilder2129836076.GetILGenerator() | |
let label1007717551_0 = ilg1007717551.DefineLabel() | |
let label1007717551_1 = ilg1007717551.DefineLabel() | |
let label1007717551_2 = ilg1007717551.DefineLabel() | |
ilg1007717551.MarkLabel(label1007717551_0) | |
ilg1007717551.Emit(OpCodes.Nop) | |
ilg1007717551.Emit(OpCodes.Ldarg, int16 0) | |
ilg1007717551.Emit(OpCodes.Ldarg, int16 1) | |
ilg1007717551.Emit(OpCodes.Unbox_any, typeof<FSI_0004+Observation>) | |
ilg1007717551.MarkLabel(label1007717551_1) | |
ilg1007717551.Emit(OpCodes.Tail_) | |
ilg1007717551.Emit(OpCodes.Callvirt, methodBuilder2129836076) // method CompareTo | |
ilg1007717551.Emit(OpCodes.Ret) | |
ilg1007717551.Emit(OpCodes.Ret) | |
ilg1007717551.MarkLabel(label1007717551_2) | |
methodBuilder2129836076.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder2129836076.DefineParameter(1,enum 0,"obj") | |
methodBuilder2129836076.DefineParameter(2,enum 0,"comp") | |
let ilg482027429 = methodBuilder2129836076.GetILGenerator() | |
ilg482027429.DeclareLocal(typeof<FSI_0004+Observation>,false) | |
ilg482027429.DeclareLocal(typeof<System.Int32>,false) | |
let label482027429_0 = ilg482027429.DefineLabel() | |
let label482027429_1 = ilg482027429.DefineLabel() | |
let label482027429_2 = ilg482027429.DefineLabel() | |
let label482027429_3 = ilg482027429.DefineLabel() | |
let label482027429_4 = ilg482027429.DefineLabel() | |
let label482027429_5 = ilg482027429.DefineLabel() | |
let label482027429_6 = ilg482027429.DefineLabel() | |
let label482027429_7 = ilg482027429.DefineLabel() | |
let label482027429_8 = ilg482027429.DefineLabel() | |
let label482027429_9 = ilg482027429.DefineLabel() | |
let label482027429_10 = ilg482027429.DefineLabel() | |
let label482027429_11 = ilg482027429.DefineLabel() | |
let label482027429_12 = ilg482027429.DefineLabel() | |
let label482027429_13 = ilg482027429.DefineLabel() | |
let label482027429_14 = ilg482027429.DefineLabel() | |
let label482027429_15 = ilg482027429.DefineLabel() | |
let label482027429_16 = ilg482027429.DefineLabel() | |
let label482027429_17 = ilg482027429.DefineLabel() | |
let label482027429_18 = ilg482027429.DefineLabel() | |
let label482027429_19 = ilg482027429.DefineLabel() | |
let label482027429_20 = ilg482027429.DefineLabel() | |
let label482027429_21 = ilg482027429.DefineLabel() | |
let label482027429_22 = ilg482027429.DefineLabel() | |
let label482027429_23 = ilg482027429.DefineLabel() | |
let label482027429_24 = ilg482027429.DefineLabel() | |
let label482027429_25 = ilg482027429.DefineLabel() | |
let label482027429_26 = ilg482027429.DefineLabel() | |
let label482027429_27 = ilg482027429.DefineLabel() | |
let label482027429_28 = ilg482027429.DefineLabel() | |
let label482027429_29 = ilg482027429.DefineLabel() | |
let label482027429_30 = ilg482027429.DefineLabel() | |
let label482027429_31 = ilg482027429.DefineLabel() | |
let label482027429_32 = ilg482027429.DefineLabel() | |
let label482027429_33 = ilg482027429.DefineLabel() | |
let label482027429_34 = ilg482027429.DefineLabel() | |
let label482027429_35 = ilg482027429.DefineLabel() | |
let label482027429_36 = ilg482027429.DefineLabel() | |
let label482027429_37 = ilg482027429.DefineLabel() | |
let label482027429_38 = ilg482027429.DefineLabel() | |
let label482027429_39 = ilg482027429.DefineLabel() | |
let label482027429_40 = ilg482027429.DefineLabel() | |
let label482027429_41 = ilg482027429.DefineLabel() | |
let label482027429_42 = ilg482027429.DefineLabel() | |
let label482027429_43 = ilg482027429.DefineLabel() | |
let label482027429_44 = ilg482027429.DefineLabel() | |
let label482027429_45 = ilg482027429.DefineLabel() | |
let label482027429_46 = ilg482027429.DefineLabel() | |
let label482027429_47 = ilg482027429.DefineLabel() | |
let label482027429_48 = ilg482027429.DefineLabel() | |
let label482027429_49 = ilg482027429.DefineLabel() | |
let label482027429_50 = ilg482027429.DefineLabel() | |
let label482027429_51 = ilg482027429.DefineLabel() | |
let label482027429_52 = ilg482027429.DefineLabel() | |
let label482027429_53 = ilg482027429.DefineLabel() | |
let label482027429_54 = ilg482027429.DefineLabel() | |
let label482027429_55 = ilg482027429.DefineLabel() | |
let label482027429_56 = ilg482027429.DefineLabel() | |
ilg482027429.MarkLabel(label482027429_0) | |
ilg482027429.Emit(OpCodes.Nop) | |
ilg482027429.MarkLabel(label482027429_1) | |
ilg482027429.Emit(OpCodes.Ldarg, int16 1) | |
ilg482027429.Emit(OpCodes.Unbox_any, typeof<FSI_0004+Observation>) | |
ilg482027429.Emit(OpCodes.Stloc, int16 0) | |
ilg482027429.Emit(OpCodes.Ldarg, int16 0) | |
ilg482027429.Emit(OpCodes.Ldnull) | |
ilg482027429.Emit(OpCodes.Cgt_un) | |
ilg482027429.Emit(OpCodes.Brfalse,label482027429_40) | |
ilg482027429.MarkLabel(label482027429_4) | |
ilg482027429.MarkLabel(label482027429_3) | |
ilg482027429.MarkLabel(label482027429_2) | |
ilg482027429.Emit(OpCodes.Ldarg, int16 1) | |
ilg482027429.Emit(OpCodes.Unbox_any, typeof<FSI_0004+Observation>) | |
ilg482027429.Emit(OpCodes.Ldnull) | |
ilg482027429.Emit(OpCodes.Cgt_un) | |
ilg482027429.Emit(OpCodes.Brfalse,label482027429_33) | |
ilg482027429.MarkLabel(label482027429_8) | |
ilg482027429.MarkLabel(label482027429_7) | |
ilg482027429.MarkLabel(label482027429_6) | |
ilg482027429.MarkLabel(label482027429_5) | |
ilg482027429.Emit(OpCodes.Ldarg, int16 0) | |
ilg482027429.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg482027429.Emit(OpCodes.Ldloc, int16 0) | |
ilg482027429.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg482027429.Emit(OpCodes.Call, methodBuilder1026119192) // method CompareOrdinal | |
ilg482027429.Emit(OpCodes.Stloc, int16 1) | |
ilg482027429.Emit(OpCodes.Ldloc, int16 1) | |
ilg482027429.Emit(OpCodes.Ldc_I4, 0) | |
ilg482027429.Emit(OpCodes.Bge,label482027429_13) | |
ilg482027429.MarkLabel(label482027429_11) | |
ilg482027429.MarkLabel(label482027429_10) | |
ilg482027429.MarkLabel(label482027429_9) | |
ilg482027429.Emit(OpCodes.Ldloc, int16 1) | |
ilg482027429.Emit(OpCodes.Ret) | |
ilg482027429.MarkLabel(label482027429_16) | |
ilg482027429.MarkLabel(label482027429_15) | |
ilg482027429.MarkLabel(label482027429_14) | |
ilg482027429.MarkLabel(label482027429_13) | |
ilg482027429.MarkLabel(label482027429_12) | |
ilg482027429.Emit(OpCodes.Ldloc, int16 1) | |
ilg482027429.Emit(OpCodes.Ldc_I4, 0) | |
ilg482027429.Emit(OpCodes.Ble,label482027429_21) | |
ilg482027429.MarkLabel(label482027429_19) | |
ilg482027429.MarkLabel(label482027429_18) | |
ilg482027429.MarkLabel(label482027429_17) | |
ilg482027429.Emit(OpCodes.Ldloc, int16 1) | |
ilg482027429.Emit(OpCodes.Ret) | |
ilg482027429.MarkLabel(label482027429_24) | |
ilg482027429.MarkLabel(label482027429_23) | |
ilg482027429.MarkLabel(label482027429_22) | |
ilg482027429.MarkLabel(label482027429_21) | |
ilg482027429.MarkLabel(label482027429_20) | |
ilg482027429.Emit(OpCodes.Ldarg, int16 2) | |
ilg482027429.Emit(OpCodes.Ldarg, int16 0) | |
ilg482027429.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg482027429.Emit(OpCodes.Ldloc, int16 0) | |
ilg482027429.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg482027429.MarkLabel(label482027429_25) | |
ilg482027429.Emit(OpCodes.Tail_) | |
ilg482027429.Emit(OpCodes.Call, methodBuilder1832792028) // method GenericComparisonWithComparerIntrinsic | |
ilg482027429.Emit(OpCodes.Ret) | |
ilg482027429.Emit(OpCodes.Ret) | |
ilg482027429.MarkLabel(label482027429_36) | |
ilg482027429.MarkLabel(label482027429_35) | |
ilg482027429.MarkLabel(label482027429_34) | |
ilg482027429.MarkLabel(label482027429_33) | |
ilg482027429.MarkLabel(label482027429_32) | |
ilg482027429.MarkLabel(label482027429_31) | |
ilg482027429.MarkLabel(label482027429_30) | |
ilg482027429.MarkLabel(label482027429_29) | |
ilg482027429.MarkLabel(label482027429_28) | |
ilg482027429.MarkLabel(label482027429_27) | |
ilg482027429.MarkLabel(label482027429_26) | |
ilg482027429.Emit(OpCodes.Ldc_I4, 1) | |
ilg482027429.Emit(OpCodes.Ret) | |
ilg482027429.MarkLabel(label482027429_43) | |
ilg482027429.MarkLabel(label482027429_42) | |
ilg482027429.MarkLabel(label482027429_41) | |
ilg482027429.MarkLabel(label482027429_40) | |
ilg482027429.MarkLabel(label482027429_39) | |
ilg482027429.MarkLabel(label482027429_38) | |
ilg482027429.MarkLabel(label482027429_37) | |
ilg482027429.Emit(OpCodes.Ldarg, int16 1) | |
ilg482027429.Emit(OpCodes.Unbox_any, typeof<FSI_0004+Observation>) | |
ilg482027429.Emit(OpCodes.Ldnull) | |
ilg482027429.Emit(OpCodes.Cgt_un) | |
ilg482027429.Emit(OpCodes.Brfalse,label482027429_48) | |
ilg482027429.MarkLabel(label482027429_46) | |
ilg482027429.MarkLabel(label482027429_45) | |
ilg482027429.MarkLabel(label482027429_44) | |
ilg482027429.Emit(OpCodes.Ldc_I4, -1) | |
ilg482027429.Emit(OpCodes.Ret) | |
ilg482027429.MarkLabel(label482027429_51) | |
ilg482027429.MarkLabel(label482027429_50) | |
ilg482027429.MarkLabel(label482027429_49) | |
ilg482027429.MarkLabel(label482027429_48) | |
ilg482027429.MarkLabel(label482027429_47) | |
ilg482027429.Emit(OpCodes.Ldc_I4, 0) | |
ilg482027429.Emit(OpCodes.Ret) | |
ilg482027429.MarkLabel(label482027429_56) | |
ilg482027429.MarkLabel(label482027429_55) | |
ilg482027429.MarkLabel(label482027429_54) | |
ilg482027429.MarkLabel(label482027429_53) | |
ilg482027429.MarkLabel(label482027429_52) | |
methodBuilder2129836076.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder481831937.DefineParameter(1,enum 0,"comp") | |
let ilg187187065 = methodBuilder481831937.GetILGenerator() | |
ilg187187065.DeclareLocal(typeof<System.Int32>,false) | |
ilg187187065.DeclareLocal(typeof<System.String>,false) | |
let label187187065_0 = ilg187187065.DefineLabel() | |
let label187187065_1 = ilg187187065.DefineLabel() | |
let label187187065_2 = ilg187187065.DefineLabel() | |
let label187187065_3 = ilg187187065.DefineLabel() | |
let label187187065_4 = ilg187187065.DefineLabel() | |
let label187187065_5 = ilg187187065.DefineLabel() | |
let label187187065_6 = ilg187187065.DefineLabel() | |
let label187187065_7 = ilg187187065.DefineLabel() | |
let label187187065_8 = ilg187187065.DefineLabel() | |
let label187187065_9 = ilg187187065.DefineLabel() | |
let label187187065_10 = ilg187187065.DefineLabel() | |
let label187187065_11 = ilg187187065.DefineLabel() | |
let label187187065_12 = ilg187187065.DefineLabel() | |
let label187187065_13 = ilg187187065.DefineLabel() | |
let label187187065_14 = ilg187187065.DefineLabel() | |
let label187187065_15 = ilg187187065.DefineLabel() | |
let label187187065_16 = ilg187187065.DefineLabel() | |
let label187187065_17 = ilg187187065.DefineLabel() | |
let label187187065_18 = ilg187187065.DefineLabel() | |
let label187187065_19 = ilg187187065.DefineLabel() | |
let label187187065_20 = ilg187187065.DefineLabel() | |
let label187187065_21 = ilg187187065.DefineLabel() | |
let label187187065_22 = ilg187187065.DefineLabel() | |
let label187187065_23 = ilg187187065.DefineLabel() | |
let label187187065_24 = ilg187187065.DefineLabel() | |
let label187187065_25 = ilg187187065.DefineLabel() | |
let label187187065_26 = ilg187187065.DefineLabel() | |
ilg187187065.Emit(OpCodes.Nop) | |
ilg187187065.MarkLabel(label187187065_0) | |
ilg187187065.Emit(OpCodes.Ldarg, int16 0) | |
ilg187187065.Emit(OpCodes.Ldnull) | |
ilg187187065.Emit(OpCodes.Cgt_un) | |
ilg187187065.Emit(OpCodes.Brfalse,label187187065_21) | |
ilg187187065.MarkLabel(label187187065_4) | |
ilg187187065.MarkLabel(label187187065_3) | |
ilg187187065.MarkLabel(label187187065_2) | |
ilg187187065.MarkLabel(label187187065_1) | |
ilg187187065.Emit(OpCodes.Ldc_I4, 0) | |
ilg187187065.Emit(OpCodes.Stloc, int16 0) | |
ilg187187065.Emit(OpCodes.Ldc_I4, -1640531527) | |
ilg187187065.Emit(OpCodes.Ldarg, int16 1) | |
ilg187187065.Emit(OpCodes.Ldarg, int16 0) | |
ilg187187065.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg187187065.MarkLabel(label187187065_5) | |
ilg187187065.Emit(OpCodes.Call, methodBuilder1142292769) // method GenericHashWithComparerIntrinsic | |
ilg187187065.MarkLabel(label187187065_6) | |
ilg187187065.Emit(OpCodes.Ldloc, int16 0) | |
ilg187187065.Emit(OpCodes.Ldc_I4, 6) | |
ilg187187065.Emit(OpCodes.Shl) | |
ilg187187065.Emit(OpCodes.Ldloc, int16 0) | |
ilg187187065.Emit(OpCodes.Ldc_I4, 2) | |
ilg187187065.Emit(OpCodes.Shr) | |
ilg187187065.Emit(OpCodes.Add) | |
ilg187187065.Emit(OpCodes.Add) | |
ilg187187065.Emit(OpCodes.Add) | |
ilg187187065.Emit(OpCodes.Stloc, int16 0) | |
ilg187187065.Emit(OpCodes.Ldc_I4, -1640531527) | |
ilg187187065.MarkLabel(label187187065_7) | |
ilg187187065.Emit(OpCodes.Ldarg, int16 0) | |
ilg187187065.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg187187065.Emit(OpCodes.Stloc, int16 1) | |
ilg187187065.Emit(OpCodes.Ldloc, int16 1) | |
ilg187187065.Emit(OpCodes.Brfalse,label187187065_12) | |
ilg187187065.MarkLabel(label187187065_10) | |
ilg187187065.MarkLabel(label187187065_9) | |
ilg187187065.MarkLabel(label187187065_8) | |
ilg187187065.Emit(OpCodes.Ldloc, int16 1) | |
ilg187187065.Emit(OpCodes.Call, methodBuilder46982790) // method GetHashCode | |
ilg187187065.Emit(OpCodes.Nop) | |
ilg187187065.Emit(OpCodes.Br,label187187065_17) | |
ilg187187065.MarkLabel(label187187065_15) | |
ilg187187065.MarkLabel(label187187065_14) | |
ilg187187065.MarkLabel(label187187065_13) | |
ilg187187065.MarkLabel(label187187065_12) | |
ilg187187065.MarkLabel(label187187065_11) | |
ilg187187065.Emit(OpCodes.Ldc_I4, 0) | |
ilg187187065.Emit(OpCodes.Nop) | |
ilg187187065.MarkLabel(label187187065_18) | |
ilg187187065.MarkLabel(label187187065_17) | |
ilg187187065.MarkLabel(label187187065_16) | |
ilg187187065.Emit(OpCodes.Ldloc, int16 0) | |
ilg187187065.Emit(OpCodes.Ldc_I4, 6) | |
ilg187187065.Emit(OpCodes.Shl) | |
ilg187187065.Emit(OpCodes.Ldloc, int16 0) | |
ilg187187065.Emit(OpCodes.Ldc_I4, 2) | |
ilg187187065.Emit(OpCodes.Shr) | |
ilg187187065.Emit(OpCodes.Add) | |
ilg187187065.Emit(OpCodes.Add) | |
ilg187187065.Emit(OpCodes.Add) | |
ilg187187065.Emit(OpCodes.Stloc, int16 0) | |
ilg187187065.Emit(OpCodes.Ldloc, int16 0) | |
ilg187187065.Emit(OpCodes.Ret) | |
ilg187187065.MarkLabel(label187187065_24) | |
ilg187187065.MarkLabel(label187187065_23) | |
ilg187187065.MarkLabel(label187187065_22) | |
ilg187187065.MarkLabel(label187187065_21) | |
ilg187187065.MarkLabel(label187187065_20) | |
ilg187187065.MarkLabel(label187187065_19) | |
ilg187187065.Emit(OpCodes.Ldc_I4, 0) | |
ilg187187065.Emit(OpCodes.Ret) | |
ilg187187065.MarkLabel(label187187065_26) | |
ilg187187065.MarkLabel(label187187065_25) | |
methodBuilder481831937.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
let ilg207744281 = methodBuilder481831937.GetILGenerator() | |
let label207744281_0 = ilg207744281.DefineLabel() | |
let label207744281_1 = ilg207744281.DefineLabel() | |
let label207744281_2 = ilg207744281.DefineLabel() | |
let label207744281_3 = ilg207744281.DefineLabel() | |
let label207744281_4 = ilg207744281.DefineLabel() | |
ilg207744281.MarkLabel(label207744281_1) | |
ilg207744281.MarkLabel(label207744281_0) | |
ilg207744281.Emit(OpCodes.Nop) | |
ilg207744281.Emit(OpCodes.Ldarg, int16 0) | |
ilg207744281.Emit(OpCodes.Call, methodBuilder339609756) // method get_GenericEqualityComparer | |
ilg207744281.MarkLabel(label207744281_2) | |
ilg207744281.Emit(OpCodes.Callvirt, methodBuilder481831937) // method GetHashCode | |
ilg207744281.Emit(OpCodes.Ret) | |
ilg207744281.MarkLabel(label207744281_4) | |
ilg207744281.MarkLabel(label207744281_3) | |
methodBuilder481831937.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder1014339031.DefineParameter(1,enum 0,"obj") | |
methodBuilder1014339031.DefineParameter(2,enum 0,"comp") | |
let ilg1617249579 = methodBuilder1014339031.GetILGenerator() | |
ilg1617249579.DeclareLocal(typeof<FSI_0004+Observation>,false) | |
let label1617249579_0 = ilg1617249579.DefineLabel() | |
let label1617249579_1 = ilg1617249579.DefineLabel() | |
let label1617249579_2 = ilg1617249579.DefineLabel() | |
let label1617249579_3 = ilg1617249579.DefineLabel() | |
let label1617249579_4 = ilg1617249579.DefineLabel() | |
let label1617249579_5 = ilg1617249579.DefineLabel() | |
let label1617249579_6 = ilg1617249579.DefineLabel() | |
let label1617249579_7 = ilg1617249579.DefineLabel() | |
let label1617249579_8 = ilg1617249579.DefineLabel() | |
let label1617249579_9 = ilg1617249579.DefineLabel() | |
let label1617249579_10 = ilg1617249579.DefineLabel() | |
let label1617249579_11 = ilg1617249579.DefineLabel() | |
let label1617249579_12 = ilg1617249579.DefineLabel() | |
let label1617249579_13 = ilg1617249579.DefineLabel() | |
let label1617249579_14 = ilg1617249579.DefineLabel() | |
let label1617249579_15 = ilg1617249579.DefineLabel() | |
let label1617249579_16 = ilg1617249579.DefineLabel() | |
let label1617249579_17 = ilg1617249579.DefineLabel() | |
let label1617249579_18 = ilg1617249579.DefineLabel() | |
let label1617249579_19 = ilg1617249579.DefineLabel() | |
let label1617249579_20 = ilg1617249579.DefineLabel() | |
let label1617249579_21 = ilg1617249579.DefineLabel() | |
let label1617249579_22 = ilg1617249579.DefineLabel() | |
let label1617249579_23 = ilg1617249579.DefineLabel() | |
let label1617249579_24 = ilg1617249579.DefineLabel() | |
let label1617249579_25 = ilg1617249579.DefineLabel() | |
let label1617249579_26 = ilg1617249579.DefineLabel() | |
let label1617249579_27 = ilg1617249579.DefineLabel() | |
let label1617249579_28 = ilg1617249579.DefineLabel() | |
let label1617249579_29 = ilg1617249579.DefineLabel() | |
let label1617249579_30 = ilg1617249579.DefineLabel() | |
let label1617249579_31 = ilg1617249579.DefineLabel() | |
let label1617249579_32 = ilg1617249579.DefineLabel() | |
let label1617249579_33 = ilg1617249579.DefineLabel() | |
let label1617249579_34 = ilg1617249579.DefineLabel() | |
let label1617249579_35 = ilg1617249579.DefineLabel() | |
ilg1617249579.Emit(OpCodes.Nop) | |
ilg1617249579.MarkLabel(label1617249579_0) | |
ilg1617249579.Emit(OpCodes.Ldarg, int16 0) | |
ilg1617249579.Emit(OpCodes.Ldnull) | |
ilg1617249579.Emit(OpCodes.Cgt_un) | |
ilg1617249579.Emit(OpCodes.Brfalse,label1617249579_29) | |
ilg1617249579.MarkLabel(label1617249579_4) | |
ilg1617249579.MarkLabel(label1617249579_3) | |
ilg1617249579.MarkLabel(label1617249579_2) | |
ilg1617249579.MarkLabel(label1617249579_1) | |
ilg1617249579.Emit(OpCodes.Ldarg, int16 1) | |
ilg1617249579.Emit(OpCodes.Isinst, typeof<FSI_0004+Observation>) | |
ilg1617249579.Emit(OpCodes.Stloc, int16 0) | |
ilg1617249579.Emit(OpCodes.Ldloc, int16 0) | |
ilg1617249579.Emit(OpCodes.Brfalse,label1617249579_21) | |
ilg1617249579.MarkLabel(label1617249579_7) | |
ilg1617249579.MarkLabel(label1617249579_6) | |
ilg1617249579.MarkLabel(label1617249579_5) | |
ilg1617249579.Emit(OpCodes.Ldarg, int16 0) | |
ilg1617249579.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg1617249579.Emit(OpCodes.Ldloc, int16 0) | |
ilg1617249579.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg1617249579.Emit(OpCodes.Call, methodBuilder1080939438) // method Equals | |
ilg1617249579.Emit(OpCodes.Brfalse,label1617249579_14) | |
ilg1617249579.MarkLabel(label1617249579_10) | |
ilg1617249579.MarkLabel(label1617249579_9) | |
ilg1617249579.MarkLabel(label1617249579_8) | |
ilg1617249579.Emit(OpCodes.Ldarg, int16 2) | |
ilg1617249579.Emit(OpCodes.Ldarg, int16 0) | |
ilg1617249579.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg1617249579.Emit(OpCodes.Ldloc, int16 0) | |
ilg1617249579.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg1617249579.MarkLabel(label1617249579_11) | |
ilg1617249579.Emit(OpCodes.Tail_) | |
ilg1617249579.Emit(OpCodes.Call, methodBuilder2142339345) // method GenericEqualityWithComparerIntrinsic | |
ilg1617249579.Emit(OpCodes.Ret) | |
ilg1617249579.Emit(OpCodes.Ret) | |
ilg1617249579.MarkLabel(label1617249579_17) | |
ilg1617249579.MarkLabel(label1617249579_16) | |
ilg1617249579.MarkLabel(label1617249579_15) | |
ilg1617249579.MarkLabel(label1617249579_14) | |
ilg1617249579.MarkLabel(label1617249579_13) | |
ilg1617249579.MarkLabel(label1617249579_12) | |
ilg1617249579.Emit(OpCodes.Ldc_I4, 0) | |
ilg1617249579.Emit(OpCodes.Ret) | |
ilg1617249579.MarkLabel(label1617249579_24) | |
ilg1617249579.MarkLabel(label1617249579_23) | |
ilg1617249579.MarkLabel(label1617249579_22) | |
ilg1617249579.MarkLabel(label1617249579_21) | |
ilg1617249579.MarkLabel(label1617249579_20) | |
ilg1617249579.MarkLabel(label1617249579_19) | |
ilg1617249579.MarkLabel(label1617249579_18) | |
ilg1617249579.Emit(OpCodes.Ldc_I4, 0) | |
ilg1617249579.Emit(OpCodes.Ret) | |
ilg1617249579.MarkLabel(label1617249579_32) | |
ilg1617249579.MarkLabel(label1617249579_31) | |
ilg1617249579.MarkLabel(label1617249579_30) | |
ilg1617249579.MarkLabel(label1617249579_29) | |
ilg1617249579.MarkLabel(label1617249579_28) | |
ilg1617249579.MarkLabel(label1617249579_27) | |
ilg1617249579.MarkLabel(label1617249579_26) | |
ilg1617249579.MarkLabel(label1617249579_25) | |
ilg1617249579.Emit(OpCodes.Ldarg, int16 1) | |
ilg1617249579.Emit(OpCodes.Ldnull) | |
ilg1617249579.Emit(OpCodes.Cgt_un) | |
ilg1617249579.Emit(OpCodes.Ldc_I4, 0) | |
ilg1617249579.Emit(OpCodes.Ceq) | |
ilg1617249579.Emit(OpCodes.Ret) | |
ilg1617249579.MarkLabel(label1617249579_35) | |
ilg1617249579.MarkLabel(label1617249579_34) | |
ilg1617249579.MarkLabel(label1617249579_33) | |
methodBuilder1014339031.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder1014339031.DefineParameter(1,enum 0,"obj") | |
let ilg388884960 = methodBuilder1014339031.GetILGenerator() | |
let label388884960_0 = ilg388884960.DefineLabel() | |
let label388884960_1 = ilg388884960.DefineLabel() | |
let label388884960_2 = ilg388884960.DefineLabel() | |
let label388884960_3 = ilg388884960.DefineLabel() | |
let label388884960_4 = ilg388884960.DefineLabel() | |
let label388884960_5 = ilg388884960.DefineLabel() | |
let label388884960_6 = ilg388884960.DefineLabel() | |
let label388884960_7 = ilg388884960.DefineLabel() | |
let label388884960_8 = ilg388884960.DefineLabel() | |
let label388884960_9 = ilg388884960.DefineLabel() | |
let label388884960_10 = ilg388884960.DefineLabel() | |
let label388884960_11 = ilg388884960.DefineLabel() | |
let label388884960_12 = ilg388884960.DefineLabel() | |
let label388884960_13 = ilg388884960.DefineLabel() | |
let label388884960_14 = ilg388884960.DefineLabel() | |
let label388884960_15 = ilg388884960.DefineLabel() | |
let label388884960_16 = ilg388884960.DefineLabel() | |
let label388884960_17 = ilg388884960.DefineLabel() | |
let label388884960_18 = ilg388884960.DefineLabel() | |
let label388884960_19 = ilg388884960.DefineLabel() | |
let label388884960_20 = ilg388884960.DefineLabel() | |
let label388884960_21 = ilg388884960.DefineLabel() | |
let label388884960_22 = ilg388884960.DefineLabel() | |
let label388884960_23 = ilg388884960.DefineLabel() | |
let label388884960_24 = ilg388884960.DefineLabel() | |
let label388884960_25 = ilg388884960.DefineLabel() | |
let label388884960_26 = ilg388884960.DefineLabel() | |
let label388884960_27 = ilg388884960.DefineLabel() | |
let label388884960_28 = ilg388884960.DefineLabel() | |
let label388884960_29 = ilg388884960.DefineLabel() | |
let label388884960_30 = ilg388884960.DefineLabel() | |
let label388884960_31 = ilg388884960.DefineLabel() | |
let label388884960_32 = ilg388884960.DefineLabel() | |
let label388884960_33 = ilg388884960.DefineLabel() | |
ilg388884960.Emit(OpCodes.Nop) | |
ilg388884960.MarkLabel(label388884960_0) | |
ilg388884960.Emit(OpCodes.Ldarg, int16 0) | |
ilg388884960.Emit(OpCodes.Ldnull) | |
ilg388884960.Emit(OpCodes.Cgt_un) | |
ilg388884960.Emit(OpCodes.Brfalse,label388884960_27) | |
ilg388884960.MarkLabel(label388884960_3) | |
ilg388884960.MarkLabel(label388884960_2) | |
ilg388884960.MarkLabel(label388884960_1) | |
ilg388884960.Emit(OpCodes.Ldarg, int16 1) | |
ilg388884960.Emit(OpCodes.Ldnull) | |
ilg388884960.Emit(OpCodes.Cgt_un) | |
ilg388884960.Emit(OpCodes.Brfalse,label388884960_20) | |
ilg388884960.MarkLabel(label388884960_6) | |
ilg388884960.MarkLabel(label388884960_5) | |
ilg388884960.MarkLabel(label388884960_4) | |
ilg388884960.Emit(OpCodes.Ldarg, int16 0) | |
ilg388884960.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg388884960.Emit(OpCodes.Ldarg, int16 1) | |
ilg388884960.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg388884960.Emit(OpCodes.Call, methodBuilder1080939438) // method Equals | |
ilg388884960.Emit(OpCodes.Brfalse,label388884960_13) | |
ilg388884960.MarkLabel(label388884960_9) | |
ilg388884960.MarkLabel(label388884960_8) | |
ilg388884960.MarkLabel(label388884960_7) | |
ilg388884960.Emit(OpCodes.Ldarg, int16 0) | |
ilg388884960.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg388884960.Emit(OpCodes.Ldarg, int16 1) | |
ilg388884960.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg388884960.MarkLabel(label388884960_10) | |
ilg388884960.Emit(OpCodes.Tail_) | |
ilg388884960.Emit(OpCodes.Call, methodBuilder1921354316) // method GenericEqualityERIntrinsic | |
ilg388884960.Emit(OpCodes.Ret) | |
ilg388884960.Emit(OpCodes.Ret) | |
ilg388884960.MarkLabel(label388884960_16) | |
ilg388884960.MarkLabel(label388884960_15) | |
ilg388884960.MarkLabel(label388884960_14) | |
ilg388884960.MarkLabel(label388884960_13) | |
ilg388884960.MarkLabel(label388884960_12) | |
ilg388884960.MarkLabel(label388884960_11) | |
ilg388884960.Emit(OpCodes.Ldc_I4, 0) | |
ilg388884960.Emit(OpCodes.Ret) | |
ilg388884960.MarkLabel(label388884960_23) | |
ilg388884960.MarkLabel(label388884960_22) | |
ilg388884960.MarkLabel(label388884960_21) | |
ilg388884960.MarkLabel(label388884960_20) | |
ilg388884960.MarkLabel(label388884960_19) | |
ilg388884960.MarkLabel(label388884960_18) | |
ilg388884960.MarkLabel(label388884960_17) | |
ilg388884960.Emit(OpCodes.Ldc_I4, 0) | |
ilg388884960.Emit(OpCodes.Ret) | |
ilg388884960.MarkLabel(label388884960_30) | |
ilg388884960.MarkLabel(label388884960_29) | |
ilg388884960.MarkLabel(label388884960_28) | |
ilg388884960.MarkLabel(label388884960_27) | |
ilg388884960.MarkLabel(label388884960_26) | |
ilg388884960.MarkLabel(label388884960_25) | |
ilg388884960.MarkLabel(label388884960_24) | |
ilg388884960.Emit(OpCodes.Ldarg, int16 1) | |
ilg388884960.Emit(OpCodes.Ldnull) | |
ilg388884960.Emit(OpCodes.Cgt_un) | |
ilg388884960.Emit(OpCodes.Ldc_I4, 0) | |
ilg388884960.Emit(OpCodes.Ceq) | |
ilg388884960.Emit(OpCodes.Ret) | |
ilg388884960.MarkLabel(label388884960_33) | |
ilg388884960.MarkLabel(label388884960_32) | |
ilg388884960.MarkLabel(label388884960_31) | |
methodBuilder1014339031.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder1014339031.DefineParameter(1,enum 0,"obj") | |
let ilg1747068137 = methodBuilder1014339031.GetILGenerator() | |
ilg1747068137.DeclareLocal(typeof<FSI_0004+Observation>,false) | |
let label1747068137_0 = ilg1747068137.DefineLabel() | |
let label1747068137_1 = ilg1747068137.DefineLabel() | |
let label1747068137_2 = ilg1747068137.DefineLabel() | |
let label1747068137_3 = ilg1747068137.DefineLabel() | |
let label1747068137_4 = ilg1747068137.DefineLabel() | |
let label1747068137_5 = ilg1747068137.DefineLabel() | |
let label1747068137_6 = ilg1747068137.DefineLabel() | |
let label1747068137_7 = ilg1747068137.DefineLabel() | |
let label1747068137_8 = ilg1747068137.DefineLabel() | |
let label1747068137_9 = ilg1747068137.DefineLabel() | |
let label1747068137_10 = ilg1747068137.DefineLabel() | |
let label1747068137_11 = ilg1747068137.DefineLabel() | |
let label1747068137_12 = ilg1747068137.DefineLabel() | |
let label1747068137_13 = ilg1747068137.DefineLabel() | |
let label1747068137_14 = ilg1747068137.DefineLabel() | |
ilg1747068137.Emit(OpCodes.Nop) | |
ilg1747068137.MarkLabel(label1747068137_1) | |
ilg1747068137.MarkLabel(label1747068137_0) | |
ilg1747068137.Emit(OpCodes.Ldarg, int16 1) | |
ilg1747068137.Emit(OpCodes.Isinst, typeof<FSI_0004+Observation>) | |
ilg1747068137.Emit(OpCodes.Stloc, int16 0) | |
ilg1747068137.Emit(OpCodes.Ldloc, int16 0) | |
ilg1747068137.Emit(OpCodes.Brfalse,label1747068137_8) | |
ilg1747068137.MarkLabel(label1747068137_4) | |
ilg1747068137.MarkLabel(label1747068137_3) | |
ilg1747068137.MarkLabel(label1747068137_2) | |
ilg1747068137.Emit(OpCodes.Ldarg, int16 0) | |
ilg1747068137.Emit(OpCodes.Ldloc, int16 0) | |
ilg1747068137.MarkLabel(label1747068137_5) | |
ilg1747068137.Emit(OpCodes.Tail_) | |
ilg1747068137.Emit(OpCodes.Callvirt, methodBuilder1014339031) // method Equals | |
ilg1747068137.Emit(OpCodes.Ret) | |
ilg1747068137.Emit(OpCodes.Ret) | |
ilg1747068137.MarkLabel(label1747068137_11) | |
ilg1747068137.MarkLabel(label1747068137_10) | |
ilg1747068137.MarkLabel(label1747068137_9) | |
ilg1747068137.MarkLabel(label1747068137_8) | |
ilg1747068137.MarkLabel(label1747068137_7) | |
ilg1747068137.MarkLabel(label1747068137_6) | |
ilg1747068137.Emit(OpCodes.Ldc_I4, 0) | |
ilg1747068137.Emit(OpCodes.Ret) | |
ilg1747068137.MarkLabel(label1747068137_14) | |
ilg1747068137.MarkLabel(label1747068137_13) | |
ilg1747068137.MarkLabel(label1747068137_12) | |
methodBuilder1014339031.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
typeBuilder980813727.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 2uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg1749611399 = methodBuilder569342189.GetILGenerator() | |
let label1749611399_0 = ilg1749611399.DefineLabel() | |
let label1749611399_1 = ilg1749611399.DefineLabel() | |
let label1749611399_2 = ilg1749611399.DefineLabel() | |
ilg1749611399.Emit(OpCodes.Nop) | |
ilg1749611399.MarkLabel(label1749611399_2) | |
ilg1749611399.MarkLabel(label1749611399_1) | |
ilg1749611399.MarkLabel(label1749611399_0) | |
ilg1749611399.Emit(OpCodes.Ret) | |
typeBuilder22988282.CreateType() | |
typeBuilder980813727.CreateType() | |
typeBuilder1856045891.CreateType() | |
typeBuilder2059733072.CreateType() | |
typeBuilder2059733544.CreateType() | |
typeBuilder2057140584.CreateType() | |
typeBuilder2057140584.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
type Observation = | |
{Label: string; | |
Pixels: int [];} | |
> let toObservation (csvData:string) = | |
- let columns = csvData.Split(',') | |
- let label = columns.[0] | |
- let pixels = columns.[1..] |> Array.map int | |
- { Label = label; Pixels = pixels };; | |
let typeBuilder1784720634 = moduleBuilder430293066.DefineType("FSI_0005",enum 385) | |
moduleBuilder430293066.GetType("FSI_0005",false,false) |> ignore | |
let typeBuilder1353090105 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0005>.$FSI_0005",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0005>.$FSI_0005",false,false) |> ignore | |
typeBuilder1784720634.SetParent(typeof<System.Object>) | |
typeBuilder1353090105.SetParent(typeof<System.Object>) | |
let methodBuilder1497372679 = typeBuilder1784720634.DefineMethod("toObservation",enum 22,enum 1) | |
methodBuilder1497372679.SetParameters([|System.String|]) | |
methodBuilder1497372679.SetReturnType(typeof<FSI_0004+Observation>) | |
methodBuilder1497372679.SetImplementationFlags(enum 0) | |
let methodBuilder569342189 = typeBuilder1353090105.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
methodBuilder1497372679.DefineParameter(1,enum 0,"csvData") | |
let ilg857823477 = methodBuilder1497372679.GetILGenerator() | |
ilg857823477.DeclareLocal(typeof<System.String[]>,false) | |
ilg857823477.DeclareLocal(typeof<System.String[]>,false) | |
ilg857823477.DeclareLocal(typeof<System.Tuple`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>,false) | |
ilg857823477.DeclareLocal(typeof<System.Int32>,false) | |
ilg857823477.DeclareLocal(typeof<System.Int32>,false) | |
ilg857823477.DeclareLocal(typeof<System.Int32>,false) | |
ilg857823477.DeclareLocal(typeof<System.Int32>,false) | |
ilg857823477.DeclareLocal(typeof<System.String[]>,false) | |
ilg857823477.DeclareLocal(typeof<System.String>,false) | |
ilg857823477.DeclareLocal(typeof<System.Int32>,false) | |
ilg857823477.DeclareLocal(typeof<System.Int32>,false) | |
ilg857823477.DeclareLocal(typeof<System.Int32[]>,false) | |
let label857823477_0 = ilg857823477.DefineLabel() | |
let label857823477_1 = ilg857823477.DefineLabel() | |
let label857823477_2 = ilg857823477.DefineLabel() | |
let label857823477_3 = ilg857823477.DefineLabel() | |
let label857823477_4 = ilg857823477.DefineLabel() | |
let label857823477_5 = ilg857823477.DefineLabel() | |
let label857823477_6 = ilg857823477.DefineLabel() | |
let label857823477_7 = ilg857823477.DefineLabel() | |
let label857823477_8 = ilg857823477.DefineLabel() | |
let label857823477_9 = ilg857823477.DefineLabel() | |
let label857823477_10 = ilg857823477.DefineLabel() | |
let label857823477_11 = ilg857823477.DefineLabel() | |
let label857823477_12 = ilg857823477.DefineLabel() | |
let label857823477_13 = ilg857823477.DefineLabel() | |
let label857823477_14 = ilg857823477.DefineLabel() | |
let label857823477_15 = ilg857823477.DefineLabel() | |
let label857823477_16 = ilg857823477.DefineLabel() | |
let label857823477_17 = ilg857823477.DefineLabel() | |
let label857823477_18 = ilg857823477.DefineLabel() | |
let label857823477_19 = ilg857823477.DefineLabel() | |
let label857823477_20 = ilg857823477.DefineLabel() | |
let label857823477_21 = ilg857823477.DefineLabel() | |
let label857823477_22 = ilg857823477.DefineLabel() | |
let label857823477_23 = ilg857823477.DefineLabel() | |
let label857823477_24 = ilg857823477.DefineLabel() | |
let label857823477_25 = ilg857823477.DefineLabel() | |
let label857823477_26 = ilg857823477.DefineLabel() | |
let label857823477_27 = ilg857823477.DefineLabel() | |
let label857823477_28 = ilg857823477.DefineLabel() | |
let label857823477_29 = ilg857823477.DefineLabel() | |
let label857823477_30 = ilg857823477.DefineLabel() | |
let label857823477_31 = ilg857823477.DefineLabel() | |
let label857823477_32 = ilg857823477.DefineLabel() | |
let label857823477_33 = ilg857823477.DefineLabel() | |
let label857823477_34 = ilg857823477.DefineLabel() | |
let label857823477_35 = ilg857823477.DefineLabel() | |
let label857823477_36 = ilg857823477.DefineLabel() | |
let label857823477_37 = ilg857823477.DefineLabel() | |
let label857823477_38 = ilg857823477.DefineLabel() | |
let label857823477_39 = ilg857823477.DefineLabel() | |
let label857823477_40 = ilg857823477.DefineLabel() | |
let label857823477_41 = ilg857823477.DefineLabel() | |
let label857823477_42 = ilg857823477.DefineLabel() | |
let label857823477_43 = ilg857823477.DefineLabel() | |
let label857823477_44 = ilg857823477.DefineLabel() | |
let label857823477_45 = ilg857823477.DefineLabel() | |
let label857823477_46 = ilg857823477.DefineLabel() | |
let label857823477_47 = ilg857823477.DefineLabel() | |
let label857823477_48 = ilg857823477.DefineLabel() | |
let label857823477_49 = ilg857823477.DefineLabel() | |
let label857823477_50 = ilg857823477.DefineLabel() | |
let label857823477_51 = ilg857823477.DefineLabel() | |
let label857823477_52 = ilg857823477.DefineLabel() | |
let label857823477_53 = ilg857823477.DefineLabel() | |
let label857823477_54 = ilg857823477.DefineLabel() | |
let label857823477_55 = ilg857823477.DefineLabel() | |
let label857823477_56 = ilg857823477.DefineLabel() | |
let label857823477_57 = ilg857823477.DefineLabel() | |
let label857823477_58 = ilg857823477.DefineLabel() | |
let label857823477_59 = ilg857823477.DefineLabel() | |
let label857823477_60 = ilg857823477.DefineLabel() | |
ilg857823477.MarkLabel(label857823477_0) | |
ilg857823477.Emit(OpCodes.Nop) | |
ilg857823477.MarkLabel(label857823477_1) | |
ilg857823477.Emit(OpCodes.Ldarg, int16 0) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Newarr, typeof<System.Char>) | |
ilg857823477.Emit(OpCodes.Dup) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 0) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 44) | |
ilg857823477.Emit(OpCodes.Stelem, typeof<System.Char>) | |
ilg857823477.Emit(OpCodes.Callvirt, methodBuilder2064337704) // method Split | |
ilg857823477.Emit(OpCodes.Stloc, int16 0) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 0) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 0) | |
ilg857823477.Emit(OpCodes.Ldelem, typeof<System.String>) | |
ilg857823477.MarkLabel(label857823477_4) | |
ilg857823477.MarkLabel(label857823477_3) | |
ilg857823477.MarkLabel(label857823477_2) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 0) | |
ilg857823477.Emit(OpCodes.Ldlen) | |
ilg857823477.Emit(OpCodes.Conv_I4) | |
ilg857823477.Emit(OpCodes.Stloc, int16 3) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 0) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 3) | |
ilg857823477.Emit(OpCodes.Add) | |
ilg857823477.Emit(OpCodes.Bgt,label857823477_9) | |
ilg857823477.MarkLabel(label857823477_7) | |
ilg857823477.MarkLabel(label857823477_6) | |
ilg857823477.MarkLabel(label857823477_5) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 0) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 3) | |
ilg857823477.Emit(OpCodes.Add) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Sub) | |
ilg857823477.Emit(OpCodes.Newobj,constructor_Tuple`2) | |
ilg857823477.Emit(OpCodes.Nop) | |
ilg857823477.Emit(OpCodes.Br,label857823477_14) | |
ilg857823477.MarkLabel(label857823477_12) | |
ilg857823477.MarkLabel(label857823477_11) | |
ilg857823477.MarkLabel(label857823477_10) | |
ilg857823477.MarkLabel(label857823477_9) | |
ilg857823477.MarkLabel(label857823477_8) | |
ilg857823477.Emit(OpCodes.Newobj,constructor_IndexOutOfRangeException) | |
ilg857823477.Emit(OpCodes.Throw) | |
ilg857823477.MarkLabel(label857823477_15) | |
ilg857823477.MarkLabel(label857823477_14) | |
ilg857823477.MarkLabel(label857823477_13) | |
ilg857823477.Emit(OpCodes.Stloc, int16 2) | |
ilg857823477.MarkLabel(label857823477_16) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 2) | |
ilg857823477.Emit(OpCodes.Call, methodBuilder632992012) // method get_Item1 | |
ilg857823477.Emit(OpCodes.Stloc, int16 3) | |
ilg857823477.MarkLabel(label857823477_17) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 2) | |
ilg857823477.Emit(OpCodes.Call, methodBuilder413268616) // method get_Item2 | |
ilg857823477.Emit(OpCodes.Stloc, int16 4) | |
ilg857823477.MarkLabel(label857823477_18) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 4) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 3) | |
ilg857823477.Emit(OpCodes.Sub) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Add) | |
ilg857823477.Emit(OpCodes.Stloc, int16 5) | |
ilg857823477.MarkLabel(label857823477_19) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 5) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 0) | |
ilg857823477.Emit(OpCodes.Bge,label857823477_24) | |
ilg857823477.MarkLabel(label857823477_22) | |
ilg857823477.MarkLabel(label857823477_21) | |
ilg857823477.MarkLabel(label857823477_20) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 0) | |
ilg857823477.Emit(OpCodes.Nop) | |
ilg857823477.Emit(OpCodes.Br,label857823477_29) | |
ilg857823477.MarkLabel(label857823477_27) | |
ilg857823477.MarkLabel(label857823477_26) | |
ilg857823477.MarkLabel(label857823477_25) | |
ilg857823477.MarkLabel(label857823477_24) | |
ilg857823477.MarkLabel(label857823477_23) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 5) | |
ilg857823477.Emit(OpCodes.Nop) | |
ilg857823477.MarkLabel(label857823477_29) | |
ilg857823477.MarkLabel(label857823477_28) | |
ilg857823477.Emit(OpCodes.Stloc, int16 6) | |
ilg857823477.MarkLabel(label857823477_30) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 6) | |
ilg857823477.Emit(OpCodes.Newarr, typeof<System.String>) | |
ilg857823477.Emit(OpCodes.Stloc, int16 7) | |
ilg857823477.MarkLabel(label857823477_31) | |
ilg857823477.Emit(OpCodes.Stloc, int16 8) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 0) | |
ilg857823477.Emit(OpCodes.Stloc, int16 10) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 6) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Sub) | |
ilg857823477.Emit(OpCodes.Stloc, int16 9) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 9) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 10) | |
ilg857823477.Emit(OpCodes.Blt,label857823477_34) | |
ilg857823477.MarkLabel(label857823477_32) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 7) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 10) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 0) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 3) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 10) | |
ilg857823477.Emit(OpCodes.Add) | |
ilg857823477.Emit(OpCodes.Ldelem, typeof<System.String>) | |
ilg857823477.Emit(OpCodes.Stelem, typeof<System.String>) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 10) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Add) | |
ilg857823477.Emit(OpCodes.Stloc, int16 10) | |
ilg857823477.MarkLabel(label857823477_33) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 10) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 9) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Add) | |
ilg857823477.Emit(OpCodes.Bne_un,label857823477_32) | |
ilg857823477.MarkLabel(label857823477_34) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 8) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 7) | |
ilg857823477.MarkLabel(label857823477_40) | |
ilg857823477.MarkLabel(label857823477_39) | |
ilg857823477.MarkLabel(label857823477_38) | |
ilg857823477.MarkLabel(label857823477_37) | |
ilg857823477.MarkLabel(label857823477_36) | |
ilg857823477.MarkLabel(label857823477_35) | |
ilg857823477.Emit(OpCodes.Stloc, int16 1) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 1) | |
ilg857823477.Emit(OpCodes.Box, typeof<System.String[]>) | |
ilg857823477.Emit(OpCodes.Brfalse,label857823477_45) | |
ilg857823477.MarkLabel(label857823477_43) | |
ilg857823477.MarkLabel(label857823477_42) | |
ilg857823477.MarkLabel(label857823477_41) | |
ilg857823477.Emit(OpCodes.Nop) | |
ilg857823477.Emit(OpCodes.Br,label857823477_50) | |
ilg857823477.MarkLabel(label857823477_48) | |
ilg857823477.MarkLabel(label857823477_47) | |
ilg857823477.MarkLabel(label857823477_46) | |
ilg857823477.MarkLabel(label857823477_45) | |
ilg857823477.MarkLabel(label857823477_44) | |
ilg857823477.Emit(OpCodes.Ldstr,"@array") | |
ilg857823477.Emit(OpCodes.Newobj,constructor_ArgumentNullException) | |
ilg857823477.Emit(OpCodes.Throw) | |
ilg857823477.MarkLabel(label857823477_51) | |
ilg857823477.MarkLabel(label857823477_50) | |
ilg857823477.MarkLabel(label857823477_49) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 1) | |
ilg857823477.Emit(OpCodes.Ldlen) | |
ilg857823477.Emit(OpCodes.Conv_I4) | |
ilg857823477.Emit(OpCodes.Newarr, typeof<System.Int32>) | |
ilg857823477.Emit(OpCodes.Stloc, int16 11) | |
ilg857823477.MarkLabel(label857823477_52) | |
ilg857823477.Emit(OpCodes.Stloc, int16 8) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 0) | |
ilg857823477.Emit(OpCodes.Stloc, int16 3) | |
ilg857823477.Emit(OpCodes.Br,label857823477_56) | |
ilg857823477.MarkLabel(label857823477_53) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 11) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 3) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 1) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 3) | |
ilg857823477.Emit(OpCodes.Ldelem, typeof<System.String>) | |
ilg857823477.MarkLabel(label857823477_54) | |
ilg857823477.Emit(OpCodes.Call, methodBuilder525591110) // method ParseInt32 | |
ilg857823477.MarkLabel(label857823477_55) | |
ilg857823477.Emit(OpCodes.Stelem, typeof<System.Int32>) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 3) | |
ilg857823477.Emit(OpCodes.Ldc_I4, 1) | |
ilg857823477.Emit(OpCodes.Add) | |
ilg857823477.Emit(OpCodes.Stloc, int16 3) | |
ilg857823477.MarkLabel(label857823477_56) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 3) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 11) | |
ilg857823477.Emit(OpCodes.Ldlen) | |
ilg857823477.Emit(OpCodes.Conv_I4) | |
ilg857823477.Emit(OpCodes.Blt,label857823477_53) | |
ilg857823477.MarkLabel(label857823477_57) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 8) | |
ilg857823477.Emit(OpCodes.Ldloc, int16 11) | |
ilg857823477.MarkLabel(label857823477_59) | |
ilg857823477.MarkLabel(label857823477_58) | |
ilg857823477.Emit(OpCodes.Newobj,constructor_Observation) | |
ilg857823477.Emit(OpCodes.Ret) | |
ilg857823477.MarkLabel(label857823477_60) | |
typeBuilder1784720634.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg182748722 = methodBuilder569342189.GetILGenerator() | |
let label182748722_0 = ilg182748722.DefineLabel() | |
let label182748722_1 = ilg182748722.DefineLabel() | |
let label182748722_2 = ilg182748722.DefineLabel() | |
ilg182748722.Emit(OpCodes.Nop) | |
ilg182748722.MarkLabel(label182748722_2) | |
ilg182748722.MarkLabel(label182748722_1) | |
ilg182748722.MarkLabel(label182748722_0) | |
ilg182748722.Emit(OpCodes.Ret) | |
typeBuilder1784720634.CreateType() | |
typeBuilder1353090105.CreateType() | |
typeBuilder2132183336.CreateType() | |
typeBuilder2132184880.CreateType() | |
typeBuilder2132184880.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
val toObservation : csvData:string -> Observation | |
> let reader path = | |
- let data = File.ReadAllLines path | |
- data.[1..] | |
- |> Array.map toObservation;; | |
let typeBuilder1438368486 = moduleBuilder430293066.DefineType("FSI_0006",enum 385) | |
moduleBuilder430293066.GetType("FSI_0006",false,false) |> ignore | |
let typeBuilder1995295303 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0006>.$FSI_0006",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0006>.$FSI_0006",false,false) |> ignore | |
typeBuilder1438368486.SetParent(typeof<System.Object>) | |
typeBuilder1995295303.SetParent(typeof<System.Object>) | |
let methodBuilder51169761 = typeBuilder1438368486.DefineMethod("reader",enum 22,enum 1) | |
methodBuilder51169761.SetParameters([|System.String|]) | |
methodBuilder51169761.SetReturnType(typeof<FSI_0004+Observation[]>) | |
methodBuilder51169761.SetImplementationFlags(enum 0) | |
let methodBuilder569342189 = typeBuilder1995295303.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
methodBuilder51169761.DefineParameter(1,enum 0,"path") | |
let ilg1541684003 = methodBuilder51169761.GetILGenerator() | |
ilg1541684003.DeclareLocal(typeof<System.String[]>,false) | |
ilg1541684003.DeclareLocal(typeof<System.String[]>,false) | |
ilg1541684003.DeclareLocal(typeof<System.Tuple`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>,false) | |
ilg1541684003.DeclareLocal(typeof<System.Int32>,false) | |
ilg1541684003.DeclareLocal(typeof<System.Int32>,false) | |
ilg1541684003.DeclareLocal(typeof<System.Int32>,false) | |
ilg1541684003.DeclareLocal(typeof<System.Int32>,false) | |
ilg1541684003.DeclareLocal(typeof<System.String[]>,false) | |
ilg1541684003.DeclareLocal(typeof<System.Int32>,false) | |
ilg1541684003.DeclareLocal(typeof<System.Int32>,false) | |
ilg1541684003.DeclareLocal(typeof<FSI_0004+Observation[]>,false) | |
let label1541684003_0 = ilg1541684003.DefineLabel() | |
let label1541684003_1 = ilg1541684003.DefineLabel() | |
let label1541684003_2 = ilg1541684003.DefineLabel() | |
let label1541684003_3 = ilg1541684003.DefineLabel() | |
let label1541684003_4 = ilg1541684003.DefineLabel() | |
let label1541684003_5 = ilg1541684003.DefineLabel() | |
let label1541684003_6 = ilg1541684003.DefineLabel() | |
let label1541684003_7 = ilg1541684003.DefineLabel() | |
let label1541684003_8 = ilg1541684003.DefineLabel() | |
let label1541684003_9 = ilg1541684003.DefineLabel() | |
let label1541684003_10 = ilg1541684003.DefineLabel() | |
let label1541684003_11 = ilg1541684003.DefineLabel() | |
let label1541684003_12 = ilg1541684003.DefineLabel() | |
let label1541684003_13 = ilg1541684003.DefineLabel() | |
let label1541684003_14 = ilg1541684003.DefineLabel() | |
let label1541684003_15 = ilg1541684003.DefineLabel() | |
let label1541684003_16 = ilg1541684003.DefineLabel() | |
let label1541684003_17 = ilg1541684003.DefineLabel() | |
let label1541684003_18 = ilg1541684003.DefineLabel() | |
let label1541684003_19 = ilg1541684003.DefineLabel() | |
let label1541684003_20 = ilg1541684003.DefineLabel() | |
let label1541684003_21 = ilg1541684003.DefineLabel() | |
let label1541684003_22 = ilg1541684003.DefineLabel() | |
let label1541684003_23 = ilg1541684003.DefineLabel() | |
let label1541684003_24 = ilg1541684003.DefineLabel() | |
let label1541684003_25 = ilg1541684003.DefineLabel() | |
let label1541684003_26 = ilg1541684003.DefineLabel() | |
let label1541684003_27 = ilg1541684003.DefineLabel() | |
let label1541684003_28 = ilg1541684003.DefineLabel() | |
let label1541684003_29 = ilg1541684003.DefineLabel() | |
let label1541684003_30 = ilg1541684003.DefineLabel() | |
let label1541684003_31 = ilg1541684003.DefineLabel() | |
let label1541684003_32 = ilg1541684003.DefineLabel() | |
let label1541684003_33 = ilg1541684003.DefineLabel() | |
let label1541684003_34 = ilg1541684003.DefineLabel() | |
let label1541684003_35 = ilg1541684003.DefineLabel() | |
let label1541684003_36 = ilg1541684003.DefineLabel() | |
let label1541684003_37 = ilg1541684003.DefineLabel() | |
let label1541684003_38 = ilg1541684003.DefineLabel() | |
let label1541684003_39 = ilg1541684003.DefineLabel() | |
let label1541684003_40 = ilg1541684003.DefineLabel() | |
let label1541684003_41 = ilg1541684003.DefineLabel() | |
let label1541684003_42 = ilg1541684003.DefineLabel() | |
let label1541684003_43 = ilg1541684003.DefineLabel() | |
let label1541684003_44 = ilg1541684003.DefineLabel() | |
let label1541684003_45 = ilg1541684003.DefineLabel() | |
let label1541684003_46 = ilg1541684003.DefineLabel() | |
let label1541684003_47 = ilg1541684003.DefineLabel() | |
let label1541684003_48 = ilg1541684003.DefineLabel() | |
let label1541684003_49 = ilg1541684003.DefineLabel() | |
let label1541684003_50 = ilg1541684003.DefineLabel() | |
let label1541684003_51 = ilg1541684003.DefineLabel() | |
let label1541684003_52 = ilg1541684003.DefineLabel() | |
let label1541684003_53 = ilg1541684003.DefineLabel() | |
let label1541684003_54 = ilg1541684003.DefineLabel() | |
let label1541684003_55 = ilg1541684003.DefineLabel() | |
let label1541684003_56 = ilg1541684003.DefineLabel() | |
let label1541684003_57 = ilg1541684003.DefineLabel() | |
let label1541684003_58 = ilg1541684003.DefineLabel() | |
let label1541684003_59 = ilg1541684003.DefineLabel() | |
let label1541684003_60 = ilg1541684003.DefineLabel() | |
ilg1541684003.MarkLabel(label1541684003_0) | |
ilg1541684003.Emit(OpCodes.Nop) | |
ilg1541684003.MarkLabel(label1541684003_1) | |
ilg1541684003.Emit(OpCodes.Ldarg, int16 0) | |
ilg1541684003.Emit(OpCodes.Call, methodBuilder1633614213) // method ReadAllLines | |
ilg1541684003.Emit(OpCodes.Stloc, int16 0) | |
ilg1541684003.MarkLabel(label1541684003_4) | |
ilg1541684003.MarkLabel(label1541684003_3) | |
ilg1541684003.MarkLabel(label1541684003_2) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 0) | |
ilg1541684003.Emit(OpCodes.Ldlen) | |
ilg1541684003.Emit(OpCodes.Conv_I4) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 1) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 0) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Add) | |
ilg1541684003.Emit(OpCodes.Bgt,label1541684003_9) | |
ilg1541684003.MarkLabel(label1541684003_7) | |
ilg1541684003.MarkLabel(label1541684003_6) | |
ilg1541684003.MarkLabel(label1541684003_5) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 1) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 0) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Add) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 1) | |
ilg1541684003.Emit(OpCodes.Sub) | |
ilg1541684003.Emit(OpCodes.Newobj,constructor_Tuple`2) | |
ilg1541684003.Emit(OpCodes.Nop) | |
ilg1541684003.Emit(OpCodes.Br,label1541684003_14) | |
ilg1541684003.MarkLabel(label1541684003_12) | |
ilg1541684003.MarkLabel(label1541684003_11) | |
ilg1541684003.MarkLabel(label1541684003_10) | |
ilg1541684003.MarkLabel(label1541684003_9) | |
ilg1541684003.MarkLabel(label1541684003_8) | |
ilg1541684003.Emit(OpCodes.Newobj,constructor_IndexOutOfRangeException) | |
ilg1541684003.Emit(OpCodes.Throw) | |
ilg1541684003.MarkLabel(label1541684003_15) | |
ilg1541684003.MarkLabel(label1541684003_14) | |
ilg1541684003.MarkLabel(label1541684003_13) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 2) | |
ilg1541684003.MarkLabel(label1541684003_16) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 2) | |
ilg1541684003.Emit(OpCodes.Call, methodBuilder632992012) // method get_Item1 | |
ilg1541684003.Emit(OpCodes.Stloc, int16 3) | |
ilg1541684003.MarkLabel(label1541684003_17) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 2) | |
ilg1541684003.Emit(OpCodes.Call, methodBuilder413268616) // method get_Item2 | |
ilg1541684003.Emit(OpCodes.Stloc, int16 4) | |
ilg1541684003.MarkLabel(label1541684003_18) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 4) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Sub) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 1) | |
ilg1541684003.Emit(OpCodes.Add) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 5) | |
ilg1541684003.MarkLabel(label1541684003_19) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 5) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 0) | |
ilg1541684003.Emit(OpCodes.Bge,label1541684003_24) | |
ilg1541684003.MarkLabel(label1541684003_22) | |
ilg1541684003.MarkLabel(label1541684003_21) | |
ilg1541684003.MarkLabel(label1541684003_20) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 0) | |
ilg1541684003.Emit(OpCodes.Nop) | |
ilg1541684003.Emit(OpCodes.Br,label1541684003_29) | |
ilg1541684003.MarkLabel(label1541684003_27) | |
ilg1541684003.MarkLabel(label1541684003_26) | |
ilg1541684003.MarkLabel(label1541684003_25) | |
ilg1541684003.MarkLabel(label1541684003_24) | |
ilg1541684003.MarkLabel(label1541684003_23) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 5) | |
ilg1541684003.Emit(OpCodes.Nop) | |
ilg1541684003.MarkLabel(label1541684003_29) | |
ilg1541684003.MarkLabel(label1541684003_28) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 6) | |
ilg1541684003.MarkLabel(label1541684003_30) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 6) | |
ilg1541684003.Emit(OpCodes.Newarr, typeof<System.String>) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 7) | |
ilg1541684003.MarkLabel(label1541684003_31) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 0) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 9) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 6) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 1) | |
ilg1541684003.Emit(OpCodes.Sub) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 8) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 8) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 9) | |
ilg1541684003.Emit(OpCodes.Blt,label1541684003_34) | |
ilg1541684003.MarkLabel(label1541684003_32) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 7) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 9) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 0) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 9) | |
ilg1541684003.Emit(OpCodes.Add) | |
ilg1541684003.Emit(OpCodes.Ldelem, typeof<System.String>) | |
ilg1541684003.Emit(OpCodes.Stelem, typeof<System.String>) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 9) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 1) | |
ilg1541684003.Emit(OpCodes.Add) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 9) | |
ilg1541684003.MarkLabel(label1541684003_33) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 9) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 8) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 1) | |
ilg1541684003.Emit(OpCodes.Add) | |
ilg1541684003.Emit(OpCodes.Bne_un,label1541684003_32) | |
ilg1541684003.MarkLabel(label1541684003_34) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 7) | |
ilg1541684003.MarkLabel(label1541684003_40) | |
ilg1541684003.MarkLabel(label1541684003_39) | |
ilg1541684003.MarkLabel(label1541684003_38) | |
ilg1541684003.MarkLabel(label1541684003_37) | |
ilg1541684003.MarkLabel(label1541684003_36) | |
ilg1541684003.MarkLabel(label1541684003_35) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 1) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 1) | |
ilg1541684003.Emit(OpCodes.Box, typeof<System.String[]>) | |
ilg1541684003.Emit(OpCodes.Brfalse,label1541684003_45) | |
ilg1541684003.MarkLabel(label1541684003_43) | |
ilg1541684003.MarkLabel(label1541684003_42) | |
ilg1541684003.MarkLabel(label1541684003_41) | |
ilg1541684003.Emit(OpCodes.Nop) | |
ilg1541684003.Emit(OpCodes.Br,label1541684003_50) | |
ilg1541684003.MarkLabel(label1541684003_48) | |
ilg1541684003.MarkLabel(label1541684003_47) | |
ilg1541684003.MarkLabel(label1541684003_46) | |
ilg1541684003.MarkLabel(label1541684003_45) | |
ilg1541684003.MarkLabel(label1541684003_44) | |
ilg1541684003.Emit(OpCodes.Ldstr,"@array") | |
ilg1541684003.Emit(OpCodes.Newobj,constructor_ArgumentNullException) | |
ilg1541684003.Emit(OpCodes.Throw) | |
ilg1541684003.MarkLabel(label1541684003_51) | |
ilg1541684003.MarkLabel(label1541684003_50) | |
ilg1541684003.MarkLabel(label1541684003_49) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 1) | |
ilg1541684003.Emit(OpCodes.Ldlen) | |
ilg1541684003.Emit(OpCodes.Conv_I4) | |
ilg1541684003.Emit(OpCodes.Newarr, typeof<FSI_0004+Observation>) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 10) | |
ilg1541684003.MarkLabel(label1541684003_52) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 0) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Br,label1541684003_56) | |
ilg1541684003.MarkLabel(label1541684003_53) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 10) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 1) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Ldelem, typeof<System.String>) | |
ilg1541684003.MarkLabel(label1541684003_54) | |
ilg1541684003.Emit(OpCodes.Call, methodBuilder1497372679) // method toObservation | |
ilg1541684003.MarkLabel(label1541684003_55) | |
ilg1541684003.Emit(OpCodes.Stelem, typeof<FSI_0004+Observation>) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Ldc_I4, 1) | |
ilg1541684003.Emit(OpCodes.Add) | |
ilg1541684003.Emit(OpCodes.Stloc, int16 3) | |
ilg1541684003.MarkLabel(label1541684003_56) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 3) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 10) | |
ilg1541684003.Emit(OpCodes.Ldlen) | |
ilg1541684003.Emit(OpCodes.Conv_I4) | |
ilg1541684003.Emit(OpCodes.Blt,label1541684003_53) | |
ilg1541684003.MarkLabel(label1541684003_57) | |
ilg1541684003.Emit(OpCodes.Ldloc, int16 10) | |
ilg1541684003.Emit(OpCodes.Ret) | |
ilg1541684003.MarkLabel(label1541684003_60) | |
ilg1541684003.MarkLabel(label1541684003_59) | |
ilg1541684003.MarkLabel(label1541684003_58) | |
typeBuilder1438368486.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg2115706101 = methodBuilder569342189.GetILGenerator() | |
let label2115706101_0 = ilg2115706101.DefineLabel() | |
let label2115706101_1 = ilg2115706101.DefineLabel() | |
let label2115706101_2 = ilg2115706101.DefineLabel() | |
ilg2115706101.Emit(OpCodes.Nop) | |
ilg2115706101.MarkLabel(label2115706101_2) | |
ilg2115706101.MarkLabel(label2115706101_1) | |
ilg2115706101.MarkLabel(label2115706101_0) | |
ilg2115706101.Emit(OpCodes.Ret) | |
typeBuilder1438368486.CreateType() | |
typeBuilder1995295303.CreateType() | |
typeBuilder2132185576.CreateType() | |
typeBuilder2132187328.CreateType() | |
typeBuilder2132187328.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
val reader : path:string -> Observation [] | |
> let manhattanDistance(pixels1:int[], pixels2:int[]) = | |
- Array.zip pixels1 pixels2 | |
- |> Array.map (fun (x, y) -> abs(x-y)) | |
- |> Array.sum ;; | |
let typeBuilder399681458 = moduleBuilder430293066.DefineType("FSI_0007",enum 385) | |
moduleBuilder430293066.GetType("FSI_0007",false,false) |> ignore | |
let typeBuilder1154100404 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0007>.$FSI_0007",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0007>.$FSI_0007",false,false) |> ignore | |
typeBuilder399681458.SetParent(typeof<System.Object>) | |
typeBuilder1154100404.SetParent(typeof<System.Object>) | |
let methodBuilder824980409 = typeBuilder399681458.DefineMethod("manhattanDistance",enum 22,enum 1) | |
methodBuilder824980409.SetParameters([|System.Int32[]; System.Int32[]|]) | |
methodBuilder824980409.SetReturnType(typeof<System.Int32>) | |
methodBuilder824980409.SetImplementationFlags(enum 0) | |
let methodBuilder569342189 = typeBuilder1154100404.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
methodBuilder824980409.DefineParameter(1,enum 0,"pixels1") | |
methodBuilder824980409.DefineParameter(2,enum 0,"pixels2") | |
let ilg1338386250 = methodBuilder824980409.GetILGenerator() | |
ilg1338386250.DeclareLocal(typeof<System.Int32[]>,false) | |
ilg1338386250.DeclareLocal(typeof<System.Tuple`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]][]>,false) | |
ilg1338386250.DeclareLocal(typeof<System.Int32[]>,false) | |
ilg1338386250.DeclareLocal(typeof<System.Int32>,false) | |
ilg1338386250.DeclareLocal(typeof<System.Tuple`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>,false) | |
ilg1338386250.DeclareLocal(typeof<System.Int32>,false) | |
ilg1338386250.DeclareLocal(typeof<System.Int32>,false) | |
let label1338386250_0 = ilg1338386250.DefineLabel() | |
let label1338386250_1 = ilg1338386250.DefineLabel() | |
let label1338386250_2 = ilg1338386250.DefineLabel() | |
let label1338386250_3 = ilg1338386250.DefineLabel() | |
let label1338386250_4 = ilg1338386250.DefineLabel() | |
let label1338386250_5 = ilg1338386250.DefineLabel() | |
let label1338386250_6 = ilg1338386250.DefineLabel() | |
let label1338386250_7 = ilg1338386250.DefineLabel() | |
let label1338386250_8 = ilg1338386250.DefineLabel() | |
let label1338386250_9 = ilg1338386250.DefineLabel() | |
let label1338386250_10 = ilg1338386250.DefineLabel() | |
let label1338386250_11 = ilg1338386250.DefineLabel() | |
let label1338386250_12 = ilg1338386250.DefineLabel() | |
let label1338386250_13 = ilg1338386250.DefineLabel() | |
let label1338386250_14 = ilg1338386250.DefineLabel() | |
let label1338386250_15 = ilg1338386250.DefineLabel() | |
let label1338386250_16 = ilg1338386250.DefineLabel() | |
let label1338386250_17 = ilg1338386250.DefineLabel() | |
let label1338386250_18 = ilg1338386250.DefineLabel() | |
let label1338386250_19 = ilg1338386250.DefineLabel() | |
let label1338386250_20 = ilg1338386250.DefineLabel() | |
let label1338386250_21 = ilg1338386250.DefineLabel() | |
let label1338386250_22 = ilg1338386250.DefineLabel() | |
let label1338386250_23 = ilg1338386250.DefineLabel() | |
let label1338386250_24 = ilg1338386250.DefineLabel() | |
let label1338386250_25 = ilg1338386250.DefineLabel() | |
let label1338386250_26 = ilg1338386250.DefineLabel() | |
let label1338386250_27 = ilg1338386250.DefineLabel() | |
let label1338386250_28 = ilg1338386250.DefineLabel() | |
let label1338386250_29 = ilg1338386250.DefineLabel() | |
let label1338386250_30 = ilg1338386250.DefineLabel() | |
let label1338386250_31 = ilg1338386250.DefineLabel() | |
let label1338386250_32 = ilg1338386250.DefineLabel() | |
let label1338386250_33 = ilg1338386250.DefineLabel() | |
let label1338386250_34 = ilg1338386250.DefineLabel() | |
let label1338386250_35 = ilg1338386250.DefineLabel() | |
let label1338386250_36 = ilg1338386250.DefineLabel() | |
let label1338386250_37 = ilg1338386250.DefineLabel() | |
let label1338386250_38 = ilg1338386250.DefineLabel() | |
let label1338386250_39 = ilg1338386250.DefineLabel() | |
let label1338386250_40 = ilg1338386250.DefineLabel() | |
let label1338386250_41 = ilg1338386250.DefineLabel() | |
let label1338386250_42 = ilg1338386250.DefineLabel() | |
let label1338386250_43 = ilg1338386250.DefineLabel() | |
let label1338386250_44 = ilg1338386250.DefineLabel() | |
ilg1338386250.MarkLabel(label1338386250_0) | |
ilg1338386250.Emit(OpCodes.Nop) | |
ilg1338386250.MarkLabel(label1338386250_2) | |
ilg1338386250.MarkLabel(label1338386250_1) | |
ilg1338386250.Emit(OpCodes.Ldarg, int16 0) | |
ilg1338386250.Emit(OpCodes.Ldarg, int16 1) | |
ilg1338386250.MarkLabel(label1338386250_3) | |
ilg1338386250.Emit(OpCodes.Call, methodBuilder278103040) // method Zip | |
ilg1338386250.MarkLabel(label1338386250_4) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 1) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 1) | |
ilg1338386250.Emit(OpCodes.Box, typeof<System.Tuple`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]][]>) | |
ilg1338386250.Emit(OpCodes.Brfalse,label1338386250_9) | |
ilg1338386250.MarkLabel(label1338386250_7) | |
ilg1338386250.MarkLabel(label1338386250_6) | |
ilg1338386250.MarkLabel(label1338386250_5) | |
ilg1338386250.Emit(OpCodes.Nop) | |
ilg1338386250.Emit(OpCodes.Br,label1338386250_14) | |
ilg1338386250.MarkLabel(label1338386250_12) | |
ilg1338386250.MarkLabel(label1338386250_11) | |
ilg1338386250.MarkLabel(label1338386250_10) | |
ilg1338386250.MarkLabel(label1338386250_9) | |
ilg1338386250.MarkLabel(label1338386250_8) | |
ilg1338386250.Emit(OpCodes.Ldstr,"@array") | |
ilg1338386250.Emit(OpCodes.Newobj,constructor_ArgumentNullException) | |
ilg1338386250.Emit(OpCodes.Throw) | |
ilg1338386250.MarkLabel(label1338386250_15) | |
ilg1338386250.MarkLabel(label1338386250_14) | |
ilg1338386250.MarkLabel(label1338386250_13) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 1) | |
ilg1338386250.Emit(OpCodes.Ldlen) | |
ilg1338386250.Emit(OpCodes.Conv_I4) | |
ilg1338386250.Emit(OpCodes.Newarr, typeof<System.Int32>) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 2) | |
ilg1338386250.MarkLabel(label1338386250_16) | |
ilg1338386250.Emit(OpCodes.Ldc_I4, 0) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 3) | |
ilg1338386250.Emit(OpCodes.Br,label1338386250_24) | |
ilg1338386250.MarkLabel(label1338386250_17) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 2) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 3) | |
ilg1338386250.MarkLabel(label1338386250_18) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 1) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 3) | |
ilg1338386250.Emit(OpCodes.Ldelem, typeof<System.Tuple`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 4) | |
ilg1338386250.MarkLabel(label1338386250_19) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 4) | |
ilg1338386250.Emit(OpCodes.Call, methodBuilder632992012) // method get_Item1 | |
ilg1338386250.Emit(OpCodes.Stloc, int16 5) | |
ilg1338386250.MarkLabel(label1338386250_20) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 4) | |
ilg1338386250.Emit(OpCodes.Call, methodBuilder413268616) // method get_Item2 | |
ilg1338386250.Emit(OpCodes.Stloc, int16 6) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 5) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 6) | |
ilg1338386250.Emit(OpCodes.Sub) | |
ilg1338386250.Emit(OpCodes.Call, methodBuilder1831780891) // method Abs | |
ilg1338386250.MarkLabel(label1338386250_23) | |
ilg1338386250.MarkLabel(label1338386250_22) | |
ilg1338386250.MarkLabel(label1338386250_21) | |
ilg1338386250.Emit(OpCodes.Stelem, typeof<System.Int32>) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 3) | |
ilg1338386250.Emit(OpCodes.Ldc_I4, 1) | |
ilg1338386250.Emit(OpCodes.Add) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 3) | |
ilg1338386250.MarkLabel(label1338386250_24) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 3) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 2) | |
ilg1338386250.Emit(OpCodes.Ldlen) | |
ilg1338386250.Emit(OpCodes.Conv_I4) | |
ilg1338386250.Emit(OpCodes.Blt,label1338386250_17) | |
ilg1338386250.MarkLabel(label1338386250_25) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 2) | |
ilg1338386250.MarkLabel(label1338386250_27) | |
ilg1338386250.MarkLabel(label1338386250_26) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 0) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 0) | |
ilg1338386250.Emit(OpCodes.Box, typeof<System.Int32[]>) | |
ilg1338386250.Emit(OpCodes.Brfalse,label1338386250_32) | |
ilg1338386250.MarkLabel(label1338386250_30) | |
ilg1338386250.MarkLabel(label1338386250_29) | |
ilg1338386250.MarkLabel(label1338386250_28) | |
ilg1338386250.Emit(OpCodes.Nop) | |
ilg1338386250.Emit(OpCodes.Br,label1338386250_37) | |
ilg1338386250.MarkLabel(label1338386250_35) | |
ilg1338386250.MarkLabel(label1338386250_34) | |
ilg1338386250.MarkLabel(label1338386250_33) | |
ilg1338386250.MarkLabel(label1338386250_32) | |
ilg1338386250.MarkLabel(label1338386250_31) | |
ilg1338386250.Emit(OpCodes.Ldstr,"@array") | |
ilg1338386250.Emit(OpCodes.Newobj,constructor_ArgumentNullException) | |
ilg1338386250.Emit(OpCodes.Throw) | |
ilg1338386250.MarkLabel(label1338386250_38) | |
ilg1338386250.MarkLabel(label1338386250_37) | |
ilg1338386250.MarkLabel(label1338386250_36) | |
ilg1338386250.Emit(OpCodes.Ldc_I4, 0) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 3) | |
ilg1338386250.MarkLabel(label1338386250_39) | |
ilg1338386250.Emit(OpCodes.Ldc_I4, 0) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 5) | |
ilg1338386250.Emit(OpCodes.Br,label1338386250_41) | |
ilg1338386250.MarkLabel(label1338386250_40) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 3) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 0) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 5) | |
ilg1338386250.Emit(OpCodes.Ldelem, typeof<System.Int32>) | |
ilg1338386250.Emit(OpCodes.Add_ovf) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 3) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 5) | |
ilg1338386250.Emit(OpCodes.Ldc_I4, 1) | |
ilg1338386250.Emit(OpCodes.Add) | |
ilg1338386250.Emit(OpCodes.Stloc, int16 5) | |
ilg1338386250.MarkLabel(label1338386250_41) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 5) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 0) | |
ilg1338386250.Emit(OpCodes.Ldlen) | |
ilg1338386250.Emit(OpCodes.Conv_I4) | |
ilg1338386250.Emit(OpCodes.Blt,label1338386250_40) | |
ilg1338386250.MarkLabel(label1338386250_42) | |
ilg1338386250.Emit(OpCodes.Ldloc, int16 3) | |
ilg1338386250.Emit(OpCodes.Ret) | |
ilg1338386250.MarkLabel(label1338386250_44) | |
ilg1338386250.MarkLabel(label1338386250_43) | |
typeBuilder399681458.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg1107381558 = methodBuilder569342189.GetILGenerator() | |
let label1107381558_0 = ilg1107381558.DefineLabel() | |
let label1107381558_1 = ilg1107381558.DefineLabel() | |
let label1107381558_2 = ilg1107381558.DefineLabel() | |
ilg1107381558.Emit(OpCodes.Nop) | |
ilg1107381558.MarkLabel(label1107381558_2) | |
ilg1107381558.MarkLabel(label1107381558_1) | |
ilg1107381558.MarkLabel(label1107381558_0) | |
ilg1107381558.Emit(OpCodes.Ret) | |
typeBuilder399681458.CreateType() | |
typeBuilder1154100404.CreateType() | |
typeBuilder2088646896.CreateType() | |
typeBuilder2088648176.CreateType() | |
typeBuilder2088648176.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
val manhattanDistance : pixels1:int [] * pixels2:int [] -> int | |
> let train (trainingSet:Observation[]) = | |
- let classify (pixels:int[]) = | |
- trainingSet | |
- |> Array.minBy (fun x -> manhattanDistance(x.Pixels, pixels)) | |
- |> fun x -> x.Label | |
- classify;; | |
let typeBuilder1188409622 = moduleBuilder430293066.DefineType("FSI_0008",enum 385) | |
moduleBuilder430293066.GetType("FSI_0008",false,false) |> ignore | |
let typeBuilder1901786604 = typeBuilder1188409622.DefineNestedType("train@19",enum 8197) | |
moduleBuilder430293066.GetType("FSI_0008+train@19",false,false) |> ignore | |
let typeBuilder1885727103 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0008>.$FSI_0008",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0008>.$FSI_0008",false,false) |> ignore | |
typeBuilder1188409622.SetParent(typeof<System.Object>) | |
typeBuilder1901786604.SetParent(typeof<Microsoft.FSharp.Core.FSharpFunc`2[[System.Int32[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>) | |
typeBuilder1885727103.SetParent(typeof<System.Object>) | |
let methodBuilder828994452 = typeBuilder1188409622.DefineMethod("train",enum 22,enum 1) | |
methodBuilder828994452.SetParameters([|FSI_0004+Observation[]|]) | |
methodBuilder828994452.SetReturnType(typeof<Microsoft.FSharp.Core.FSharpFunc`2[[System.Int32[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>) | |
methodBuilder828994452.SetImplementationFlags(enum 0) | |
let constructorBuilder2049749495 = typeBuilder1901786604.DefineConstructor(enum 2051,CallingConventions.HasThis,[|FSI_0004+Observation[]|]) | |
constructorBuilder2049749495.SetImplementationFlags(enum 0) | |
let methodBuilder1327901770 = typeBuilder1901786604.DefineMethod("Invoke",enum 582,enum 32) | |
methodBuilder1327901770.SetParameters([|System.Int32[]|]) | |
methodBuilder1327901770.SetReturnType(typeof<System.String>) | |
methodBuilder1327901770.SetImplementationFlags(enum 0) | |
let fieldBuilder1378898689 = typeBuilder1901786604.DefineField("trainingSet",typeof<FSI_0004+Observation[]>,enum 6) | |
let methodBuilder569342189 = typeBuilder1885727103.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
methodBuilder828994452.DefineParameter(1,enum 0,"trainingSet") | |
let ilg79761432 = methodBuilder828994452.GetILGenerator() | |
let label79761432_0 = ilg79761432.DefineLabel() | |
ilg79761432.MarkLabel(label79761432_0) | |
ilg79761432.Emit(OpCodes.Nop) | |
ilg79761432.Emit(OpCodes.Ldarg, int16 0) | |
ilg79761432.Emit(OpCodes.Newobj,constructor_train@19) | |
ilg79761432.Emit(OpCodes.Ret) | |
typeBuilder1188409622.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
constructorBuilder2049749495.DefineParameter(1,enum 0,"trainingSet") | |
ilg893651724.Emit(OpCodes.Ldarg, int16 0) | |
ilg893651724.Emit(OpCodes.Call,constructor_FSharpFunc`2) | |
ilg893651724.Emit(OpCodes.Ldarg, int16 0) | |
ilg893651724.Emit(OpCodes.Ldarg, int16 1) | |
ilg893651724.Emit(OpCodes.Stfld, fieldBuilder1378898689) // field trainingSet | |
ilg893651724.Emit(OpCodes.Ret) | |
methodBuilder1327901770.DefineParameter(1,enum 0,"pixels") | |
let ilg1421037354 = methodBuilder1327901770.GetILGenerator() | |
ilg1421037354.DeclareLocal(typeof<FSI_0004+Observation>,false) | |
ilg1421037354.DeclareLocal(typeof<System.Int32>,false) | |
ilg1421037354.DeclareLocal(typeof<FSI_0004+Observation>,false) | |
ilg1421037354.DeclareLocal(typeof<System.Int32>,false) | |
ilg1421037354.DeclareLocal(typeof<System.Int32>,false) | |
let label1421037354_0 = ilg1421037354.DefineLabel() | |
let label1421037354_1 = ilg1421037354.DefineLabel() | |
let label1421037354_2 = ilg1421037354.DefineLabel() | |
let label1421037354_3 = ilg1421037354.DefineLabel() | |
let label1421037354_4 = ilg1421037354.DefineLabel() | |
let label1421037354_5 = ilg1421037354.DefineLabel() | |
let label1421037354_6 = ilg1421037354.DefineLabel() | |
let label1421037354_7 = ilg1421037354.DefineLabel() | |
let label1421037354_8 = ilg1421037354.DefineLabel() | |
let label1421037354_9 = ilg1421037354.DefineLabel() | |
let label1421037354_10 = ilg1421037354.DefineLabel() | |
let label1421037354_11 = ilg1421037354.DefineLabel() | |
let label1421037354_12 = ilg1421037354.DefineLabel() | |
let label1421037354_13 = ilg1421037354.DefineLabel() | |
let label1421037354_14 = ilg1421037354.DefineLabel() | |
let label1421037354_15 = ilg1421037354.DefineLabel() | |
let label1421037354_16 = ilg1421037354.DefineLabel() | |
let label1421037354_17 = ilg1421037354.DefineLabel() | |
let label1421037354_18 = ilg1421037354.DefineLabel() | |
let label1421037354_19 = ilg1421037354.DefineLabel() | |
let label1421037354_20 = ilg1421037354.DefineLabel() | |
let label1421037354_21 = ilg1421037354.DefineLabel() | |
let label1421037354_22 = ilg1421037354.DefineLabel() | |
let label1421037354_23 = ilg1421037354.DefineLabel() | |
let label1421037354_24 = ilg1421037354.DefineLabel() | |
let label1421037354_25 = ilg1421037354.DefineLabel() | |
let label1421037354_26 = ilg1421037354.DefineLabel() | |
let label1421037354_27 = ilg1421037354.DefineLabel() | |
let label1421037354_28 = ilg1421037354.DefineLabel() | |
let label1421037354_29 = ilg1421037354.DefineLabel() | |
let label1421037354_30 = ilg1421037354.DefineLabel() | |
let label1421037354_31 = ilg1421037354.DefineLabel() | |
let label1421037354_32 = ilg1421037354.DefineLabel() | |
let label1421037354_33 = ilg1421037354.DefineLabel() | |
let label1421037354_34 = ilg1421037354.DefineLabel() | |
let label1421037354_35 = ilg1421037354.DefineLabel() | |
let label1421037354_36 = ilg1421037354.DefineLabel() | |
let label1421037354_37 = ilg1421037354.DefineLabel() | |
let label1421037354_38 = ilg1421037354.DefineLabel() | |
let label1421037354_39 = ilg1421037354.DefineLabel() | |
let label1421037354_40 = ilg1421037354.DefineLabel() | |
let label1421037354_41 = ilg1421037354.DefineLabel() | |
let label1421037354_42 = ilg1421037354.DefineLabel() | |
let label1421037354_43 = ilg1421037354.DefineLabel() | |
let label1421037354_44 = ilg1421037354.DefineLabel() | |
let label1421037354_45 = ilg1421037354.DefineLabel() | |
let label1421037354_46 = ilg1421037354.DefineLabel() | |
let label1421037354_47 = ilg1421037354.DefineLabel() | |
let label1421037354_48 = ilg1421037354.DefineLabel() | |
ilg1421037354.MarkLabel(label1421037354_0) | |
ilg1421037354.Emit(OpCodes.Nop) | |
ilg1421037354.Emit(OpCodes.Ldarg, int16 0) | |
ilg1421037354.Emit(OpCodes.Ldfld, fieldBuilder1378898689) // field trainingSet | |
ilg1421037354.Emit(OpCodes.Box, typeof<FSI_0004+Observation[]>) | |
ilg1421037354.Emit(OpCodes.Brfalse,label1421037354_5) | |
ilg1421037354.MarkLabel(label1421037354_3) | |
ilg1421037354.MarkLabel(label1421037354_2) | |
ilg1421037354.MarkLabel(label1421037354_1) | |
ilg1421037354.Emit(OpCodes.Nop) | |
ilg1421037354.Emit(OpCodes.Br,label1421037354_10) | |
ilg1421037354.MarkLabel(label1421037354_8) | |
ilg1421037354.MarkLabel(label1421037354_7) | |
ilg1421037354.MarkLabel(label1421037354_6) | |
ilg1421037354.MarkLabel(label1421037354_5) | |
ilg1421037354.MarkLabel(label1421037354_4) | |
ilg1421037354.Emit(OpCodes.Ldstr,"@array") | |
ilg1421037354.Emit(OpCodes.Newobj,constructor_ArgumentNullException) | |
ilg1421037354.Emit(OpCodes.Throw) | |
ilg1421037354.MarkLabel(label1421037354_10) | |
ilg1421037354.MarkLabel(label1421037354_9) | |
ilg1421037354.Emit(OpCodes.Ldarg, int16 0) | |
ilg1421037354.Emit(OpCodes.Ldfld, fieldBuilder1378898689) // field trainingSet | |
ilg1421037354.Emit(OpCodes.Ldlen) | |
ilg1421037354.Emit(OpCodes.Conv_I4) | |
ilg1421037354.Emit(OpCodes.Brtrue,label1421037354_15) | |
ilg1421037354.MarkLabel(label1421037354_13) | |
ilg1421037354.MarkLabel(label1421037354_12) | |
ilg1421037354.MarkLabel(label1421037354_11) | |
ilg1421037354.Emit(OpCodes.Call, methodBuilder1920636765) // method get_InputArrayEmptyString | |
ilg1421037354.Emit(OpCodes.Ldstr,"@array") | |
ilg1421037354.Emit(OpCodes.Newobj,constructor_ArgumentException) | |
ilg1421037354.Emit(OpCodes.Throw) | |
ilg1421037354.MarkLabel(label1421037354_18) | |
ilg1421037354.MarkLabel(label1421037354_17) | |
ilg1421037354.MarkLabel(label1421037354_16) | |
ilg1421037354.MarkLabel(label1421037354_15) | |
ilg1421037354.MarkLabel(label1421037354_14) | |
ilg1421037354.Emit(OpCodes.Nop) | |
ilg1421037354.MarkLabel(label1421037354_21) | |
ilg1421037354.MarkLabel(label1421037354_20) | |
ilg1421037354.MarkLabel(label1421037354_19) | |
ilg1421037354.Emit(OpCodes.Ldarg, int16 0) | |
ilg1421037354.Emit(OpCodes.Ldfld, fieldBuilder1378898689) // field trainingSet | |
ilg1421037354.Emit(OpCodes.Ldc_I4, 0) | |
ilg1421037354.Emit(OpCodes.Ldelem, typeof<FSI_0004+Observation>) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 0) | |
ilg1421037354.MarkLabel(label1421037354_23) | |
ilg1421037354.MarkLabel(label1421037354_22) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 0) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 2) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 2) | |
ilg1421037354.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg1421037354.Emit(OpCodes.Ldarg, int16 1) | |
ilg1421037354.MarkLabel(label1421037354_24) | |
ilg1421037354.Emit(OpCodes.Call, methodBuilder824980409) // method manhattanDistance | |
ilg1421037354.MarkLabel(label1421037354_26) | |
ilg1421037354.MarkLabel(label1421037354_25) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 1) | |
ilg1421037354.MarkLabel(label1421037354_27) | |
ilg1421037354.Emit(OpCodes.Ldc_I4, 1) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 3) | |
ilg1421037354.Emit(OpCodes.Br,label1421037354_45) | |
ilg1421037354.MarkLabel(label1421037354_28) | |
ilg1421037354.MarkLabel(label1421037354_29) | |
ilg1421037354.Emit(OpCodes.Ldarg, int16 0) | |
ilg1421037354.Emit(OpCodes.Ldfld, fieldBuilder1378898689) // field trainingSet | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 3) | |
ilg1421037354.Emit(OpCodes.Ldelem, typeof<FSI_0004+Observation>) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 2) | |
ilg1421037354.MarkLabel(label1421037354_30) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 2) | |
ilg1421037354.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg1421037354.Emit(OpCodes.Ldarg, int16 1) | |
ilg1421037354.MarkLabel(label1421037354_31) | |
ilg1421037354.Emit(OpCodes.Call, methodBuilder824980409) // method manhattanDistance | |
ilg1421037354.MarkLabel(label1421037354_32) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 4) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 4) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 1) | |
ilg1421037354.Emit(OpCodes.Bge,label1421037354_37) | |
ilg1421037354.MarkLabel(label1421037354_35) | |
ilg1421037354.MarkLabel(label1421037354_34) | |
ilg1421037354.MarkLabel(label1421037354_33) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 4) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 1) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 2) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 0) | |
ilg1421037354.Emit(OpCodes.Nop) | |
ilg1421037354.Emit(OpCodes.Br,label1421037354_42) | |
ilg1421037354.MarkLabel(label1421037354_40) | |
ilg1421037354.MarkLabel(label1421037354_39) | |
ilg1421037354.MarkLabel(label1421037354_38) | |
ilg1421037354.MarkLabel(label1421037354_37) | |
ilg1421037354.MarkLabel(label1421037354_36) | |
ilg1421037354.Emit(OpCodes.Nop) | |
ilg1421037354.MarkLabel(label1421037354_44) | |
ilg1421037354.MarkLabel(label1421037354_43) | |
ilg1421037354.MarkLabel(label1421037354_42) | |
ilg1421037354.MarkLabel(label1421037354_41) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 3) | |
ilg1421037354.Emit(OpCodes.Ldc_I4, 1) | |
ilg1421037354.Emit(OpCodes.Add) | |
ilg1421037354.Emit(OpCodes.Stloc, int16 3) | |
ilg1421037354.MarkLabel(label1421037354_45) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 3) | |
ilg1421037354.Emit(OpCodes.Ldarg, int16 0) | |
ilg1421037354.Emit(OpCodes.Ldfld, fieldBuilder1378898689) // field trainingSet | |
ilg1421037354.Emit(OpCodes.Ldlen) | |
ilg1421037354.Emit(OpCodes.Conv_I4) | |
ilg1421037354.Emit(OpCodes.Blt,label1421037354_28) | |
ilg1421037354.MarkLabel(label1421037354_46) | |
ilg1421037354.Emit(OpCodes.Ldloc, int16 0) | |
ilg1421037354.MarkLabel(label1421037354_48) | |
ilg1421037354.MarkLabel(label1421037354_47) | |
ilg1421037354.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg1421037354.Emit(OpCodes.Ret) | |
let ilg602720266 = methodBuilder569342189.GetILGenerator() | |
let label602720266_0 = ilg602720266.DefineLabel() | |
let label602720266_1 = ilg602720266.DefineLabel() | |
let label602720266_2 = ilg602720266.DefineLabel() | |
ilg602720266.Emit(OpCodes.Nop) | |
ilg602720266.MarkLabel(label602720266_2) | |
ilg602720266.MarkLabel(label602720266_1) | |
ilg602720266.MarkLabel(label602720266_0) | |
ilg602720266.Emit(OpCodes.Ret) | |
typeBuilder1188409622.CreateType() | |
typeBuilder1901786604.CreateType() | |
typeBuilder1885727103.CreateType() | |
typeBuilder2088648872.CreateType() | |
typeBuilder2088649576.CreateType() | |
typeBuilder2088651232.CreateType() | |
typeBuilder2088651232.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
val train : trainingSet:Observation [] -> (int [] -> string) | |
> let trainingPath = @"/Users/jason/src/fsharp739/trainingsample.csv" | |
- let trainingData = reader trainingPath | |
- let classifier = train trainingData;; | |
let typeBuilder699407224 = moduleBuilder430293066.DefineType("FSI_0009",enum 385) | |
moduleBuilder430293066.GetType("FSI_0009",false,false) |> ignore | |
let typeBuilder438051506 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0009>.$FSI_0009",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0009>.$FSI_0009",false,false) |> ignore | |
typeBuilder699407224.SetParent(typeof<System.Object>) | |
typeBuilder438051506.SetParent(typeof<System.Object>) | |
let methodBuilder1678039414 = typeBuilder699407224.DefineMethod("get_trainingPath",enum 2070,enum 1) | |
methodBuilder1678039414.SetParameters([||]) | |
methodBuilder1678039414.SetReturnType(typeof<System.String>) | |
methodBuilder1678039414.SetImplementationFlags(enum 0) | |
let methodBuilder244275259 = typeBuilder699407224.DefineMethod("get_trainingData",enum 2070,enum 1) | |
methodBuilder244275259.SetParameters([||]) | |
methodBuilder244275259.SetReturnType(typeof<FSI_0004+Observation[]>) | |
methodBuilder244275259.SetImplementationFlags(enum 0) | |
let methodBuilder1834149566 = typeBuilder699407224.DefineMethod("get_classifier",enum 2070,enum 1) | |
methodBuilder1834149566.SetParameters([||]) | |
methodBuilder1834149566.SetReturnType(typeof<Microsoft.FSharp.Core.FSharpFunc`2[[System.Int32[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>) | |
methodBuilder1834149566.SetImplementationFlags(enum 0) | |
let constructorBuilder1179556118 = typeBuilder699407224.DefineConstructor(enum 2065,CallingConventions.Standard,[||]) | |
constructorBuilder1179556118.SetImplementationFlags(enum 0) | |
let fieldBuilder2032959347 = typeBuilder699407224.DefineField("trainingData@",typeof<FSI_0004+Observation[]>,enum 19) | |
let fieldBuilder951167156 = typeBuilder699407224.DefineField("classifier@",typeof<Microsoft.FSharp.Core.FSharpFunc`2[[System.Int32[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>,enum 19) | |
typeBuilder699407224.DefineProperty(""trainingPath"",enum 0,typeof<System.String>,[||]) | |
typeBuilder699407224.DefineProperty(""trainingData"",enum 0,typeof<FSI_0004+Observation[]>,[||]) | |
typeBuilder699407224.DefineProperty(""classifier"",enum 0,typeof<Microsoft.FSharp.Core.FSharpFunc`2[[System.Int32[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]>,[||]) | |
let methodBuilder569342189 = typeBuilder438051506.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
let fieldBuilder1853232049 = typeBuilder438051506.DefineField("init@",typeof<System.Int32>,enum 19) | |
let ilg355528968 = methodBuilder1678039414.GetILGenerator() | |
let label355528968_0 = ilg355528968.DefineLabel() | |
ilg355528968.Emit(OpCodes.Nop) | |
ilg355528968.MarkLabel(label355528968_0) | |
ilg355528968.Emit(OpCodes.Ldstr,"@/Users/jason/src/fsharp739/trainingsample.csv") | |
ilg355528968.Emit(OpCodes.Ret) | |
methodBuilder1678039414.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder1678039414.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
let ilg1761125360 = methodBuilder244275259.GetILGenerator() | |
ilg1761125360.Emit(OpCodes.Ldsfld, fieldBuilder2032959347) // field trainingData@ | |
ilg1761125360.Emit(OpCodes.Ret) | |
let ilg672280645 = methodBuilder1834149566.GetILGenerator() | |
ilg672280645.Emit(OpCodes.Ldsfld, fieldBuilder951167156) // field classifier@ | |
ilg672280645.Emit(OpCodes.Ret) | |
ilg1113033797.Emit(OpCodes.Ldc_I4, 0) | |
ilg1113033797.Emit(OpCodes.Stsfld, fieldBuilder1853232049) // field init@ | |
ilg1113033797.Emit(OpCodes.Ldsfld, fieldBuilder1853232049) // field init@ | |
ilg1113033797.Emit(OpCodes.Pop) | |
ilg1113033797.Emit(OpCodes.Ret) | |
typeBuilder699407224.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg1128717158 = methodBuilder569342189.GetILGenerator() | |
let label1128717158_0 = ilg1128717158.DefineLabel() | |
let label1128717158_1 = ilg1128717158.DefineLabel() | |
let label1128717158_2 = ilg1128717158.DefineLabel() | |
let label1128717158_3 = ilg1128717158.DefineLabel() | |
let label1128717158_4 = ilg1128717158.DefineLabel() | |
let label1128717158_5 = ilg1128717158.DefineLabel() | |
let label1128717158_6 = ilg1128717158.DefineLabel() | |
ilg1128717158.MarkLabel(label1128717158_1) | |
ilg1128717158.MarkLabel(label1128717158_0) | |
ilg1128717158.Emit(OpCodes.Nop) | |
ilg1128717158.Emit(OpCodes.Nop) | |
ilg1128717158.Emit(OpCodes.Ldstr,"@/Users/jason/src/fsharp739/trainingsample.csv") | |
ilg1128717158.MarkLabel(label1128717158_2) | |
ilg1128717158.Emit(OpCodes.Call, methodBuilder51169761) // method reader | |
ilg1128717158.MarkLabel(label1128717158_3) | |
ilg1128717158.Emit(OpCodes.Stsfld, fieldBuilder2032959347) // field trainingData@ | |
ilg1128717158.Emit(OpCodes.Call, methodBuilder244275259) // method get_trainingData | |
ilg1128717158.MarkLabel(label1128717158_4) | |
ilg1128717158.Emit(OpCodes.Call, methodBuilder828994452) // method train | |
ilg1128717158.MarkLabel(label1128717158_5) | |
ilg1128717158.Emit(OpCodes.Stsfld, fieldBuilder951167156) // field classifier@ | |
ilg1128717158.MarkLabel(label1128717158_6) | |
ilg1128717158.Emit(OpCodes.Ret) | |
typeBuilder699407224.CreateType() | |
typeBuilder438051506.CreateType() | |
typeBuilder2088652000.CreateType() | |
typeBuilder2088653736.CreateType() | |
typeBuilder2088653736.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
val trainingPath : string = "/Users/jason/src/fsharp739/trainingsample.csv" | |
val trainingData : Observation [] = | |
[|{Label = "1"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "0"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "1"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "4"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "0"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "0"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "7"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "3"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "5"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "3"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; ...|];}; | |
...|] | |
val classifier : (int [] -> string) | |
> let validationPath = @"/Users/jason/src/fsharp739/validationsample.csv" | |
- let validationData = reader validationPath | |
- validationData | |
- |> Array.averageBy (fun x -> if classifier x.Pixels = x.Label then 1. else 0.) | |
- |> printfn "Correct: %.3f";; | |
let typeBuilder1483169245 = moduleBuilder430293066.DefineType("FSI_0010",enum 385) | |
moduleBuilder430293066.GetType("FSI_0010",false,false) |> ignore | |
let typeBuilder1249774500 = moduleBuilder430293066.DefineType("<StartupCode$FSI_0010>.$FSI_0010",enum 384) | |
moduleBuilder430293066.GetType("<StartupCode$FSI_0010>.$FSI_0010",false,false) |> ignore | |
typeBuilder1483169245.SetParent(typeof<System.Object>) | |
typeBuilder1249774500.SetParent(typeof<System.Object>) | |
let methodBuilder1375111665 = typeBuilder1483169245.DefineMethod("get_validationPath",enum 2070,enum 1) | |
methodBuilder1375111665.SetParameters([||]) | |
methodBuilder1375111665.SetReturnType(typeof<System.String>) | |
methodBuilder1375111665.SetImplementationFlags(enum 0) | |
let methodBuilder547203256 = typeBuilder1483169245.DefineMethod("get_validationData",enum 2070,enum 1) | |
methodBuilder547203256.SetParameters([||]) | |
methodBuilder547203256.SetReturnType(typeof<FSI_0004+Observation[]>) | |
methodBuilder547203256.SetImplementationFlags(enum 0) | |
let methodBuilder1368407990 = typeBuilder1483169245.DefineMethod("get_it",enum 2070,enum 1) | |
methodBuilder1368407990.SetParameters([||]) | |
methodBuilder1368407990.SetReturnType(typeof<Microsoft.FSharp.Core.Unit>) | |
methodBuilder1368407990.SetImplementationFlags(enum 0) | |
let methodBuilder1200342502 = typeBuilder1483169245.DefineMethod("get_x@1",enum 2067,enum 1) | |
methodBuilder1200342502.SetParameters([||]) | |
methodBuilder1200342502.SetReturnType(typeof<System.Double>) | |
methodBuilder1200342502.SetImplementationFlags(enum 0) | |
let methodBuilder837191787 = typeBuilder1483169245.DefineMethod("f@1",enum 19,enum 1) | |
methodBuilder837191787.SetParameters([|FSI_0004+Observation|]) | |
methodBuilder837191787.SetReturnType(typeof<System.Double>) | |
methodBuilder837191787.SetImplementationFlags(enum 0) | |
let methodBuilder157183567 = typeBuilder1483169245.DefineMethod("get_acc@1",enum 2067,enum 1) | |
methodBuilder157183567.SetParameters([||]) | |
methodBuilder157183567.SetReturnType(typeof<System.Double>) | |
methodBuilder157183567.SetImplementationFlags(enum 0) | |
let methodBuilder134902595 = typeBuilder1483169245.DefineMethod("set_acc@1",enum 2067,enum 1) | |
methodBuilder134902595.SetParameters([|System.Double|]) | |
methodBuilder134902595.SetReturnType(typeof<System.Void>) | |
methodBuilder134902595.SetImplementationFlags(enum 0) | |
let methodBuilder1265773080 = typeBuilder1483169245.DefineMethod("get_x@1-1",enum 2067,enum 1) | |
methodBuilder1265773080.SetParameters([||]) | |
methodBuilder1265773080.SetReturnType(typeof<System.Double>) | |
methodBuilder1265773080.SetImplementationFlags(enum 0) | |
let methodBuilder1200342204 = typeBuilder1483169245.DefineMethod("get_n@1",enum 2067,enum 1) | |
methodBuilder1200342204.SetParameters([||]) | |
methodBuilder1200342204.SetReturnType(typeof<System.Int32>) | |
methodBuilder1200342204.SetImplementationFlags(enum 0) | |
let methodBuilder1918816934 = typeBuilder1483169245.DefineMethod("get_fp@1",enum 2067,enum 1) | |
methodBuilder1918816934.SetParameters([||]) | |
methodBuilder1918816934.SetReturnType(typeof<Microsoft.FSharp.Core.PrintfFormat`4[[Microsoft.FSharp.Core.FSharpFunc`2[[System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[System.IO.TextWriter, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]>) | |
methodBuilder1918816934.SetImplementationFlags(enum 0) | |
let constructorBuilder1085188118 = typeBuilder1483169245.DefineConstructor(enum 2065,CallingConventions.Standard,[||]) | |
constructorBuilder1085188118.SetImplementationFlags(enum 0) | |
let fieldBuilder1639855349 = typeBuilder1483169245.DefineField("validationData@",typeof<FSI_0004+Observation[]>,enum 19) | |
let fieldBuilder1088168529 = typeBuilder1483169245.DefineField("it@",typeof<Microsoft.FSharp.Core.Unit>,enum 19) | |
let fieldBuilder1902741643 = typeBuilder1483169245.DefineField("x@1",typeof<System.Double>,enum 19) | |
let fieldBuilder1703410531 = typeBuilder1483169245.DefineField("acc@1",typeof<System.Double>,enum 19) | |
let fieldBuilder2119321421 = typeBuilder1483169245.DefineField("x@1-1",typeof<System.Double>,enum 19) | |
let fieldBuilder643021585 = typeBuilder1483169245.DefineField("n@1",typeof<System.Int32>,enum 19) | |
let fieldBuilder687373648 = typeBuilder1483169245.DefineField("fp@1",typeof<Microsoft.FSharp.Core.PrintfFormat`4[[Microsoft.FSharp.Core.FSharpFunc`2[[System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[System.IO.TextWriter, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]>,enum 19) | |
typeBuilder1483169245.DefineProperty(""validationPath"",enum 0,typeof<System.String>,[||]) | |
typeBuilder1483169245.DefineProperty(""validationData"",enum 0,typeof<FSI_0004+Observation[]>,[||]) | |
typeBuilder1483169245.DefineProperty(""it"",enum 0,typeof<Microsoft.FSharp.Core.Unit>,[||]) | |
typeBuilder1483169245.DefineProperty(""x@1"",enum 0,typeof<System.Double>,[||]) | |
typeBuilder1483169245.DefineProperty(""acc@1"",enum 0,typeof<System.Double>,[||]) | |
typeBuilder1483169245.DefineProperty(""x@1-1"",enum 0,typeof<System.Double>,[||]) | |
typeBuilder1483169245.DefineProperty(""n@1"",enum 0,typeof<System.Int32>,[||]) | |
typeBuilder1483169245.DefineProperty(""fp@1"",enum 0,typeof<Microsoft.FSharp.Core.PrintfFormat`4[[Microsoft.FSharp.Core.FSharpFunc`2[[System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[System.IO.TextWriter, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[Microsoft.FSharp.Core.Unit, FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]>,[||]) | |
let methodBuilder569342189 = typeBuilder1249774500.DefineMethod("main@",enum 22,enum 1) | |
methodBuilder569342189.SetParameters([||]) | |
methodBuilder569342189.SetReturnType(typeof<System.Void>) | |
methodBuilder569342189.SetImplementationFlags(enum 0) | |
let fieldBuilder417599762 = typeBuilder1249774500.DefineField("init@",typeof<System.Int32>,enum 19) | |
let ilg708354741 = methodBuilder1375111665.GetILGenerator() | |
let label708354741_0 = ilg708354741.DefineLabel() | |
ilg708354741.Emit(OpCodes.Nop) | |
ilg708354741.MarkLabel(label708354741_0) | |
ilg708354741.Emit(OpCodes.Ldstr,"@/Users/jason/src/fsharp739/validationsample.csv") | |
ilg708354741.Emit(OpCodes.Ret) | |
methodBuilder1375111665.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
methodBuilder1375111665.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
let ilg1678413247 = methodBuilder547203256.GetILGenerator() | |
ilg1678413247.Emit(OpCodes.Ldsfld, fieldBuilder1639855349) // field validationData@ | |
ilg1678413247.Emit(OpCodes.Ret) | |
let ilg1842823150 = methodBuilder1368407990.GetILGenerator() | |
ilg1842823150.Emit(OpCodes.Ldsfld, fieldBuilder1088168529) // field it@ | |
ilg1842823150.Emit(OpCodes.Ret) | |
let ilg1034479625 = methodBuilder1200342502.GetILGenerator() | |
ilg1034479625.Emit(OpCodes.Ldsfld, fieldBuilder1902741643) // field x@1 | |
ilg1034479625.Emit(OpCodes.Ret) | |
methodBuilder837191787.DefineParameter(1,enum 0,"x") | |
let ilg1568493902 = methodBuilder837191787.GetILGenerator() | |
let label1568493902_0 = ilg1568493902.DefineLabel() | |
let label1568493902_1 = ilg1568493902.DefineLabel() | |
let label1568493902_2 = ilg1568493902.DefineLabel() | |
let label1568493902_3 = ilg1568493902.DefineLabel() | |
let label1568493902_4 = ilg1568493902.DefineLabel() | |
let label1568493902_5 = ilg1568493902.DefineLabel() | |
let label1568493902_6 = ilg1568493902.DefineLabel() | |
let label1568493902_7 = ilg1568493902.DefineLabel() | |
let label1568493902_8 = ilg1568493902.DefineLabel() | |
let label1568493902_9 = ilg1568493902.DefineLabel() | |
let label1568493902_10 = ilg1568493902.DefineLabel() | |
ilg1568493902.MarkLabel(label1568493902_0) | |
ilg1568493902.Emit(OpCodes.Nop) | |
ilg1568493902.Emit(OpCodes.Call, methodBuilder1834149566) // method get_classifier | |
ilg1568493902.Emit(OpCodes.Ldarg, int16 0) | |
ilg1568493902.Emit(OpCodes.Ldfld, fieldBuilder1202562495) // field Pixels@ | |
ilg1568493902.Emit(OpCodes.Callvirt, methodBuilder900374384) // method Invoke | |
ilg1568493902.Emit(OpCodes.Ldarg, int16 0) | |
ilg1568493902.Emit(OpCodes.Ldfld, fieldBuilder421721425) // field Label@ | |
ilg1568493902.Emit(OpCodes.Call, methodBuilder1080939438) // method Equals | |
ilg1568493902.Emit(OpCodes.Brfalse,label1568493902_5) | |
ilg1568493902.MarkLabel(label1568493902_3) | |
ilg1568493902.MarkLabel(label1568493902_2) | |
ilg1568493902.MarkLabel(label1568493902_1) | |
ilg1568493902.Emit(OpCodes.Ret) | |
ilg1568493902.MarkLabel(label1568493902_8) | |
ilg1568493902.MarkLabel(label1568493902_7) | |
ilg1568493902.MarkLabel(label1568493902_6) | |
ilg1568493902.MarkLabel(label1568493902_5) | |
ilg1568493902.MarkLabel(label1568493902_4) | |
ilg1568493902.Emit(OpCodes.Ret) | |
ilg1568493902.MarkLabel(label1568493902_10) | |
ilg1568493902.MarkLabel(label1568493902_9) | |
methodBuilder837191787.SetCustomAttribute(Void .ctor(), [|1uy; 0uy; 0uy; 0uy|]) | |
let ilg1545640822 = methodBuilder157183567.GetILGenerator() | |
ilg1545640822.Emit(OpCodes.Ldsfld, fieldBuilder1703410531) // field acc@1 | |
ilg1545640822.Emit(OpCodes.Ret) | |
methodBuilder134902595.DefineParameter(1,enum 0,"value") | |
let ilg1361603923 = methodBuilder134902595.GetILGenerator() | |
ilg1361603923.Emit(OpCodes.Ldarg, int16 0) | |
ilg1361603923.Emit(OpCodes.Stsfld, fieldBuilder1703410531) // field acc@1 | |
ilg1361603923.Emit(OpCodes.Ret) | |
let ilg788335654 = methodBuilder1265773080.GetILGenerator() | |
ilg788335654.Emit(OpCodes.Ldsfld, fieldBuilder2119321421) // field x@1-1 | |
ilg788335654.Emit(OpCodes.Ret) | |
let ilg629328867 = methodBuilder1200342204.GetILGenerator() | |
ilg629328867.Emit(OpCodes.Ldsfld, fieldBuilder643021585) // field n@1 | |
ilg629328867.Emit(OpCodes.Ret) | |
let ilg1860696991 = methodBuilder1918816934.GetILGenerator() | |
ilg1860696991.Emit(OpCodes.Ldsfld, fieldBuilder687373648) // field fp@1 | |
ilg1860696991.Emit(OpCodes.Ret) | |
ilg112258211.Emit(OpCodes.Ldc_I4, 0) | |
ilg112258211.Emit(OpCodes.Stsfld, fieldBuilder417599762) // field init@ | |
ilg112258211.Emit(OpCodes.Ldsfld, fieldBuilder417599762) // field init@ | |
ilg112258211.Emit(OpCodes.Pop) | |
ilg112258211.Emit(OpCodes.Ret) | |
typeBuilder1483169245.SetCustomAttribute(Void .ctor(SourceConstructFlags), [|1uy; 0uy; 7uy; 0uy; 0uy; 0uy; 0uy; 0uy|]) | |
let ilg1762266700 = methodBuilder569342189.GetILGenerator() | |
ilg1762266700.DeclareLocal(typeof<System.Int32>,false) | |
let label1762266700_0 = ilg1762266700.DefineLabel() | |
let label1762266700_1 = ilg1762266700.DefineLabel() | |
let label1762266700_2 = ilg1762266700.DefineLabel() | |
let label1762266700_3 = ilg1762266700.DefineLabel() | |
let label1762266700_4 = ilg1762266700.DefineLabel() | |
let label1762266700_5 = ilg1762266700.DefineLabel() | |
let label1762266700_6 = ilg1762266700.DefineLabel() | |
let label1762266700_7 = ilg1762266700.DefineLabel() | |
let label1762266700_8 = ilg1762266700.DefineLabel() | |
let label1762266700_9 = ilg1762266700.DefineLabel() | |
let label1762266700_10 = ilg1762266700.DefineLabel() | |
let label1762266700_11 = ilg1762266700.DefineLabel() | |
let label1762266700_12 = ilg1762266700.DefineLabel() | |
let label1762266700_13 = ilg1762266700.DefineLabel() | |
let label1762266700_14 = ilg1762266700.DefineLabel() | |
let label1762266700_15 = ilg1762266700.DefineLabel() | |
let label1762266700_16 = ilg1762266700.DefineLabel() | |
let label1762266700_17 = ilg1762266700.DefineLabel() | |
let label1762266700_18 = ilg1762266700.DefineLabel() | |
let label1762266700_19 = ilg1762266700.DefineLabel() | |
let label1762266700_20 = ilg1762266700.DefineLabel() | |
let label1762266700_21 = ilg1762266700.DefineLabel() | |
let label1762266700_22 = ilg1762266700.DefineLabel() | |
let label1762266700_23 = ilg1762266700.DefineLabel() | |
let label1762266700_24 = ilg1762266700.DefineLabel() | |
let label1762266700_25 = ilg1762266700.DefineLabel() | |
let label1762266700_26 = ilg1762266700.DefineLabel() | |
let label1762266700_27 = ilg1762266700.DefineLabel() | |
let label1762266700_28 = ilg1762266700.DefineLabel() | |
let label1762266700_29 = ilg1762266700.DefineLabel() | |
let label1762266700_30 = ilg1762266700.DefineLabel() | |
let label1762266700_31 = ilg1762266700.DefineLabel() | |
let label1762266700_32 = ilg1762266700.DefineLabel() | |
let label1762266700_33 = ilg1762266700.DefineLabel() | |
let label1762266700_34 = ilg1762266700.DefineLabel() | |
let label1762266700_35 = ilg1762266700.DefineLabel() | |
let label1762266700_36 = ilg1762266700.DefineLabel() | |
let label1762266700_37 = ilg1762266700.DefineLabel() | |
let label1762266700_38 = ilg1762266700.DefineLabel() | |
let label1762266700_39 = ilg1762266700.DefineLabel() | |
let label1762266700_40 = ilg1762266700.DefineLabel() | |
let label1762266700_41 = ilg1762266700.DefineLabel() | |
let label1762266700_42 = ilg1762266700.DefineLabel() | |
let label1762266700_43 = ilg1762266700.DefineLabel() | |
let label1762266700_44 = ilg1762266700.DefineLabel() | |
let label1762266700_45 = ilg1762266700.DefineLabel() | |
let label1762266700_46 = ilg1762266700.DefineLabel() | |
ilg1762266700.MarkLabel(label1762266700_1) | |
ilg1762266700.MarkLabel(label1762266700_0) | |
ilg1762266700.Emit(OpCodes.Nop) | |
ilg1762266700.Emit(OpCodes.Nop) | |
ilg1762266700.Emit(OpCodes.Ldstr,"@/Users/jason/src/fsharp739/validationsample.csv") | |
ilg1762266700.MarkLabel(label1762266700_2) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder51169761) // method reader | |
ilg1762266700.MarkLabel(label1762266700_3) | |
ilg1762266700.Emit(OpCodes.Stsfld, fieldBuilder1639855349) // field validationData@ | |
ilg1762266700.MarkLabel(label1762266700_5) | |
ilg1762266700.MarkLabel(label1762266700_4) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder547203256) // method get_validationData | |
ilg1762266700.Emit(OpCodes.Box, typeof<FSI_0004+Observation[]>) | |
ilg1762266700.Emit(OpCodes.Brfalse,label1762266700_10) | |
ilg1762266700.MarkLabel(label1762266700_8) | |
ilg1762266700.MarkLabel(label1762266700_7) | |
ilg1762266700.MarkLabel(label1762266700_6) | |
ilg1762266700.Emit(OpCodes.Nop) | |
ilg1762266700.Emit(OpCodes.Br,label1762266700_15) | |
ilg1762266700.MarkLabel(label1762266700_13) | |
ilg1762266700.MarkLabel(label1762266700_12) | |
ilg1762266700.MarkLabel(label1762266700_11) | |
ilg1762266700.MarkLabel(label1762266700_10) | |
ilg1762266700.MarkLabel(label1762266700_9) | |
ilg1762266700.Emit(OpCodes.Ldstr,"@array") | |
ilg1762266700.Emit(OpCodes.Newobj,constructor_ArgumentNullException) | |
ilg1762266700.Emit(OpCodes.Throw) | |
ilg1762266700.MarkLabel(label1762266700_15) | |
ilg1762266700.MarkLabel(label1762266700_14) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder547203256) // method get_validationData | |
ilg1762266700.Emit(OpCodes.Ldlen) | |
ilg1762266700.Emit(OpCodes.Conv_I4) | |
ilg1762266700.Emit(OpCodes.Brtrue,label1762266700_20) | |
ilg1762266700.MarkLabel(label1762266700_18) | |
ilg1762266700.MarkLabel(label1762266700_17) | |
ilg1762266700.MarkLabel(label1762266700_16) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder1920636765) // method get_InputArrayEmptyString | |
ilg1762266700.Emit(OpCodes.Ldstr,"@array") | |
ilg1762266700.Emit(OpCodes.Newobj,constructor_ArgumentException) | |
ilg1762266700.Emit(OpCodes.Throw) | |
ilg1762266700.MarkLabel(label1762266700_23) | |
ilg1762266700.MarkLabel(label1762266700_22) | |
ilg1762266700.MarkLabel(label1762266700_21) | |
ilg1762266700.MarkLabel(label1762266700_20) | |
ilg1762266700.MarkLabel(label1762266700_19) | |
ilg1762266700.Emit(OpCodes.Nop) | |
ilg1762266700.MarkLabel(label1762266700_26) | |
ilg1762266700.MarkLabel(label1762266700_25) | |
ilg1762266700.MarkLabel(label1762266700_24) | |
ilg1762266700.Emit(OpCodes.Stsfld, fieldBuilder1703410531) // field acc@1 | |
ilg1762266700.MarkLabel(label1762266700_27) | |
ilg1762266700.Emit(OpCodes.Ldc_I4, 0) | |
ilg1762266700.Emit(OpCodes.Stloc, int16 0) | |
ilg1762266700.Emit(OpCodes.Br,label1762266700_31) | |
ilg1762266700.MarkLabel(label1762266700_28) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder157183567) // method get_acc@1 | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder547203256) // method get_validationData | |
ilg1762266700.Emit(OpCodes.Ldloc, int16 0) | |
ilg1762266700.Emit(OpCodes.Ldelem, typeof<FSI_0004+Observation>) | |
ilg1762266700.MarkLabel(label1762266700_29) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder837191787) // method f@1 | |
ilg1762266700.MarkLabel(label1762266700_30) | |
ilg1762266700.Emit(OpCodes.Add) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder134902595) // method set_acc@1 | |
ilg1762266700.Emit(OpCodes.Ldloc, int16 0) | |
ilg1762266700.Emit(OpCodes.Ldc_I4, 1) | |
ilg1762266700.Emit(OpCodes.Add) | |
ilg1762266700.Emit(OpCodes.Stloc, int16 0) | |
ilg1762266700.MarkLabel(label1762266700_31) | |
ilg1762266700.Emit(OpCodes.Ldloc, int16 0) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder547203256) // method get_validationData | |
ilg1762266700.Emit(OpCodes.Ldlen) | |
ilg1762266700.Emit(OpCodes.Conv_I4) | |
ilg1762266700.Emit(OpCodes.Blt,label1762266700_28) | |
ilg1762266700.MarkLabel(label1762266700_33) | |
ilg1762266700.MarkLabel(label1762266700_32) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder157183567) // method get_acc@1 | |
ilg1762266700.Emit(OpCodes.Stsfld, fieldBuilder2119321421) // field x@1-1 | |
ilg1762266700.MarkLabel(label1762266700_34) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder547203256) // method get_validationData | |
ilg1762266700.Emit(OpCodes.Ldlen) | |
ilg1762266700.Emit(OpCodes.Conv_I4) | |
ilg1762266700.Emit(OpCodes.Stsfld, fieldBuilder643021585) // field n@1 | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder1265773080) // method get_x@1-1 | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder1200342204) // method get_n@1 | |
ilg1762266700.Emit(OpCodes.Conv_r8) | |
ilg1762266700.Emit(OpCodes.Div) | |
ilg1762266700.MarkLabel(label1762266700_38) | |
ilg1762266700.MarkLabel(label1762266700_37) | |
ilg1762266700.MarkLabel(label1762266700_36) | |
ilg1762266700.MarkLabel(label1762266700_35) | |
ilg1762266700.Emit(OpCodes.Stsfld, fieldBuilder1902741643) // field x@1 | |
ilg1762266700.MarkLabel(label1762266700_39) | |
ilg1762266700.Emit(OpCodes.Ldstr,"@Correct: %.3f") | |
ilg1762266700.MarkLabel(label1762266700_40) | |
ilg1762266700.Emit(OpCodes.Newobj,constructor_PrintfFormat`5) | |
ilg1762266700.MarkLabel(label1762266700_41) | |
ilg1762266700.Emit(OpCodes.Stsfld, fieldBuilder687373648) // field fp@1 | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder1724790682) // method get_Out | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder1918816934) // method get_fp@1 | |
ilg1762266700.MarkLabel(label1762266700_42) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder1703009748) // method PrintFormatLineToTextWriter | |
ilg1762266700.MarkLabel(label1762266700_43) | |
ilg1762266700.Emit(OpCodes.Call, methodBuilder1200342502) // method get_x@1 | |
ilg1762266700.Emit(OpCodes.Callvirt, methodBuilder1950036026) // method Invoke | |
ilg1762266700.MarkLabel(label1762266700_45) | |
ilg1762266700.MarkLabel(label1762266700_44) | |
ilg1762266700.Emit(OpCodes.Stsfld, fieldBuilder1088168529) // field it@ | |
ilg1762266700.MarkLabel(label1762266700_46) | |
ilg1762266700.Emit(OpCodes.Ret) | |
typeBuilder1483169245.CreateType() | |
typeBuilder1249774500.CreateType() | |
typeBuilder2081693784.CreateType() | |
typeBuilder2132823128.CreateType() | |
typeBuilder2132823128.InvokeMember("main@",enum 280,null,null,[||],Globalization.CultureInfo.InvariantCulture) | |
Correct: 0.934 | |
val validationPath : string = | |
"/Users/jason/src/fsharp739/validationsample.csv" | |
val validationData : Observation [] = | |
[|{Label = "8"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "7"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "2"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "6"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "3"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "1"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "2"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; ...|];}; | |
{Label = "6"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 76; 254; 221; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 6; 185; | |
253; 220; 0; 0; 0; 0; 0; 0; ...|];}; | |
{Label = "6"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 46; 236; 45; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
107; 167; 254; 45; 0; 0; ...|];}; | |
{Label = "6"; | |
Pixels = | |
[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; | |
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 16; 234; 181; 0; 0; 0; | |
...|];}; ...|] | |
val it : unit = () | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment