GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#include "defs.h"12# define NPT 327673# define PSP 20000004# define SVSP 2000005# define MP 10006# define MB 8078/* NPT = max no of points, MP = max no of perms, PSP = space for perms,9SVSP = space for Schreier vectors, MB-1 = max no of base pts.10*/11char wrd,nt,isbase,inf[80],outf1[80],outf2[80],fixed[NPT+1];12/* defaults: inf gpname.inperm13outf1 gpname.outperm14outf2 gpname.words15*/16short perm[PSP],sv[SVSP],cp[5*NPT],actgen[MP],orb[NPT+1],17base[MB],lorb[MB],order[MB],pno[MP/2], *pptr[MP],*svptr[MB],18mp=MP,mb=MB-1,mnpt=NPT;19int psp=PSP,svsp=SVSP;2021int main(int argc, char *argv[])22{ short arg; char d,err;23nt=wrd=isbase=0; err=0; arg=1;24if (argc<=arg) {err=1; goto error;}25while (argv[arg][0]=='-')26{ d=argv[arg][1]; arg++;27if (d=='w') wrd=1; else if (d=='n') nt=1;28else if (d=='b') isbase=1;29else {err=1;goto error;}30if (argc<=arg) {err=1;goto error;}31}32strcpy(inf,argv[arg]); strcat(inf,"."); strcpy(outf1,inf);33if (wrd) {strcpy(outf2,inf); strcat(outf2,"words");}34arg++; if (argc<=arg) strcat(inf,"inperm"); else strcat(inf,argv[arg]);35arg++; if (argc<=arg) strcat(outf1,"outperm"); else strcat(outf1,argv[arg]);36if (gpprog()== -1) exit(1);37error:38if (err)39{ fprintf(stderr,"Usage: gprun [-n] [-w] [-b] gpname [inf] [outf1].\n");40exit(1);41}42else exit(0);43}444546