(b *bytes.Buffer, p *syntax.Prog)
| 160 | } |
| 161 | |
| 162 | func 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 | |
| 178 | func u32(i uint32) string { |
| 179 | return strconv.FormatUint(uint64(i), 10) |
no test coverage detected
searching dependent graphs…