Beispiel #1
0
        public void Shsc_BuildBlock()
        {
            Given_x86_Image();
            Given_Scanner();
            AddInstr(Lin(0x1000, 2), 0x1002);
            AddInstr(Lin(0x1002, 3));

            var icb = sh.BuildBlocks(graph);

            var sExp =
                "00001000 - 00001005" + nl;

            Assert.AreEqual(sExp, DumpBlocks(icb.Blocks));
        }
Beispiel #2
0
        public void Shsc_BuildBlock()
        {
            Given_x86_Image();
            Given_Scanner();
            AddInstr(Lin(0x1000, 2), 0x1002);
            AddInstr(Lin(0x1002, 3));

            var blocks = sh.BuildBlocks(this.graph, this.instrs);

            var sExp =
                "00001000 - 00001005" + nl;

            Assert.AreEqual(sExp, DumpBlocks(blocks));
        }