LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/logistic.c
// Function: VectorConcat
HVector* VectorConcat(HVector* F,HVector* S,int dif){
	int size=(F->count)+(S->count),c=0;
	size+=(size*0.3);
	HVector* C=CreateHVector(size);

	int fr,se;
	fr=F->sum;
	se=S->sum;
	if(fr>se){//Eelgxo pio ap ta dio vectors tha mpei proto
		c=0;
		for(int i=0 ; i<F->size ; i++){	//Isago tis leksis tou protou vector
			if(F[i].key!=-1){
				c++;
				C=InsertHVector(C,F[i].key,F[i].value);
			}
			if(c==F->count) break;
		}
		c=0;
		for(int i=0 ; i<S->size ; i++){	//Isago tis leksis tou defterou vectour me afksimeno to key kata dif
			if(S[i].key!=-1){
				c++;
				C=InsertHVector(C,(S[i].key)+dif,S[i].value);
			}
			if(c==S->count) break;
		}

	}else{
		c=0;
		for(int i=0 ; i<S->size ; i++){
			if(S[i].key!=-1){
				c++;
				C=InsertHVector(C,S[i].key,S[i].value);
			}
			if(c==S->count) break;
		}
		c=0;
		for(int i=0 ; i<F->size ; i++){
			if(F[i].key!=-1){
				c++;
				C=InsertHVector(C,(F[i].key)+dif,F[i].value);
			}
			if(c==F->count) break;
		}
	}
	return C;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movl 0x18(%rsi), %eax
addl 0x18(%rdi), %eax
movl %edx, %ebx
cvtsi2sd %eax, %xmm0
movsd 0x42c2(%rip), %xmm1     # 0x6208
mulsd %xmm0, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %edi
callq 0x3f4c
cvttsd2si 0x10(%r15), %ecx
cvttsd2si 0x10(%r14), %edx
cmpl %edx, %ecx
movl %ebx, -0x2c(%rbp)
jle 0x2000
cmpl $0x0, 0x1c(%r15)
jle 0x1fae
leaq 0x8(%r15), %r12
xorl %r13d, %r13d
xorl %ebx, %ebx
movl -0x8(%r12), %esi
cmpl $-0x1, %esi
je 0x1f98
incl %ebx
movsd (%r12), %xmm0
movq %rax, %rdi
callq 0x3fa2
cmpl 0x18(%r15), %ebx
je 0x1fae
incq %r13
movslq 0x1c(%r15), %rcx
addq $0x20, %r12
cmpq %rcx, %r13
jl 0x1f7e
cmpl $0x0, 0x1c(%r14)
jle 0x2085
leaq 0x8(%r14), %r15
xorl %r12d, %r12d
xorl %r13d, %r13d
movl -0x2c(%rbp), %ebx
movl -0x8(%r15), %esi
cmpl $-0x1, %esi
je 0x1fe1
incl %r13d
addl %ebx, %esi
movsd (%r15), %xmm0
movq %rax, %rdi
callq 0x3fa2
cmpl 0x18(%r14), %r13d
je 0x2085
incq %r12
movslq 0x1c(%r14), %rcx
addq $0x20, %r15
cmpq %rcx, %r12
jl 0x1fc6
jmp 0x2085
cmpl $0x0, 0x1c(%r14)
jle 0x2040
leaq 0x8(%r14), %r12
xorl %r13d, %r13d
xorl %ebx, %ebx
movl -0x8(%r12), %esi
cmpl $-0x1, %esi
je 0x202a
incl %ebx
movsd (%r12), %xmm0
movq %rax, %rdi
callq 0x3fa2
cmpl 0x18(%r14), %ebx
je 0x2040
incq %r13
movslq 0x1c(%r14), %rcx
addq $0x20, %r12
cmpq %rcx, %r13
jl 0x2010
cmpl $0x0, 0x1c(%r15)
jle 0x2085
leaq 0x8(%r15), %r14
xorl %r12d, %r12d
xorl %r13d, %r13d
movl -0x2c(%rbp), %ebx
movl -0x8(%r14), %esi
cmpl $-0x1, %esi
je 0x206f
incl %r13d
addl %ebx, %esi
movsd (%r14), %xmm0
movq %rax, %rdi
callq 0x3fa2
cmpl 0x18(%r15), %r13d
je 0x2085
incq %r12
movslq 0x1c(%r15), %rcx
addq $0x20, %r14
cmpq %rcx, %r12
jl 0x2054
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/logistic.c
// Function: FreeInput
void FreeInput(Input* input)
{
	free(input->matches);
	for(int i =0; i<input->size; i++)
	{
		FreeHVector(input->Cons[i]);
	}
	free(input->Cons);
	free(input);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x1030
cmpl $0x0, 0x10(%rbx)
jle 0x20e5
xorl %r14d, %r14d
movq (%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x39b5
incq %r14
movslq 0x10(%rbx), %rax
cmpq %rax, %r14
jl 0x20cd
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/logistic.c
// Function: JobTraining
void JobTraining(void *args){

	TrainStruct* arg=(TrainStruct*)args;
	int i,j,c;
	double k,p,result;
	HVector* Con;
	for( i=arg->start ; i<arg->end ; i++){
			Con=arg->input->Cons[i];
    	p=Predict(&(arg->w),&(arg->b),Con);	//Ipologizoume thn provlepsh tou modelou
    	k=p-(arg->input->matches[i]);	//Ipologizoume thn apoklhsh ths provlepshs
			c=0;
    	for( j=0 ;  j<Con->size ; j++){	//Gia kathe varos
				if(Con[j].key!=-1){
					c++;
					result=k*Con[j].value;	//Ipologizoume to ginomeno ths apoklishs epi thn timh tou concat se afthn thn diastash
					arg->w[Con[j].key]=arg->w[Con[j].key]-(0.6*result);
					arg->b = (double)((arg->b) +k)/(double)2;	//enimeronoume to b
				}
				if(c==Con->count) break;
    	}
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq (%rdi), %r13
cmpl 0x4(%rdi), %r13d
jge 0x26e0
movq %rdi, %rbx
leaq 0x10(%rdi), %r14
leaq 0x8(%rdi), %r15
movq 0x18(%rdi), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x2911
xorpd 0x3c18(%rip), %xmm0     # 0x6240
callq 0x12a0
movsd 0x3beb(%rip), %xmm3     # 0x6220
movsd 0x3bdb(%rip), %xmm2     # 0x6218
movq 0x18(%rbx), %rax
movslq 0x1c(%r12), %rcx
testq %rcx, %rcx
jle 0x26d0
movsd 0x3bb9(%rip), %xmm1     # 0x6210
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movq 0x8(%rax), %rdx
xorps %xmm0, %xmm0
cvtsi2sdl (%rdx,%r13,4), %xmm0
subsd %xmm0, %xmm1
movl 0x18(%r12), %edx
addq $0x8, %r12
xorl %esi, %esi
movl $0x1, %edi
movslq -0x8(%r12), %r8
cmpq $-0x1, %r8
je 0x26bc
incl %esi
movsd (%r12), %xmm0
mulsd %xmm1, %xmm0
movq (%r14), %r9
mulsd %xmm2, %xmm0
addsd (%r9,%r8,8), %xmm0
movsd %xmm0, (%r9,%r8,8)
movsd (%r15), %xmm0
addsd %xmm1, %xmm0
mulsd %xmm3, %xmm0
movsd %xmm0, (%r15)
cmpl %edx, %esi
je 0x26d0
addq $0x20, %r12
leaq 0x1(%rdi), %r8
cmpq %rcx, %rdi
movq %r8, %rdi
jb 0x2680
incq %r13
movslq 0x4(%rbx), %rcx
cmpq %rcx, %r13
jl 0x260b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/logistic.c
// Function: Fx
double Fx(double** w,double* b,HVector* con){
  double wx,sum=*(b);
	double* W=*w;
	int c=0;
  for(int i=0; i<con->size ; i++){	//Ipologismos tou f(X)
		if(con[i].key!=-1){
			c++;
			wx=W[con[i].key]*(con[i].value);
			sum+=wx;
		}
		if(c==con->count) break;
	}
  return sum;
}

// Assembly:
movsd (%rsi), %xmm0
movslq 0x1c(%rdx), %rax
testq %rax, %rax
jle 0x2964
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movl 0x18(%rdx), %esi
shlq $0x5, %rax
addq $-0x20, %rax
xorl %edi, %edi
xorl %r8d, %r8d
movslq (%rdx,%rdi), %r9
cmpq $-0x1, %r9
je 0x2952
incl %r8d
movsd (%rcx,%r9,8), %xmm1
mulsd 0x8(%rdx,%rdi), %xmm1
addsd %xmm1, %xmm0
cmpl %esi, %r8d
je 0x2963
leaq 0x20(%rdi), %r9
cmpq %rdi, %rax
movq %r9, %rdi
jne 0x2935
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/logistic.c
// Function: Newpred
double Newpred(double* w,double b,HVector* F,HVector* S,int dif){//Vriskei to predict xwris na ginei to concat

	int fr,se,c;
	double wx,sum=b;

	fr=F->sum;
	se=S->sum;
	if(fr>se){//Eelgxo pio ap ta dio vectors tha mpei proto
		c=0;
		for(int i=0 ; i<F->size ; i++){	//Isago tis leksis tou protou vector
			if(F[i].key!=-1){
				c++;
				wx=w[F[i].key]*(F[i].value);
				sum+=wx;
			}
			if(c==F->count) break;
		}
		c=0;
		for(int i=0 ; i<S->size ; i++){	//Isago tis leksis tou defterou vectour me afksimeno to key kata dif
			if(S[i].key!=-1){
				c++;
				wx=w[(S[i].key)+dif]*(S[i].value);
				sum+=wx;
			}
			if(c==S->count) break;
		}
	}else{
		c=0;
		for(int i=0 ; i<S->size ; i++){
			if(S[i].key!=-1){
				c++;
				wx=w[(S[i].key)]*(S[i].value);
				sum+=wx;
			}
			if(c==S->count) break;
		}
		c=0;
		for(int i=0 ; i<F->size ; i++){
			if(F[i].key!=-1){
				c++;
				wx=w[(F[i].key)+dif]*(F[i].value);
				sum+=wx;
			}
			if(c==F->count) break;
		}
	}
	sum=1 / (1 + exp(-(sum)));	//ipologizoume to p(f(x))
	return sum;
}

// Assembly:
cvttsd2si 0x10(%rsi), %eax
cvttsd2si 0x10(%rdx), %r8d
cmpl %r8d, %eax
jle 0x2a1f
movslq 0x1c(%rsi), %rax
testq %rax, %rax
jle 0x29c3
movl 0x18(%rsi), %r8d
shlq $0x5, %rax
addq $-0x20, %rax
xorl %r9d, %r9d
xorl %r10d, %r10d
movslq (%rsi,%r9), %r11
cmpq $-0x1, %r11
je 0x29b2
incl %r10d
movsd (%rdi,%r11,8), %xmm1
mulsd 0x8(%rsi,%r9), %xmm1
addsd %xmm1, %xmm0
cmpl %r8d, %r10d
je 0x29c3
leaq 0x20(%r9), %r11
cmpq %r9, %rax
movq %r11, %r9
jne 0x2994
movslq 0x1c(%rdx), %rax
testq %rax, %rax
jle 0x2ab8
movl 0x18(%rdx), %esi
shlq $0x5, %rax
addq $-0x20, %rax
xorl %r8d, %r8d
xorl %r9d, %r9d
movl (%rdx,%r8), %r10d
cmpl $-0x1, %r10d
je 0x2a05
incl %r9d
addl %ecx, %r10d
movslq %r10d, %r10
movsd (%rdi,%r10,8), %xmm1
mulsd 0x8(%rdx,%r8), %xmm1
addsd %xmm1, %xmm0
cmpl %esi, %r9d
je 0x2ab8
leaq 0x20(%r8), %r10
cmpq %r8, %rax
movq %r10, %r8
jne 0x29e1
jmp 0x2ab8
movslq 0x1c(%rdx), %rax
testq %rax, %rax
jle 0x2a69
movl 0x18(%rdx), %r8d
shlq $0x5, %rax
addq $-0x20, %rax
xorl %r9d, %r9d
xorl %r10d, %r10d
movslq (%rdx,%r9), %r11
cmpq $-0x1, %r11
je 0x2a58
incl %r10d
movsd (%rdi,%r11,8), %xmm1
mulsd 0x8(%rdx,%r9), %xmm1
addsd %xmm1, %xmm0
cmpl %r8d, %r10d
je 0x2a69
leaq 0x20(%r9), %r11
cmpq %r9, %rax
movq %r11, %r9
jne 0x2a3a
movslq 0x1c(%rsi), %rax
testq %rax, %rax
jle 0x2ab8
movl 0x18(%rsi), %edx
shlq $0x5, %rax
addq $-0x20, %rax
xorl %r8d, %r8d
xorl %r9d, %r9d
movl (%rsi,%r8), %r10d
cmpl $-0x1, %r10d
je 0x2aa7
incl %r9d
addl %ecx, %r10d
movslq %r10d, %r10
movsd (%rdi,%r10,8), %xmm1
mulsd 0x8(%rsi,%r8), %xmm1
addsd %xmm1, %xmm0
cmpl %edx, %r9d
je 0x2ab8
leaq 0x20(%r8), %r10
cmpq %r8, %rax
movq %r10, %r8
jne 0x2a83
pushq %rbp
movq %rsp, %rbp
xorpd 0x377c(%rip), %xmm0     # 0x6240
callq 0x12a0
movsd 0x373f(%rip), %xmm1     # 0x6210
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/logistic.c
// Function: MakeArrays
void MakeArrays(Hash* H,int* s,NList*** nodes){ //Dimiourgo ena pinaka me NList nodes twn kamerwn pou den einai mesa se kapia klika
	NList* N;
	int sum=0;
	for(int i=0 ; i<H->size ; i++){
		N=(NList*)H[i].Head;
    while(N->Next!=NULL){
      N=N->Next;
			if(N->clique==NULL){
      	sum++;
			}
    }
	}

	NList** nl=malloc(sum*sizeof(NList*));
	sum=0;
	for(int i=0 ; i<H->size ; i++){
		N=(NList*)H[i].Head;
    while(N->Next!=NULL){
      N=N->Next;
			if(N->clique==NULL){
				nl[sum]=N;
      	sum++;
			}
    }
	}
	*s=sum;
	*nodes=nl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movslq (%rdi), %r12
testq %r12, %r12
jle 0x2dc2
movq %rdi, %r15
xorl %eax, %eax
xorl %ecx, %ecx
movq %rax, %rdx
shlq $0x4, %rdx
movq 0x8(%r15,%rdx), %rdx
movq 0x20(%rdx), %rdx
testq %rdx, %rdx
je 0x2d72
cmpq $0x1, 0x10(%rdx)
movq 0x20(%rdx), %rsi
adcl $0x0, %ecx
movq %rsi, %rdx
testq %rsi, %rsi
jne 0x2d5e
incq %rax
cmpq %r12, %rax
jne 0x2d49
movslq %ecx, %rdi
shlq $0x3, %rdi
callq 0x11a0
testl %r12d, %r12d
jle 0x2dce
xorl %ecx, %ecx
xorl %r13d, %r13d
movq %rcx, %rdx
shlq $0x4, %rdx
movq 0x8(%r15,%rdx), %rdx
movq 0x20(%rdx), %rdx
testq %rdx, %rdx
je 0x2db8
cmpq $0x0, 0x10(%rdx)
jne 0x2d9c
movslq %r13d, %r13
movq %rdx, (%rax,%r13,8)
incl %r13d
jmp 0x2d9c
incq %rcx
cmpq %r12, %rcx
jne 0x2d90
jmp 0x2dd1
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x11a0
jmp 0x2dd1
xorl %r13d, %r13d
movl %r13d, (%r14)
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/logistic.c
// Function: RepetitiveTaining
Model* RepetitiveTaining(Input* input,Hash* H,JobSheduler* Sheduler){
	int size = H->Head->Next->vec_size,ep=1;
	Model* model;
	double threshold=0.1,stepvalue=0.1;
	model=ModelIinit(size);

	model->b=0;
	while (threshold < 0.35){
		model = Training(model,input,H,Sheduler);
		printf("Just finished the training for %d time\n",ep);
		TestAndAdd(H,model,Sheduler,&input,threshold);
		threshold+=stepvalue;
		ep++;
	}
	return model;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq -0x38(%rbp), %rax
movq %rdi, (%rax)
movq 0x8(%rsi), %rax
movq 0x20(%rax), %rax
movslq 0x28(%rax), %r12
movl $0x18, %edi
callq 0x11a0
movq %rax, %r13
leal (%r12,%r12), %eax
movl %eax, 0x10(%r13)
shlq $0x4, %r12
movl $0x1, %edi
movq %r12, %rsi
callq 0x1130
movq %rax, (%r13)
movq $0x0, 0x8(%r13)
movsd 0x3202(%rip), %xmm0     # 0x6230
movl $0x1, %r12d
movsd %xmm0, -0x30(%rbp)
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x22f3
leaq 0x3219(%rip), %rdi      # 0x6267
movl %r12d, %esi
xorl %eax, %eax
callq 0x10d0
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
leaq -0x38(%rbp), %rcx
movsd -0x30(%rbp), %xmm0
callq 0x2adf
movsd -0x30(%rbp), %xmm0
addsd 0x31b4(%rip), %xmm0     # 0x6230
movsd %xmm0, -0x30(%rbp)
incl %r12d
cmpl $0x4, %r12d
jne 0x3039
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: TransferCList
void TransferCList(CList* L,FILE* csvfile){	//Eisagi  ta proionta sto csv file
  CList* N;
  char* current;
  while(L->Next!=NULL){
    L=L->Next;
    N=L;
    current=malloc(sizeof(char)*(strlen(L->name)+1));//apothikefsi tou trexon komvou
    strcpy(current,L->name);
    while(N->Next!=NULL){	//Eisagogi tou trexon komvou mazi me ton kathe ena ap tous epomenous
      N=N->Next;
      fprintf(csvfile,"%s, %s\n",current,N->name);

    }
    free(current);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rdi), %r13
testq %r13, %r13
je 0x319a
movq %rsi, %rbx
leaq 0x316e(%rip), %r14      # 0x62b0
movq (%r13), %r12
movq %r12, %rdi
callq 0x10c0
leaq 0x1(%rax), %rdi
callq 0x11a0
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x1060
movq 0x18(%r13), %r12
testq %r12, %r12
je 0x3189
movq (%r12), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1160
movq 0x18(%r12), %r12
jmp 0x3169
movq %r15, %rdi
callq 0x1030
movq 0x18(%r13), %r13
testq %r13, %r13
jne 0x3142
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: DiffCList
void DiffCList(CList* L,TList* Transfered,FILE* csvfile){	//Eisagi  ta proionta sto csv file
  TList* N;
	TList* C;
	CList* T;
  char* current;
	int i=0;
	if(L->Diffrend!=NULL){//Ean yparxoun klikes pou diaferoun me thn L
			C=L->Diffrend;	//Krataw thn TList me oles tis klikes pou diaferoun me thn L
			while(L->Next!=NULL){ //Gia kathe proion ths L
				L=L->Next;
				current=malloc(sizeof(char)*(strlen(L->name)+1));//apothikefsi tou trexon komvou
		    strcpy(current,L->name);
				N=C;
				while(N->Next!=NULL){ //Gia kathe lista pou diaferei
					N=N->Next;
					T=N->node;

					if(FindTList(Transfered,T)){ //Ean den exw elegksei thn T pio prin
						while(T->Next!=NULL){ //Gia kathe proion ths T klikas
							T=T->Next;
							fprintf(csvfile,"%s, %s\n",current,T->name);
							i++;
						}
					}

				}
				free(current);
			}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, -0x30(%rbp)
movq 0x10(%rdi), %rax
movq %rax, -0x38(%rbp)
testq %rax, %rax
je 0x3277
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x3277
movq %rdx, %rbx
leaq 0x30ca(%rip), %r15      # 0x62b0
movq %rax, -0x40(%rbp)
movq (%rax), %r13
movq %r13, %rdi
callq 0x10c0
leaq 0x1(%rax), %rdi
callq 0x11a0
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x1060
movq -0x38(%rbp), %rax
movq 0x8(%rax), %r13
testq %r13, %r13
je 0x325e
movq (%r13), %rax
cmpq $0x0, -0x30(%rbp)
je 0x323c
movq -0x30(%rbp), %rcx
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
je 0x323c
cmpq %rax, (%rcx)
jne 0x3228
movq 0x8(%r13), %r13
jmp 0x3214
movq 0x18(%rax), %r14
testq %r14, %r14
je 0x3236
movq (%r14), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1160
movq 0x18(%r14), %r14
jmp 0x3240
movq %r12, %rdi
callq 0x1030
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
jne 0x31e6
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: FindTList
int FindTList(TList* L,CList* node){//Epistrefei 0 an iparxi to node sthn lista allios epistrefei 1
	if(L==NULL) return 1;
	while(L->Next!=NULL){
		L=L->Next;
		if(L->node==node) return 0;
	}
	return 1;
}

// Assembly:
movl $0x1, %eax
testq %rdi, %rdi
je 0x32a5
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x32a4
cmpq %rsi, (%rdi)
jne 0x3294
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: Diff
void Diff(CList* F,CList* S){
	if(F->Diffrend==NULL){	//Ean h Diffrend ths F einai NULL dimiourgisethn kai vale mesa thn S
		F->Diffrend=CreateTList();
		InsertTList(F->Diffrend,S);
	}else{ //Allios an h S den einai mesa sthn Diffrend ths F vale thn mesa
		if(FindTList(F->Diffrend,S)) InsertTList(F->Diffrend,S);
	}

	if(S->Diffrend==NULL){//Ean h Diffrend ths S einai NULL dimiourgisethn kai vale mesa thn F
		S->Diffrend=CreateTList();
		InsertTList(S->Diffrend,F);
	}else{//Allios an h F den einai mesa sthn Diffrend ths S vale thn mesa
		if(FindTList(S->Diffrend,F)) InsertTList(S->Diffrend,F);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdi), %r15
testq %r15, %r15
je 0x32d2
movq %r15, %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x32ff
cmpq %r14, (%rax)
jne 0x32c2
jmp 0x3318
movl $0x1, %edi
movl $0x10, %esi
callq 0x1130
movq %rax, %r15
movq %rax, 0x10(%rbx)
movl $0x10, %edi
callq 0x11a0
movq %r14, (%rax)
movq $0x0, 0x8(%rax)
jmp 0x3314
movl $0x10, %edi
callq 0x11a0
movq %r14, (%rax)
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r15)
movq 0x10(%r14), %r15
testq %r15, %r15
je 0x3334
movq %r15, %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x3361
cmpq %rbx, (%rax)
jne 0x3324
jmp 0x337a
movl $0x1, %edi
movl $0x10, %esi
callq 0x1130
movq %rax, %r15
movq %rax, 0x10(%r14)
movl $0x10, %edi
callq 0x11a0
movq %rbx, (%rax)
movq $0x0, 0x8(%rax)
jmp 0x3376
movl $0x10, %edi
callq 0x11a0
movq %rbx, (%rax)
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: AppendCList
CList* AppendCList(CList* L ,CList* N){
	CList* T=L;
	CList* Head;
	Head=N; //To head einai h kefali ths listas N

	int ncount = N->camera_count;
	L->camera_count += ncount; 	//enhmerwnoume to count

	N=N->Next; //O diktis N pleon dixnei ston porto komvo me dedomena ths listas N kai oxi stin kefali ths

	if(Head->Diffrend!=NULL){ //	Oles oi klikes pou htan diaforetikes ap to head twra tha einai diaforetikes me thn L
		TList* Temp=Head->Diffrend;
		while(Temp->Next!=NULL){	//Gia kathe klika diaforetikh ths Head
			Temp=Temp->Next;
			if(L->Diffrend==NULL) L->Diffrend=CreateTList();	//Ean h L den exei Diffrend List dimiourgei
			if(FindTList(L->Diffrend,Temp->node)){	//Ean h paron CList pou einai diaforetikh me thn Head den einai diaforetikh ths L
				InsertTList(L->Diffrend,Temp->node);	//Vale thn stis diaforetikes ths L
				ReplaceTList(Temp->node->Diffrend,Head,L);	//Sthn Diffrend list ths parousas CList antikatestise thn Head me thn L
			}else{	//Ean h paron CList pou einai diaforetikh me thn Head einai diaforetikh ths L diegrapse apo thn Diffrend ths thn  Head
				RemoveTList(Temp->node->Diffrend,Head);
			}
		}
		FreeTList(Head->Diffrend);
	}

	Head->Next=NULL;
	free(Head);	//Apodesmevo thn kefali ths listas N
	while(L->Next!=NULL){//Pigene ston telefteo komvo ths listas L
		L=L->Next;
	}
	L->Next=N;//Valethn lista N sto telos ths listas L
	while(L->Next!=NULL){//O diktis tou komvou pou einai apothikevmeno to kathe neo product na deixnei se afthn thn klika(diladi thn lista L)
		L=L->Next;
		L->Head->clique=T;
	}
	return T;//Epestrepse thn L
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x20(%rsi), %eax
addl %eax, 0x20(%rdi)
movq 0x10(%rsi), %rdi
movq 0x18(%rsi), %r12
testq %rdi, %rdi
je 0x3494
movq 0x8(%rdi), %r13
testq %r13, %r13
je 0x348f
movq %rbx, -0x30(%rbp)
movq 0x10(%rbx), %r15
testq %r15, %r15
jne 0x340b
movl $0x1, %edi
movl $0x10, %esi
callq 0x1130
movq %rax, %r15
movq %rax, 0x10(%rbx)
movq (%r13), %rbx
movq %r15, %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x3448
cmpq %rbx, (%rax)
jne 0x3412
movq 0x10(%rbx), %rdi
movq -0x30(%rbp), %rbx
movq %rdi, %rax
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x347e
cmpq %r14, (%rdi)
jne 0x3428
movq 0x8(%rdi), %rcx
movq %rcx, 0x8(%rax)
callq 0x1030
jmp 0x347e
movl $0x10, %edi
callq 0x11a0
movq %rbx, (%rax)
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r15)
movq (%r13), %rax
movq 0x10(%rax), %rax
movq -0x30(%rbp), %rbx
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x347e
cmpq %r14, (%rax)
jne 0x346d
movq %rbx, (%rax)
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0x33ec
movq 0x10(%r14), %rdi
callq 0x3512
movq %r14, %rdi
callq 0x1030
movq %rbx, %rcx
movq %rcx, %rax
movq 0x18(%rcx), %rcx
testq %rcx, %rcx
jne 0x349f
movq %r12, 0x18(%rax)
testq %r12, %r12
je 0x34c4
movq 0x8(%r12), %rax
movq %rbx, 0x10(%rax)
movq 0x18(%r12), %r12
jmp 0x34af
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: ReplaceTList
void ReplaceTList(TList* T,CList* P,CList* N){	//Antikathista mia CList sthn TList
	while(T->Next!=NULL){
		T=T->Next;
		if(T->node==P){
			T->node=N;
			break;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x34eb
cmpq %rsi, (%rdi)
jne 0x34da
movq %rdx, (%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: RemoveTList
void RemoveTList(TList* L,CList* C){	//Diagrafi mias CList apo thn TList
	TList* T;
	while(L->Next!=NULL){
		if(L->Next->node==C){
			T=L->Next;
			L->Next=T->Next;
			T->node=NULL;
			free(T);
			break;
		}
		L=L->Next;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3510
cmpq %rsi, (%rdi)
jne 0x34f1
movq 0x8(%rdi), %rcx
movq %rcx, 0x8(%rax)
popq %rbp
jmp 0x1030
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: FreeTList
void FreeTList(TList* L){//Apodesmevi thn TList
  TList* T;
  while(L->Next!=NULL){
    T=L->Next;
    L->Next=T->Next;
    T->node=NULL;
    free(T);
  }
  free(L);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3537
movq 0x8(%rdi), %rax
movq %rax, 0x8(%rbx)
callq 0x1030
movq 0x8(%rbx), %rdi
jmp 0x351f
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: FreeCList
void FreeCList(CList* L){//Apodesmevi thn CList
  CList* T;
	if(L->Diffrend!=NULL){
		FreeTList(L->Diffrend);
		L->Diffrend=NULL;
	}
  while(L->Next!=NULL){
    T=L->Next;
    L->Next=T->Next;
    free(T->name);
    free(T);
  }
	free(L->name);
  free(L);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x357f
callq 0x3512
movq $0x0, 0x10(%rbx)
jmp 0x357f
movq 0x18(%r14), %rax
movq %rax, 0x18(%rbx)
movq (%r14), %rdi
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq 0x18(%rbx), %r14
testq %r14, %r14
jne 0x3567
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: SearchDiffList
int SearchDiffList(CList* C,CList* S){
	if(C==NULL || S==NULL) return 0;
	if(C==S) return 1;
	int ret;
	ret=FindTList(C->Diffrend,S);
	if(ret) return 0;
	return 1;
}

// Assembly:
testq %rdi, %rdi
sete %cl
testq %rsi, %rsi
sete %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x35da
cmpq %rsi, %rdi
je 0x35d5
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x35da
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
je 0x35d3
cmpq %rsi, (%rcx)
jne 0x35c0
movl $0x1, %eax
popq %rbp
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: Print_Camera_Count_TList
void Print_Camera_Count_TList(TList* T)
{
	int i = 1;
	TList* tptr = T->Next;
	while(tptr != NULL)
	{
		printf("list %d has %d cameras\n", i, tptr->node->camera_count);
		tptr = tptr->Next;
		i++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x3641
movl $0x1, %ebx
leaq 0x2c94(%rip), %r14      # 0x62b8
movq (%r15), %rax
movl 0x20(%rax), %edx
movq %r14, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq 0x10d0
incl %ebx
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0x3624
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: FreeeTList
void FreeeTList(TList* L){  //Apodesmevi thn TList kai tis CList pou exei os dedomena
	TList* T;
	while(L->Next!=NULL){
    T=L->Next;
    L->Next=T->Next;
    FreeCList(T->node);
    free(T);
  }
  free(L);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x367d
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
movq (%r14), %rdi
callq 0x3545
movq %r14, %rdi
callq 0x1030
movq 0x8(%rbx), %r14
jmp 0x365a
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: ConectNList
CList* ConectNList(NList* L,char* product,CList* clique){//Eisagei ena neo product sthn arxh ths CList
	while(L->Next!=NULL){	//Vrisko ton komvo ston opio einai apothikevmeno to product
		L=L->Next;
		if(!strcmp(L->camera,product)){
				break;
		}
	}

	if(L->clique==NULL){	//Ean den einai to product idi se kapia klika

		if(clique==NULL){	//Ean den exei dwthei kapia klika wste na mpei ekei to product
			L->clique=CreateCList();	//Dimiourgise mia nea klika
			InsertCList(L->clique,product,L);	//Vale to product sthn nea klika
		}else{	//Ean exei dothei mia klika sthn opia prepei na valw afto kai tous komvous ths klikas tou
			L->clique=clique;	//O komvos pou einai apothikevmeno to product dixnei sthn klika pou dothike
			InsertCList(L->clique,product,L);	//vale to product sthn klika pou dothike
		}

	}else{	//Ean to product einai idi se kapia klika

		if(clique!=NULL){ //Ean exei dwthei kapia klika wste na mpei ekei to product
			if(L->clique!=clique){	//ean oi dio klikes den einai idies
					L->clique=AppendCList(clique,L->clique);	//sigxonevw tis dio klikes
			}
		}

	}
		return L->clique; //Epistrefo thn klika sthn opia evala to product
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %r12, %rbx
movq 0x20(%r12), %r12
testq %r12, %r12
je 0x3725
movq (%r12), %rdi
movq %r15, %rsi
callq 0x1140
movq %r12, %rbx
testl %eax, %eax
jne 0x3705
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x3746
testq %r14, %r14
je 0x3785
cmpq %r14, %rsi
je 0x3785
movq %r14, %rdi
callq 0x33b0
movq %r14, 0x10(%rbx)
jmp 0x3785
testq %r14, %r14
je 0x3754
movq %r14, 0x10(%rbx)
movq %r14, %rdi
jmp 0x377a
movl $0x28, %edi
callq 0x11a0
movq $0x0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movl $0x0, 0x20(%rax)
movq %rax, 0x10(%rbx)
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x30c1
movq 0x10(%rbx), %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: PrintNList
void PrintNList(NList* L){//Ektiponei thn NList
	printf("[");
  while(L->Next!=NULL){
    L=L->Next;
		printf(" %s ",L->camera );
	}
	printf("]\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x5b, %edi
callq 0x1040
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x37cc
leaq 0x2b1a(%rip), %rbx      # 0x62d0
movq (%r14), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10d0
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x37b6
leaq 0x2b17(%rip), %rdi      # 0x62ea
popq %rbx
popq %r14
popq %rbp
jmp 0x1080
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: TransferNList
void TransferNList(NList* L,TList* Transfered,FILE* csvfile){	//Metaferi ta dedomena  ths NList
  while(L->Next!=NULL){
    L=L->Next;
		if(L->clique!=NULL){
				if(FindTList(Transfered,L->clique)){//Ean h klika pou dixnei o komvos L den exei metaferthi
						TransferCList(L->clique,csvfile);
						InsertTList(Transfered,L->clique);//Vale thn klika pou dixnei o komvos L se aftes pou exoun metaferthei
				}
  		}
		}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x20(%rdi), %r15
testq %r15, %r15
je 0x3845
movq %rdx, %rbx
movq %rsi, %r14
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x383c
testq %r14, %r14
je 0x3817
movq %r14, %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x3817
cmpq %rdi, (%rax)
jne 0x3807
jmp 0x383c
movq %rbx, %rsi
callq 0x3121
movq 0x10(%r15), %r12
movl $0x10, %edi
callq 0x11a0
movq %r12, (%rax)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r14)
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x37f6
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: DiffNList
void DiffNList(NList* L,TList* Transfered,FILE* csvfile){	//Metaferi ta dedomena  ths NList
  while(L->Next!=NULL){
    L=L->Next;
		if(L->clique!=NULL){
				if(FindTList(Transfered,L->clique)){//Ean h klika pou dixnei o komvos L den exei metaferthi
						DiffCList(L->clique,Transfered,csvfile);
						InsertTList(Transfered,L->clique);//Vale thn klika pou dixnei o komvos L se aftes pou exoun metaferthei
				}
  	}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x20(%rdi), %r15
testq %r15, %r15
je 0x38ba
movq %rdx, %rbx
movq %rsi, %r14
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x38b1
testq %r14, %r14
je 0x3889
movq %r14, %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x3889
cmpq %rdi, (%rax)
jne 0x3879
jmp 0x38b1
movq %r14, %rsi
movq %rbx, %rdx
callq 0x31a9
movq 0x10(%r15), %r12
movl $0x10, %edi
callq 0x11a0
movq %r12, (%rax)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r14)
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x3868
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: FreeNList
void FreeNList(NList* L,TList* Deleted){//Apodesmevi thn NList
	NList* T;
  while(L->Next!=NULL){
    T=L->Next;
    L->Next=T->Next;
		if(T->Spear!=NULL) FreeWHash(T->Spear);
		if(T->vector!=NULL)FreeHVector(T->vector);
    if(T->camera!=NULL) free(T->camera);
		if(T->clique!=NULL){
			if(FindTList(Deleted,T->clique)){//Ean h klika pou dixnei o komvos L den exei ektipothei
				InsertTList(Deleted,T->clique);//Vale thn klika pou dixnei o komvos L stis ektipomenes
			}
		}
		free(T);
  }
  free(L);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %r15
testq %r15, %r15
je 0x3959
movq %rsi, %r14
movq 0x20(%r15), %rax
movq %rax, 0x20(%rbx)
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x38f3
callq 0x3969
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x3901
callq 0x1030
movq (%r15), %rdi
testq %rdi, %rdi
je 0x390e
callq 0x1030
movq 0x10(%r15), %r12
testq %r12, %r12
je 0x3948
testq %r14, %r14
je 0x392f
movq %r14, %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x392f
cmpq %r12, (%rax)
jne 0x391f
jmp 0x3948
movl $0x10, %edi
callq 0x11a0
movq %r12, (%rax)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r14)
movq %r15, %rdi
callq 0x1030
movq 0x20(%rbx), %r15
testq %r15, %r15
jne 0x38dd
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: FreeWHash
void FreeWHash(WHash* H){   //apodesmefsth tou Hash
  for(int i=0 ; i<H->size ; i++){
    if(H[i].word!=NULL) free(H[i].word);
  }
  free(H);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x14(%rdi), %eax
testl %eax, %eax
jle 0x39a3
leaq 0x8(%rbx), %r14
xorl %r15d, %r15d
movq (%r14), %rdi
testq %rdi, %rdi
je 0x3994
callq 0x1030
movl 0x14(%rbx), %eax
incq %r15
movslq %eax, %rcx
addq $0x18, %r14
cmpq %rcx, %r15
jl 0x3984
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: CreateWHash
WHash* CreateWHash(int size){ //Dimiourgia enos neou WHash
	WHash *H;
	H=(WHash *)malloc(sizeof(WHash)*size);
	H->size=size;
	H->count=0;
	for(int i=0 ; i< size ; i++){//gia kathe bucket tou HashTable arxikopiise ta dedomena
		H[i].word=NULL;
		H[i].tfidf=0;
	}
	return H;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
movslq %edi, %r14
leaq (,%r14,8), %rax
leaq (%rax,%rax,2), %rdi
callq 0x11a0
movl %r14d, 0x14(%rax)
movl $0x0, 0x10(%rax)
testl %r14d, %r14d
jle 0x3a08
movl %ebx, %ecx
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rdx)
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x39fb
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: InsertWHash
WHash* InsertWHash(WHash* H,char* word){	//Eisagei ena neo value stho WHash
	int index,exist=0,j=0;

  while(1){ //Evresi tou bucket pou tha paei to neo product
    if(!j){ //Sthn proth epanalipsh ipologizoume mono thn sinartish whashf
      index=whashf(word,H->size);
			j=1;
    }else{
      index++;
			if(index>=H->size) index-=H->size;
    }
    if(H[index].word==NULL){  //Ean einai adio to bucket tha isagoume se afto thn leksh
      break;
    }else if(!strcmp(H[index].word,word)){  //Ean iparxi idi tha vgoume ap thn epanalipsh
      exist=1;
      break;
    }
  }
  if(!exist){ //Ean h leksh den iparxei idi
    H->count++;
    H[index].word=strdup(word);
    H[index].tfidf=1;
    float n=(1.0*H->count)/H->size;
    if(n>=0.8){ //Ean h plirotita ftasei to 80% kanei rehash
      H=Wrehash(H);
    }
  }else{	//Ean iparxi afksise to tf kata ena
    H[index].tfidf=H[index].tfidf+1;
  }
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1(%rsi), %rax
movq %rax, -0x30(%rbp)
movb $0x1, %cl
testb $0x1, %cl
je 0x3a59
movb (%r14), %dl
testb %dl, %dl
je 0x3a73
movl $0x1505, %esi           # imm = 0x1505
movq -0x30(%rbp), %rcx
movl %esi, %eax
movsbl %dl, %edx
shll $0x5, %eax
addl %esi, %eax
addl %edx, %eax
movb (%rcx), %dl
incq %rcx
movl %eax, %esi
testb %dl, %dl
jne 0x3a42
jmp 0x3a78
incl %r13d
movl 0x14(%rbx), %r12d
cmpl %r12d, %r13d
movl %r12d, %eax
movl $0x0, %ecx
cmovll %ecx, %eax
subl %eax, %r13d
jmp 0x3a8a
movl $0x1505, %eax           # imm = 0x1505
movl 0x14(%rbx), %r12d
cltd
idivl %r12d
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x3ac4
movq %r14, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x3a2b
movsd (%r15), %xmm0
addsd 0x2753(%rip), %xmm0     # 0x6210
movsd %xmm0, (%r15)
jmp 0x3b08
movl 0x10(%rbx), %r13d
incl %r13d
movl %r13d, 0x10(%rbx)
movq %r14, %rdi
callq 0x1270
movq %rax, 0x8(%r15)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
cvtsi2sd %r13d, %xmm0
cvtsi2sd %r12d, %xmm1
movq %rax, (%r15)
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x278a(%rip), %xmm0     # 0x6290
jae 0x3b1a
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3b6c
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: whashf
int whashf(char *str,int size){ //Hash sinartisi gia strings
  int hash = 5381;
  int c;
  while ((c = *str++))
    hash = ((hash << 5) + hash) + c; /* hash * 33 + c */

  return abs(hash % size);;
}

// Assembly:
movb (%rdi), %cl
testb %cl, %cl
je 0x3b5c
pushq %rbp
movq %rsp, %rbp
incq %rdi
movl $0x1505, %edx           # imm = 0x1505
movl %edx, %eax
movsbl %cl, %ecx
shll $0x5, %eax
addl %edx, %eax
addl %ecx, %eax
movb (%rdi), %cl
incq %rdi
movl %eax, %edx
testb %cl, %cl
jne 0x3b44
popq %rbp
jmp 0x3b61
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl %esi
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: Wrehash
WHash* Wrehash(WHash* H){
  WHash*  Temp;
  int i,index,j;
  Temp=(WHash* )malloc( (H->size*2) *  sizeof(WHash) ); //Dimiourgo ena neo HasTable me thn diplasia xoritikotita
  Temp->size=H->size * 2;
  Temp->count=H->count;
  for(i=0 ; i< Temp->size ; i++){
    Temp[i].word=NULL;
    Temp[i].tfidf=0.0;
  }
  for(i=0 ; i< H->size ; i++){  //Pernaw ta dedomena tou paliou sto neo HasTable

    if(H[i].word!=NULL){  //Ean to arxiko Hash exei dedomena se afthn thn thesh
      j=0;
      while(1){ //Evresi tou bucket pou tha paei to neo product
        if(!j){ //Sthn proth epanalipsh ipologizoume mono thn sinartish hash
          index=whashf(H[i].word,Temp->size);
					j=1;
        }else{
          index++;
					if(index>=Temp->size) index-=Temp->size;
        }
        if(Temp[index].word==NULL){  //Ean einai adio to bucket tha isagoume se afto thn camera
          break;
        }
      }
			//Antigrafi twn dedomenwn
      Temp[index].word=strdup(H[i].word);
      Temp[index].tfidf=H[i].tfidf;
    }
  }
  FreeWHash(H);
  return Temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
movslq 0x14(%rdi), %rbx
leal (%rbx,%rbx), %r12d
movq %rbx, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rdi
callq 0x11a0
movq %rax, %r14
movl %r12d, 0x14(%rax)
movl 0x10(%r13), %eax
movl %eax, 0x10(%r14)
movq %rbx, -0x30(%rbp)
testq %rbx, %rbx
jle 0x3ca1
movl %r12d, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rax
xorl %ecx, %ecx
xorps %xmm0, %xmm0
movups %xmm0, (%r14,%rcx)
addq $0x18, %rcx
cmpq %rcx, %rax
jne 0x3bc4
cmpl $0x0, -0x30(%rbp)
jle 0x3ca1
xorl %r9d, %r9d
xorl %r15d, %r15d
movq %r13, -0x38(%rbp)
leaq (%r15,%r15,2), %rax
movq 0x8(%r13,%rax,8), %rdi
testq %rdi, %rdi
je 0x3c94
leaq (,%rax,8), %rax
addq %r13, %rax
movq %rax, -0x40(%rbp)
leaq 0x1(%rdi), %rcx
movb $0x1, %al
testb $0x1, %al
je 0x3c41
movb (%rdi), %sil
testb %sil, %sil
je 0x3c51
movl $0x1505, %r8d           # imm = 0x1505
movq %rcx, %rdx
movl %r8d, %eax
movsbl %sil, %esi
shll $0x5, %eax
addl %r8d, %eax
addl %esi, %eax
movb (%rdx), %sil
incq %rdx
movl %eax, %r8d
testb %sil, %sil
jne 0x3c25
jmp 0x3c56
incl %ebx
cmpl %r12d, %ebx
movl %r12d, %eax
cmovll %r9d, %eax
subl %eax, %ebx
jmp 0x3c61
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl %r12d
movl %edx, %ebx
negl %ebx
cmovsl %edx, %ebx
movslq %ebx, %rax
leaq (%rax,%rax,2), %rdx
xorl %eax, %eax
cmpq $0x0, 0x8(%r14,%rdx,8)
jne 0x3c0d
leaq (%r14,%rdx,8), %r13
callq 0x1270
xorl %r9d, %r9d
movq %rax, 0x8(%r13)
movq -0x40(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, (%r13)
movq -0x38(%rbp), %r13
incq %r15
cmpq -0x30(%rbp), %r15
jne 0x3be6
movq %r13, %rdi
callq 0x3969
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: WHashTF
WHash* WHashTF(WHash* H ){
	int count=WHashCount(H);	//Apothikevi to sinolo olwn twn leksewn ths cameras
	for(int i=0 ; i<H->size ; i++){
		if(H[i].word!=NULL){	//Gia kathe bucket pou periexei mia leksh
			H[i].tfidf=(H[i].tfidf)/count;	//Ipologizw to tf gia thn antistih leksh
		}
	}
	return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movslq 0x14(%rdi), %rdx
testq %rdx, %rdx
jle 0x3d27
movq %rdx, %rcx
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edi, %edi
xorl %esi, %esi
cmpq $0x0, 0x8(%rax,%rdi)
je 0x3cf2
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
addsd (%rax,%rdi), %xmm0
cvttsd2si %xmm0, %esi
addq $0x18, %rdi
cmpq %rdi, %rcx
jne 0x3cda
testl %edx, %edx
jle 0x3d27
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
xorl %edx, %edx
cmpq $0x0, 0x8(%rax,%rdx)
je 0x3d1e
movsd (%rax,%rdx), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rdx)
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x3d08
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: WHashCount
int WHashCount(WHash* H){	//Ipologizei to sinoliko athrisma twn leksewn mias cameras
	int count=0;
	for(int i=0 ; i<H->size ; i++){
		if(H[i].word!=NULL){
			count+=H[i].tfidf;
		}
	}
	return count;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq 0x14(%rdi), %rax
testq %rax, %rax
jle 0x3d65
shlq $0x3, %rax
leaq (%rax,%rax,2), %rcx
xorl %edx, %edx
xorl %eax, %eax
cmpq $0x0, 0x8(%rdi,%rdx)
je 0x3d5a
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
addsd (%rdi,%rdx), %xmm0
cvttsd2si %xmm0, %eax
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x3d42
jmp 0x3d67
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: WHashFind
int WHashFind(WHash* H,char* word){ //Epistrefei 1 an iparxei  leksh sto hash allios 0
	int index,exist=0,j=0;

  while(1){
    if(!j){
      index=whashf(word,H->size);
			j=1;
    }else{
      index++;
			if(index>=H->size) index-=H->size;
    }
    if(H[index].word==NULL){
      break;
    }else if(!strcmp(H[index].word,word)){
      exist=1;
      break;
    }
  }
  return exist;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1(%rsi), %r15
movb $0x1, %cl
xorl %r12d, %r12d
testb $0x1, %cl
je 0x3db2
movb (%rbx), %dl
testb %dl, %dl
je 0x3dc5
movl $0x1505, %esi           # imm = 0x1505
movq %r15, %rcx
movl %esi, %eax
movsbl %dl, %edx
shll $0x5, %eax
addl %esi, %eax
addl %edx, %eax
movb (%rcx), %dl
incq %rcx
movl %eax, %esi
testb %dl, %dl
jne 0x3d9b
jmp 0x3dca
incl %r13d
movl 0x14(%r14), %eax
cmpl %eax, %r13d
cmovll %r12d, %eax
subl %eax, %r13d
jmp 0x3dd9
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl 0x14(%r14)
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,2), %rax
movq 0x8(%r14,%rax,8), %rdi
testq %rdi, %rdi
je 0x3dff
movq %rbx, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x3d86
movl $0x1, %eax
jmp 0x3e01
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: GiveTfIdf
double GiveTfIdf(WHash* H,char* camera){ //Epistrefei thn timh tou tf an iparxei h leksh allios 0
	int index,j=0;

  while(1){
    if(!j){
      index=whashf(camera,H->size);
			j=1;
    }else{
      index++;
			if(index>=H->size) index-=H->size;
    }
    if(H[index].word==NULL){
      break;
    }else if(!strcmp(H[index].word,camera)){
      return H[index].tfidf;
      break;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1(%rsi), %r15
movb $0x1, %cl
testb $0x1, %cl
je 0x3e57
movb (%r14), %dl
testb %dl, %dl
je 0x3e6d
movl $0x1505, %esi           # imm = 0x1505
movq %r15, %rcx
movl %esi, %eax
movsbl %dl, %edx
shll $0x5, %eax
addl %esi, %eax
addl %edx, %eax
movb (%rcx), %dl
incq %rcx
movl %eax, %esi
testb %dl, %dl
jne 0x3e40
jmp 0x3e72
incl %r13d
movl 0x14(%rbx), %eax
cmpl %eax, %r13d
movl $0x0, %ecx
cmovll %ecx, %eax
subl %eax, %r13d
jmp 0x3e80
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl 0x14(%rbx)
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,2), %r12
movq 0x8(%rbx,%r12,8), %rdi
testq %rdi, %rdi
je 0x3ea9
movq %r14, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x3e2a
leaq (%rbx,%r12,8), %rax
movsd (%rax), %xmm0
jmp 0x3eac
xorps %xmm0, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: PrintWHash
void PrintWHash(WHash* H){
	int c=0;
	for(int i=0 ; i<H->size ; i++){
		if(H[i].word!=NULL){
			c++;
			printf("	%dh:%s-%f\n",c,H[i].word,H[i].tfidf);
		}
	}
}

// Assembly:
movl 0x14(%rdi), %eax
testl %eax, %eax
jle 0x3f24
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r12
xorl %r13d, %r13d
leaq 0x23f4(%rip), %r14      # 0x62d5
xorl %r15d, %r15d
movq (%r12), %rdx
testq %rdx, %rdx
je 0x3f07
incl %r15d
movsd -0x8(%r12), %xmm0
movq %r14, %rdi
movl %r15d, %esi
movb $0x1, %al
callq 0x10d0
movl 0x14(%rbx), %eax
incq %r13
movslq %eax, %rcx
addq $0x18, %r12
cmpq %rcx, %r13
jl 0x3ee4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: CreateHVector
HVector* CreateHVector(int size){ //Dimiourgia enos neou WHash
	HVector *H;
	H=(HVector *)malloc(sizeof(HVector)*size);
	H->size=size;
	H->count=0;
	H->sum=0;
	for(int i=0 ; i< size ; i++){//gia kathe bucket tou HashTable arxikopiise ta dedomena
		H[i].key=-1;
		H[i].value=0;
	}
	return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
movslq %edi, %r14
movq %r14, %rdi
shlq $0x5, %rdi
callq 0x11a0
movl %r14d, 0x1c(%rax)
movl $0x0, 0x18(%rax)
movq $0x0, 0x10(%rax)
testl %r14d, %r14d
jle 0x3f9d
movl %ebx, %ecx
shlq $0x5, %rcx
xorl %edx, %edx
movl $0xffffffff, (%rax,%rdx) # imm = 0xFFFFFFFF
movq $0x0, 0x8(%rax,%rdx)
addq $0x20, %rdx
cmpq %rdx, %rcx
jne 0x3f84
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: InsertHVector
HVector* InsertHVector(HVector* H,int key,double value){	//Eisagei ena neo value stho WHash
	int index,j=0;

  while(1){ //Evresi tou bucket pou tha paei to neo product
    if(!j){ //Sthn proth epanalipsh ipologizoume mono thn sinartish whashf
      index=HVhash(key,H->size);
			j=1;
    }else{
      index++;
			if(index>=H->size) index-=H->size;
    }
    if(H[index].key==-1){  //Ean einai adio to bucket tha isagoume se afto thn leksh
			H->count++;
			(H->sum)+=value;
			H[index].key=key;
			H[index].value=value;
      break;
    }
  }
  float n=(1.0*H->count)/H->size;
  if(n>=0.8){ //Ean h plirotita ftasei to 80% kanei rehash
      H=HVrehash(H);
  }
  return H;
}

// Assembly:
movl %esi, %eax
shll $0xd, %eax
xorl %esi, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %eax, %ecx
movl %ecx, %eax
shll $0x5, %eax
xorl %ecx, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movb $0x1, %r10b
xorl %r9d, %r9d
testb $0x1, %r10b
je 0x3fd6
movl 0x1c(%rdi), %r8d
movl %ecx, %eax
cltd
idivl %r8d
jmp 0x3fe8
incl %edx
movl 0x1c(%rdi), %r8d
cmpl %r8d, %edx
movl %r8d, %eax
cmovll %r9d, %eax
subl %eax, %edx
movslq %edx, %rax
shlq $0x5, %rax
xorl %r10d, %r10d
cmpl $-0x1, (%rdi,%rax)
jne 0x3fc4
pushq %rbp
movq %rsp, %rbp
addq %rdi, %rax
movl 0x18(%rdi), %ecx
incl %ecx
movl %ecx, 0x18(%rdi)
movsd 0x10(%rdi), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rdi)
movl %esi, (%rax)
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
cvtsi2sd %r8d, %xmm2
movsd %xmm0, 0x8(%rax)
divsd %xmm2, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x2251(%rip), %xmm0     # 0x6290
popq %rbp
jae 0x404a
movq %rdi, %rax
retq