5 local lmap, lp, e, pc, n, l;
11 // find the first location in the text
14 while e < etext-4 do {
16 if tail l != {} then {
17 if match(l[0], bblock) < 0 then
18 bblock = append bblock, l[0];
19 if match(l[1], bblock) < 0 then
20 bblock = append bblock, l[1];
27 *fmt(head l, bpfmt) = bpinst;
34 n = match(pc, bblock);
38 bblock = delete bblock, n;
51 while addr < etext do {
52 if (tail follow(addr)) != {} then
59 defn basic(stsrc, ensrc, file)
63 if stsrc >= ensrc then
66 print(file, ":", stsrc, ",", ensrc, "\n");
67 src = match(file, srcfiles);
75 print("no source for ", file, "\n");
77 while stsrc <= ensrc do {
80 print("\t", stsrc, ":", text, "\n");
92 tfn = fnbound(fnaddr);
98 if addr >= tfn[0] && addr < tfn[1] then
99 basic(pcline(addr), eblock(addr), pcfile(addr));
116 basic(pcline(addr), eblock(addr), pcfile(addr));
128 print("/sys/lib/acid/coverage");