// File: /workspace/github_cpp_makefile_star2_O2/dcarrey[P]hgt-detection/./utils_tree.cpp
// Function: filtrerMatrice(double**, double**, char**, char**, int, int, char*)
void filtrerMatrice(double **dissSpecies, double **dissGene, char **nomsSpecies, char **nomsGene,int nbSpecies, int nbGene, char * fichier){

		int i,j,temoin;
		FILE * out;
		
		if((out = fopen(fichier,"a+")) == NULL){
			printf("Can't open %s",fichier);
			exit(-1);
		}
		
		fprintf(out,"\n=>Filtre");
		
		
		for(i=1;i<=nbSpecies;i++){
			//printf("\n%s -",nomsSpecies[i]);
			temoin = 0;
			for(j=1;j<=nbGene;j++){
				//printf(" %s",nomsGene[j]);
				if(strcmp(nomsSpecies[i],nomsGene[j])==0)
					temoin=1;
			}
			if(temoin == 0){
				fprintf(out,"\nSpecies:%s",nomsSpecies[i]);
				for(j=1;j<=nbSpecies;j++){
						dissSpecies[i][j] = dissSpecies[j][i] = -1;
				}
				strcpy(nomsSpecies[i],"");
			}
		}
		//printf("==============");
		for(i=1;i<=nbGene;i++){
			//printf("\n%s -",nomsGene[i]);
			temoin = 0;
			for(j=1;j<=nbSpecies;j++){
			//	printf(" %s",nomsSpecies[j]); 	
				//if(strlen(nomsSpecies[j]) > 1) 
					if(strcmp(nomsSpecies[j],nomsGene[i])==0)
						temoin=1;
			}
			if(temoin == 0){
				fprintf(out,"\nGene:%s",nomsGene[i]);
				for(j=1;j<=nbGene;j++){
					dissGene[i][j] = dissGene[j][i] = -1;
				}
				strcpy(nomsGene[i],"");
			}
		}

		fclose(out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %r14d
movl %r8d, %r12d
movq %rcx, -0x30(%rbp)
movq %rdx, %r15
movq %rsi, -0x68(%rbp)
movq %rdi, -0x60(%rbp)
movq 0x10(%rbp), %rbx
leaq 0xeeb1(%rip), %rsi      # 0x14740
movq %rbx, %rdi
callq 0x10d0
testq %rax, %rax
je 0x5a43
leaq 0xeeaa(%rip), %rdi      # 0x14751
pushq $0x9
popq %rsi
pushq $0x1
popq %r13
movq %r13, %rdx
movq %rax, -0x38(%rbp)
movq %rax, %rcx
callq 0x11d0
xorl %eax, %eax
testl %r14d, %r14d
movl $0x0, %ebx
cmovgl %r14d, %ebx
leal 0x1(%rbx), %ecx
movl %ecx, -0x4c(%rbp)
leal 0x1(%r12), %ecx
movq %rcx, -0x48(%rbp)
testl %r12d, %r12d
cmovlel %eax, %r12d
movq %r12, -0x58(%rbp)
leal 0x1(%r12), %eax
movq %rax, -0x70(%rbp)
movq %r14, -0x40(%rbp)
cmpq -0x70(%rbp), %r13
je 0x5981
xorl %r12d, %r12d
xorl %r14d, %r14d
cmpq %r12, %rbx
je 0x5927
movq (%r15,%r13,8), %rdi
movq -0x30(%rbp), %rax
movq 0x8(%rax,%r12,8), %rsi
callq 0x1160
testl %eax, %eax
pushq $0x1
popq %rax
cmovel %eax, %r14d
incq %r12
jmp 0x5902
testl %r14d, %r14d
movq -0x40(%rbp), %r14
movabsq $-0x4010000000000000, %r12 # imm = 0xBFF0000000000000
jne 0x5979
movq (%r15,%r13,8), %rdx
movq -0x38(%rbp), %rdi
leaq 0xee12(%rip), %rsi      # 0x1475b
xorl %eax, %eax
callq 0x1170
pushq $0x1
popq %rax
movq -0x60(%rbp), %rdx
cmpq %rax, -0x48(%rbp)
je 0x5972
movq (%rdx,%rax,8), %rcx
movq %r12, (%rcx,%r13,8)
movq (%rdx,%r13,8), %rcx
movq %r12, (%rcx,%rax,8)
incq %rax
jmp 0x5957
movq (%r15,%r13,8), %rax
movb $0x0, (%rax)
incq %r13
jmp 0x58f2
incl %r14d
movl -0x4c(%rbp), %eax
movq %rax, -0x48(%rbp)
movl -0x58(%rbp), %r13d
pushq $0x1
popq %rbx
movq %r14, -0x40(%rbp)
cmpq -0x48(%rbp), %rbx
je 0x5a2c
xorl %r12d, %r12d
xorl %r14d, %r14d
cmpq %r12, %r13
je 0x59cb
movq 0x8(%r15,%r12,8), %rdi
movq -0x30(%rbp), %rax
movq (%rax,%rbx,8), %rsi
callq 0x1160
testl %eax, %eax
pushq $0x1
popq %rax
cmovel %eax, %r14d
incq %r12
jmp 0x59a6
testl %r14d, %r14d
movq -0x40(%rbp), %r14
movabsq $-0x4010000000000000, %r12 # imm = 0xBFF0000000000000
jne 0x5a24
movq -0x30(%rbp), %rax
movq (%rax,%rbx,8), %rdx
movq -0x38(%rbp), %rdi
leaq 0xed76(%rip), %rsi      # 0x14767
xorl %eax, %eax
callq 0x1170
pushq $0x1
popq %rax
movq -0x68(%rbp), %rdx
cmpq %rax, %r14
je 0x5a19
movq (%rdx,%rax,8), %rcx
movq %r12, (%rcx,%rbx,8)
movq (%rdx,%rbx,8), %rcx
movq %r12, (%rcx,%rax,8)
incq %rax
jmp 0x59ff
movq -0x30(%rbp), %rax
movq (%rax,%rbx,8), %rax
movb $0x0, (%rax)
incq %rbx
jmp 0x5996
movq -0x38(%rbp), %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1080
leaq 0xecf9(%rip), %rdi      # 0x14743
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rdi
callq 0x1100