MCPcopy Create free account
hub / github.com/google/codesearch / dumpProg

Function dumpProg

regexp/copy.go:162–176  ·  view source on GitHub ↗
(b *bytes.Buffer, p *syntax.Prog)

Source from the content-addressed store, hash-verified

160}
161
162func dumpProg(b *bytes.Buffer, p *syntax.Prog) {
163 for j := range p.Inst {
164 i := &p.Inst[j]
165 pc := strconv.Itoa(j)
166 if len(pc) < 3 {
167 b.WriteString(" "[len(pc):])
168 }
169 if j == p.Start {
170 pc += "*"
171 }
172 bw(b, pc, "\t")
173 dumpInst(b, i)
174 bw(b, "\n")
175 }
176}
177
178func u32(i uint32) string {
179 return strconv.FormatUint(uint64(i), 10)

Callers 1

progStringFunction · 0.85

Calls 2

bwFunction · 0.85
dumpInstFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…