2020-09-30 17:12:29 +02:00

25 lines
481 B
C

#include "y4.h"
/*
* Write summary.
*/
void osummary(void)
{
register int i, *p;
if(foutput == NULL) return;
i=0;
for(p=maxa; p>=a; --p)
{
if(*p == 0) ++i;
}
fprintf(foutput,"Optimizer space used: input %d/%d, output %d/%d\n",
pmem-mem0+1, MEMSIZE, maxa-a+1, ACTSIZE);
fprintf(foutput, "%d table entries, %d zero\n", (maxa-a)+1, i);
fprintf(foutput, "maximum spread: %d, maximum offset: %d\n",maxspr, maxoff);
fclose(foutput);
}