コード例 #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;
 }