MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ProgToString

Function ProgToString

extern/re2/re2/prog.cc:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static std::string ProgToString(Prog* prog, Workq* q) {
140 std::string s;
141 for (Workq::iterator i = q->begin(); i != q->end(); ++i) {
142 int id = *i;
143 Prog::Inst* ip = prog->inst(id);
144 s += StringPrintf("%d. %s\n", id, ip->Dump().c_str());
145 AddToQueue(q, ip->out());
146 if (ip->opcode() == kInstAlt || ip->opcode() == kInstAltMatch)
147 AddToQueue(q, ip->out1());
148 }
149 return s;
150}
151
152static std::string FlattenedProgToString(Prog* prog, int start) {
153 std::string s;

Callers 2

DumpMethod · 0.85
DumpUnanchoredMethod · 0.85

Calls 10

StringPrintfFunction · 0.85
AddToQueueFunction · 0.85
instMethod · 0.80
outMethod · 0.80
opcodeMethod · 0.80
out1Method · 0.80
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45
DumpMethod · 0.45

Tested by

no test coverage detected