#include<stdio.h>
#include<big_integer.h>
#include<string.h>
#include<time.h>
#include"gen_lib.h"
int main(int argc,char** argv)
{
	if(argc<3)
	{
		printf("usage %s <length> <num> \n",argv[0]);
		exit(-1);
	}

	FILE* bash=fopen("bash.dat","w+");
	FILE* python=fopen("py.dat","w+");

	int length=atoi(argv[1]);
	int num=atoi(argv[2]);

	srand(time(NULL));

	set_exe_name("");
	gen_cmp(bash,python,length,num);
	fwrite("\nquit\n",1,strlen("\nquit"),bash);


	fclose(bash);
	fclose(python);
	return 0;
}



