Пример #1
0
        public void ControlFlow()
        {
            var graph = ControlFlowGraph.Create(
                new ControlFlowNode(Instructions)
                );

            InstructionTester.RunControlFlowTest(Instructions, graph);
        }
Пример #2
0
        public void Syntax()
        {
            var expr = new BinaryExpression(
                new ConstantExpression(4, MetadataType.Int32, instruction: Instructions[0]),
                new ConstantExpression(2, MetadataType.Int32, instruction: Instructions[1]),
                BinaryOperator.Add,
                withOverflowDetection: false,
                unsigned: false,
                instruction: Instructions[2]
                );

            InstructionTester.RunExpressionTest(Instructions, expr);
        }