Home | History | Annotate | Download | only in re2

Lines Matching defs:ip

139     Prog::Inst* ip = prog->inst(id);
140 StringAppendF(&s, "%d. %s\n", id, ip->Dump().c_str());
141 AddToQueue(q, ip->out());
142 if (ip->opcode() == kInstAlt || ip->opcode() == kInstAltMatch)
143 AddToQueue(q, ip->out1());
184 Inst* ip = inst(id);
185 int j = ip->out();
190 ip->set_out(j);
191 AddToQueue(&q, ip->out());
193 if (ip->opcode() == kInstAlt) {
194 j = ip->out1();
198 ip->out1_ = j;
199 AddToQueue(&q, ip->out1());
205 // ip: Alt -> j | k
206 // j: ByteRange [00-FF] -> ip
214 Inst* ip = inst(id);
215 AddToQueue(&q, ip->out());
216 if (ip->opcode() == kInstAlt)
217 AddToQueue(&q, ip->out1());
219 if (ip->opcode() == kInstAlt) {
220 Inst* j = inst(ip->out());
221 Inst* k = inst(ip->out1());
225 ip->set_opcode(kInstAltMatch);
231 ip->set_opcode(kInstAltMatch);
237 // Is ip a guaranteed match at end of text, perhaps after some capturing?
238 static bool IsMatch(Prog* prog, Prog::Inst* ip) {
240 switch (ip->opcode()) {
242 LOG(DFATAL) << "Unexpected opcode in IsMatch: " << ip->opcode();
254 ip = prog->inst(ip->out());