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

References

unittests/ADT/BitVectorTest.cpp
  386   Vec.resize(25);
  387   Vec.set(2, 4);
  388   Vec.set(6, 9);
  389   Vec.set(12, 15);
  390   Vec.set(19);
  391   Vec.set(21);
  392   Vec.set(23);
  395   EXPECT_EQ(-1, Vec.find_first_in(0, 0));
  396   EXPECT_EQ(-1, Vec.find_first_in(24, 24));
  397   EXPECT_EQ(-1, Vec.find_first_in(9, 12));
  399   EXPECT_EQ(2, Vec.find_first_in(0, 10));
  400   EXPECT_EQ(6, Vec.find_first_in(4, 10));
  401   EXPECT_EQ(19, Vec.find_first_in(18, 25));
  402   EXPECT_EQ(21, Vec.find_first_in(20, 25));
  403   EXPECT_EQ(23, Vec.find_first_in(22, 25));
  404   EXPECT_EQ(-1, Vec.find_first_in(24, 25));
  407   EXPECT_EQ(-1, Vec.find_last_in(0, 0));
  408   EXPECT_EQ(-1, Vec.find_last_in(24, 24));
  409   EXPECT_EQ(-1, Vec.find_last_in(9, 12));
  411   EXPECT_EQ(8, Vec.find_last_in(0, 10));
  412   EXPECT_EQ(3, Vec.find_last_in(0, 6));
  413   EXPECT_EQ(23, Vec.find_last_in(18, 25));
  414   EXPECT_EQ(21, Vec.find_last_in(18, 23));
  415   EXPECT_EQ(19, Vec.find_last_in(18, 21));
  416   EXPECT_EQ(-1, Vec.find_last_in(18, 19));
  419   EXPECT_EQ(-1, Vec.find_first_unset_in(0, 0));
  420   EXPECT_EQ(-1, Vec.find_first_unset_in(23, 23));
  421   EXPECT_EQ(-1, Vec.find_first_unset_in(6, 9));
  423   EXPECT_EQ(0, Vec.find_first_unset_in(0, 6));
  424   EXPECT_EQ(1, Vec.find_first_unset_in(1, 6));
  425   EXPECT_EQ(9, Vec.find_first_unset_in(7, 13));
  426   EXPECT_EQ(18, Vec.find_first_unset_in(18, 25));
  427   EXPECT_EQ(20, Vec.find_first_unset_in(19, 25));
  428   EXPECT_EQ(20, Vec.find_first_unset_in(20, 25));
  429   EXPECT_EQ(22, Vec.find_first_unset_in(21, 25));
  430   EXPECT_EQ(22, Vec.find_first_unset_in(22, 25));
  431   EXPECT_EQ(24, Vec.find_first_unset_in(23, 25));
  432   EXPECT_EQ(24, Vec.find_first_unset_in(24, 25));
  435   EXPECT_EQ(-1, Vec.find_last_unset_in(0, 0));
  436   EXPECT_EQ(-1, Vec.find_last_unset_in(23, 23));
  437   EXPECT_EQ(-1, Vec.find_last_unset_in(6, 9));
  439   EXPECT_EQ(5, Vec.find_last_unset_in(0, 6));
  440   EXPECT_EQ(4, Vec.find_last_unset_in(0, 5));
  441   EXPECT_EQ(1, Vec.find_last_unset_in(0, 4));
  442   EXPECT_EQ(11, Vec.find_last_unset_in(7, 13));
  443   EXPECT_EQ(24, Vec.find_last_unset_in(18, 25));
  444   EXPECT_EQ(22, Vec.find_last_unset_in(18, 24));
  445   EXPECT_EQ(22, Vec.find_last_unset_in(18, 23));
  446   EXPECT_EQ(20, Vec.find_last_unset_in(18, 22));
  447   EXPECT_EQ(20, Vec.find_last_unset_in(18, 21));
  448   EXPECT_EQ(18, Vec.find_last_unset_in(18, 20));
  449   EXPECT_EQ(18, Vec.find_last_unset_in(18, 19));