reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/tools/llvm-cfi-verify/FileAnalysis.cpp
  116   EXPECT_NE(nullptr, InstrMeta);
  117   EXPECT_EQ(0xDEADBEEF, InstrMeta->VMAddress);
  118   EXPECT_EQ(1u, InstrMeta->InstructionSize);
  119   EXPECT_TRUE(InstrMeta->Valid);
  121   const auto *NextInstrMeta = Analysis.getNextInstructionSequential(*InstrMeta);
  122   EXPECT_EQ(nullptr, Analysis.getPrevInstructionSequential(*InstrMeta));
  123   const auto *PrevInstrMeta = InstrMeta;
  126   InstrMeta = Analysis.getInstruction(0xDEADBEEF + 1);
  127   EXPECT_NE(nullptr, InstrMeta);
  128   EXPECT_EQ(NextInstrMeta, InstrMeta);
  129   EXPECT_EQ(0xDEADBEEF + 1, InstrMeta->VMAddress);
  130   EXPECT_EQ(2u, InstrMeta->InstructionSize);
  131   EXPECT_TRUE(InstrMeta->Valid);
  133   NextInstrMeta = Analysis.getNextInstructionSequential(*InstrMeta);
  134   EXPECT_EQ(PrevInstrMeta, Analysis.getPrevInstructionSequential(*InstrMeta));
  135   PrevInstrMeta = InstrMeta;
  138   InstrMeta = Analysis.getInstruction(0xDEADBEEF + 3);
  139   EXPECT_NE(nullptr, InstrMeta);
  140   EXPECT_EQ(NextInstrMeta, InstrMeta);
  141   EXPECT_EQ(0xDEADBEEF + 3, InstrMeta->VMAddress);
  142   EXPECT_EQ(3u, InstrMeta->InstructionSize);
  143   EXPECT_TRUE(InstrMeta->Valid);
  145   NextInstrMeta = Analysis.getNextInstructionSequential(*InstrMeta);
  146   EXPECT_EQ(PrevInstrMeta, Analysis.getPrevInstructionSequential(*InstrMeta));
  147   PrevInstrMeta = InstrMeta;
  150   InstrMeta = Analysis.getInstruction(0xDEADBEEF + 6);
  151   EXPECT_NE(nullptr, InstrMeta);
  152   EXPECT_EQ(NextInstrMeta, InstrMeta);
  153   EXPECT_EQ(0xDEADBEEF + 6, InstrMeta->VMAddress);
  154   EXPECT_EQ(4u, InstrMeta->InstructionSize);
  155   EXPECT_TRUE(InstrMeta->Valid);
  157   NextInstrMeta = Analysis.getNextInstructionSequential(*InstrMeta);
  158   EXPECT_EQ(PrevInstrMeta, Analysis.getPrevInstructionSequential(*InstrMeta));
  159   PrevInstrMeta = InstrMeta;
  162   InstrMeta = Analysis.getInstruction(0xDEADBEEF + 10);
  163   EXPECT_NE(nullptr, InstrMeta);
  164   EXPECT_EQ(NextInstrMeta, InstrMeta);
  165   EXPECT_EQ(0xDEADBEEF + 10, InstrMeta->VMAddress);
  166   EXPECT_EQ(10u, InstrMeta->InstructionSize);
  167   EXPECT_TRUE(InstrMeta->Valid);
  169   EXPECT_EQ(nullptr, Analysis.getNextInstructionSequential(*InstrMeta));
  170   EXPECT_EQ(PrevInstrMeta, Analysis.getPrevInstructionSequential(*InstrMeta));
  171   PrevInstrMeta = InstrMeta;
  174   InstrMeta = Analysis.getInstruction(0xDEADBEEF + 20);
  175   EXPECT_NE(nullptr, InstrMeta);
  176   EXPECT_EQ(0xDEADBEEF + 20, InstrMeta->VMAddress);
  177   EXPECT_EQ(1u, InstrMeta->InstructionSize);
  178   EXPECT_FALSE(InstrMeta->Valid);
  180   EXPECT_EQ(nullptr, Analysis.getNextInstructionSequential(*InstrMeta));
  181   EXPECT_EQ(PrevInstrMeta, Analysis.getPrevInstructionSequential(*InstrMeta));
  184   InstrMeta = Analysis.getInstruction(0xDEADBEEF + 21);
  185   EXPECT_NE(nullptr, InstrMeta);
  186   EXPECT_EQ(0xDEADBEEF + 21, InstrMeta->VMAddress);
  187   EXPECT_EQ(2u, InstrMeta->InstructionSize);
  188   EXPECT_FALSE(InstrMeta->Valid);
  190   EXPECT_EQ(nullptr, Analysis.getNextInstructionSequential(*InstrMeta));
  191   EXPECT_EQ(nullptr, Analysis.getPrevInstructionSequential(*InstrMeta));
  194   InstrMeta = Analysis.getInstruction(0xDEADBEEF + 23);
  195   EXPECT_NE(nullptr, InstrMeta);
  196   EXPECT_EQ(0xDEADBEEF + 23, InstrMeta->VMAddress);
  197   EXPECT_EQ(5u, InstrMeta->InstructionSize);
  198   EXPECT_FALSE(InstrMeta->Valid);
  200   EXPECT_EQ(nullptr, Analysis.getNextInstructionSequential(*InstrMeta));
  201   EXPECT_EQ(nullptr, Analysis.getPrevInstructionSequential(*InstrMeta));