LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: HVrehash
HVector* HVrehash(HVector* H){
  HVector*  Temp;
  int i;
  Temp=(HVector* )malloc( (H->size*1.5) *  sizeof(HVector) ); //Dimiourgo ena neo HasTable me thn diplasia xoritikotita
  Temp->size=H->size * 1.5;
  Temp->count=0;
	Temp->sum=0;
  for(i=0 ; i< Temp->size ; i++){
    Temp[i].key=-1;
    Temp[i].value=0;
  }
  for(i=0 ; i< H->size ; i++){  //Pernaw ta dedomena tou paliou sto neo HasTable

    if(H[i].key!=-1)  //Ean to arxiko Hash exei dedomena se afthn thn thesh
      Temp=InsertHVector(Temp,H[i].key,H[i].value);
  }

  FreeHVector(H);
  return Temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x1c(%rdi), %r15d
cvtsi2sd %r15d, %xmm1
mulsd 0x222c(%rip), %xmm1     # 0x6298
movsd %xmm1, -0x30(%rbp)
movsd 0x2227(%rip), %xmm0     # 0x62a0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x2217(%rip), %xmm0     # 0x62a8
cvttsd2si %xmm0, %rdi
andq %rcx, %rdi
orq %rax, %rdi
callq 0x11a0
movq %rax, %r14
cvttsd2si -0x30(%rbp), %eax
movl %eax, 0x1c(%r14)
movl $0x0, 0x18(%r14)
movq $0x0, 0x10(%r14)
testl %eax, %eax
jle 0x40e3
movl %eax, %eax
shlq $0x5, %rax
xorl %ecx, %ecx
movl $0xffffffff, (%r14,%rcx) # imm = 0xFFFFFFFF
movq $0x0, 0x8(%r14,%rcx)
addq $0x20, %rcx
cmpq %rcx, %rax
jne 0x40c9
testl %r15d, %r15d
jle 0x411d
leaq 0x8(%rbx), %r12
xorl %r13d, %r13d
movl -0x8(%r12), %esi
cmpl $-0x1, %esi
je 0x410e
movsd (%r12), %xmm0
movq %r14, %rdi
callq 0x3fa2
movq %rax, %r14
movl 0x1c(%rbx), %r15d
incq %r13
movslq %r15d, %rax
addq $0x20, %r12
cmpq %rax, %r13
jl 0x40ef
movq %rbx, %rdi
callq 0x1030
movq %r14, %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: HVSumValues
double HVSumValues(HVector* H){
		double sum=0;
		for(int i=0 ; i<H->size ; i++){
			if(H[i].key!=-1) sum+=H[i].value;
		}
		return sum;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq 0x1c(%rdi), %rax
testq %rax, %rax
jle 0x4165
shlq $0x5, %rax
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
cmpl $-0x1, (%rdi,%rcx)
je 0x415a
addsd 0x8(%rdi,%rcx), %xmm0
addq $0x20, %rcx
cmpq %rcx, %rax
jne 0x414e
jmp 0x4169
xorpd %xmm0, %xmm0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/list.c
// Function: PrintHVector
void PrintHVector(HVector* H){
	int c=0;
	printf("[");
	for(int i=0; i<H->size ;i++){
		if(H[i].key!=-1){
			c++;
			printf("(%d-%f),",H[i].key,H[i].value);
		}
		if(c==H->count) break;
	}
	printf("]\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x5b, %edi
callq 0x1040
cmpl $0x0, 0x1c(%rbx)
jle 0x4207
leaq 0x8(%rbx), %r15
xorl %r12d, %r12d
leaq 0x210e(%rip), %r14      # 0x62e1
xorl %r13d, %r13d
movl -0x8(%r15), %esi
cmpl $-0x1, %esi
je 0x41f1
incl %r13d
movsd (%r15), %xmm0
movq %r14, %rdi
movb $0x1, %al
callq 0x10d0
cmpl 0x18(%rbx), %r13d
je 0x4207
incq %r12
movslq 0x1c(%rbx), %rax
addq $0x20, %r15
cmpq %rax, %r12
jl 0x41d6
leaq 0x20dc(%rip), %rdi      # 0x62ea
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1080
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: HashCreate
Hash* HashCreate(int size){ //Dimiourgei ena neo HashTable megetous size
  int i;
	Hash *H;
	H=(Hash* )malloc(size *  sizeof(Hash) );
	H->size=size;
  H->count=0;

  for(i=0 ; i< size ; i++){//gia kathe bucket tou HashTable dimiourgise mia nea NList
		H[i].Head=CreateNList();
	}
	return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %r14d
movslq %edi, %r15
movq %r15, %rdi
shlq $0x4, %rdi
callq 0x11a0
movq %rax, %rbx
movl %r15d, (%rax)
movl $0x0, 0x4(%rax)
testl %r15d, %r15d
jle 0x4296
movl %r14d, %r14d
shlq $0x4, %r14
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x3689
movq %rax, 0x8(%rbx,%r15)
addq $0x10, %r15
cmpq %r15, %r14
jne 0x4281
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: FreeHash
void FreeHash(Hash* H){//Apodesmevi to HashTable
  int i;
  TList* Deleted=CreateTList();
	for(i=0 ; i< H->size ; i++){
		FreeNList(H[i].Head,Deleted);
	}
  free(H);
  FreeeTList(Deleted);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %eax, %eax
callq 0x35db
movq %rax, %r14
cmpl $0x0, (%rbx)
jle 0x42e2
leaq 0x8(%rbx), %r15
xorl %r12d, %r12d
movq (%r15), %rdi
movq %r14, %rsi
callq 0x38c3
incq %r12
movslq (%rbx), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0x42c8
movq %rbx, %rdi
callq 0x1030
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x364c
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: HashInsert
Hash* HashInsert(Hash* H,char* camera){ /*Eisagei enan neo product sto HashTable*/
  NList *L;
	int i=0,j=0,in;
	char name[20];
  H->count++;
	while(camera[i]!='/'){//Vrisko to simio pou teliwnei to onoma ths istoselidas tou proiontos
    i++;
  }
	i+=2;//pigeno to i sthn thesh pou arxizei o arithmos tou proiontos
	while(i<strlen(camera)){
		name[j]=camera[i];
		j++;
		i++;
	}
	name[j]='\0';
	in=atoi(name);//apothievo ton arithmo tou proiontos ston int in
	int index=hash(in,H->size);
  L=(NList*)H[index].Head;//pernw thn lista pou vriskete sto index bucket tou HashTable
  InsertNList(L,camera);
  float n=(1.0*H->count)/H->size;
  if(n>=0.9){ //Ean h plirotita ftasei to 90% kanei rehash
    H=rehash(H);
  }
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
incl 0x4(%rdi)
movl $0x1, %r15d
cmpb $0x2f, -0x1(%r14,%r15)
leaq 0x1(%r15), %r15
jne 0x4316
movq %r14, %rdi
callq 0x10c0
movl %r15d, %ecx
cmpq %rcx, %rax
jbe 0x4353
xorl %ecx, %ecx
leaq (%r14,%rcx), %rdx
movb (%r15,%rdx), %dl
movb %dl, -0x30(%rbp,%rcx)
leaq (%rcx,%r15), %rdx
incq %rdx
incq %rcx
cmpq %rdx, %rax
ja 0x4334
movl %ecx, %eax
jmp 0x4355
xorl %eax, %eax
movb $0x0, -0x30(%rbp,%rax)
leaq -0x30(%rbp), %rdi
callq 0x1240
movl %eax, %ecx
shll $0xd, %ecx
xorl %ecx, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %ecx, %eax
cltd
idivl (%rbx)
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shlq $0x4, %rax
movq 0x8(%rbx,%rax), %rdi
movq %r14, %rsi
callq 0x36a2
cvtsi2sdl 0x4(%rbx), %xmm0
cvtsi2sdl (%rbx), %xmm1
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x1f40(%rip), %xmm0     # 0x62f0
jae 0x43c0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x43d2
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: rehash
Hash* rehash(Hash *H){
  NList* N;
  Hash*  Temp;
  int i;
  Temp=(Hash* )malloc( (H->size*1.5) *  sizeof(Hash) ); //Dimiourgo ena neo HasTable me 150% xoritikotita
  Temp->size=H->size * 1.5;
  Temp->count=0;
  for(i=0 ; i< Temp->size ; i++){
    Temp[i].Head=CreateNList();
  }

  for(i=0 ; i< H->size ; i++){  //Pernaw ta dedomena tou paliou sto neo HasTable
    N=(NList*)H[i].Head;
    while(N->Next!=NULL){
      N=N->Next;
      Temp=HashInsert(Temp,N->camera);
      Temp=HashReplaceSpear(Temp,N->camera,N->Spear);
      N->Spear=NULL;
    }
  }

  FreeHash(H);
  H=Temp;
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %r15d
cvtsi2sd %r15d, %xmm1
mulsd 0x1ea5(%rip), %xmm1     # 0x6298
movsd %xmm1, -0x30(%rbp)
movsd 0x1ef8(%rip), %xmm0     # 0x62f8
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1e90(%rip), %xmm0     # 0x62a8
cvttsd2si %xmm0, %rdi
andq %rcx, %rdi
orq %rax, %rdi
callq 0x11a0
cvttsd2si -0x30(%rbp), %ecx
movq %rax, %r14
movl %ecx, (%rax)
movl $0x0, 0x4(%rax)
testl %ecx, %ecx
jle 0x4461
movl %ecx, %r15d
leaq 0x8(%r14), %r12
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x3689
movq %rax, (%r12)
incq %r13
addq $0x10, %r12
cmpq %r15, %r13
jb 0x4447
movl (%rbx), %r15d
testl %r15d, %r15d
jle 0x44bc
xorl %r12d, %r12d
movq %r12, %rax
shlq $0x4, %rax
movq 0x8(%rbx,%rax), %rax
movq 0x20(%rax), %r13
testq %r13, %r13
je 0x44b1
movq (%r13), %rsi
movq %r14, %rdi
callq 0x42fa
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %rax, %rdi
callq 0x44d6
movq %rax, %r14
movq $0x0, 0x8(%r13)
movq 0x20(%r13), %r13
testq %r13, %r13
jne 0x447e
movl (%rbx), %r15d
incq %r12
movslq %r15d, %rax
cmpq %rax, %r12
jl 0x4469
movq %rbx, %rdi
callq 0x42a4
movq %r14, %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/hash.c
// Function: HashReplaceSpear
Hash* HashReplaceSpear(Hash* H,char* word,WHash* Spear){  //Antikathistw to WHash ths cameras me onoma word
  NList *L;
	int i=0,j=0,in;
	char name[20];
  while(word[i]!='/'){//Vrisko to simio pou teliwnei to onoma ths istoselidas tou proiontos
    i++;
  }
	i+=2;//pigeno to i sthn thesh pou arxizei o arithmos tou proiontos
	while(i<strlen(word)){
		name[j]=word[i];
		j++;
		i++;
	}
	name[j]='\0';
	in=atoi(name);//apothievo ton arithmo tou proiontos ston int in
	int index=hash(in,H->size);
  L=(NList*)H[index].Head;//pernw thn lista pou vriskete sto index bucket tou HashTable
  while(L->Next!=NULL){ //Antikathistw to WHash ths cameras me onoma word
    L=L->Next;
    if(!strcmp(L->camera,word)){
      if(L->Spear!=NULL) FreeWHash(L->Spear);
      L->Spear=Spear;
      return H;
    }
  }
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x1, %r12d
cmpb $0x2f, -0x1(%r15,%r12)
leaq 0x1(%r12), %r12
jne 0x44f4
movq %r15, %rdi
callq 0x10c0
movl %r12d, %ecx
cmpq %rcx, %rax
jbe 0x452a
xorl %ecx, %ecx
movb (%r15,%r12), %dl
movb %dl, -0x40(%rbp,%rcx)
incq %rcx
incq %r12
cmpq %r12, %rax
ja 0x4513
movl %ecx, %eax
jmp 0x452c
xorl %eax, %eax
movb $0x0, -0x40(%rbp,%rax)
leaq -0x40(%rbp), %rdi
callq 0x1240
movl %eax, %ecx
shll $0xd, %ecx
xorl %ecx, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %ecx, %eax
cltd
idivl (%rbx)
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shlq $0x4, %rax
movq 0x8(%rbx,%rax), %r12
movq 0x20(%r12), %r12
testq %r12, %r12
je 0x4592
movq (%r12), %rdi
movq %r15, %rsi
callq 0x1140
testl %eax, %eax
jne 0x4562
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x458b
callq 0x3969
movq %r14, 0x8(%r12)
jmp 0x4594
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: HashTransfer
void HashTransfer(Hash* H,FILE* csvfile){//Metaferi ta proionta poy teriazoun se ena csv arxio
  NList *L;
  TList* Transfered=CreateTList();
  for(int i=0 ; i<H->size ; i++){
    L=(NList*)H[i].Head;
    TransferNList(L,Transfered,csvfile);
  }
  FreeTList(Transfered);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
callq 0x35db
movq %rax, %r15
cmpl $0x0, (%r14)
jle 0x4764
leaq 0x8(%r14), %r12
xorl %r13d, %r13d
movq (%r12), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x37dc
incq %r13
movslq (%r14), %rax
addq $0x10, %r12
cmpq %rax, %r13
jl 0x4746
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3512
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: HashDiff
void HashDiff(Hash* H,FILE* csvfile){//Metaferi ta dedomena pou den teriazoun se ena csv arxio
	NList *L;
  TList* Transfered=CreateTList();
	for(int i=0 ; i<H->size ; i++){
		L=(NList*)H[i].Head;
		DiffNList(L,Transfered,csvfile);
	}
  FreeTList(Transfered);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
callq 0x35db
movq %rax, %r15
cmpl $0x0, (%r14)
jle 0x47c3
leaq 0x8(%r14), %r12
xorl %r13d, %r13d
movq (%r12), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x384e
incq %r13
movslq (%r14), %rax
addq $0x10, %r12
cmpq %rax, %r13
jl 0x47a5
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3512
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: CheckIfOpposite
CList** CheckIfOpposite (Hash* H, char* first){
	NList* L;
	int i=0,j=0,in;
	char name[40];
	while(first[i]!='/'){//Vrisko to simio pou teliwnei to onoma ths istoselidas tou proiontos
	  i++;
	}
	i+=2;//pigeno to i sthn thesh pou arxizei o arithmos tou proiontos
	while(i<strlen(first)){
	   name[j]=first[i];
	   j++;
	   i++;
	}
	name[j]='\0';
	in=atoi(name);//apothievo ton arithmo tou proiontos ston int in
	int index=hash(in,H->size);
	L=(NList*)H[index].Head;//pernw thn lista pou vriskete sto index bucket tou HashTable
	while(L->Next!=NULL){	//Vrisko ton komvo ston opio einai apothikevmeno to product
		L=L->Next;
		if(!strcmp(L->camera,first)){
        return &(L->clique);
		}
	}
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %r15d
cmpb $0x2f, -0x1(%rbx,%r15)
leaq 0x1(%r15), %r15
jne 0x47f2
movq %rbx, %rdi
callq 0x10c0
movl %r15d, %ecx
cmpq %rcx, %rax
jbe 0x4827
xorl %ecx, %ecx
movb (%rbx,%r15), %dl
movb %dl, -0x40(%rbp,%rcx)
incq %rcx
incq %r15
cmpq %r15, %rax
ja 0x4810
movl %ecx, %eax
jmp 0x4829
xorl %eax, %eax
movb $0x0, -0x40(%rbp,%rax)
leaq -0x40(%rbp), %rdi
callq 0x1240
movl %eax, %ecx
shll $0xd, %ecx
xorl %ecx, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %ecx, %eax
cltd
idivl (%r14)
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shlq $0x4, %rax
movq 0x8(%r14,%rax), %r15
xorl %r14d, %r14d
movq 0x20(%r15), %r15
testq %r15, %r15
je 0x4882
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x1140
testl %eax, %eax
jne 0x4863
addq $0x10, %r15
movq %r15, %r14
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: HashPrint
void HashPrint(Hash* H){//Ektiponei to HashTable
	NList *L;
	for(int i=0 ; i<H->size ; i++){
		L=(NList*)H[i].Head;
		PrintNList(L);
	}
}

// Assembly:
cmpl $0x0, (%rdi)
jle 0x48ca
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x3792
incq %r15
movslq (%rbx), %rax
addq $0x10, %r14
cmpq %rax, %r15
jl 0x48a9
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: HashVectorts
Hash* HashVectorts(Hash* H,LHash* Lek){ //Dimiourgei ena vector gia kathe camera
	NList *L;
  double tf,value;

	for(int i=0 ; i<H->size ; i++){  //Gia kathe bucket tou Hash
		L=(NList*)H[i].Head;
		while(L->Next!=NULL){ //Gia kathe komvo ths NList(ara gia kathe kameras)
      L=L->Next;
      L->vector=CreateHVector(200);
      for(int j=0 ; j<Lek->size ; j++){ //Gia kathe leksh tou Lek
        tf=GiveTfIdf(L->Spear,Lek[j].word);  //Pernw to tf ths lekshs an iparxei sthn camera alios to tf ginete 0
        if(tf){ //ean iparxi h leksh sthn camera
          value=tf*Lek[j].tfcount;  //h timh ginete tf*idf
          L->vector=InsertHVector(L->vector,j,value); //isagogi sto vector
        }
      }
      L->vec_size = Lek->size;
      FreeWHash(L->Spear);  //Apodemsevw to WHash ths cameras afou pleon den to xriazome
      L->Spear=NULL;
    }

	}
  return H;
}

// Assembly:
movl (%rdi), %eax
testl %eax, %eax
jle 0x49b0
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
leaq 0x10(%rsi), %r13
xorl %edx, %edx
movq %rdi, -0x30(%rbp)
movq %rdx, %rcx
shlq $0x4, %rcx
movq 0x8(%rdi,%rcx), %rcx
movq 0x20(%rcx), %rbx
testq %rbx, %rbx
je 0x4993
movq %rdx, -0x38(%rbp)
movl $0xc8, %edi
callq 0x3f4c
movq %rax, 0x18(%rbx)
movl 0x18(%r14), %eax
testl %eax, %eax
jle 0x496c
movq %r13, %r12
xorl %r15d, %r15d
movq 0x8(%rbx), %rdi
movq -0x10(%r12), %rsi
callq 0x3e10
ucomisd 0x19be(%rip), %xmm0     # 0x6300
jne 0x4946
jnp 0x495c
mulsd (%r12), %xmm0
movq 0x18(%rbx), %rdi
movl %r15d, %esi
callq 0x3fa2
movq %rax, 0x18(%rbx)
incq %r15
movslq 0x18(%r14), %rax
addq $0x28, %r12
cmpq %rax, %r15
jl 0x492c
movl %eax, 0x28(%rbx)
movq 0x8(%rbx), %rdi
callq 0x3969
movq $0x0, 0x8(%rbx)
movq 0x20(%rbx), %rbx
testq %rbx, %rbx
jne 0x4910
movq -0x30(%rbp), %rdi
movl (%rdi), %eax
movq -0x38(%rbp), %rdx
incq %rdx
movslq %eax, %rcx
cmpq %rcx, %rdx
jl 0x48f3
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: HashFind
WHash* HashFind(Hash* H,char* word){
  NList *L;
	int i=0,j=0,in;
	char name[20];
  while(word[i]!='/'){//Vrisko to simio pou teliwnei to onoma ths istoselidas tou proiontos
    i++;
  }
	i+=2;//pigeno to i sthn thesh pou arxizei o arithmos tou proiontos
	while(i<strlen(word)){
		name[j]=word[i];
		j++;
		i++;
	}
	name[j]='\0';
	in=atoi(name);//apothievo ton arithmo tou proiontos ston int in
	int index=hash(in,H->size);
  L=(NList*)H[index].Head;//pernw thn lista pou vriskete sto index bucket tou HashTable
  while(L->Next!=NULL){
    L=L->Next;
    if(!strcmp(L->camera,word)) return L->Spear;
  }
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %r15d
cmpb $0x2f, -0x1(%rbx,%r15)
leaq 0x1(%r15), %r15
jne 0x49cd
movq %rbx, %rdi
callq 0x10c0
movl %r15d, %ecx
cmpq %rcx, %rax
jbe 0x4a02
xorl %ecx, %ecx
movb (%rbx,%r15), %dl
movb %dl, -0x30(%rbp,%rcx)
incq %rcx
incq %r15
cmpq %r15, %rax
ja 0x49eb
movl %ecx, %eax
jmp 0x4a04
xorl %eax, %eax
movb $0x0, -0x30(%rbp,%rax)
leaq -0x30(%rbp), %rdi
callq 0x1240
movl %eax, %ecx
shll $0xd, %ecx
xorl %ecx, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %ecx, %eax
cltd
idivl (%r14)
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shlq $0x4, %rax
movq 0x8(%r14,%rax), %r15
xorl %r14d, %r14d
movq 0x20(%r15), %r15
testq %r15, %r15
je 0x4a5a
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x1140
testl %eax, %eax
jne 0x4a3e
movq 0x8(%r15), %r14
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: hash1
int hash1(char *str,int size){
  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 0x4a94
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 0x4a7c
popq %rbp
jmp 0x4a99
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/hash.c
// Function: LHashCreate
LHash* LHashCreate(int size){ //Dimiourgei ena neo LHashTable megetous size
  int i;
	LHash *H;
	H=(LHash* )malloc(size *  sizeof(LHash) );
	H->size=size;
  H->count=0;
  for(i=0 ; i< size ; i++){ //gia kathe bucket tou LHashTable arxikopiei ta dedomena tou
    H[i].word=NULL;
    H[i].idf=0.0;
    H[i].tfcount=0;
    H[i].wordperj=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,4), %rdi
callq 0x11a0
movl %r14d, 0x18(%rax)
movl $0x0, 0x1c(%rax)
testl %r14d, %r14d
jle 0x4b05
movl %ebx, %edx
movq %rax, %rcx
addq $0x20, %rcx
shlq $0x3, %rdx
leaq (%rdx,%rdx,4), %rdx
xorl %esi, %esi
xorps %xmm0, %xmm0
movl $0x0, (%rcx,%rsi)
movups %xmm0, -0x20(%rcx,%rsi)
movq $0x0, -0x10(%rcx,%rsi)
addq $0x28, %rsi
cmpq %rsi, %rdx
jne 0x4ae7
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: LHashInsert
LHash* LHashInsert(LHash* H,char* camera){ /*Eisagei enan neo product sto LHashTable*/
  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 hash
      index=hash1(camera,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 camera
      break;
    }else if(!strcmp(H[index].word,camera)){  //Ean iparxi idi tha vgoume ap thn epanalipsh
      exist=1;
      break;
    }
  }
  if(!exist){ //Ean h camera den iparxei idi
    H->count++;
    H[index].word=strdup(camera);
    H[index].wordperj=1;
    float n=(1.0*H->count)/H->size;
    if(n>=0.8){ //Ean h plirotita ftasei to 80% kanei rehash
      H=Lrehash(H);
    }
  }else{
    H[index].wordperj=H[index].wordperj+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 0x4b56
movb (%r14), %dl
testb %dl, %dl
je 0x4b70
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 0x4b3f
jmp 0x4b75
incl %r13d
movl 0x18(%rbx), %r12d
cmpl %r12d, %r13d
movl %r12d, %eax
movl $0x0, %ecx
cmovll %ecx, %eax
subl %eax, %r13d
jmp 0x4b87
movl $0x1505, %eax           # imm = 0x1505
movl 0x18(%rbx), %r12d
cltd
idivl %r12d
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,4), %rax
leaq (%rbx,%rax,8), %r15
movq (%r15), %rdi
testq %rdi, %rdi
je 0x4bae
movq %r14, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x4b28
incl 0x20(%r15)
jmp 0x4bec
movl 0x1c(%rbx), %r13d
incl %r13d
movl %r13d, 0x1c(%rbx)
movq %r14, %rdi
callq 0x1270
movq %rax, (%r15)
cvtsi2sd %r13d, %xmm0
cvtsi2sd %r12d, %xmm1
movl $0x1, 0x20(%r15)
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x16a6(%rip), %xmm0     # 0x6290
jae 0x4bfe
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 0x4c14
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: Lrehash
LHash* Lrehash(LHash* H){
  LHash*  Temp;
  int i,index,j;
  Temp=(LHash* )malloc( (H->size*2) *  sizeof(LHash) ); //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].idf=0.0;
    Temp[i].tfcount=0;
    Temp[i].wordperj=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=hash1(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;
        }
      }
      Temp[index].word=strdup(H[i].word);
      Temp[index].wordperj=H[i].wordperj;
      Temp[index].idf=H[i].idf;
      Temp[index].tfcount=H[i].tfcount;
    }
  }
  FreeLHash(H);
  H=Temp;
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
movslq 0x18(%rdi), %rbx
leal (%rbx,%rbx), %r12d
movq %rbx, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rdi
callq 0x11a0
movq %rax, %r14
movl %r12d, 0x18(%rax)
movl 0x1c(%r13), %eax
movl %eax, 0x1c(%r14)
movq %rbx, -0x30(%rbp)
testq %rbx, %rbx
jle 0x4d6f
movl %r12d, %ecx
leaq 0x20(%r14), %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,4), %rcx
xorl %edx, %edx
xorps %xmm0, %xmm0
movl $0x0, (%rax,%rdx)
movups %xmm0, -0x20(%rax,%rdx)
movq $0x0, -0x10(%rax,%rdx)
addq $0x28, %rdx
cmpq %rdx, %rcx
jne 0x4c70
cmpl $0x0, -0x30(%rbp)
jle 0x4d6f
xorl %r9d, %r9d
xorl %r15d, %r15d
movq %r13, -0x38(%rbp)
leaq (%r15,%r15,4), %rax
movq (%r13,%rax,8), %rdi
testq %rdi, %rdi
je 0x4d62
leaq (,%rax,8), %rax
addq %r13, %rax
movq %rax, -0x40(%rbp)
leaq 0x1(%rdi), %rcx
movb $0x1, %al
testb $0x1, %al
je 0x4cfd
movb (%rdi), %sil
testb %sil, %sil
je 0x4d0d
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 0x4ce1
jmp 0x4d12
incl %ebx
cmpl %r12d, %ebx
movl %r12d, %eax
cmovll %r9d, %eax
subl %eax, %ebx
jmp 0x4d1d
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl %r12d
movl %edx, %ebx
negl %ebx
cmovsl %edx, %ebx
movslq %ebx, %rax
leaq (%rax,%rax,4), %rdx
xorl %eax, %eax
cmpq $0x0, (%r14,%rdx,8)
jne 0x4cc9
leaq (%r14,%rdx,8), %r13
callq 0x1270
xorl %r9d, %r9d
movq %rax, (%r13)
movq -0x40(%rbp), %rcx
movl 0x20(%rcx), %eax
movl %eax, 0x20(%r13)
movsd 0x8(%rcx), %xmm0
movsd %xmm0, 0x8(%r13)
movsd 0x10(%rcx), %xmm0
movsd %xmm0, 0x10(%r13)
movq -0x38(%rbp), %r13
incq %r15
cmpq -0x30(%rbp), %r15
jne 0x4ca2
movq %r13, %rdi
callq 0x4d89
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/hash.c
// Function: FreeLHash
void FreeLHash(LHash* H){   //apodesmefsth tou Hash
  for(int i=0 ; i<H->size ; i++){
    free(H[i].word);
  }
  free(H);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x18(%rdi)
jle 0x4dba
xorl %r14d, %r14d
movq %rbx, %r15
movq (%r15), %rdi
callq 0x1030
incq %r14
movslq 0x18(%rbx), %rax
addq $0x28, %r15
cmpq %rax, %r14
jl 0x4da2
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/hash.c
// Function: LHashPrint
void LHashPrint(LHash* H){  //Ektiponei to Leksilogio
  int i,c=0;
  for(i=0 ; i<H->size ; i++){
    if(H[i].word!=NULL){
      c++;
      printf("%d.%s-%f-%f\n",c,H[i].word,H[i].idf,H[i].tfcount);
    }
  }
}

// Assembly:
movl 0x18(%rdi), %eax
testl %eax, %eax
jle 0x4e3c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
xorl %r13d, %r13d
leaq 0x1516(%rip), %r14      # 0x6308
xorl %r15d, %r15d
movq -0x10(%r12), %rdx
testq %rdx, %rdx
je 0x4e1f
incl %r15d
movsd -0x8(%r12), %xmm0
movsd (%r12), %xmm1
movq %r14, %rdi
movl %r15d, %esi
movb $0x2, %al
callq 0x10d0
movl 0x18(%rbx), %eax
incq %r13
movslq %eax, %rcx
addq $0x28, %r12
cmpq %rcx, %r13
jl 0x4df5
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/hash.c
// Function: LHashTfIdf
void LHashTfIdf(LHash* Lek,double count){ //Dimiourgei ena vector gia kathe camera
  double t;
  int wc=0;
	for(int i=0 ; i<Lek->size ; i++){  //Gia kathe bucket tou leksilogiou
    if(Lek[i].word!=NULL){  //An iparxei leksh
        wc++;
        Lek[i].idf=log10(count/(Lek[i].wordperj));//Ipologizo to idf
        t=Lek[i].idf;
        Lek[i].idf=(Lek[i].idf*Lek[i].tfcount)/count;//Ipologizo to meso tf-idf
        Lek[i].tfcount=t; //krataw to idf sto tfcoun
      }
      if(wc==Lek->count) break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, -0x28(%rbp)
cmpl $0x0, 0x18(%rdi)
jle 0x4eb5
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq $0x0, -0x20(%r14)
je 0x4e9f
incl %r12d
xorps %xmm1, %xmm1
cvtsi2sdl (%r14), %xmm1
movsd -0x28(%rbp), %xmm0
divsd %xmm1, %xmm0
callq 0x1150
movsd -0x10(%r14), %xmm1
mulsd %xmm0, %xmm1
divsd -0x28(%rbp), %xmm1
movsd %xmm1, -0x18(%r14)
movsd %xmm0, -0x10(%r14)
cmpl 0x1c(%rbx), %r12d
je 0x4eb5
incq %r15
movslq 0x18(%rbx), %rax
addq $0x28, %r14
cmpq %rax, %r15
jl 0x4e64
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: LHashFind
int LHashFind(LHash* H,char* camera){ //Epistrefei 1 an iparxei  leksh sto hash allios 0
  int index,exist=0,j=0;

  while(1){
    if(!j){
      index=hash1(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)){
      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 0x4f0b
movb (%rbx), %dl
testb %dl, %dl
je 0x4f1e
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 0x4ef4
jmp 0x4f23
incl %r13d
movl 0x18(%r14), %eax
cmpl %eax, %r13d
cmovll %r12d, %eax
subl %eax, %r13d
jmp 0x4f32
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl 0x18(%r14)
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,4), %rax
movq (%r14,%rax,8), %rdi
testq %rdi, %rdi
je 0x4f57
movq %rbx, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x4edf
movl $0x1, %eax
jmp 0x4f59
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/hash.c
// Function: NMostLHash
LHash* NMostLHash(LHash* H,int n){ //Epistrefei ena Hash pou periexei mono tis n simantikoteres lekseis tou hash
  if(n>H->size) n=H->size;
  H=LHashSort(H,0,H->size);
  LHash*  Temp;
  int i;
  Temp=(LHash* )malloc( n *  sizeof(LHash) ); //Dimiourgo ena neo HasTable me n size
  Temp->size=n;
  Temp->count=n;
  for(i=0 ; i<n ; i++){
    Temp[i].word=NULL;
    Temp[i].idf=0.0;
    Temp[i].tfcount=0.0;
  }
  for(i=0 ; i< n ; i++){  //Pernaw ta dedomena tou paliou sto neo HasTable
        Temp[i].word=H[i].word;
        Temp[i].idf=H[i].idf;
        Temp[i].tfcount=H[i].tfcount;
        H[i].word=NULL;
  }
  FreeLHash(H);
  H=Temp;
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r15d
movl 0x18(%rdi), %edx
cmpl %esi, %edx
cmovll %edx, %r15d
xorl %esi, %esi
callq 0x502e
movq %rax, %rbx
movslq %r15d, %r12
leaq (,%r12,8), %rax
leaq (%rax,%rax,4), %rdi
callq 0x11a0
movq %rax, %r14
movl %r12d, 0x18(%rax)
movl %r12d, 0x1c(%rax)
testl %r12d, %r12d
jle 0x501a
movl %r15d, %eax
leaq (,%rax,8), %rcx
leaq (%rcx,%rcx,4), %rcx
xorl %edx, %edx
xorps %xmm0, %xmm0
movups %xmm0, (%r14,%rdx)
movq $0x0, 0x10(%r14,%rdx)
addq $0x28, %rdx
cmpq %rdx, %rcx
jne 0x4fc1
testl %r15d, %r15d
jle 0x501a
shlq $0x3, %rax
leaq (%rax,%rax,4), %rax
xorl %ecx, %ecx
movq (%rbx,%rcx), %rdx
movq %rdx, (%r14,%rcx)
movsd 0x8(%rbx,%rcx), %xmm0
movsd %xmm0, 0x8(%r14,%rcx)
movsd 0x10(%rbx,%rcx), %xmm0
movsd %xmm0, 0x10(%r14,%rcx)
movq $0x0, (%rbx,%rcx)
addq $0x28, %rcx
cmpq %rcx, %rax
jne 0x4fe7
movq %rbx, %rdi
callq 0x4d89
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: LHashSort
LHash* LHashSort(LHash* H,int lo,int hi){ //Taksinomisi tou Hash me ton algorithmo Quick sort vasi tou idf
  int j;
  if(lo<hi){
    j=LHashPartition(&H,lo,hi); //Orismos tou pivot
    H=LHashSort(H,lo,j);
    H=LHashSort(H,j+1,hi);
  }
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %rax
leaq -0x28(%rbp), %r14
movq %rax, -0x28(%rbp)
cmpl %ebx, %r15d
jge 0x5078
movq %r14, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x5085
movl %eax, %r12d
movq -0x28(%rbp), %rdi
movl %r15d, %esi
movl %eax, %edx
callq 0x502e
incl %r12d
movl %r12d, %r15d
jmp 0x5049
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: LHashPartition
int LHashPartition(LHash** H,int lo,int hi){ //Evresh tou pivot kai metathesh ton katalilwn thesewn sto Hash

  float pivot=(float)(*H)[lo].idf,ch;
  int i=lo,j=hi;
  while(i<j){
    do{
      i++;
      ch=(float)(*H)[i].idf;
    }while(ch>=pivot && (i<(j-1)));
    do{
       j--;
       ch=(float)(*H)[j].idf;
    }while(ch<pivot);
    if(i<j) (*H)=LHashSwap(*H,i,j);
  }
  (*H)=LHashSwap(*H,lo,j);
  return j;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq (%rdi), %rcx
movslq %esi, %rax
leaq (%rax,%rax,4), %r8
cmpl %edx, %eax
jge 0x5138
cvtsd2ss 0x8(%rcx,%r8,8), %xmm0
leaq 0x10(%rcx), %rax
leal -0x1(%rdx), %r9d
movslq %esi, %rsi
movslq %r9d, %r10
leaq (%rsi,%rsi,4), %r9
leaq (%rcx,%r9,8), %r9
movsd 0x30(%r9), %xmm1
xorps %xmm2, %xmm2
cvtsd2ss %xmm1, %xmm2
incq %rsi
addq $0x28, %r9
ucomiss %xmm0, %xmm2
jb 0x50d7
cmpq %r10, %rsi
jl 0x50b9
movslq %edx, %rdx
leaq (%rdx,%rdx,4), %r10
leaq (%rax,%r10,8), %r10
movsd -0x30(%r10), %xmm2
xorps %xmm3, %xmm3
cvtsd2ss %xmm2, %xmm3
decq %rdx
addq $-0x28, %r10
ucomiss %xmm3, %xmm0
ja 0x50e2
cmpq %rdx, %rsi
jge 0x5138
movq (%r9), %r11
movsd 0x10(%r9), %xmm3
movq -0x10(%r10), %rbx
movq %rbx, (%r9)
movsd %xmm2, 0x8(%r9)
movsd (%r10), %xmm2
movsd %xmm2, 0x10(%r9)
movq %r11, -0x10(%r10)
movsd %xmm1, -0x8(%r10)
movsd %xmm3, (%r10)
movq %rcx, (%rdi)
jmp 0x50a7
movq (%rcx,%r8,8), %rsi
movups 0x8(%rcx,%r8,8), %xmm0
movslq %edx, %rax
leaq (%rax,%rax,4), %rdx
movq (%rcx,%rdx,8), %r9
movq %r9, (%rcx,%r8,8)
movsd 0x8(%rcx,%rdx,8), %xmm1
movsd %xmm1, 0x8(%rcx,%r8,8)
movsd 0x10(%rcx,%rdx,8), %xmm1
movsd %xmm1, 0x10(%rcx,%r8,8)
movq %rsi, (%rcx,%rdx,8)
movups %xmm0, 0x8(%rcx,%rdx,8)
movq %rcx, (%rdi)
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/hash.c
// Function: LHashIncreaseTf
LHash* LHashIncreaseTf(LHash* H,char* word,double tf){
  int index,j=0;

  while(1){
    if(!j){
      index=hash1(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)){
      H[index].tfcount=H[index].tfcount+tf;
      break;
    }
  }
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movsd %xmm0, -0x30(%rbp)
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1(%rsi), %r15
movb $0x1, %cl
testb $0x1, %cl
je 0x520f
movb (%r14), %dl
testb %dl, %dl
je 0x5225
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 0x51f8
jmp 0x522a
incl %r13d
movl 0x18(%rbx), %eax
cmpl %eax, %r13d
movl $0x0, %ecx
cmovll %ecx, %eax
subl %eax, %r13d
jmp 0x5238
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl 0x18(%rbx)
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,4), %r12
movq (%rbx,%r12,8), %rdi
testq %rdi, %rdi
je 0x5269
movq %r14, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x51e2
leaq (%rbx,%r12,8), %rax
movsd -0x30(%rbp), %xmm0
addsd 0x10(%rax), %xmm0
movsd %xmm0, 0x10(%rax)
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/JobSheduler.c
// Function: JSGetWork
Job* JSGetWork(JobSheduler* Sheduler){  //Epistrefi to pio palio Job
  Job* job;

  job=Sheduler->First;
  if(job==NULL) return NULL;

  if(job->Next==NULL){  //Ean einai to telefteo job ths ouras
    Sheduler->First=NULL;
    Sheduler->Last=NULL;
  }else{  //Ean iparxoun kai alla job h oura dixnei ws prwto to epomeno
    Sheduler->First=job->Next;
  }
  return job;
}

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0x54a1
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x549a
movq %rcx, (%rdi)
jmp 0x54a0
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: Worker
void* Worker(void* arg){ //I sinarthsh pou trexei kathe nima kai mesw afths ektelite to kathe diathesimo Job
  JobSheduler* Sheduler=(void*)arg;
  Job* job;

  while (1) {
    pthread_mutex_lock(&(Sheduler->lock)); //Klidoma tou mutex
    while (Sheduler->First == NULL && Sheduler->working)  //Oso den iparxei kapio job perimene
      pthread_cond_wait(&(Sheduler->notify), &(Sheduler->lock));

    if(Sheduler->working==0) break; //An termatistike h litourgia tou Sheduler vgenei ap thn while

    job=JSGetWork(Sheduler); //Fere thn teleftea doulia ap thn oura
    Sheduler->threadswork++;
    pthread_mutex_unlock(&(Sheduler->lock));

    if(job != NULL) { //Ektelite to job kai meta katastrefete
      job->func(job->arg);
      JobDestroy(job);
    }

    pthread_mutex_lock(&(Sheduler->lock));
    Sheduler->threadswork--;
    if ((Sheduler->threadswork==0) && (Sheduler->First==NULL) && (Sheduler->working==1)) //Ean den iparxei kapio job den trexei kanena nima enhmerwse
          pthread_cond_signal(&(Sheduler->thworking));
    pthread_mutex_unlock(&(Sheduler->lock));
  }

  Sheduler->threadsnum--; //Miosi tou arithmu twn nhmatwn pou einai diathesima
  pthread_cond_signal(&(Sheduler->thworking));
  pthread_mutex_unlock(&(Sheduler->lock));
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
leaq 0x40(%rdi), %r12
leaq 0x70(%rdi), %r15
movq %rbx, %rdi
callq 0x1290
movq (%r14), %r13
testq %r13, %r13
jne 0x55b8
cmpl $0x0, 0xac(%r14)
je 0x562c
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1090
jmp 0x5595
cmpl $0x0, 0xac(%r14)
je 0x562c
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x55d0
movq %rax, (%r14)
jmp 0x55d7
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
incl 0xa4(%r14)
movq %rbx, %rdi
callq 0x1190
movq 0x8(%r13), %rdi
callq *(%r13)
movq %r13, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1290
decl 0xa4(%r14)
jne 0x561f
cmpq $0x0, (%r14)
jne 0x561f
cmpl $0x1, 0xac(%r14)
jne 0x561f
movq %r15, %rdi
callq 0x1120
movq %rbx, %rdi
callq 0x1190
jmp 0x558d
decl 0xa0(%r14)
movq %r15, %rdi
callq 0x1120
movq %rbx, %rdi
callq 0x1190
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/JobSheduler.c
// Function: JSAddWork
void JSAddWork(JobSheduler* Sheduler,Job* job){ //Eisagi ena neo Job sthn oura

  pthread_mutex_lock(&(Sheduler->lock));  //Klidoma tou mutex
   if(Sheduler->First == NULL){ //Ean den iparxei kapio job
       Sheduler->First = job;
       Sheduler->Last = job;
   }else{ //Ean iparxei idi kapio job sthn oura
      Sheduler->Last->Next = job;
      Sheduler->Last=job;
   }

   pthread_cond_broadcast(&(Sheduler->notify)); //Idopeiei ta nimata oti iparxei kapio neo job sthn oura
   pthread_mutex_unlock(&(Sheduler->lock)); //Klidoma tou mutex

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x1290
cmpq $0x0, (%r14)
je 0x5680
movq 0x8(%r14), %rax
movq %r15, 0x10(%rax)
jmp 0x5683
movq %r15, (%r14)
movq %r15, 0x8(%r14)
addq $0x40, %r14
movq %r14, %rdi
callq 0x1070
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1190
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: JSWaitalltasks
void JSWaitalltasks(JobSheduler* Sheduler){ //Perimenei na teliosoun ola ta nimata

  pthread_mutex_lock(&(Sheduler->lock));
  while(1){
    if ( ((Sheduler->working==0) && (Sheduler->threadsnum!=0)) || ( ((Sheduler->threadswork!=0) && (Sheduler->working!=0) ) || (Sheduler->First!=NULL) ) ){ //Oso iparxoun nimata pou litourgoun
      pthread_cond_wait(&(Sheduler->thworking), &(Sheduler->lock)); //Perimene mexri na teliosi to nima
    }else{
      break;
    }
  }
  pthread_mutex_unlock(&(Sheduler->lock));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x1290
leaq 0x70(%r14), %r15
cmpl $0x0, 0xac(%r14)
je 0x56d8
cmpl $0x0, 0xa4(%r14)
jne 0x56e8
jmp 0x56e2
cmpl $0x0, 0xa0(%r14)
jne 0x56e8
cmpq $0x0, (%r14)
je 0x56f5
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1090
jmp 0x56c2
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1190
// File: /workspace/github_c_makefile_star2_O3/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: JSDestroy
void JSDestroy(JobSheduler* Sheduler){  //Katastrofh tou Sheduler

    Job* job;
    Job* tmpjob;

    pthread_mutex_lock(&(Sheduler->lock));
    job=Sheduler->First;
    while(job != NULL) {  //Katastrofh twn Job pou perimenoun sthn oura
        tmpjob=job->Next;
        JobDestroy(job);
        job=tmpjob;
    }
    Sheduler->working=0;  //Thetoume thn metavlhth workink 0 ara den dexonte alles doulies ta nimata
    pthread_cond_broadcast(&(Sheduler->notify));
    pthread_mutex_unlock(&(Sheduler->lock));

    JSWaitalltasks(Sheduler); //Perimenoume ta nimata pou litourgoun na teleiwsoun


    pthread_mutex_destroy(&(Sheduler->lock));
    pthread_cond_destroy(&(Sheduler->notify));
    pthread_cond_destroy(&(Sheduler->thworking));

    //Apodesmefsh tou Sheduler
    free(Sheduler->threads);
    free(Sheduler);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
movq %r14, %rdi
callq 0x1290
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5739
movq 0x10(%rdi), %r15
callq 0x1030
movq %r15, %rdi
testq %r15, %r15
jne 0x5728
movl $0x0, 0xac(%rbx)
leaq 0x40(%rbx), %r15
movq %r15, %rdi
callq 0x1070
movq %r14, %rdi
callq 0x1190
movq %rbx, %rdi
callq 0x56a5
movq %r14, %rdi
callq 0x10e0
movq %r15, %rdi
callq 0x11e0
leaq 0x70(%rbx), %rdi
callq 0x11e0
movq 0x10(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/dwbuiten[P]obuparse/obuparse.c
// Function: obp_br_unchecked
static inline uint64_t _obp_br_unchecked(_OBPBitReader *br, uint8_t n)
{
    assert(n <= 63);

    while (n > br->bits_in_buf) {
        br->bit_buffer <<= 8;
        br->bit_buffer  |= (uint64_t) br->buf[br->buf_pos];
        br->bits_in_buf += 8;
        br->buf_pos++;

        if (br->bits_in_buf > 56) {
            if (n <= br->bits_in_buf)
                break;

            if (n <= 64)
                return (_obp_br_unchecked(br, 32) << 32) | (_obp_br_unchecked(br, n - 32));
        }
    }

    br->bits_in_buf -= n;
    return (br->bit_buffer >> br->bits_in_buf) & ((((uint64_t)1) << n) - 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
cmpb $0x3f, %bl
ja 0x24bc
movq %rdi, %r14
xorl %r15d, %r15d
movb 0x20(%r14), %cl
movq 0x18(%r14), %rdx
cmpb %bl, %cl
jae 0x24db
movq %rdx, %rax
shlq $0x8, %rax
movq %rax, 0x18(%r14)
movq (%r14), %rdx
movq 0x10(%r14), %rsi
movzbl (%rdx,%rsi), %edx
orq %rax, %rdx
movq %rdx, 0x18(%r14)
addb $0x8, %cl
movb %cl, 0x20(%r14)
incq %rsi
movq %rsi, 0x10(%r14)
cmpb $0x39, %cl
jb 0x2468
cmpb %bl, %cl
jae 0x24db
movq %r14, %rdi
movl $0x20, %esi
callq 0x244e
shlq $0x20, %rax
addb $-0x20, %bl
orq %rax, %r15
cmpb $0x40, %bl
jb 0x2460
leaq 0x6013(%rip), %rdi      # 0x84d6
leaq 0x5c4d(%rip), %rsi      # 0x8117
leaq 0x600d(%rip), %rcx      # 0x84de
movl $0x2e, %edx
callq 0x1040
subb %bl, %cl
movb %cl, 0x20(%r14)
shrq %cl, %rdx
movq $-0x1, %rax
movl %ebx, %ecx
shlq %cl, %rax
notq %rax
andq %rdx, %rax
orq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/dwbuiten[P]obuparse/obuparse.c
// Function: obp_uvlc
static inline int _obp_uvlc(_OBPBitReader *br, uint32_t *value, OBPError *err)
{
    uint32_t leading_zeroes = 0;
    while (leading_zeroes < 32) {
        int b;
        _obp_br(b, br, 1);
        if (b != 0)
            break;
        leading_zeroes++;
    }
    if (leading_zeroes == 32) {
        snprintf(err->error, err->size, "Invalid VLC.");
        return -1;
    }
    uint32_t val;
    _obp_br(val, br, leading_zeroes);
    *value = val + ((1 << leading_zeroes) - 1);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl $0xfffffffa, %r13d      # imm = 0xFFFFFFFA
movl $0x1, %r12d
xorl %ebp, %ebp
cmpl $0x1f, %ebp
ja 0x2570
movzbl 0x20(%r14), %eax
movl $0x8, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %rax
movq 0x8(%r14), %rcx
subq 0x10(%r14), %rcx
cmpq %rax, %rcx
jb 0x25a0
movq %r14, %rdi
movl $0x1, %esi
callq 0x244e
decl %r13d
decl %r12d
incl %ebp
testl %eax, %eax
je 0x2521
xorl %ebp, %ebp
testl %eax, %eax
sete %bpl
movl %r13d, %ecx
subl %ebp, %ecx
cmpl $-0x27, %ecx
jne 0x2580
movq (%r15), %rdi
movq 0x8(%r15), %rsi
leaq 0x5f95(%rip), %rdx      # 0x8513
jmp 0x25ae
movzbl 0x20(%r14), %ecx
cmpl $0x1, %eax
sbbl $0x0, %ecx
addl %r13d, %ecx
negl %ecx
shrl $0x3, %ecx
movq 0x8(%r14), %rdx
subq 0x10(%r14), %rdx
cmpq %rcx, %rdx
jae 0x25c9
movq (%r15), %rdi
movq 0x8(%r15), %rsi
leaq 0x5c0b(%rip), %rdx      # 0x81b9
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
subl %r12d, %ebp
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
subl %r12d, %ecx
movzbl %cl, %esi
movq %r14, %rdi
callq 0x244e
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %ebp, %ecx
shll %cl, %edx
notl %edx
addl %eax, %edx
movl %edx, (%rbx)
xorl %eax, %eax
jmp 0x25ba