예제 #1
0
 private static bool ConversionOperations(string opcodeStr,
                                          MetaMidRepresentationOperationFactory operationFactory)
 {
     if (opcodeStr == "conv.u1")
     {
         operationFactory.ConvU1();
         return(true);
     }
     if (opcodeStr == "conv.i")
     {
         operationFactory.ConvI();
         return(true);
     }
     if (opcodeStr == "conv.i4")
     {
         operationFactory.ConvI4();
         return(true);
     }
     if (opcodeStr == "conv.i8")
     {
         operationFactory.ConvI8();
         return(true);
     }
     if (opcodeStr == "conv.r4")
     {
         operationFactory.ConvR4();
         return(true);
     }
     if (opcodeStr == "conv.r8")
     {
         operationFactory.ConvR8();
         return(true);
     }
     return(false);
 }