// File: /workspace/github_cpp_makefile_star2_O3/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, %ebx
movl %r8d, %r14d
movq %rcx, -0x50(%rbp)
movq %rdx, %r12
movq %rsi, -0x70(%rbp)
movq %rdi, -0x68(%rbp)
movq 0x10(%rbp), %r13
leaq 0xf53e(%rip), %rsi      # 0x15740
movq %r13, %rdi
callq 0x10e0
testq %rax, %rax
je 0x63d7
leaq 0xf537(%rip), %rdi      # 0x15751
movl $0x1, %r15d
movl $0x9, %esi
movl $0x1, %edx
movq %rax, -0x40(%rbp)
movq %rax, %rcx
callq 0x11f0
movq %r14, -0x30(%rbp)
testl %r14d, %r14d
movq -0x50(%rbp), %r13
movq %r12, -0x58(%rbp)
jle 0x62fd
leal 0x1(%rbx), %eax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
leal 0x1(%rax), %r14d
movq %rbx, -0x38(%rbp)
movq %r14, -0x60(%rbp)
testl %ebx, %ebx
jle 0x62a9
movq %r13, %r14
movq (%r12,%r15,8), %r13
xorl %r12d, %r12d
movl $0x1, %ebx
movq (%r14,%rbx,8), %rsi
movq %r13, %rdi
callq 0x1170
testl %eax, %eax
movl $0x1, %eax
cmovel %eax, %r12d
incq %rbx
cmpq %rbx, -0x48(%rbp)
jne 0x6275
testl %r12d, %r12d
movq -0x38(%rbp), %rbx
movq %r14, %r13
movq -0x58(%rbp), %r12
movq -0x60(%rbp), %r14
jne 0x62f1
movq (%r12,%r15,8), %rdx
movq -0x40(%rbp), %rdi
leaq 0xf4a3(%rip), %rsi      # 0x1575b
xorl %eax, %eax
callq 0x1180
movabsq $-0x4010000000000000, %rsi # imm = 0xBFF0000000000000
movq -0x68(%rbp), %rdi
movq (%rdi,%r15,8), %rax
movl $0x1, %ecx
movq (%rdi,%rcx,8), %rdx
movq %rsi, (%rdx,%r15,8)
movq %rsi, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r14
jne 0x62d6
movq (%r12,%r15,8), %rax
movb $0x0, (%rax)
incq %r15
cmpq %r14, %r15
jne 0x6262
testl %ebx, %ebx
movq -0x30(%rbp), %r14
movq -0x40(%rbp), %r15
jle 0x63c1
leal 0x1(%r14), %eax
movq %rax, -0x48(%rbp)
incl %ebx
movl $0x1, %r12d
movq %rbx, -0x38(%rbp)
testl %r14d, %r14d
jle 0x636c
movq (%r13,%r12,8), %r13
xorl %r14d, %r14d
movl $0x1, %ebx
movq -0x58(%rbp), %r15
movq (%r15,%rbx,8), %rdi
movq %r13, %rsi
callq 0x1170
testl %eax, %eax
movl $0x1, %eax
cmovel %eax, %r14d
incq %rbx
cmpq %rbx, -0x48(%rbp)
jne 0x6337
testl %r14d, %r14d
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r14
movq -0x50(%rbp), %r13
movq -0x40(%rbp), %r15
jne 0x63b5
movq (%r13,%r12,8), %rdx
movq %r15, %rdi
leaq 0xf3ec(%rip), %rsi      # 0x15767
xorl %eax, %eax
callq 0x1180
movabsq $-0x4010000000000000, %rdi # imm = 0xBFF0000000000000
movq -0x70(%rbp), %rsi
movq (%rsi,%r12,8), %rax
movl $0x1, %ecx
movq (%rsi,%rcx,8), %rdx
movq %rdi, (%rdx,%r12,8)
movq %rdi, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %rbx
jne 0x6399
movq (%r13,%r12,8), %rax
movb $0x0, (%rax)
incq %r12
cmpq %rbx, %r12
jne 0x6321
movq %r15, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10a0
leaq 0xf365(%rip), %rdi      # 0x15743
movq %r13, %rsi
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1110