示例#1
0
        public void Setup()
        {
            var arch = new X86ArchitectureFlat32();

            f            = arch.CreateFrame();
            liveness     = new IdentifierLiveness(arch);
            isLiveHelper = new RegisterLiveness.IsLiveHelper(arch);
        }
示例#2
0
        public void SvX86Ps_SerializeProcedure()
        {
            Procedure proc = new Procedure("foo", arch.CreateFrame());
            Address   addr = Address.Ptr32(0x12345);

            Given_ProcedureSerializer();

            mr.ReplayAll();

            Procedure_v1 sproc = ser.Serialize(proc, addr);

            Assert.AreEqual("foo", sproc.Name);
            Assert.AreEqual("00012345", sproc.Address);
        }