// File: sile[P]mphf/./generator.hh
// Function: MPHF::Generator::generate_graph()
void generate_graph() {
      const unsigned middle = hash_value_limit/2;
      std::ifstream in(keyset_filepath);
      std::string key;
      for(unsigned i=0; std::getline(in,key); i++) {
	graph[i][0] = h[0].hash(key.c_str()) % middle;
	graph[i][1] = h[1].hash(key.c_str()) % middle + middle;
      }
      
      // sentinel value
      graph[key_count][0] = hash_value_limit+1;
      graph[key_count][1] = hash_value_limit+1;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2c0, %rsp            # imm = 0x2C0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x258(%rbp)
movl 0x2c(%rax), %ecx
shrl %ecx
movl %ecx, -0xc(%rbp)
movq (%rax), %rsi
leaq -0x218(%rbp), %rdi
movl $0x8, %edx
callq 0x22d0
leaq -0x238(%rbp), %rdi
callq 0x2240
movl $0x0, -0x23c(%rbp)
leaq -0x218(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x2050
movq %rax, -0x260(%rbp)
jmp 0x3578
movq -0x260(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2200
movb %al, -0x261(%rbp)
jmp 0x3596
movb -0x261(%rbp), %al
testb $0x1, %al
jne 0x35a5
jmp 0x36e9
movq -0x258(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x270(%rbp)
leaq -0x238(%rbp), %rdi
callq 0x20b0
movq -0x270(%rbp), %rdi
movq %rax, %rsi
callq 0x39d0
movl %eax, -0x268(%rbp)
jmp 0x35da
movl -0x268(%rbp), %eax
movl -0xc(%rbp), %ecx
xorl %esi, %esi
movl %esi, %edx
divl %ecx
movq -0x258(%rbp), %rax
movl %edx, -0x27c(%rbp)
movq 0x10(%rax), %rax
movl -0x23c(%rbp), %ecx
leaq (%rax,%rcx,8), %rdi
callq 0x3a10
movq %rax, -0x278(%rbp)
jmp 0x3612
movq -0x258(%rbp), %rax
movq -0x278(%rbp), %rcx
movl -0x27c(%rbp), %edx
movl %edx, (%rcx)
movq 0x8(%rax), %rax
addq $0x8, %rax
movq %rax, -0x288(%rbp)
leaq -0x238(%rbp), %rdi
callq 0x20b0
movq -0x288(%rbp), %rdi
movq %rax, %rsi
callq 0x39d0
movl %eax, -0x280(%rbp)
jmp 0x365a
movl -0x280(%rbp), %eax
movl -0xc(%rbp), %ecx
xorl %edx, %edx
divl %ecx
movq -0x258(%rbp), %rax
addl %ecx, %edx
movl %edx, -0x294(%rbp)
movq 0x10(%rax), %rax
movl -0x23c(%rbp), %ecx
leaq (%rax,%rcx,8), %rdi
movl $0x1, %esi
callq 0x3a10
movq %rax, -0x290(%rbp)
jmp 0x3697
movq -0x290(%rbp), %rax
movl -0x294(%rbp), %ecx
movl %ecx, (%rax)
movl -0x23c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x23c(%rbp)
jmp 0x355c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x238(%rbp), %rdi
callq 0x2120
leaq -0x218(%rbp), %rdi
callq 0x2060
jmp 0x3785
movq -0x258(%rbp), %rcx
movl 0x2c(%rcx), %eax
incl %eax
movl %eax, -0x2a4(%rbp)
movq 0x10(%rcx), %rax
movl 0x28(%rcx), %ecx
leaq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0x3a10
movq %rax, -0x2a0(%rbp)
jmp 0x3716
movq -0x258(%rbp), %rcx
movq -0x2a0(%rbp), %rax
movl -0x2a4(%rbp), %edx
movl %edx, (%rax)
movl 0x2c(%rcx), %eax
incl %eax
movl %eax, -0x2b4(%rbp)
movq 0x10(%rcx), %rax
movl 0x28(%rcx), %ecx
leaq (%rax,%rcx,8), %rdi
movl $0x1, %esi
callq 0x3a10
movq %rax, -0x2b0(%rbp)
jmp 0x3755
movq -0x2b0(%rbp), %rax
movl -0x2b4(%rbp), %ecx
movl %ecx, (%rax)
leaq -0x238(%rbp), %rdi
callq 0x2120
leaq -0x218(%rbp), %rdi
callq 0x2060
addq $0x2c0, %rsp            # imm = 0x2C0
popq %rbp
retq
movq -0x248(%rbp), %rdi
callq 0x22b0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)