예제 #1
0
파일: iterator.hpp 프로젝트: madsbk/bohrium
 // Iterate `it` to the next instruction
 inline void _next(std::vector<bh_view>::const_iterator &it) {
     assert(it != end);
     while (++it != end and it->isConstant()) {}
 }
예제 #2
0
파일: iterator.hpp 프로젝트: madsbk/bohrium
 // Deference the iterator
 const bh_base *dereference() const {
     assert(cur != end);
     assert(not cur->isConstant());
     return cur->base;
 }