#include <iostream>
#include <cuda.h>
#include <cuda_runtime.h>
//#include <time.h>
//#include <cutil.h> 

using namespace std;
# define r 40
# define M 1000   // number of items
# define N  90 // number of transactions
# define alpha 1 // represents the weight of the support in the first fitness function
# define Beta 1 // represents the weight of the confidence in the first fitness function
# define k 15   // number of bees
struct ligne {int trans[N]; int nb;} *lg;
struct bee {int solution[N]; float cost;} *be;
/**************prototype declaration*******/
void read_trans(ligne T[]);// this function allows to read the transactional data base et insert it into the dataset vector
void display_dataset(ligne T[]); //this function allows to display the transactional data base
void display_solution(bee S); // this function display the current solution with its cost
float support_rule(ligne T[], int s[]); // this function calculates the support of the entire solution s
float support_antecedent(ligne T[], int s[]); // this function computes the support of the antecedent of the solution s
float confidence(int sr, int sa); // it calculates the confidence of the rule
float fitness1(int sr, int sa); // computes the fitness of a given solution s
void create_Sref(bee *s, ligne V[]); // here we create the solution reference sref and initialize it with the random way
bee neighborhood_computation(bee S, bee *V, ligne *D);// this function explores the local region for each bee
void search_area1(bee s, bee *T, int iteration, ligne V [],int flip); //detremines the search area for each bee using the first strategy
void search_area2(bee s, bee *T, int iteration, ligne V[], int flip); //detremines the search area for each bee using the second strategy
void search_area3(bee s, bee *T, int iteration, ligne V[], int distance); //detremines the search area for each bee using the third strategy
int W(int t[]); // indicates the  weight of solution representing by a vector t, this function is used on search_area3()
void copy(int t[], int v[]); // it copies the vector t in the vector v
int best_dance(bee *T); // return the best dance after the exploration of search region of each bee
void parallel_fitness(bee *V, ligne *D); // parallelize solution computing 
void display_bees(bee T[]); // display solutions
/*************************************************************************************/
__global__ void KernelSupport_rules(bee *N_List_GPU, int **compt_GPU, struct ligne *dataset_GPU){
	int thread_idx ;
	thread_idx = blockIdx.x * blockDim.x + threadIdx.x;
	bool appartient=true;
    int indice=blockIdx.x*1000;
	indice=thread_idx-indice;

		int j=1;
		while (j<N){
			if (N_List_GPU[blockIdx.x].solution[indice]!=0){
				int l=0; 
				bool existe=false;
				while (l< dataset_GPU[thread_idx].nb && existe==false){
					if (dataset_GPU[thread_idx].trans[l]==j){
						existe=true;
					}
					l++;
				}
				if (existe==false){
					appartient=false;
				}
			}
			j++;    
		}
		if (appartient==true){
			//compt_GPU[blockIdx.x][thread_idx]=1;
		}
	
   // }
}

__global__ void KernelSupport_antecedent(bee *N_List_GPU, int **compt_GPU, struct ligne *dataset_GPU){
	int thread_idx ;
	thread_idx = blockIdx.x * blockDim.x + threadIdx.x;
	bool appartient=true;
    int indice=blockIdx.x*M;
	indice=thread_idx-indice;
		int j=1;
		while (j<N){
			if (N_List_GPU[blockIdx.x].solution[indice]==1){
				int l=0; 
				bool existe=false;
				while (l< dataset_GPU[thread_idx].nb && existe==false){
					if (dataset_GPU[thread_idx].trans[l]==j){
						existe=true;
					}
					l++;
				}
				if (existe==false){
					appartient=false;
				}
			}
			j++;    
		}
		if (appartient==true){
			//compt_GPU[blockIdx.x][thread_idx]=1;
		}
	  
       //}
}
int main(void){
    FILE *f=NULL;
    f=fopen("/home/ydjenouri/mesprog/resultat1.txt","a");
    struct ligne *dataset_CPU, *dataset_GPU;
    struct bee *T_Dance;
	struct bee *N_List_CPU;
    struct bee Sref;
    struct bee best;
    int flip=1, distance, IMAX=1;
   // int k=5;
    cudaEvent_t start, stop;
    float  elapsedTime;
    int j;
    /*****************************parallel program***********************/
	//allocation de la memoire dans le CPU
	dataset_CPU = (ligne *) malloc(M * sizeof(ligne)) ;
	T_Dance = (bee *) malloc(k * sizeof(bee)) ;
	N_List_CPU=(bee *) malloc(k *sizeof(bee));
       ////allocation de la memoire dans le GPU
       cudaMalloc( (void**) &dataset_GPU, M*sizeof(ligne));
       
	   //read transactional database and insert in the dataset_CPU
       read_trans(dataset_CPU);
	   cudaMemcpy(dataset_GPU, dataset_CPU, M * sizeof(ligne), cudaMemcpyHostToDevice);
       cudaEventCreate( &start );
       cudaEventCreate( &stop );
       cudaEventRecord( start, 0 ) ;
       create_Sref(&Sref, dataset_GPU); // creer une solution reference
	//display_solution(Sref);
      search_area1(Sref, T_Dance, IMAX, dataset_GPU, flip);
      printf("hello");
     // display_bees(T_Dance);
     // for ( int k=5; k<=15;k=k+5)
     for ( int i=0; i<=IMAX;i++)
	{
	    			
	    for ( j=0;j<k;j++) // neighborhood computation for all the solution in tab
					{ 
				       T_Dance[j]=neighborhood_computation(T_Dance[j], N_List_CPU, dataset_GPU);
					}
					/*j=best_dance(T_Dance,k);
					copy(T_Dance[j].solution,Sref.solution);
					Sref.cost=T_Dance[j].cost;
					if (Sref.cost > best.cost)//atte o maximisation
			    { 
					 copy(Sref.solution, best.solution);
					 best.cost=Sref.cost;
			    }
				*/
		       //display_bees(T_Dance);	 
//			//average=best.cost+average; 	        
			//printf("\nk="+b.k+" IMAX="+b.IMAX+"  average fitness="+average);
             search_area1(Sref,T_Dance, i, dataset_GPU, flip);
	
       } //Bso ending

    cudaEventRecord( stop, 0 ) ;
    cudaEventSynchronize( stop ) ;
    cudaEventElapsedTime( &elapsedTime,start, stop ) ;
    printf("K=%d IMAX=%d  Execution Time in GPU : %3.1f ms\n", k,IMAX, elapsedTime );
   // fprintf(f,"K=%d IMAX=%d flip=%d Execution Time in GPU : %3.1f ms\n", k,flip,IMAX, elapsedTime );
    printf("Yes\n");
    cudaEventDestroy( start );
    cudaEventDestroy( stop );
//}// end loop IMAX
//} // end loop flip
//} // end loop k

//fclose(f);
cudaFree(dataset_GPU);

return 0;
}
/**********************copry t in v********/
void copy(int t[], int v[])
{
for (int i=0;i<N; i++)
{
v[i]=t[i]; 
}     
}
/*******read transactional data bass and insert it in the data set structure********************************/
void read_trans(ligne T[]){
	char c='4';
	char t[100];
	int j;
	int i=0;
	int l=0;
	FILE *f=NULL;
	f=fopen("/home/ydjenouri/mesprog/T_90_1000.txt","r");
	if (f!=NULL) {
		//cout<<"the file is succefully opened"<<endl;
		j=0;
		while (c!=EOF){
			c=fgetc(f);
			if (c==' '){
				t[j]='\0';
				T[i].trans[l]=atoi(t);
                            l++;
				j=0;
			}
			if (c=='\n'){
				T[i].nb=l;
				l=0;
				i++;
				j=0;
			}
			if (c!=' ' && c!='\n'){
				t[j]=c;
				j++;
			}
		}   
		fclose(f);
	}
}
/*************************compute the support of the solution s**********/
float support_rule(ligne T[], int s[])
{
float compt=0;
		for (int i=0; i<M; i++)
		{
		bool appartient=true;
		
		int j=1;
		while (j<N)
		{
		 if (s[j]!=0)
		{
			int l=0; 
			bool existe=false;
			while (l< T[i].nb && existe==false)
			{
				if (T[i].trans[l]==j)
				{existe=true;}
			l++;
			}
			if (existe==false){appartient=false;}
		}
		j++;	
		}
		if (appartient==true) {compt++;}
		}
	   compt=compt/M;
	return compt;
}
/*****************************support antecedent computing*****************************/
float support_antecedent(ligne T[], int s[])
	{
             float compt=0;
		
		for (int i=0; i<M; i++)
		{
		bool appartient=true;
		int j=1;
		while (j<N)
		{
		 if (s[j]==1 ||s[j]==2)
		{
			int l=0; 
			bool existe=false;
			while (l< T[i].nb && existe==false)
			{
					if (T[i].trans[l]==j)
				        {existe=true;}
			l++;
			}
			if (existe==false){appartient=false;}
		}
		j++;	
		}
		if (appartient==true) {compt++;}
		}
	   compt=compt/M;
	//if(compt!=0)System.out.println("antecedent"+compt);
	   return compt;
	}
/****************************condifence computing**************************/
float confidence(int sr, int sa)
{
	float conf=1;
	conf=(float)sr/sa;
return conf;
}
/***********************evaluation of the solution s******/
float fitness1(int sr, int sa)
	{
	float cost=0; 
	//if (support_rule(sol)<Minsup || confidence(sol)<Minconf){cout=-1;}
	float x=(float)alpha*(sr/M);
	float y=(float)Beta*confidence(sr,sa);
	cost=x+y;
	return cost;
	}
/**************************display_solution*****************/
void display_solution(bee S)
{
for (int i=0;i<N;i++)
{
    printf("%d ", S.solution[i]);
}
printf ("cost is:%f",S.cost);
printf("\n");
}

/*********************create a solution reference Sref******************************************/
void create_Sref(bee *s, ligne V[])
{
	for (int i=0;i<N;i++){
		if (rand() % 2==0){
			(*s).solution[i]=0 ;
		}
		else {
			if (rand() % 2==0){
				(*s).solution[i]=0;
			}
			else {
				(*s).solution[i]=rand() % 3; 
			}
		}
	}
       //parallel_fitness(s, V);
}
/***********************************negihborhood computation************************/
bee neighborhood_computation(bee S, bee *V, ligne *D)
{
bee s;
int indice=0;
int i=0; 
bee neighbor, best_neighbor;
float best_cost=0;
		//copy(S.solution,best_neighbor);
		   copy(S.solution,neighbor.solution);
            while (i<k)
		   {
	          	    
	          if (neighbor.solution[indice]==0) 
	          {
	        		  if (rand()%2==0)
	        		  {neighbor.solution[indice]=1;}
	        		  else{neighbor.solution[indice]=2;}
	          }
	          else {
	          if (neighbor.solution[indice]==1) 
	          {
	        	  if (rand()%2==0)
                         neighbor.solution[indice]=0;

	        	  else {
	        	 neighbor.solution[indice]=2;
	        		  }
	          }
	          else {
	          if (neighbor.solution[indice]==2) 
	          {
	        	  	  if (rand()%2==0)
                                neighbor.solution[indice]=0;

	        	  else {
	                neighbor.solution[indice]=1;
	        		 }
	          }
	          }
	          }
	     indice++;
	     if (indice>=N){indice=0;}   
	     copy(neighbor.solution,V[i].solution);
         i++;
         
		 /*if (neighbor.cost>best_cost){copy(neighbor.solution,best_neighbor.solution);
                                            best_cost=neighbor.cost;}*/
		 }
		 parallel_fitness(V, D); 
		 
//copy(best_neighbor.solution, s.solution);
//s.cost=best_cost;
s.cost=0;
return s;
}
/************************determination of search area********************/
void search_area1(bee s, bee *T, int iteration, ligne V[],int flip)
{
	 
	    int indice=iteration % N;
	    int i=0;
		   while (i<k)
		   {
			   for (int j=0;j<N;j++)
			   {   
			    T[i].solution[j]=s.solution[j];	    
			   }	
	                 if (T[i].solution[indice]==0) 
	                {
	        	         if (iteration%4==0)
	        		  {T[i].solution[indice]=1;}
	        		  else{T[i].solution[indice]=2;}
	        		  
	        	    //           }    
	                }
			
	          else{
	          if (T[i].solution[indice]==1) 
	          {	  if (iteration%3==0)
			  {T[i].solution[indice]=0;}
			  else{T[i].solution[indice]=2;}
	        		 
	        }
	          else{ 
	          
	        	  if (iteration%2==0)
	    		  {
                       T[i].solution[indice]=1;}
	    		  else{
                         T[i].solution[indice]=0;}
	        	 }
	          }
	     indice=indice+flip;
	     if (indice>=N){indice=0;}   
		 parallel_fitness(&T[i], V);
		//T_Dance[i].cost=fitness1(T_Dance[i].solution);//evaluer solution  
		 i++;
		   }
}
/**************search 2*********************/
void search_area2(bee s, bee *T, int iteration, ligne V[], int flip)
{
int i=0;
int Nb_sol=0;
bool stop=false;
	  while (i<N && stop==false)
	  {
		   for (int j=0;j<N;j++)
		   {   
			   T[Nb_sol].solution[j]=s.solution[j];	       
		   }
		   for (int l=i;l<(i+flip)%N;l++)
		   {
		  if ( T[Nb_sol].solution[l]==0) 
	     {
	   	  if (rand()%2==1)
	   		  { T[Nb_sol].solution[l]=1;}
	   		  else{T[Nb_sol].solution[l]=2;}
	   		  
	   	}
	     else {
	     if (T[Nb_sol].solution[l]==1) 
	     {
	    	 if (rand()%2==1)
	  		  {T[Nb_sol].solution[l]=0;}
	  		  else{T[Nb_sol].solution[l]=2;}
	     }
	     else {
	       if (T[Nb_sol].solution[l]==2) 
	        {
	    	 if (rand()%2==0)
	  		  {T[Nb_sol].solution[l]=0;}
	  		  else{T[Nb_sol].solution[l]=1;}
	         }
	         }
	     }
		}
        parallel_fitness(&T[i], V);
	//T_Dance[Nb_sol].cost=fitness1(T_Dance[Nb_sol].solution); //evaluates the solution  
	Nb_sol++; 
	if (Nb_sol==k){stop=true;}   
	}
}   
/********search3***************************/
int W(int t[])
{
int w=0;
	for (int i=0;i<N; i++)
	{
	w=w+t[i];
	}
return w;
} 
/*******search 3 continued****************************/
void search_area3(bee s, bee *T, int iteration, ligne V[], int distance)
{
int Nb_sol=0;
	  while (Nb_sol!=k)
	  {
		   for (int j=0;j<N;j++)
		   {   
			  T[Nb_sol].solution[j]=s.solution[j];	 	    
		   }
		   int l=0;
		   int cpt=0;
		   while (cpt<distance)
		   {
		  if (T[Nb_sol].solution[l]==0) 
	     {
	   	  if (rand()%2==1)
	   		  {T[Nb_sol].solution[l]=1; cpt++;}
	   		  else{T[Nb_sol].solution[l]=2;cpt=cpt+2;}
	   		  
	   	}
	     else {
	     if (T[Nb_sol].solution[l]==1) 
	     {
	    	 if (rand()%2==0)
	  		  {T[Nb_sol].solution[l]=0;cpt++;}
	  		  else{T[Nb_sol].solution[l]=2;cpt++;}
	     }
	     else {
	       if (T[Nb_sol].solution[l]==2) 
	        {
	    	 if (rand()%2==0)
	  		  {T[Nb_sol].solution[l]=0;cpt=cpt+2;}
	  		  else{T[Nb_sol].solution[l]=1;cpt=cpt+1;}
	         }
	         }
	     
		   }
		  l=(l+1)%N;
		   } //end the small while
         //parallel_fitness(&T[Nb_sol], V);
	//T_Dance[Nb_sol].cost=fitness1(T_Dance[Nb_sol].solution);//assecees the solution  
	Nb_sol++; 
	  } // end the big while
 }
/********************************best dance********************/
int best_dance(bee *T)
{
	float max=T[0].cost;
	int indice=0;
	for (int i=1;i<k;i++)	
	{
     	if (T[i].cost>max)
	     {     
           max=T[i].cost;
		   indice=i;
         }
	}
return indice;
}
/***********************paralelize solution computing*******/
void parallel_fitness(bee *N_List_CPU, ligne V[])
{
bee *N_List_GPU;
	//int **compt;
    //compt = (int **) malloc(k*M*sizeof(int));
       	
		/*for (int i=0;i<k;i++){
		  for (int j=0;i<M;j++){
		compt[i][j]=0;
	}
	}*/
       int **compt_GPU;
	// cudaEventCreate( &start );
     	// cudaEventCreate( &stop );
     	// cudaEventRecord( start, 0 ) ;

	cudaMalloc((void**) &N_List_GPU, k*sizeof(bee));
	//cudaMalloc( (void**) &compt_GPU, k*M* sizeof(int));
	cudaMemcpy(N_List_GPU, N_List_CPU, k *sizeof(bee),cudaMemcpyHostToDevice);
	//cudaMemcpy(compt_GPU, compt, k*M *sizeof(int),cudaMemcpyHostToDevice);

	KernelSupport_rules<<<20*N,M>>>(N_List_GPU, compt_GPU, V);
       //cudaMemcpy(compt, compt_GPU, k*M*sizeof(int),cudaMemcpyDeviceToHost);
       /*int sr=0; 
       for (int i=0;i<M;i++){
        	sr=sr+compt[i];
       }
       KernelSupport_antecedent<<<20*N,M>>>(s_GPU, compt_GPU, V);
       cudaMemcpy(compt, compt_GPU, M*sizeof(int),cudaMemcpyDeviceToHost);
       int sa=0; 
       for (int i=0;i<M;i++){
        	sa=sa+compt[i];
       }
       (*sol).cost=fitness1(sr,sa);*/
	   
}
/*****************************display T_dance************/
void display_bees(bee T[])
{
//FILE *f=NULL;
//f=fopen("/home/ydjenouri/mesprog/resultat1.txt","a");
//if (f!=NULL) {
for (int i=0;i<k;i++)
{
    for (int j=0;j<N;j++)
    {
    printf ("%d ",T[i].solution[j]);   
    }
    printf("%f", T[i].cost);
    printf("\n");
}
//fclose(f);
//}
}

	.file	"tmpxft_003197f8_00000000-6_MEGPU.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3654:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3654:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z4copyPiS_
	.type	_Z4copyPiS_, @function
_Z4copyPiS_:
.LFB3636:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L3:
	movl	(%rdi,%rax), %edx
	movl	%edx, (%rsi,%rax)
	addq	$4, %rax
	cmpq	$360, %rax
	jne	.L3
	ret
	.cfi_endproc
.LFE3636:
	.size	_Z4copyPiS_, .-_Z4copyPiS_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"/home/ydjenouri/mesprog/T_90_1000.txt"
	.text
	.globl	_Z10read_transP5ligne
	.type	_Z10read_transP5ligne, @function
_Z10read_transP5ligne:
.LFB3637:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	leaq	.LC1(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	call	fopen@PLT
	testq	%rax, %rax
	je	.L6
	movq	%rax, %rbp
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	4(%rsp), %r14
.L11:
	movq	%rbp, %rdi
	call	fgetc@PLT
	cmpb	$32, %al
	jne	.L8
	movslq	%ebx, %rbx
	movq	%r14, %rdi
	movb	$0, 4(%rsp,%rbx)
	movslq	%r12d, %rbx
	call	atoi@PLT
	imulq	$364, %rbx, %rbx
	movl	%eax, %edx
	movslq	%r15d, %rax
	incl	%r15d
	addq	%r13, %rbx
	movl	%edx, (%rbx,%rax,4)
	jmp	.L9
.L8:
	cmpb	$10, %al
	jne	.L21
	movslq	%r12d, %rax
	incl	%r12d
	imulq	$364, %rax, %rax
	movl	%r15d, 360(%r13,%rax)
	xorl	%r15d, %r15d
	jmp	.L9
.L21:
	movslq	%ebx, %rdx
	movb	%al, 4(%rsp,%rdx)
	incb	%al
	je	.L10
	incl	%ebx
	jmp	.L11
.L10:
	movq	%rbp, %rdi
	call	fclose@PLT
	jmp	.L6
.L9:
	xorl	%ebx, %ebx
	jmp	.L11
.L6:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3637:
	.size	_Z10read_transP5ligne, .-_Z10read_transP5ligne
	.globl	_Z12support_ruleP5lignePi
	.type	_Z12support_ruleP5lignePi, @function
_Z12support_ruleP5lignePi:
.LFB3638:
	.cfi_startproc
	endbr64
	movss	.LC3(%rip), %xmm1
	leaq	364000(%rdi), %r9
	xorps	%xmm0, %xmm0
	xorl	%r10d, %r10d
.L23:
	movl	$1, %eax
	movb	$1, %cl
.L28:
	cmpl	$0, (%rsi,%rax,4)
	je	.L24
	movl	360(%rdi), %r11d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
.L25:
	cmpl	%edx, %r11d
	jle	.L26
	testb	%r8b, %r8b
	jne	.L24
	cmpl	%eax, (%rdi,%rdx,4)
	sete	%r8b
	incq	%rdx
	jmp	.L25
.L26:
	testb	%r8b, %r8b
	cmove	%r10d, %ecx
.L24:
	incq	%rax
	cmpq	$90, %rax
	jne	.L28
	testb	%cl, %cl
	je	.L29
	addss	%xmm1, %xmm0
.L29:
	addq	$364, %rdi
	cmpq	%r9, %rdi
	jne	.L23
	divss	.LC4(%rip), %xmm0
	ret
	.cfi_endproc
.LFE3638:
	.size	_Z12support_ruleP5lignePi, .-_Z12support_ruleP5lignePi
	.globl	_Z18support_antecedentP5lignePi
	.type	_Z18support_antecedentP5lignePi, @function
_Z18support_antecedentP5lignePi:
.LFB3639:
	.cfi_startproc
	endbr64
	movss	.LC3(%rip), %xmm1
	leaq	364000(%rdi), %r9
	xorps	%xmm0, %xmm0
	xorl	%r10d, %r10d
.L38:
	movl	$1, %eax
	movb	$1, %cl
.L43:
	movl	(%rsi,%rax,4), %edx
	decl	%edx
	cmpl	$1, %edx
	ja	.L39
	movl	360(%rdi), %r11d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
.L40:
	cmpl	%edx, %r11d
	jle	.L41
	testb	%r8b, %r8b
	jne	.L39
	cmpl	%eax, (%rdi,%rdx,4)
	sete	%r8b
	incq	%rdx
	jmp	.L40
.L41:
	testb	%r8b, %r8b
	cmove	%r10d, %ecx
.L39:
	incq	%rax
	cmpq	$90, %rax
	jne	.L43
	testb	%cl, %cl
	je	.L44
	addss	%xmm1, %xmm0
.L44:
	addq	$364, %rdi
	cmpq	%r9, %rdi
	jne	.L38
	divss	.LC4(%rip), %xmm0
	ret
	.cfi_endproc
.LFE3639:
	.size	_Z18support_antecedentP5lignePi, .-_Z18support_antecedentP5lignePi
	.globl	_Z10confidenceii
	.type	_Z10confidenceii, @function
_Z10confidenceii:
.LFB3640:
	.cfi_startproc
	endbr64
	cvtsi2ssl	%edi, %xmm0
	cvtsi2ssl	%esi, %xmm1
	divss	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE3640:
	.size	_Z10confidenceii, .-_Z10confidenceii
	.globl	_Z8fitness1ii
	.type	_Z8fitness1ii, @function
_Z8fitness1ii:
.LFB3641:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	cvtsi2ssl	%esi, %xmm1
	movl	$1000, %ecx
	cltd
	cvtsi2ssl	%edi, %xmm0
	idivl	%ecx
	divss	%xmm1, %xmm0
	cvtsi2ssl	%eax, %xmm1
	addss	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE3641:
	.size	_Z8fitness1ii, .-_Z8fitness1ii
	.section	.rodata.str1.1
.LC5:
	.string	"%d "
.LC6:
	.string	"cost is:%f"
.LC7:
	.string	"\n"
	.text
	.globl	_Z16display_solution3bee
	.type	_Z16display_solution3bee, @function
_Z16display_solution3bee:
.LFB3642:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC5(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	pushq	%rcx
	.cfi_def_cfa_offset 32
.L55:
	movl	32(%rsp,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	cmpq	$90, %rbx
	jne	.L55
	leaq	.LC6(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	392(%rsp), %xmm0
	call	__printf_chk@PLT
	popq	%rdx
	.cfi_def_cfa_offset 24
	leaq	.LC7(%rip), %rsi
	popq	%rbx
	.cfi_def_cfa_offset 16
	movl	$2, %edi
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE3642:
	.size	_Z16display_solution3bee, .-_Z16display_solution3bee
	.globl	_Z11create_SrefP3beeP5ligne
	.type	_Z11create_SrefP3beeP5ligne, @function
_Z11create_SrefP3beeP5ligne:
.LFB3643:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$3, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
.L62:
	call	rand@PLT
	testb	$1, %al
	jne	.L59
.L61:
	xorl	%edx, %edx
	jmp	.L60
.L59:
	call	rand@PLT
	testb	$1, %al
	je	.L61
	call	rand@PLT
	cltd
	idivl	%r12d
.L60:
	movl	%edx, 0(%rbp,%rbx,4)
	incq	%rbx
	cmpq	$90, %rbx
	jne	.L62
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3643:
	.size	_Z11create_SrefP3beeP5ligne, .-_Z11create_SrefP3beeP5ligne
	.globl	_Z1WPi
	.type	_Z1WPi, @function
_Z1WPi:
.LFB3647:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	xorl	%edx, %edx
.L69:
	addl	(%rdi,%rax,4), %edx
	incq	%rax
	cmpq	$90, %rax
	jne	.L69
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE3647:
	.size	_Z1WPi, .-_Z1WPi
	.globl	_Z12search_area33beePS_iP5lignei
	.type	_Z12search_area33beePS_iP5lignei, @function
_Z12search_area33beePS_iP5lignei:
.LFB3648:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	5460(%rdi), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%ecx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	pushq	%rsi
	.cfi_def_cfa_offset 64
.L72:
	movl	$90, %ecx
	movq	%rbx, %rdi
	leaq	64(%rsp), %rsi
	xorl	%ebp, %ebp
	rep movsl
	xorl	%r12d, %r12d
.L80:
	cmpl	%r13d, %ebp
	jge	.L83
	movslq	%r12d, %r14
	movl	(%rbx,%r14,4), %eax
	testl	%eax, %eax
	jne	.L73
	call	rand@PLT
	movl	$2, %esi
	cltd
	idivl	%esi
	decl	%edx
	je	.L77
	movl	$2, (%rbx,%r14,4)
	jmp	.L82
.L73:
	cmpl	$1, %eax
	jne	.L76
	call	rand@PLT
	incl	%ebp
	andl	$1, %eax
	addl	%eax, %eax
	movl	%eax, (%rbx,%r14,4)
	jmp	.L75
.L76:
	cmpl	$2, %eax
	jne	.L75
	call	rand@PLT
	testb	$1, %al
	jne	.L77
	xorl	%edx, %edx
	movl	%edx, (%rbx,%r14,4)
.L82:
	addl	$2, %ebp
	jmp	.L75
.L77:
	movl	$1, (%rbx,%r14,4)
	incl	%ebp
.L75:
	leal	1(%r12), %eax
	movl	$90, %esi
	cltd
	idivl	%esi
	movl	%edx, %r12d
	jmp	.L80
.L83:
	addq	$364, %rbx
	cmpq	%rbx, %r15
	jne	.L72
	popq	%rax
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3648:
	.size	_Z12search_area33beePS_iP5lignei, .-_Z12search_area33beePS_iP5lignei
	.globl	_Z10best_danceP3bee
	.type	_Z10best_danceP3bee, @function
_Z10best_danceP3bee:
.LFB3649:
	.cfi_startproc
	endbr64
	movss	360(%rdi), %xmm0
	movl	$1, %eax
	xorl	%edx, %edx
.L87:
	imulq	$364, %rax, %rcx
	movss	360(%rdi,%rcx), %xmm1
	comiss	%xmm0, %xmm1
	maxss	%xmm0, %xmm1
	cmova	%eax, %edx
	incq	%rax
	movaps	%xmm1, %xmm0
	cmpq	$15, %rax
	jne	.L87
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE3649:
	.size	_Z10best_danceP3bee, .-_Z10best_danceP3bee
	.section	.rodata.str1.1
.LC8:
	.string	"%f"
	.text
	.globl	_Z12display_beesP3bee
	.type	_Z12display_beesP3bee, @function
_Z12display_beesP3bee:
.LFB3651:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	5460(%rdi), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 48
.L91:
	xorl	%ebp, %ebp
.L92:
	movl	(%rbx,%rbp,4), %edx
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbp
	call	__printf_chk@PLT
	cmpq	$90, %rbp
	jne	.L92
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	360(%rbx), %xmm0
	call	__printf_chk@PLT
	addq	$364, %rbx
	leaq	.LC7(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L91
	popq	%rax
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3651:
	.size	_Z12display_beesP3bee, .-_Z12display_beesP3bee
	.globl	_Z52__device_stub__Z19KernelSupport_rulesP3beePPiP5ligneP3beePPiP5ligne
	.type	_Z52__device_stub__Z19KernelSupport_rulesP3beePPiP5ligneP3beePPiP5ligne, @function
_Z52__device_stub__Z19KernelSupport_rulesP3beePPiP5ligneP3beePPiP5ligne:
.LFB3676:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L96
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z19KernelSupport_rulesP3beePPiP5ligne(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L96:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L98
	call	__stack_chk_fail@PLT
.L98:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3676:
	.size	_Z52__device_stub__Z19KernelSupport_rulesP3beePPiP5ligneP3beePPiP5ligne, .-_Z52__device_stub__Z19KernelSupport_rulesP3beePPiP5ligneP3beePPiP5ligne
	.globl	_Z19KernelSupport_rulesP3beePPiP5ligne
	.type	_Z19KernelSupport_rulesP3beePPiP5ligne, @function
_Z19KernelSupport_rulesP3beePPiP5ligne:
.LFB3677:
	.cfi_startproc
	endbr64
	jmp	_Z52__device_stub__Z19KernelSupport_rulesP3beePPiP5ligneP3beePPiP5ligne
	.cfi_endproc
.LFE3677:
	.size	_Z19KernelSupport_rulesP3beePPiP5ligne, .-_Z19KernelSupport_rulesP3beePPiP5ligne
	.globl	_Z16parallel_fitnessP3beeP5ligne
	.type	_Z16parallel_fitnessP3beeP5ligne, @function
_Z16parallel_fitnessP3beeP5ligne:
.LFB3650:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	movl	$5460, %esi
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$5460, %edx
	call	cudaMemcpy@PLT
	movl	$536871037, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$536871137, %edi
	salq	$3, %rdx
	movl	$1, %ecx
	movl	$1, %esi
	salq	$3, %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L101
	movq	8(%rsp), %rdi
	movq	%rbx, %rdx
	xorl	%esi, %esi
	call	_Z52__device_stub__Z19KernelSupport_rulesP3beePPiP5ligneP3beePPiP5ligne
.L101:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L103
	call	__stack_chk_fail@PLT
.L103:
	addq	$56, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3650:
	.size	_Z16parallel_fitnessP3beeP5ligne, .-_Z16parallel_fitnessP3beeP5ligne
	.globl	_Z24neighborhood_computation3beePS_P5ligne
	.type	_Z24neighborhood_computation3beePS_P5ligne, @function
_Z24neighborhood_computation3beePS_P5ligne:
.LFB3644:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	movq	%rbx, %r13
	leaq	5460(%rbx), %r15
	subq	$408, %rsp
	.cfi_def_cfa_offset 464
	movq	%rdx, 8(%rsp)
	leaq	464(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 392(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, %rsi
	movq	%rax, (%rsp)
	call	_Z4copyPiS_
.L113:
	movslq	%ebp, %r14
	movl	28(%rsp,%r14,4), %eax
	testl	%eax, %eax
	jne	.L106
	call	rand@PLT
	andl	$1, %eax
	cmpl	$1, %eax
	sbbl	%eax, %eax
	addl	$2, %eax
	jmp	.L118
.L106:
	cmpl	$1, %eax
	jne	.L109
	call	rand@PLT
	testb	$1, %al
	setne	%al
	movzbl	%al, %eax
	addl	%eax, %eax
	jmp	.L118
.L109:
	cmpl	$2, %eax
	jne	.L108
	call	rand@PLT
	andl	$1, %eax
.L118:
	movl	%eax, 28(%rsp,%r14,4)
.L108:
	incl	%ebp
	cmpl	$90, %ebp
	jne	.L112
	xorl	%ebp, %ebp
.L112:
	movq	(%rsp), %rdi
	movq	%r13, %rsi
	addq	$364, %r13
	call	_Z4copyPiS_
	cmpq	%r15, %r13
	jne	.L113
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	call	_Z16parallel_fitnessP3beeP5ligne
	movl	$0x00000000, 360(%r12)
	movq	392(%rsp), %rax
	subq	%fs:40, %rax
	je	.L114
	call	__stack_chk_fail@PLT
.L114:
	addq	$408, %rsp
	.cfi_def_cfa_offset 56
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3644:
	.size	_Z24neighborhood_computation3beePS_P5ligne, .-_Z24neighborhood_computation3beePS_P5ligne
	.globl	_Z12search_area13beePS_iP5lignei
	.type	_Z12search_area13beePS_iP5lignei, @function
_Z12search_area13beePS_iP5lignei:
.LFB3645:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%ecx, %r14d
	movl	$3, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	5460(%rdi), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	movl	$90, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ebp, %eax
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdx, (%rsp)
	cltd
	idivl	%esi
	movl	%ebp, %eax
	movl	%edx, %r12d
	cltd
	idivl	%ecx
	movl	%ebp, %eax
	andl	$1, %eax
	movl	%eax, 12(%rsp)
	movl	%edx, %r15d
.L120:
	movl	$90, %ecx
	movq	%rbx, %rdi
	leaq	80(%rsp), %rsi
	rep movsl
	movslq	%r12d, %rcx
	movl	(%rbx,%rcx,4), %edx
	testl	%edx, %edx
	jne	.L131
	movl	%ebp, %eax
	andl	$3, %eax
	cmpl	$1, %eax
	sbbl	%eax, %eax
	addl	$2, %eax
	jmp	.L121
.L131:
	movl	12(%rsp), %eax
	xorl	$1, %eax
	decl	%edx
	jne	.L121
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	addl	%eax, %eax
.L121:
	addl	%r14d, %r12d
	movl	%eax, (%rbx,%rcx,4)
	cmpl	$89, %r12d
	jle	.L123
	xorl	%r12d, %r12d
.L123:
	movq	(%rsp), %rsi
	movq	%rbx, %rdi
	addq	$364, %rbx
	call	_Z16parallel_fitnessP3beeP5ligne
	cmpq	%rbx, %r13
	jne	.L120
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3645:
	.size	_Z12search_area13beePS_iP5lignei, .-_Z12search_area13beePS_iP5lignei
	.section	.rodata.str1.1
.LC9:
	.string	"a"
.LC10:
	.string	"/home/ydjenouri/mesprog/resultat1.txt"
.LC11:
	.string	"hello"
.LC12:
	.string	"K=%d IMAX=%d  Execution Time in GPU : %3.1f ms\n"
.LC13:
	.string	"Yes\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3635:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC9(%rip), %rsi
	leaq	.LC10(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$808, %rsp
	.cfi_def_cfa_offset 864
	movq	%fs:40, %rax
	movq	%rax, 792(%rsp)
	xorl	%eax, %eax
	call	fopen@PLT
	movl	$364000, %edi
	call	malloc@PLT
	movl	$5460, %edi
	movq	%rax, %rbp
	call	malloc@PLT
	movl	$5460, %edi
	movq	%rax, %rbx
	call	malloc@PLT
	leaq	400(%rsp), %rdi
	movl	$364000, %esi
	leaq	5460(%rbx), %r15
	movq	%rax, %r13
	call	cudaMalloc@PLT
	movq	%rbp, %rdi
	call	_Z10read_transP5ligne
	movq	400(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$364000, %edx
	call	cudaMemcpy@PLT
	leaq	408(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	416(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	408(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	400(%rsp), %rsi
	leaq	428(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_Z11create_SrefP3beeP5ligne
	subq	$368, %rsp
	.cfi_def_cfa_offset 1232
	movl	$91, %ecx
	movq	376(%rsp), %rsi
	movq	%rsp, %rdi
	rep movsl
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rbx, %rdi
	movq	768(%rsp), %rdx
	call	_Z12search_area13beePS_iP5lignei
	addq	$368, %rsp
	.cfi_def_cfa_offset 864
	leaq	.LC11(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
.L133:
	movq	%rbx, %rbp
	leaq	16(%rsp), %r12
.L134:
	subq	$368, %rsp
	.cfi_def_cfa_offset 1232
	movq	%rbp, %rsi
	movl	$91, %ecx
	movq	%rsp, %rdi
	rep movsl
	movq	%r13, %rsi
	movq	%r12, %rdi
	movq	768(%rsp), %rdx
	call	_Z24neighborhood_computation3beePS_P5ligne
	movq	%rbp, %rdi
	movl	$91, %ecx
	movq	%r12, %rsi
	rep movsl
	addq	$364, %rbp
	addq	$368, %rsp
	.cfi_def_cfa_offset 864
	cmpq	%r15, %rbp
	jne	.L134
	subq	$368, %rsp
	.cfi_def_cfa_offset 1232
	movl	$91, %ecx
	movq	376(%rsp), %rsi
	movq	%rsp, %rdi
	rep movsl
	movl	$1, %ecx
	movl	%r14d, %esi
	movq	%rbx, %rdi
	movq	768(%rsp), %rdx
	call	_Z12search_area13beePS_iP5lignei
	addq	$368, %rsp
	.cfi_def_cfa_offset 864
	testl	%r14d, %r14d
	jne	.L135
	movl	$1, %r14d
	jmp	.L133
.L135:
	movq	416(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	416(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	416(%rsp), %rdx
	movq	408(%rsp), %rsi
	leaq	396(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	$1, %ecx
	movl	$15, %edx
	movb	$1, %al
	leaq	.LC12(%rip), %rsi
	movl	$2, %edi
	cvtss2sd	396(%rsp), %xmm0
	call	__printf_chk@PLT
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	408(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	416(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	400(%rsp), %rdi
	call	cudaFree@PLT
	movq	792(%rsp), %rax
	subq	%fs:40, %rax
	je	.L136
	call	__stack_chk_fail@PLT
.L136:
	addq	$808, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3635:
	.size	main, .-main
	.text
	.globl	_Z12search_area23beePS_iP5lignei
	.type	_Z12search_area23beePS_iP5lignei, @function
_Z12search_area23beePS_iP5lignei:
.LFB3646:
	.cfi_startproc
	endbr64
	movl	%ecx, %eax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$90, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	5460(%rdi), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	cltd
	idivl	%ecx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdi, %rbp
	movq	%rdi, %rbx
	movl	$2, %r12d
	movl	%edx, 12(%rsp)
.L140:
	movl	$90, %ecx
	movq	%rbx, %rdi
	leaq	80(%rsp), %rsi
	xorl	%r15d, %r15d
	rep movsl
.L148:
	cmpl	%r15d, 12(%rsp)
	jle	.L152
	movl	(%rbx,%r15,4), %eax
	testl	%eax, %eax
	jne	.L141
	call	rand@PLT
	cltd
	idivl	%r12d
	decl	%edx
	jne	.L145
	movl	$1, (%rbx,%r15,4)
	jmp	.L143
.L141:
	cmpl	$1, %eax
	jne	.L144
	call	rand@PLT
	cltd
	idivl	%r12d
	decl	%edx
	jne	.L145
	xorl	%eax, %eax
	movl	%eax, (%rbx,%r15,4)
	jmp	.L143
.L145:
	movl	$2, (%rbx,%r15,4)
	jmp	.L143
.L144:
	cmpl	$2, %eax
	jne	.L143
	call	rand@PLT
	andl	$1, %eax
	movl	%eax, (%rbx,%r15,4)
.L143:
	incq	%r15
	jmp	.L148
.L152:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	addq	$364, %rbx
	call	_Z16parallel_fitnessP3beeP5ligne
	cmpq	%r14, %rbx
	jne	.L140
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3646:
	.size	_Z12search_area23beePS_iP5lignei, .-_Z12search_area23beePS_iP5lignei
	.globl	_Z57__device_stub__Z24KernelSupport_antecedentP3beePPiP5ligneP3beePPiP5ligne
	.type	_Z57__device_stub__Z24KernelSupport_antecedentP3beePPiP5ligneP3beePPiP5ligne, @function
_Z57__device_stub__Z24KernelSupport_antecedentP3beePPiP5ligneP3beePPiP5ligne:
.LFB3678:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L153
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z24KernelSupport_antecedentP3beePPiP5ligne(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L153:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L155
	call	__stack_chk_fail@PLT
.L155:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3678:
	.size	_Z57__device_stub__Z24KernelSupport_antecedentP3beePPiP5ligneP3beePPiP5ligne, .-_Z57__device_stub__Z24KernelSupport_antecedentP3beePPiP5ligneP3beePPiP5ligne
	.globl	_Z24KernelSupport_antecedentP3beePPiP5ligne
	.type	_Z24KernelSupport_antecedentP3beePPiP5ligne, @function
_Z24KernelSupport_antecedentP3beePPiP5ligne:
.LFB3679:
	.cfi_startproc
	endbr64
	jmp	_Z57__device_stub__Z24KernelSupport_antecedentP3beePPiP5ligneP3beePPiP5ligne
	.cfi_endproc
.LFE3679:
	.size	_Z24KernelSupport_antecedentP3beePPiP5ligne, .-_Z24KernelSupport_antecedentP3beePPiP5ligne
	.section	.rodata.str1.1
.LC14:
	.string	"_Z24KernelSupport_antecedentP3beePPiP5ligne"
.LC15:
	.string	"_Z19KernelSupport_rulesP3beePPiP5ligne"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3681:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC14(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z24KernelSupport_antecedentP3beePPiP5ligne(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC15(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z19KernelSupport_rulesP3beePPiP5ligne(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3681:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	be
	.bss
	.align 8
	.type	be, @object
	.size	be, 8
be:
	.zero	8
	.globl	lg
	.align 8
	.type	lg, @object
	.size	lg, 8
lg:
	.zero	8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1065353216
	.align 4
.LC4:
	.long	1148846080
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <iostream>
#include <hip/hip_runtime.h>

//#include <time.h>
//#include <cutil.h> 

using namespace std;
# define r 40
# define M 1000   // number of items
# define N  90 // number of transactions
# define alpha 1 // represents the weight of the support in the first fitness function
# define Beta 1 // represents the weight of the confidence in the first fitness function
# define k 15   // number of bees
struct ligne {int trans[N]; int nb;} *lg;
struct bee {int solution[N]; float cost;} *be;
/**************prototype declaration*******/
void read_trans(ligne T[]);// this function allows to read the transactional data base et insert it into the dataset vector
void display_dataset(ligne T[]); //this function allows to display the transactional data base
void display_solution(bee S); // this function display the current solution with its cost
float support_rule(ligne T[], int s[]); // this function calculates the support of the entire solution s
float support_antecedent(ligne T[], int s[]); // this function computes the support of the antecedent of the solution s
float confidence(int sr, int sa); // it calculates the confidence of the rule
float fitness1(int sr, int sa); // computes the fitness of a given solution s
void create_Sref(bee *s, ligne V[]); // here we create the solution reference sref and initialize it with the random way
bee neighborhood_computation(bee S, bee *V, ligne *D);// this function explores the local region for each bee
void search_area1(bee s, bee *T, int iteration, ligne V [],int flip); //detremines the search area for each bee using the first strategy
void search_area2(bee s, bee *T, int iteration, ligne V[], int flip); //detremines the search area for each bee using the second strategy
void search_area3(bee s, bee *T, int iteration, ligne V[], int distance); //detremines the search area for each bee using the third strategy
int W(int t[]); // indicates the  weight of solution representing by a vector t, this function is used on search_area3()
void copy(int t[], int v[]); // it copies the vector t in the vector v
int best_dance(bee *T); // return the best dance after the exploration of search region of each bee
void parallel_fitness(bee *V, ligne *D); // parallelize solution computing 
void display_bees(bee T[]); // display solutions
/*************************************************************************************/
__global__ void KernelSupport_rules(bee *N_List_GPU, int **compt_GPU, struct ligne *dataset_GPU){
	int thread_idx ;
	thread_idx = blockIdx.x * blockDim.x + threadIdx.x;
	bool appartient=true;
    int indice=blockIdx.x*1000;
	indice=thread_idx-indice;

		int j=1;
		while (j<N){
			if (N_List_GPU[blockIdx.x].solution[indice]!=0){
				int l=0; 
				bool existe=false;
				while (l< dataset_GPU[thread_idx].nb && existe==false){
					if (dataset_GPU[thread_idx].trans[l]==j){
						existe=true;
					}
					l++;
				}
				if (existe==false){
					appartient=false;
				}
			}
			j++;    
		}
		if (appartient==true){
			//compt_GPU[blockIdx.x][thread_idx]=1;
		}
	
   // }
}

__global__ void KernelSupport_antecedent(bee *N_List_GPU, int **compt_GPU, struct ligne *dataset_GPU){
	int thread_idx ;
	thread_idx = blockIdx.x * blockDim.x + threadIdx.x;
	bool appartient=true;
    int indice=blockIdx.x*M;
	indice=thread_idx-indice;
		int j=1;
		while (j<N){
			if (N_List_GPU[blockIdx.x].solution[indice]==1){
				int l=0; 
				bool existe=false;
				while (l< dataset_GPU[thread_idx].nb && existe==false){
					if (dataset_GPU[thread_idx].trans[l]==j){
						existe=true;
					}
					l++;
				}
				if (existe==false){
					appartient=false;
				}
			}
			j++;    
		}
		if (appartient==true){
			//compt_GPU[blockIdx.x][thread_idx]=1;
		}
	  
       //}
}
int main(void){
    FILE *f=NULL;
    f=fopen("/home/ydjenouri/mesprog/resultat1.txt","a");
    struct ligne *dataset_CPU, *dataset_GPU;
    struct bee *T_Dance;
	struct bee *N_List_CPU;
    struct bee Sref;
    struct bee best;
    int flip=1, distance, IMAX=1;
   // int k=5;
    hipEvent_t start, stop;
    float  elapsedTime;
    int j;
    /*****************************parallel program***********************/
	//allocation de la memoire dans le CPU
	dataset_CPU = (ligne *) malloc(M * sizeof(ligne)) ;
	T_Dance = (bee *) malloc(k * sizeof(bee)) ;
	N_List_CPU=(bee *) malloc(k *sizeof(bee));
       ////allocation de la memoire dans le GPU
       hipMalloc( (void**) &dataset_GPU, M*sizeof(ligne));
       
	   //read transactional database and insert in the dataset_CPU
       read_trans(dataset_CPU);
	   hipMemcpy(dataset_GPU, dataset_CPU, M * sizeof(ligne), hipMemcpyHostToDevice);
       hipEventCreate( &start );
       hipEventCreate( &stop );
       hipEventRecord( start, 0 ) ;
       create_Sref(&Sref, dataset_GPU); // creer une solution reference
	//display_solution(Sref);
      search_area1(Sref, T_Dance, IMAX, dataset_GPU, flip);
      printf("hello");
     // display_bees(T_Dance);
     // for ( int k=5; k<=15;k=k+5)
     for ( int i=0; i<=IMAX;i++)
	{
	    			
	    for ( j=0;j<k;j++) // neighborhood computation for all the solution in tab
					{ 
				       T_Dance[j]=neighborhood_computation(T_Dance[j], N_List_CPU, dataset_GPU);
					}
					/*j=best_dance(T_Dance,k);
					copy(T_Dance[j].solution,Sref.solution);
					Sref.cost=T_Dance[j].cost;
					if (Sref.cost > best.cost)//atte o maximisation
			    { 
					 copy(Sref.solution, best.solution);
					 best.cost=Sref.cost;
			    }
				*/
		       //display_bees(T_Dance);	 
//			//average=best.cost+average; 	        
			//printf("\nk="+b.k+" IMAX="+b.IMAX+"  average fitness="+average);
             search_area1(Sref,T_Dance, i, dataset_GPU, flip);
	
       } //Bso ending

    hipEventRecord( stop, 0 ) ;
    hipEventSynchronize( stop ) ;
    hipEventElapsedTime( &elapsedTime,start, stop ) ;
    printf("K=%d IMAX=%d  Execution Time in GPU : %3.1f ms\n", k,IMAX, elapsedTime );
   // fprintf(f,"K=%d IMAX=%d flip=%d Execution Time in GPU : %3.1f ms\n", k,flip,IMAX, elapsedTime );
    printf("Yes\n");
    hipEventDestroy( start );
    hipEventDestroy( stop );
//}// end loop IMAX
//} // end loop flip
//} // end loop k

//fclose(f);
hipFree(dataset_GPU);

return 0;
}
/**********************copry t in v********/
void copy(int t[], int v[])
{
for (int i=0;i<N; i++)
{
v[i]=t[i]; 
}     
}
/*******read transactional data bass and insert it in the data set structure********************************/
void read_trans(ligne T[]){
	char c='4';
	char t[100];
	int j;
	int i=0;
	int l=0;
	FILE *f=NULL;
	f=fopen("/home/ydjenouri/mesprog/T_90_1000.txt","r");
	if (f!=NULL) {
		//cout<<"the file is succefully opened"<<endl;
		j=0;
		while (c!=EOF){
			c=fgetc(f);
			if (c==' '){
				t[j]='\0';
				T[i].trans[l]=atoi(t);
                            l++;
				j=0;
			}
			if (c=='\n'){
				T[i].nb=l;
				l=0;
				i++;
				j=0;
			}
			if (c!=' ' && c!='\n'){
				t[j]=c;
				j++;
			}
		}   
		fclose(f);
	}
}
/*************************compute the support of the solution s**********/
float support_rule(ligne T[], int s[])
{
float compt=0;
		for (int i=0; i<M; i++)
		{
		bool appartient=true;
		
		int j=1;
		while (j<N)
		{
		 if (s[j]!=0)
		{
			int l=0; 
			bool existe=false;
			while (l< T[i].nb && existe==false)
			{
				if (T[i].trans[l]==j)
				{existe=true;}
			l++;
			}
			if (existe==false){appartient=false;}
		}
		j++;	
		}
		if (appartient==true) {compt++;}
		}
	   compt=compt/M;
	return compt;
}
/*****************************support antecedent computing*****************************/
float support_antecedent(ligne T[], int s[])
	{
             float compt=0;
		
		for (int i=0; i<M; i++)
		{
		bool appartient=true;
		int j=1;
		while (j<N)
		{
		 if (s[j]==1 ||s[j]==2)
		{
			int l=0; 
			bool existe=false;
			while (l< T[i].nb && existe==false)
			{
					if (T[i].trans[l]==j)
				        {existe=true;}
			l++;
			}
			if (existe==false){appartient=false;}
		}
		j++;	
		}
		if (appartient==true) {compt++;}
		}
	   compt=compt/M;
	//if(compt!=0)System.out.println("antecedent"+compt);
	   return compt;
	}
/****************************condifence computing**************************/
float confidence(int sr, int sa)
{
	float conf=1;
	conf=(float)sr/sa;
return conf;
}
/***********************evaluation of the solution s******/
float fitness1(int sr, int sa)
	{
	float cost=0; 
	//if (support_rule(sol)<Minsup || confidence(sol)<Minconf){cout=-1;}
	float x=(float)alpha*(sr/M);
	float y=(float)Beta*confidence(sr,sa);
	cost=x+y;
	return cost;
	}
/**************************display_solution*****************/
void display_solution(bee S)
{
for (int i=0;i<N;i++)
{
    printf("%d ", S.solution[i]);
}
printf ("cost is:%f",S.cost);
printf("\n");
}

/*********************create a solution reference Sref******************************************/
void create_Sref(bee *s, ligne V[])
{
	for (int i=0;i<N;i++){
		if (rand() % 2==0){
			(*s).solution[i]=0 ;
		}
		else {
			if (rand() % 2==0){
				(*s).solution[i]=0;
			}
			else {
				(*s).solution[i]=rand() % 3; 
			}
		}
	}
       //parallel_fitness(s, V);
}
/***********************************negihborhood computation************************/
bee neighborhood_computation(bee S, bee *V, ligne *D)
{
bee s;
int indice=0;
int i=0; 
bee neighbor, best_neighbor;
float best_cost=0;
		//copy(S.solution,best_neighbor);
		   copy(S.solution,neighbor.solution);
            while (i<k)
		   {
	          	    
	          if (neighbor.solution[indice]==0) 
	          {
	        		  if (rand()%2==0)
	        		  {neighbor.solution[indice]=1;}
	        		  else{neighbor.solution[indice]=2;}
	          }
	          else {
	          if (neighbor.solution[indice]==1) 
	          {
	        	  if (rand()%2==0)
                         neighbor.solution[indice]=0;

	        	  else {
	        	 neighbor.solution[indice]=2;
	        		  }
	          }
	          else {
	          if (neighbor.solution[indice]==2) 
	          {
	        	  	  if (rand()%2==0)
                                neighbor.solution[indice]=0;

	        	  else {
	                neighbor.solution[indice]=1;
	        		 }
	          }
	          }
	          }
	     indice++;
	     if (indice>=N){indice=0;}   
	     copy(neighbor.solution,V[i].solution);
         i++;
         
		 /*if (neighbor.cost>best_cost){copy(neighbor.solution,best_neighbor.solution);
                                            best_cost=neighbor.cost;}*/
		 }
		 parallel_fitness(V, D); 
		 
//copy(best_neighbor.solution, s.solution);
//s.cost=best_cost;
s.cost=0;
return s;
}
/************************determination of search area********************/
void search_area1(bee s, bee *T, int iteration, ligne V[],int flip)
{
	 
	    int indice=iteration % N;
	    int i=0;
		   while (i<k)
		   {
			   for (int j=0;j<N;j++)
			   {   
			    T[i].solution[j]=s.solution[j];	    
			   }	
	                 if (T[i].solution[indice]==0) 
	                {
	        	         if (iteration%4==0)
	        		  {T[i].solution[indice]=1;}
	        		  else{T[i].solution[indice]=2;}
	        		  
	        	    //           }    
	                }
			
	          else{
	          if (T[i].solution[indice]==1) 
	          {	  if (iteration%3==0)
			  {T[i].solution[indice]=0;}
			  else{T[i].solution[indice]=2;}
	        		 
	        }
	          else{ 
	          
	        	  if (iteration%2==0)
	    		  {
                       T[i].solution[indice]=1;}
	    		  else{
                         T[i].solution[indice]=0;}
	        	 }
	          }
	     indice=indice+flip;
	     if (indice>=N){indice=0;}   
		 parallel_fitness(&T[i], V);
		//T_Dance[i].cost=fitness1(T_Dance[i].solution);//evaluer solution  
		 i++;
		   }
}
/**************search 2*********************/
void search_area2(bee s, bee *T, int iteration, ligne V[], int flip)
{
int i=0;
int Nb_sol=0;
bool stop=false;
	  while (i<N && stop==false)
	  {
		   for (int j=0;j<N;j++)
		   {   
			   T[Nb_sol].solution[j]=s.solution[j];	       
		   }
		   for (int l=i;l<(i+flip)%N;l++)
		   {
		  if ( T[Nb_sol].solution[l]==0) 
	     {
	   	  if (rand()%2==1)
	   		  { T[Nb_sol].solution[l]=1;}
	   		  else{T[Nb_sol].solution[l]=2;}
	   		  
	   	}
	     else {
	     if (T[Nb_sol].solution[l]==1) 
	     {
	    	 if (rand()%2==1)
	  		  {T[Nb_sol].solution[l]=0;}
	  		  else{T[Nb_sol].solution[l]=2;}
	     }
	     else {
	       if (T[Nb_sol].solution[l]==2) 
	        {
	    	 if (rand()%2==0)
	  		  {T[Nb_sol].solution[l]=0;}
	  		  else{T[Nb_sol].solution[l]=1;}
	         }
	         }
	     }
		}
        parallel_fitness(&T[i], V);
	//T_Dance[Nb_sol].cost=fitness1(T_Dance[Nb_sol].solution); //evaluates the solution  
	Nb_sol++; 
	if (Nb_sol==k){stop=true;}   
	}
}   
/********search3***************************/
int W(int t[])
{
int w=0;
	for (int i=0;i<N; i++)
	{
	w=w+t[i];
	}
return w;
} 
/*******search 3 continued****************************/
void search_area3(bee s, bee *T, int iteration, ligne V[], int distance)
{
int Nb_sol=0;
	  while (Nb_sol!=k)
	  {
		   for (int j=0;j<N;j++)
		   {   
			  T[Nb_sol].solution[j]=s.solution[j];	 	    
		   }
		   int l=0;
		   int cpt=0;
		   while (cpt<distance)
		   {
		  if (T[Nb_sol].solution[l]==0) 
	     {
	   	  if (rand()%2==1)
	   		  {T[Nb_sol].solution[l]=1; cpt++;}
	   		  else{T[Nb_sol].solution[l]=2;cpt=cpt+2;}
	   		  
	   	}
	     else {
	     if (T[Nb_sol].solution[l]==1) 
	     {
	    	 if (rand()%2==0)
	  		  {T[Nb_sol].solution[l]=0;cpt++;}
	  		  else{T[Nb_sol].solution[l]=2;cpt++;}
	     }
	     else {
	       if (T[Nb_sol].solution[l]==2) 
	        {
	    	 if (rand()%2==0)
	  		  {T[Nb_sol].solution[l]=0;cpt=cpt+2;}
	  		  else{T[Nb_sol].solution[l]=1;cpt=cpt+1;}
	         }
	         }
	     
		   }
		  l=(l+1)%N;
		   } //end the small while
         //parallel_fitness(&T[Nb_sol], V);
	//T_Dance[Nb_sol].cost=fitness1(T_Dance[Nb_sol].solution);//assecees the solution  
	Nb_sol++; 
	  } // end the big while
 }
/********************************best dance********************/
int best_dance(bee *T)
{
	float max=T[0].cost;
	int indice=0;
	for (int i=1;i<k;i++)	
	{
     	if (T[i].cost>max)
	     {     
           max=T[i].cost;
		   indice=i;
         }
	}
return indice;
}
/***********************paralelize solution computing*******/
void parallel_fitness(bee *N_List_CPU, ligne V[])
{
bee *N_List_GPU;
	//int **compt;
    //compt = (int **) malloc(k*M*sizeof(int));
       	
		/*for (int i=0;i<k;i++){
		  for (int j=0;i<M;j++){
		compt[i][j]=0;
	}
	}*/
       int **compt_GPU;
	// cudaEventCreate( &start );
     	// cudaEventCreate( &stop );
     	// cudaEventRecord( start, 0 ) ;

	hipMalloc((void**) &N_List_GPU, k*sizeof(bee));
	//cudaMalloc( (void**) &compt_GPU, k*M* sizeof(int));
	hipMemcpy(N_List_GPU, N_List_CPU, k *sizeof(bee),hipMemcpyHostToDevice);
	//cudaMemcpy(compt_GPU, compt, k*M *sizeof(int),cudaMemcpyHostToDevice);

	KernelSupport_rules<<<20*N,M>>>(N_List_GPU, compt_GPU, V);
       //cudaMemcpy(compt, compt_GPU, k*M*sizeof(int),cudaMemcpyDeviceToHost);
       /*int sr=0; 
       for (int i=0;i<M;i++){
        	sr=sr+compt[i];
       }
       KernelSupport_antecedent<<<20*N,M>>>(s_GPU, compt_GPU, V);
       cudaMemcpy(compt, compt_GPU, M*sizeof(int),cudaMemcpyDeviceToHost);
       int sa=0; 
       for (int i=0;i<M;i++){
        	sa=sa+compt[i];
       }
       (*sol).cost=fitness1(sr,sa);*/
	   
}
/*****************************display T_dance************/
void display_bees(bee T[])
{
//FILE *f=NULL;
//f=fopen("/home/ydjenouri/mesprog/resultat1.txt","a");
//if (f!=NULL) {
for (int i=0;i<k;i++)
{
    for (int j=0;j<N;j++)
    {
    printf ("%d ",T[i].solution[j]);   
    }
    printf("%f", T[i].cost);
    printf("\n");
}
//fclose(f);
//}
}

	.text
	.file	"MEGPU.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne # -- Begin function _Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne
	.type	_Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne,@function
_Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne: # @_Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z19KernelSupport_rulesP3beePPiP5ligne, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne, .Lfunc_end0-_Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne
	.cfi_endproc
                                        # -- End function
	.globl	_Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne # -- Begin function _Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne
	.type	_Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne,@function
_Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne: # @_Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z24KernelSupport_antecedentP3beePPiP5ligne, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne, .Lfunc_end1-_Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$1528, %rsp                     # imm = 0x5F8
	.cfi_def_cfa_offset 1584
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$.L.str, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movl	$364000, %edi                   # imm = 0x58DE0
	callq	malloc
	movq	%rax, %rbx
	movl	$5460, %edi                     # imm = 0x1554
	callq	malloc
	movq	%rax, %r12
	movl	$5460, %edi                     # imm = 0x1554
	callq	malloc
	movq	%rax, 424(%rsp)                 # 8-byte Spill
	leaq	392(%rsp), %r15
	movl	$364000, %esi                   # imm = 0x58DE0
	movq	%r15, %rdi
	callq	hipMalloc
	movq	%rbx, %rdi
	callq	_Z10read_transP5ligne
	movq	(%r15), %rdi
	movl	$1, %ebp
	movl	$364000, %edx                   # imm = 0x58DE0
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	416(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipEventCreate
	leaq	384(%rsp), %rdi
	callq	hipEventCreate
	movq	(%rbx), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	hipEventRecord
	leaq	800(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_Z11create_SrefP3beeP5ligne
	movl	$15, %r13d
	movq	(%r15), %r15
	movq	%r12, 408(%rsp)                 # 8-byte Spill
.LBB2_1:                                # %.preheader.i
                                        # =>This Inner Loop Header: Depth=1
	movl	$360, %edx                      # imm = 0x168
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	memcpy@PLT
	movslq	%ebp, %rax
	xorl	%ecx, %ecx
	cmpl	$2, (%r12,%rax,4)
	setb	%cl
	addl	%ecx, %ecx
	movl	%ecx, (%r12,%rax,4)
	leal	1(%rax), %ebp
	cmpl	$89, %eax
	cmovgel	%r14d, %ebp
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_Z16parallel_fitnessP3beeP5ligne
	addq	$364, %r12                      # imm = 0x16C
	decq	%r13
	jne	.LBB2_1
# %bb.2:                                # %_Z12search_area13beePS_iP5lignei.exit
	movl	$.L.str.2, %edi
	xorl	%eax, %eax
	callq	printf
	movb	$1, %al
	movl	%eax, 380(%rsp)                 # 4-byte Spill
	leaq	432(%rsp), %rbp
	xorl	%r14d, %r14d
.LBB2_3:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_4 Depth 2
                                        #     Child Loop BB2_6 Depth 2
	xorl	%r15d, %r15d
	movq	424(%rsp), %r13                 # 8-byte Reload
	leaq	1164(%rsp), %r12
.LBB2_4:                                #   Parent Loop BB2_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	408(%rsp), %rax                 # 8-byte Reload
	leaq	(%rax,%r15), %rbx
	movl	$364, %edx                      # imm = 0x16C
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	callq	memcpy@PLT
	movq	392(%rsp), %rdx
	movl	$45, %ecx
	movq	%rsp, %rdi
	movq	%rbp, %rsi
	rep;movsq (%rsi), %es:(%rdi)
	movl	792(%rsp), %eax
	movl	%eax, 360(%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_Z24neighborhood_computation3beePS_P5ligne
	movl	$364, %edx                      # imm = 0x16C
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	memcpy@PLT
	addq	$364, %r15                      # imm = 0x16C
	cmpq	$5460, %r15                     # imm = 0x1554
	jne	.LBB2_4
# %bb.5:                                #   in Loop: Header=BB2_3 Depth=1
	movq	392(%rsp), %rbp
	movl	380(%rsp), %ecx                 # 4-byte Reload
	movl	%ecx, %eax
	notb	%al
	movzbl	%al, %r13d
	andl	$1, %r13d
	addl	%r13d, %r13d
	movzbl	%cl, %eax
	andl	$1, %eax
	movl	$2, %r15d
	subl	%eax, %r15d
	movl	%r14d, %eax
	xorl	$1, %eax
	movl	%eax, 404(%rsp)                 # 4-byte Spill
	movl	$15, %r12d
	movq	408(%rsp), %rbx                 # 8-byte Reload
.LBB2_6:                                # %.preheader.i19
                                        #   Parent Loop BB2_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$360, %edx                      # imm = 0x168
	movq	%rbx, %rdi
	leaq	800(%rsp), %rsi
	callq	memcpy@PLT
	movslq	%r14d, %rax
	movl	(%rbx,%rax,4), %edx
	movl	%r15d, %ecx
	testl	%edx, %edx
	je	.LBB2_9
# %bb.7:                                # %.preheader.i19
                                        #   in Loop: Header=BB2_6 Depth=2
	movl	%r13d, %ecx
	cmpl	$1, %edx
	je	.LBB2_9
# %bb.8:                                #   in Loop: Header=BB2_6 Depth=2
	movl	404(%rsp), %ecx                 # 4-byte Reload
.LBB2_9:                                #   in Loop: Header=BB2_6 Depth=2
	movl	%ecx, (%rbx,%rax,4)
	leal	1(%rax), %r14d
	cmpl	$89, %eax
	movl	$0, %eax
	cmovgel	%eax, %r14d
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	callq	_Z16parallel_fitnessP3beeP5ligne
	addq	$364, %rbx                      # imm = 0x16C
	decq	%r12
	jne	.LBB2_6
# %bb.10:                               # %_Z12search_area13beePS_iP5lignei.exit27
                                        #   in Loop: Header=BB2_3 Depth=1
	movl	$1, %r14d
	testb	$1, 380(%rsp)                   # 1-byte Folded Reload
	movl	$0, 380(%rsp)                   # 4-byte Folded Spill
	leaq	432(%rsp), %rbp
	jne	.LBB2_3
# %bb.11:
	movq	384(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	384(%rsp), %rdi
	callq	hipEventSynchronize
	movq	416(%rsp), %rsi
	movq	384(%rsp), %rdx
	leaq	1164(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipEventElapsedTime
	cvtss2sd	(%rbx), %xmm0
	movl	$.L.str.3, %edi
	movl	$15, %esi
	movl	$1, %edx
	movb	$1, %al
	callq	printf
	movl	$.Lstr, %edi
	callq	puts@PLT
	movq	416(%rsp), %rdi
	callq	hipEventDestroy
	movq	384(%rsp), %rdi
	callq	hipEventDestroy
	movq	392(%rsp), %rdi
	callq	hipFree
	xorl	%eax, %eax
	addq	$1528, %rsp                     # imm = 0x5F8
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	main, .Lfunc_end2-main
	.cfi_endproc
                                        # -- End function
	.globl	_Z10read_transP5ligne           # -- Begin function _Z10read_transP5ligne
	.type	_Z10read_transP5ligne,@function
_Z10read_transP5ligne:                  # @_Z10read_transP5ligne
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movl	$.L.str.5, %edi
	movl	$.L.str.6, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB3_10
# %bb.1:                                # %.preheader.preheader
	movq	%rax, %r14
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
.LBB3_2:                                # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	fgetc
	movl	%eax, %ebp
	cmpb	$10, %bpl
	je	.LBB3_5
# %bb.3:                                # %.preheader
                                        #   in Loop: Header=BB3_2 Depth=1
	movzbl	%bpl, %eax
	movslq	%r15d, %r15
	cmpl	$32, %eax
	jne	.LBB3_7
# %bb.4:                                # %.thread
                                        #   in Loop: Header=BB3_2 Depth=1
	movb	$0, (%rsp,%r15)
	movq	%rsp, %rdi
	callq	atoi
	movslq	%r12d, %rcx
	imulq	$364, %rcx, %rcx                # imm = 0x16C
	addq	%rbx, %rcx
	movslq	%r13d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	incl	%r13d
	jmp	.LBB3_6
.LBB3_5:                                #   in Loop: Header=BB3_2 Depth=1
	movslq	%r12d, %r12
	imulq	$364, %r12, %rax                # imm = 0x16C
	movl	%r13d, 360(%rbx,%rax)
	incl	%r12d
	xorl	%r13d, %r13d
.LBB3_6:                                # %.thread31
                                        #   in Loop: Header=BB3_2 Depth=1
	xorl	%r15d, %r15d
	jmp	.LBB3_8
.LBB3_7:                                #   in Loop: Header=BB3_2 Depth=1
	movb	%bpl, (%rsp,%r15)
	incl	%r15d
.LBB3_8:                                # %.thread31
                                        #   in Loop: Header=BB3_2 Depth=1
	cmpb	$-1, %bpl
	jne	.LBB3_2
# %bb.9:
	movq	%r14, %rdi
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	fclose                          # TAILCALL
.LBB3_10:
	.cfi_def_cfa_offset 160
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z10read_transP5ligne, .Lfunc_end3-_Z10read_transP5ligne
	.cfi_endproc
                                        # -- End function
	.globl	_Z11create_SrefP3beeP5ligne     # -- Begin function _Z11create_SrefP3beeP5ligne
	.type	_Z11create_SrefP3beeP5ligne,@function
_Z11create_SrefP3beeP5ligne:            # @_Z11create_SrefP3beeP5ligne
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
.LBB4_1:                                # =>This Inner Loop Header: Depth=1
	callq	rand
	movl	$0, %ecx
	testb	$1, %al
	je	.LBB4_4
# %bb.2:                                #   in Loop: Header=BB4_1 Depth=1
	callq	rand
	movl	$0, %ecx
	testb	$1, %al
	je	.LBB4_4
# %bb.3:                                #   in Loop: Header=BB4_1 Depth=1
	callq	rand
	movslq	%eax, %rcx
	imulq	$1431655766, %rcx, %rax         # imm = 0x55555556
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$32, %rax
	addl	%edx, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ecx
.LBB4_4:                                #   in Loop: Header=BB4_1 Depth=1
	movl	%ecx, (%rbx,%r14,4)
	incq	%r14
	cmpq	$90, %r14
	jne	.LBB4_1
# %bb.5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z11create_SrefP3beeP5ligne, .Lfunc_end4-_Z11create_SrefP3beeP5ligne
	.cfi_endproc
                                        # -- End function
	.globl	_Z12search_area13beePS_iP5lignei # -- Begin function _Z12search_area13beePS_iP5lignei
	.type	_Z12search_area13beePS_iP5lignei,@function
_Z12search_area13beePS_iP5lignei:       # @_Z12search_area13beePS_iP5lignei
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%ecx, 4(%rsp)                   # 4-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %r15
	movslq	%esi, %rax
	imulq	$-1240768329, %rax, %rcx        # imm = 0xB60B60B7
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$6, %ecx
	addl	%edx, %ecx
	imull	$90, %ecx, %ecx
	movl	%eax, %r13d
	subl	%ecx, %r13d
	imull	$-1431655765, %eax, %ecx        # imm = 0xAAAAAAAB
	addl	$715827882, %ecx                # imm = 0x2AAAAAAA
	xorl	%ebp, %ebp
	cmpl	$1431655765, %ecx               # imm = 0x55555555
	setae	%bpl
	andl	$3, %eax
	addl	%ebp, %ebp
	cmpl	$1, %eax
	movl	$2, %r12d
	sbbl	$0, %r12d
	notl	%esi
	andl	$1, %esi
	movl	%esi, (%rsp)                    # 4-byte Spill
	movl	$15, %ebx
.LBB5_1:                                # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	movl	$360, %edx                      # imm = 0x168
	movq	%r15, %rdi
	leaq	64(%rsp), %rsi
	callq	memcpy@PLT
	movslq	%r13d, %r13
	movl	(%r15,%r13,4), %ecx
	movl	%r12d, %eax
	testl	%ecx, %ecx
	je	.LBB5_4
# %bb.2:                                # %.preheader
                                        #   in Loop: Header=BB5_1 Depth=1
	movl	%ebp, %eax
	cmpl	$1, %ecx
	je	.LBB5_4
# %bb.3:                                #   in Loop: Header=BB5_1 Depth=1
	movl	(%rsp), %eax                    # 4-byte Reload
.LBB5_4:                                #   in Loop: Header=BB5_1 Depth=1
	movl	%eax, (%r15,%r13,4)
	addl	4(%rsp), %r13d                  # 4-byte Folded Reload
	cmpl	$90, %r13d
	movl	$0, %eax
	cmovgel	%eax, %r13d
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_Z16parallel_fitnessP3beeP5ligne
	addq	$364, %r15                      # imm = 0x16C
	decq	%rbx
	jne	.LBB5_1
# %bb.5:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z12search_area13beePS_iP5lignei, .Lfunc_end5-_Z12search_area13beePS_iP5lignei
	.cfi_endproc
                                        # -- End function
	.globl	_Z24neighborhood_computation3beePS_P5ligne # -- Begin function _Z24neighborhood_computation3beePS_P5ligne
	.type	_Z24neighborhood_computation3beePS_P5ligne,@function
_Z24neighborhood_computation3beePS_P5ligne: # @_Z24neighborhood_computation3beePS_P5ligne
	.cfi_startproc
# %bb.0:                                # %_Z4copyPiS_.exit.preheader.preheader
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$392, %rsp                      # imm = 0x188
	.cfi_def_cfa_offset 448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, 16(%rsp)                  # 8-byte Spill
	leaq	28(%rsp), %r12
	leaq	448(%rsp), %rsi
	movl	$360, %edx                      # imm = 0x168
	movq	%r12, %rdi
	callq	memcpy@PLT
	xorl	%r13d, %r13d
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
.LBB6_1:                                # %_Z4copyPiS_.exit.preheader
                                        # =>This Inner Loop Header: Depth=1
	movslq	%r14d, %rbx
	movl	28(%rsp,%rbx,4), %eax
	cmpl	$2, %eax
	je	.LBB6_6
# %bb.2:                                # %_Z4copyPiS_.exit.preheader
                                        #   in Loop: Header=BB6_1 Depth=1
	cmpl	$1, %eax
	je	.LBB6_5
# %bb.3:                                # %_Z4copyPiS_.exit.preheader
                                        #   in Loop: Header=BB6_1 Depth=1
	testl	%eax, %eax
	jne	.LBB6_8
# %bb.4:                                #   in Loop: Header=BB6_1 Depth=1
	callq	rand
	andl	$1, %eax
	incl	%eax
	jmp	.LBB6_7
.LBB6_5:                                #   in Loop: Header=BB6_1 Depth=1
	callq	rand
	addl	%eax, %eax
	andl	$2, %eax
	jmp	.LBB6_7
.LBB6_6:                                #   in Loop: Header=BB6_1 Depth=1
	callq	rand
	andl	$1, %eax
.LBB6_7:                                # %_Z4copyPiS_.exit21.sink.split
                                        #   in Loop: Header=BB6_1 Depth=1
	movl	%eax, 28(%rsp,%rbx,4)
.LBB6_8:                                # %_Z4copyPiS_.exit21
                                        #   in Loop: Header=BB6_1 Depth=1
	leaq	(%r15,%rbp), %rdi
	movl	$360, %edx                      # imm = 0x168
	movq	%r12, %rsi
	callq	memcpy@PLT
	cmpl	$89, %r14d
	leal	1(%r14), %eax
	cmovgel	%r13d, %eax
	addq	$364, %rbp                      # imm = 0x16C
	movl	%eax, %r14d
	cmpq	$5460, %rbp                     # imm = 0x1554
	jne	.LBB6_1
# %bb.9:
	movq	%r15, %rdi
	movq	8(%rsp), %rsi                   # 8-byte Reload
	callq	_Z16parallel_fitnessP3beeP5ligne
	movq	16(%rsp), %rax                  # 8-byte Reload
	movl	$0, 360(%rax)
	addq	$392, %rsp                      # imm = 0x188
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z24neighborhood_computation3beePS_P5ligne, .Lfunc_end6-_Z24neighborhood_computation3beePS_P5ligne
	.cfi_endproc
                                        # -- End function
	.globl	_Z4copyPiS_                     # -- Begin function _Z4copyPiS_
	.type	_Z4copyPiS_,@function
_Z4copyPiS_:                            # @_Z4copyPiS_
	.cfi_startproc
# %bb.0:
	xorl	%eax, %eax
.LBB7_1:                                # =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rax,4), %ecx
	movl	%ecx, (%rsi,%rax,4)
	incq	%rax
	cmpq	$90, %rax
	jne	.LBB7_1
# %bb.2:
	retq
.Lfunc_end7:
	.size	_Z4copyPiS_, .Lfunc_end7-_Z4copyPiS_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z12support_ruleP5lignePi
.LCPI8_0:
	.long	0x3f800000                      # float 1
.LCPI8_1:
	.long	0x447a0000                      # float 1000
	.text
	.globl	_Z12support_ruleP5lignePi
	.type	_Z12support_ruleP5lignePi,@function
_Z12support_ruleP5lignePi:              # @_Z12support_ruleP5lignePi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
	movss	.LCPI8_0(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	movl	$1, %ecx
	movq	%rdi, %rdx
.LBB8_1:                                # %.preheader28
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_2 Depth 2
                                        #       Child Loop BB8_5 Depth 3
	imulq	$364, %rax, %r8                 # imm = 0x16C
	leaq	(%rdi,%r8), %r9
	addq	$360, %r9                       # imm = 0x168
	movb	$1, %r8b
	movl	$1, %r10d
.LBB8_2:                                #   Parent Loop BB8_1 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB8_5 Depth 3
	cmpl	$0, (%rsi,%r10,4)
	je	.LBB8_9
# %bb.3:                                # %.preheader
                                        #   in Loop: Header=BB8_2 Depth=2
	movl	(%r9), %r11d
	testl	%r11d, %r11d
	jle	.LBB8_8
# %bb.4:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB8_2 Depth=2
	movl	$1, %r14d
	xorl	%ebx, %ebx
.LBB8_5:                                # %.lr.ph
                                        #   Parent Loop BB8_1 Depth=1
                                        #     Parent Loop BB8_2 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movl	-4(%rdx,%r14,4), %r15d
	cmpq	%r15, %r10
	sete	%bpl
	movzbl	%bl, %ebx
	testb	$1, %bpl
	cmovnel	%ecx, %ebx
	cmpq	%r11, %r14
	jae	.LBB8_7
# %bb.6:                                # %.lr.ph
                                        #   in Loop: Header=BB8_5 Depth=3
	movl	%ebx, %ebp
	andb	$1, %bpl
	incq	%r14
	testb	%bpl, %bpl
	je	.LBB8_5
.LBB8_7:                                # %._crit_edge
                                        #   in Loop: Header=BB8_2 Depth=2
	testb	$1, %bl
	jne	.LBB8_9
.LBB8_8:                                # %._crit_edge.thread
                                        #   in Loop: Header=BB8_2 Depth=2
	xorl	%r8d, %r8d
.LBB8_9:                                #   in Loop: Header=BB8_2 Depth=2
	incq	%r10
	cmpq	$90, %r10
	jne	.LBB8_2
# %bb.10:                               #   in Loop: Header=BB8_1 Depth=1
	movaps	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	testb	$1, %r8b
	je	.LBB8_12
# %bb.11:                               #   in Loop: Header=BB8_1 Depth=1
	movaps	%xmm2, %xmm0
.LBB8_12:                               #   in Loop: Header=BB8_1 Depth=1
	incq	%rax
	addq	$364, %rdx                      # imm = 0x16C
	cmpq	$1000, %rax                     # imm = 0x3E8
	jne	.LBB8_1
# %bb.13:
	divss	.LCPI8_1(%rip), %xmm0
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z12support_ruleP5lignePi, .Lfunc_end8-_Z12support_ruleP5lignePi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z18support_antecedentP5lignePi
.LCPI9_0:
	.long	0x3f800000                      # float 1
.LCPI9_1:
	.long	0x447a0000                      # float 1000
	.text
	.globl	_Z18support_antecedentP5lignePi
	.type	_Z18support_antecedentP5lignePi,@function
_Z18support_antecedentP5lignePi:        # @_Z18support_antecedentP5lignePi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
	movl	$1, %ecx
	movss	.LCPI9_0(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	movq	%rdi, %rdx
.LBB9_1:                                # %.preheader30
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_2 Depth 2
                                        #       Child Loop BB9_5 Depth 3
	imulq	$364, %rax, %r8                 # imm = 0x16C
	leaq	(%rdi,%r8), %r9
	addq	$360, %r9                       # imm = 0x168
	movb	$1, %r8b
	movl	$1, %r10d
.LBB9_2:                                #   Parent Loop BB9_1 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB9_5 Depth 3
	movl	(%rsi,%r10,4), %r11d
	decl	%r11d
	cmpl	$1, %r11d
	ja	.LBB9_9
# %bb.3:                                # %.preheader
                                        #   in Loop: Header=BB9_2 Depth=2
	movl	(%r9), %r11d
	testl	%r11d, %r11d
	jle	.LBB9_8
# %bb.4:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB9_2 Depth=2
	movl	$1, %r14d
	xorl	%ebx, %ebx
.LBB9_5:                                # %.lr.ph
                                        #   Parent Loop BB9_1 Depth=1
                                        #     Parent Loop BB9_2 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movl	-4(%rdx,%r14,4), %r15d
	cmpq	%r15, %r10
	sete	%bpl
	movzbl	%bl, %ebx
	testb	$1, %bpl
	cmovnel	%ecx, %ebx
	cmpq	%r11, %r14
	jae	.LBB9_7
# %bb.6:                                # %.lr.ph
                                        #   in Loop: Header=BB9_5 Depth=3
	movl	%ebx, %ebp
	andb	$1, %bpl
	incq	%r14
	testb	%bpl, %bpl
	je	.LBB9_5
.LBB9_7:                                # %._crit_edge
                                        #   in Loop: Header=BB9_2 Depth=2
	testb	$1, %bl
	jne	.LBB9_9
.LBB9_8:                                # %._crit_edge.thread
                                        #   in Loop: Header=BB9_2 Depth=2
	xorl	%r8d, %r8d
.LBB9_9:                                #   in Loop: Header=BB9_2 Depth=2
	incq	%r10
	cmpq	$90, %r10
	jne	.LBB9_2
# %bb.10:                               #   in Loop: Header=BB9_1 Depth=1
	movaps	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	testb	$1, %r8b
	je	.LBB9_12
# %bb.11:                               #   in Loop: Header=BB9_1 Depth=1
	movaps	%xmm2, %xmm0
.LBB9_12:                               #   in Loop: Header=BB9_1 Depth=1
	incq	%rax
	addq	$364, %rdx                      # imm = 0x16C
	cmpq	$1000, %rax                     # imm = 0x3E8
	jne	.LBB9_1
# %bb.13:
	divss	.LCPI9_1(%rip), %xmm0
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_Z18support_antecedentP5lignePi, .Lfunc_end9-_Z18support_antecedentP5lignePi
	.cfi_endproc
                                        # -- End function
	.globl	_Z10confidenceii                # -- Begin function _Z10confidenceii
	.type	_Z10confidenceii,@function
_Z10confidenceii:                       # @_Z10confidenceii
	.cfi_startproc
# %bb.0:
	cvtsi2ss	%edi, %xmm0
	cvtsi2ss	%esi, %xmm1
	divss	%xmm1, %xmm0
	retq
.Lfunc_end10:
	.size	_Z10confidenceii, .Lfunc_end10-_Z10confidenceii
	.cfi_endproc
                                        # -- End function
	.globl	_Z8fitness1ii                   # -- Begin function _Z8fitness1ii
	.type	_Z8fitness1ii,@function
_Z8fitness1ii:                          # @_Z8fitness1ii
	.cfi_startproc
# %bb.0:
	movslq	%edi, %rax
	imulq	$274877907, %rax, %rcx          # imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	cvtsi2ss	%ecx, %xmm1
	cvtsi2ss	%eax, %xmm0
	cvtsi2ss	%esi, %xmm2
	divss	%xmm2, %xmm0
	addss	%xmm1, %xmm0
	retq
.Lfunc_end11:
	.size	_Z8fitness1ii, .Lfunc_end11-_Z8fitness1ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z16display_solution3bee        # -- Begin function _Z16display_solution3bee
	.type	_Z16display_solution3bee,@function
_Z16display_solution3bee:               # @_Z16display_solution3bee
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	leaq	32(%rsp), %rbx
	xorl	%r14d, %r14d
.LBB12_1:                               # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14,4), %esi
	movl	$.L.str.7, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r14
	cmpq	$90, %r14
	jne	.LBB12_1
# %bb.2:
	cvtss2sd	360(%rbx), %xmm0
	movl	$.L.str.8, %edi
	movb	$1, %al
	callq	printf
	movl	$10, %edi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT                     # TAILCALL
.Lfunc_end12:
	.size	_Z16display_solution3bee, .Lfunc_end12-_Z16display_solution3bee
	.cfi_endproc
                                        # -- End function
	.globl	_Z16parallel_fitnessP3beeP5ligne # -- Begin function _Z16parallel_fitnessP3beeP5ligne
	.type	_Z16parallel_fitnessP3beeP5ligne,@function
_Z16parallel_fitnessP3beeP5ligne:       # @_Z16parallel_fitnessP3beeP5ligne
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	8(%rsp), %r15
	movl	$5460, %esi                     # imm = 0x1554
	movq	%r15, %rdi
	callq	hipMalloc
	movq	(%r15), %rdi
	movl	$5460, %edx                     # imm = 0x1554
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movabsq	$4294968296, %rdx               # imm = 0x1000003E8
	leaq	800(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_2
# %bb.1:
	movq	8(%rsp), %rdi
	movq	%rbx, %rdx
	callq	_Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne
.LBB13_2:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_Z16parallel_fitnessP3beeP5ligne, .Lfunc_end13-_Z16parallel_fitnessP3beeP5ligne
	.cfi_endproc
                                        # -- End function
	.globl	_Z12search_area23beePS_iP5lignei # -- Begin function _Z12search_area23beePS_iP5lignei
	.type	_Z12search_area23beePS_iP5lignei,@function
_Z12search_area23beePS_iP5lignei:       # @_Z12search_area23beePS_iP5lignei
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rdi, %r15
	movslq	%ecx, %r12
	imulq	$-1240768329, %r12, %rax        # imm = 0xB60B60B7
	shrq	$32, %rax
	addl	%r12d, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$6, %eax
	addl	%ecx, %eax
	imull	$90, %eax, %eax
	subl	%eax, %r12d
	xorl	%r13d, %r13d
	movq	%rdi, %r14
	xorl	%ebp, %ebp
.LBB14_1:                               # %.preheader48
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB14_3 Depth 2
	imulq	$364, %r13, %rdi                # imm = 0x16C
	addq	%r15, %rdi
	movl	$360, %edx                      # imm = 0x168
	leaq	64(%rsp), %rsi
	callq	memcpy@PLT
	testl	%r12d, %r12d
	jle	.LBB14_11
# %bb.2:                                # %.lr.ph
                                        #   in Loop: Header=BB14_1 Depth=1
	xorl	%ebx, %ebx
.LBB14_3:                               #   Parent Loop BB14_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	(%r14,%rbx,4), %eax
	cmpl	$2, %eax
	je	.LBB14_8
# %bb.4:                                #   in Loop: Header=BB14_3 Depth=2
	cmpl	$1, %eax
	je	.LBB14_7
# %bb.5:                                #   in Loop: Header=BB14_3 Depth=2
	testl	%eax, %eax
	jne	.LBB14_10
# %bb.6:                                #   in Loop: Header=BB14_3 Depth=2
	callq	rand
	movl	%eax, %ecx
	andl	$-2147483647, %ecx              # imm = 0x80000001
	xorl	%eax, %eax
	cmpl	$1, %ecx
	setne	%al
	incl	%eax
	jmp	.LBB14_9
.LBB14_7:                               #   in Loop: Header=BB14_3 Depth=2
	callq	rand
	movl	%eax, %ecx
	andl	$-2147483647, %ecx              # imm = 0x80000001
	xorl	%eax, %eax
	cmpl	$1, %ecx
	setne	%al
	addl	%eax, %eax
	jmp	.LBB14_9
.LBB14_8:                               #   in Loop: Header=BB14_3 Depth=2
	callq	rand
	andl	$1, %eax
.LBB14_9:                               # %.sink.split
                                        #   in Loop: Header=BB14_3 Depth=2
	movl	%eax, (%r14,%rbx,4)
.LBB14_10:                              #   in Loop: Header=BB14_3 Depth=2
	incq	%rbx
	cmpq	%rbx, %r12
	jne	.LBB14_3
.LBB14_11:                              # %._crit_edge
                                        #   in Loop: Header=BB14_1 Depth=1
	movq	%r15, %rdi
	movq	(%rsp), %rsi                    # 8-byte Reload
	callq	_Z16parallel_fitnessP3beeP5ligne
	incq	%r13
	cmpq	$15, %r13
	movzbl	%bpl, %ebp
	movl	$1, %eax
	cmovel	%eax, %ebp
	addq	$364, %r14                      # imm = 0x16C
	testb	$1, %bpl
	je	.LBB14_1
# %bb.12:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end14:
	.size	_Z12search_area23beePS_iP5lignei, .Lfunc_end14-_Z12search_area23beePS_iP5lignei
	.cfi_endproc
                                        # -- End function
	.globl	_Z1WPi                          # -- Begin function _Z1WPi
	.type	_Z1WPi,@function
_Z1WPi:                                 # @_Z1WPi
	.cfi_startproc
# %bb.0:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
.LBB15_1:                               # =>This Inner Loop Header: Depth=1
	addl	(%rdi,%rcx,4), %eax
	incq	%rcx
	cmpq	$90, %rcx
	jne	.LBB15_1
# %bb.2:
	retq
.Lfunc_end15:
	.size	_Z1WPi, .Lfunc_end15-_Z1WPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z12search_area33beePS_iP5lignei # -- Begin function _Z12search_area33beePS_iP5lignei
	.type	_Z12search_area33beePS_iP5lignei,@function
_Z12search_area33beePS_iP5lignei:       # @_Z12search_area33beePS_iP5lignei
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%ecx, %ebx
	movq	%rdi, (%rsp)                    # 8-byte Spill
	xorl	%r13d, %r13d
.LBB16_1:                               # %.preheader47
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB16_3 Depth 2
	imulq	$364, %r13, %r12                # imm = 0x16C
	addq	(%rsp), %r12                    # 8-byte Folded Reload
	movl	$360, %edx                      # imm = 0x168
	movq	%r12, %rdi
	leaq	64(%rsp), %rsi
	callq	memcpy@PLT
	testl	%ebx, %ebx
	jle	.LBB16_16
# %bb.2:                                # %.lr.ph
                                        #   in Loop: Header=BB16_1 Depth=1
	xorl	%ebp, %ebp
	xorl	%r15d, %r15d
.LBB16_3:                               #   Parent Loop BB16_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movslq	%r15d, %r14
	movl	(%r12,%r14,4), %eax
	cmpl	$2, %eax
	je	.LBB16_11
# %bb.4:                                #   in Loop: Header=BB16_3 Depth=2
	cmpl	$1, %eax
	je	.LBB16_9
# %bb.5:                                #   in Loop: Header=BB16_3 Depth=2
	testl	%eax, %eax
	jne	.LBB16_15
# %bb.6:                                #   in Loop: Header=BB16_3 Depth=2
	callq	rand
	andl	$-2147483647, %eax              # imm = 0x80000001
	cmpl	$1, %eax
	je	.LBB16_13
# %bb.7:                                #   in Loop: Header=BB16_3 Depth=2
	movl	$2, (%r12,%r14,4)
	jmp	.LBB16_8
.LBB16_9:                               #   in Loop: Header=BB16_3 Depth=2
	callq	rand
	incl	%ebp
	testb	$1, %al
	jne	.LBB16_14
# %bb.10:                               #   in Loop: Header=BB16_3 Depth=2
	movl	$0, (%r12,%r14,4)
	jmp	.LBB16_15
.LBB16_11:                              #   in Loop: Header=BB16_3 Depth=2
	callq	rand
	testb	$1, %al
	jne	.LBB16_13
# %bb.12:                               #   in Loop: Header=BB16_3 Depth=2
	movl	$0, (%r12,%r14,4)
.LBB16_8:                               #   in Loop: Header=BB16_3 Depth=2
	addl	$2, %ebp
	jmp	.LBB16_15
.LBB16_13:                              #   in Loop: Header=BB16_3 Depth=2
	movl	$1, (%r12,%r14,4)
	incl	%ebp
	jmp	.LBB16_15
.LBB16_14:                              #   in Loop: Header=BB16_3 Depth=2
	movl	$2, (%r12,%r14,4)
.LBB16_15:                              #   in Loop: Header=BB16_3 Depth=2
	movl	%r15d, %eax
	incl	%eax
	cltq
	imulq	$-1240768329, %rax, %rcx        # imm = 0xB60B60B7
	shrq	$32, %rcx
	addl	%r15d, %ecx
	incl	%ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$6, %ecx
	addl	%edx, %ecx
	imull	$90, %ecx, %ecx
	subl	%ecx, %eax
	movl	%eax, %r15d
	cmpl	%ebx, %ebp
	jl	.LBB16_3
.LBB16_16:                              # %._crit_edge
                                        #   in Loop: Header=BB16_1 Depth=1
	incq	%r13
	cmpq	$15, %r13
	jne	.LBB16_1
# %bb.17:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end16:
	.size	_Z12search_area33beePS_iP5lignei, .Lfunc_end16-_Z12search_area33beePS_iP5lignei
	.cfi_endproc
                                        # -- End function
	.globl	_Z10best_danceP3bee             # -- Begin function _Z10best_danceP3bee
	.type	_Z10best_danceP3bee,@function
_Z10best_danceP3bee:                    # @_Z10best_danceP3bee
	.cfi_startproc
# %bb.0:
	movss	360(%rdi), %xmm0                # xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	movl	$724, %ecx                      # imm = 0x2D4
	movl	$1, %edx
.LBB17_1:                               # =>This Inner Loop Header: Depth=1
	movss	(%rdi,%rcx), %xmm1              # xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	maxss	%xmm0, %xmm1
	cmoval	%edx, %eax
	addq	$364, %rcx                      # imm = 0x16C
	incl	%edx
	movaps	%xmm1, %xmm0
	cmpq	$5820, %rcx                     # imm = 0x16BC
	jne	.LBB17_1
# %bb.2:
	retq
.Lfunc_end17:
	.size	_Z10best_danceP3bee, .Lfunc_end17-_Z10best_danceP3bee
	.cfi_endproc
                                        # -- End function
	.globl	_Z12display_beesP3bee           # -- Begin function _Z12display_beesP3bee
	.type	_Z12display_beesP3bee,@function
_Z12display_beesP3bee:                  # @_Z12display_beesP3bee
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	movl	$364, %r14d                     # imm = 0x16C
	movq	%rdi, %r15
	xorl	%r12d, %r12d
.LBB18_1:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB18_2 Depth 2
	xorl	%r13d, %r13d
.LBB18_2:                               #   Parent Loop BB18_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	(%r15,%r13,4), %esi
	movl	$.L.str.7, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r13
	cmpq	$90, %r13
	jne	.LBB18_2
# %bb.3:                                #   in Loop: Header=BB18_1 Depth=1
	imulq	$364, %r12, %rax                # imm = 0x16C
	xorps	%xmm0, %xmm0
	cvtss2sd	360(%rbx,%rax), %xmm0
	movl	$.L.str.10, %edi
	movb	$1, %al
	callq	printf
	movl	$10, %edi
	callq	putchar@PLT
	incq	%r12
	addq	%r14, %r15
	cmpq	$15, %r12
	jne	.LBB18_1
# %bb.4:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end18:
	.size	_Z12display_beesP3bee, .Lfunc_end18-_Z12display_beesP3bee
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB19_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB19_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z19KernelSupport_rulesP3beePPiP5ligne, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z24KernelSupport_antecedentP3beePPiP5ligne, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end19:
	.size	__hip_module_ctor, .Lfunc_end19-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB20_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB20_2:
	retq
.Lfunc_end20:
	.size	__hip_module_dtor, .Lfunc_end20-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	lg,@object                      # @lg
	.bss
	.globl	lg
	.p2align	3, 0x0
lg:
	.quad	0
	.size	lg, 8

	.type	be,@object                      # @be
	.globl	be
	.p2align	3, 0x0
be:
	.quad	0
	.size	be, 8

	.type	_Z19KernelSupport_rulesP3beePPiP5ligne,@object # @_Z19KernelSupport_rulesP3beePPiP5ligne
	.section	.rodata,"a",@progbits
	.globl	_Z19KernelSupport_rulesP3beePPiP5ligne
	.p2align	3, 0x0
_Z19KernelSupport_rulesP3beePPiP5ligne:
	.quad	_Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne
	.size	_Z19KernelSupport_rulesP3beePPiP5ligne, 8

	.type	_Z24KernelSupport_antecedentP3beePPiP5ligne,@object # @_Z24KernelSupport_antecedentP3beePPiP5ligne
	.globl	_Z24KernelSupport_antecedentP3beePPiP5ligne
	.p2align	3, 0x0
_Z24KernelSupport_antecedentP3beePPiP5ligne:
	.quad	_Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne
	.size	_Z24KernelSupport_antecedentP3beePPiP5ligne, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"/home/ydjenouri/mesprog/resultat1.txt"
	.size	.L.str, 38

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"a"
	.size	.L.str.1, 2

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"hello"
	.size	.L.str.2, 6

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"K=%d IMAX=%d  Execution Time in GPU : %3.1f ms\n"
	.size	.L.str.3, 48

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"/home/ydjenouri/mesprog/T_90_1000.txt"
	.size	.L.str.5, 38

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"r"
	.size	.L.str.6, 2

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"%d "
	.size	.L.str.7, 4

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"cost is:%f"
	.size	.L.str.8, 11

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"%f"
	.size	.L.str.10, 3

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z19KernelSupport_rulesP3beePPiP5ligne"
	.size	.L__unnamed_1, 39

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z24KernelSupport_antecedentP3beePPiP5ligne"
	.size	.L__unnamed_2, 44

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"Yes"
	.size	.Lstr, 4

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z34__device_stub__KernelSupport_rulesP3beePPiP5ligne
	.addrsig_sym _Z39__device_stub__KernelSupport_antecedentP3beePPiP5ligne
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z19KernelSupport_rulesP3beePPiP5ligne
	.addrsig_sym _Z24KernelSupport_antecedentP3beePPiP5ligne
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z19KernelSupport_rulesP3beePPiP5ligne ; -- Begin function _Z19KernelSupport_rulesP3beePPiP5ligne
	.globl	_Z19KernelSupport_rulesP3beePPiP5ligne
	.p2align	8
	.type	_Z19KernelSupport_rulesP3beePPiP5ligne,@function
_Z19KernelSupport_rulesP3beePPiP5ligne: ; @_Z19KernelSupport_rulesP3beePPiP5ligne
; %bb.0:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19KernelSupport_rulesP3beePPiP5ligne
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 24
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 1
		.amdhsa_next_free_sgpr 1
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z19KernelSupport_rulesP3beePPiP5ligne, .Lfunc_end0-_Z19KernelSupport_rulesP3beePPiP5ligne
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 4
; NumSgprs: 0
; NumVgprs: 0
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 1
; NumVGPRsForWavesPerEU: 1
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z24KernelSupport_antecedentP3beePPiP5ligne ; -- Begin function _Z24KernelSupport_antecedentP3beePPiP5ligne
	.globl	_Z24KernelSupport_antecedentP3beePPiP5ligne
	.p2align	8
	.type	_Z24KernelSupport_antecedentP3beePPiP5ligne,@function
_Z24KernelSupport_antecedentP3beePPiP5ligne: ; @_Z24KernelSupport_antecedentP3beePPiP5ligne
; %bb.0:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z24KernelSupport_antecedentP3beePPiP5ligne
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 24
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 1
		.amdhsa_next_free_sgpr 1
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z24KernelSupport_antecedentP3beePPiP5ligne, .Lfunc_end1-_Z24KernelSupport_antecedentP3beePPiP5ligne
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 4
; NumSgprs: 0
; NumVgprs: 0
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 1
; NumVGPRsForWavesPerEU: 1
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 24
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z19KernelSupport_rulesP3beePPiP5ligne
    .private_segment_fixed_size: 0
    .sgpr_count:     0
    .sgpr_spill_count: 0
    .symbol:         _Z19KernelSupport_rulesP3beePPiP5ligne.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     0
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 24
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z24KernelSupport_antecedentP3beePPiP5ligne
    .private_segment_fixed_size: 0
    .sgpr_count:     0
    .sgpr_spill_count: 0
    .symbol:         _Z24KernelSupport_antecedentP3beePPiP5ligne.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     0
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
