LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: jaxonwang[P]suffixtree/main.cc
// Function: rand_str[abi:cxx11](unsigned long)
string rand_str(size_t length) {
  stringstream ss;
  for (size_t i = 0; i < length; i++) {
    ss << static_cast<char>('a' + rand() % 26);
  }
  return ss.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rdi, -0x1c0(%rbp)
movq %rdi, %rax
movq %rax, -0x1b8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x198(%rbp), %rdi
callq 0x2110
movq $0x0, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x24e5
leaq -0x188(%rbp), %rax
movq %rax, -0x1c8(%rbp)
callq 0x2040
movq -0x1c8(%rbp), %rdi
movl %eax, %edx
movslq %edx, %rax
imulq $0x4ec4ec4f, %rax, %rcx # imm = 0x4EC4EC4F
movq %rcx, %rax
shrq $0x3f, %rax
sarq $0x23, %rcx
addl %eax, %ecx
movl %ecx, %eax
leal (%rax,%rax,4), %esi
movl %esi, %eax
leal (%rax,%rax,4), %eax
addl %ecx, %eax
negl %eax
movl %eax, %ecx
movl %edx, %eax
leal 0x61(%rax,%rcx), %eax
movsbl %al, %esi
callq 0x21e0
jmp 0x24af
jmp 0x24b1
movq -0x1a0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1a0(%rbp)
jmp 0x244b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a8(%rbp)
movl %eax, -0x1ac(%rbp)
leaq -0x198(%rbp), %rdi
callq 0x2130
jmp 0x2516
movq -0x1c0(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x2170
jmp 0x24fa
leaq -0x198(%rbp), %rdi
callq 0x2130
movq -0x1b8(%rbp), %rax
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
movq -0x1a8(%rbp), %rdi
callq 0x2280
nopw %cs:(%rax,%rax)
// File: jaxonwang[P]suffixtree/main.cc
// Function: SuffixTreeBase::SuffixTreeBase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
SuffixTreeBase(const StringT &text) : text(text), textlen(text.size()) {
    std::unique_ptr<InternalNode> root_ptr{new InternalNode};
    root = root_ptr.get();
    node_holder.push_back(move(root_ptr));
    root->set_suffix_link(root);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rsi
callq 0x2090
movq -0x10(%rbp), %rdi
callq 0x2100
movq -0x48(%rbp), %rdi
movq %rax, 0x20(%rdi)
addq $0x30, %rdi
movq %rdi, -0x40(%rbp)
callq 0x3110
movl $0x80, %edi
callq 0x2190
movq %rax, -0x38(%rbp)
jmp 0x3036
movq -0x38(%rbp), %rdi
callq 0x3130
movq -0x38(%rbp), %rsi
leaq -0x18(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x3170
movq -0x68(%rbp), %rdi
callq 0x31a0
movq -0x68(%rbp), %rsi
movq %rax, %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x28(%rax)
addq $0x30, %rax
movq %rax, -0x60(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x58(%rbp)
callq 0x3200
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x31d0
jmp 0x308c
leaq -0x30(%rbp), %rdi
callq 0x3250
movq -0x50(%rbp), %rax
movq %rax, %rsi
addq $0x28, %rsi
movq 0x28(%rax), %rdi
callq 0x32b0
jmp 0x30ab
leaq -0x18(%rbp), %rdi
callq 0x32d0
addq $0x70, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x30f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x3250
jmp 0x30eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x32d0
movq -0x40(%rbp), %rdi
callq 0x3330
movq -0x48(%rbp), %rdi
callq 0x20e0
movq -0x20(%rbp), %rdi
callq 0x2280
nop
// File: jaxonwang[P]suffixtree/main.cc
// Function: NonLeaf::next_edge(char)
edge_ptr &next_edge(const CharT c) {
    static edge_ptr empty_edge{};
    if (adj_edges.count(c))
      return adj_edges[c];
    return empty_edge;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movq %rdi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpb $0x0, 0xb9bf(%rip)      # 0x11190
jne 0x580a
leaq 0xb9b6(%rip), %rdi      # 0x11190
callq 0x22b0
cmpl $0x0, %eax
je 0x580a
leaq -0x1beb(%rip), %rdi     # 0x3c00
leaq 0xb996(%rip), %rsi      # 0x11188
leaq 0xb977(%rip), %rdx      # 0x11170
callq 0x2150
leaq 0xb98b(%rip), %rdi      # 0x11190
callq 0x20f0
movq -0x20(%rbp), %rdi
addq $0x40, %rdi
leaq -0x11(%rbp), %rsi
callq 0x5db0
cmpq $0x0, %rax
je 0x5838
movq -0x20(%rbp), %rdi
addq $0x40, %rdi
leaq -0x11(%rbp), %rsi
callq 0x5de0
movq %rax, -0x8(%rbp)
jmp 0x5843
leaq 0xb949(%rip), %rax      # 0x11188
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: jaxonwang[P]suffixtree/main.cc
// Function: SuffixTreeBase::new_leaf(InternalNode*&, unsigned long, unsigned long const&)
void new_leaf(internal_node_ptr &current_node, const size_type start_pos,
                const size_type &end_pos) {
    const CharT c = text[start_pos];
    current_node->adj_edges[c] =
        std::unique_ptr<Edge>{new LeafEdge{start_pos, end_pos}};

    std::unique_ptr<Leaf> newleaf_ptr{new Leaf{}};
    current_node->children[c] = newleaf_ptr.get();
    node_holder.push_back(move(newleaf_ptr));
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x60(%rbp)
movq -0x18(%rbp), %rsi
callq 0x21c0
movb (%rax), %al
movb %al, -0x21(%rbp)
movl $0x18, %edi
callq 0x2190
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x71b0
jmp 0x58d4
movq -0x58(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x7200
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0x40, %rdi
leaq -0x21(%rbp), %rsi
callq 0x5de0
movq %rax, -0x68(%rbp)
jmp 0x58fb
movq -0x68(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movq %rsi, -0x78(%rbp)
callq 0x7230
movq -0x78(%rbp), %rdi
callq 0x3c00
movl $0x10, %edi
callq 0x2190
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x70(%rbp)
callq 0x7260
jmp 0x5930
movq -0x70(%rbp), %rsi
leaq -0x48(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x72a0
movq -0x90(%rbp), %rdi
callq 0x72d0
movq %rax, -0x88(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
addq $0x8, %rdi
leaq -0x21(%rbp), %rsi
callq 0x7300
movq %rax, -0x80(%rbp)
jmp 0x5971
movq -0x60(%rbp), %rax
movq -0x80(%rbp), %rcx
movq -0x88(%rbp), %rdx
movq %rdx, (%rcx)
addq $0x30, %rax
movq %rax, -0xa0(%rbp)
leaq -0x50(%rbp), %rdi
movq %rdi, -0x98(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x7330
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x31d0
jmp 0x59b7
leaq -0x50(%rbp), %rdi
callq 0x3250
leaq -0x48(%rbp), %rdi
callq 0x7380
addq $0xa0, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x2160
jmp 0x5a43
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x3c00
jmp 0x5a43
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x2160
jmp 0x5a43
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x5a3a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x3250
leaq -0x48(%rbp), %rdi
callq 0x7380
movq -0x38(%rbp), %rdi
callq 0x2280
nopl (%rax)
// File: jaxonwang[P]suffixtree/main.cc
// Function: LeafEdge::break_edge(unsigned long) const
virtual std::pair<edge_ptr, edge_ptr>
  break_edge(const size_type pos) const override {
    if (pos < start_pos || pos >= end_pos)
      throw std::logic_error("bad pos");
    auto new_first = edge_ptr{new InternalEdge(start_pos, pos)};
    auto new_second = edge_ptr{new LeafEdge(pos + 1, end_pos)};
    return make_pair(move(new_first), move(new_second));
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x50(%rbp)
movq %rdi, %rax
movq %rax, -0x48(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movq -0x18(%rbp), %rax
cmpq 0x8(%rcx), %rax
jb 0x7512
movq -0x40(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0x10(%rcx), %rcx
cmpq (%rcx), %rax
jb 0x7565
movl $0x10, %edi
callq 0x20a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x58(%rbp)
leaq 0x2b5a(%rip), %rsi      # 0xa087
callq 0x2220
jmp 0x7534
movq -0x58(%rbp), %rdi
movq 0x9aa1(%rip), %rsi      # 0x10fe0
movq 0x9a7a(%rip), %rdx      # 0x10fc0
callq 0x2270
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x2120
jmp 0x765d
movl $0x18, %edi
callq 0x2190
movq %rax, %rdi
movq -0x40(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x60(%rbp)
movq 0x8(%rax), %rsi
movq -0x18(%rbp), %rdx
callq 0x7690
jmp 0x758c
movq -0x60(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x7200
movl $0x18, %edi
callq 0x2190
movq %rax, -0x68(%rbp)
jmp 0x75a9
movq -0x68(%rbp), %rdi
movq -0x40(%rbp), %rax
movq -0x18(%rbp), %rsi
incq %rsi
movq 0x10(%rax), %rdx
callq 0x71b0
jmp 0x75c3
movq -0x68(%rbp), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x70(%rbp)
callq 0x7200
movq -0x50(%rbp), %rdi
movq -0x70(%rbp), %rdx
leaq -0x30(%rbp), %rsi
callq 0x76e0
jmp 0x75e7
leaq -0x38(%rbp), %rdi
callq 0x3c00
leaq -0x30(%rbp), %rdi
callq 0x3c00
movq -0x48(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
movq -0x60(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x2160
jmp 0x765d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x7654
movq -0x68(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x2160
jmp 0x7654
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x3c00
leaq -0x30(%rbp), %rdi
callq 0x3c00
movq -0x20(%rbp), %rdi
callq 0x2280
nopw %cs:(%rax,%rax)
// File: Kei18[P]pibt/./src/app.h
// Function: setCurrentTime(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
static void setCurrentTime(std::string &str) {
  char buff[27] = "";
  time_t now = time(NULL);
  timeval curTime;
  gettimeofday(&curTime, NULL);
  struct tm* pnow = localtime(&now);
  sprintf(buff, "%04d-%02d-%02d-%02d-%02d-%02d-%06d",
          pnow->tm_year + 1900, pnow->tm_mon + 1,
          pnow->tm_mday, pnow->tm_hour, pnow->tm_min, pnow->tm_sec,
          curTime.tv_usec);
  str = std::string(buff);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x25(%rbp)
movaps %xmm0, -0x30(%rbp)
xorl %eax, %eax
movl %eax, -0x9c(%rbp)
movl %eax, %edi
movq %rdi, -0xa8(%rbp)
callq 0x8490
movq -0xa8(%rbp), %rsi
movq %rax, -0x38(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x8790
leaq -0x38(%rbp), %rdi
callq 0x83f0
movq %rax, %rcx
movl -0x9c(%rbp), %eax
movq %rcx, -0x50(%rbp)
movq -0x50(%rbp), %rsi
movl 0x14(%rsi), %edx
addl $0x76c, %edx            # imm = 0x76C
movl 0x10(%rsi), %ecx
incl %ecx
movl 0xc(%rsi), %r8d
movl 0x8(%rsi), %r9d
movl (%rsi), %r10d
movl 0x4(%rsi), %edi
movq -0x40(%rbp), %r11
movq %rsp, %rsi
movq %r11, 0x10(%rsi)
movl %r10d, 0x8(%rsi)
movl %edi, (%rsi)
leaq 0xa6304(%rip), %rsi     # 0xb35d6
leaq -0x30(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0x80e0
leaq -0x71(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x8890
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
leaq -0x70(%rbp), %rdi
callq 0xd8c0
jmp 0xd30b
movq -0x8(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x85f0
leaq -0x70(%rbp), %rdi
callq 0x8330
leaq -0x71(%rbp), %rdi
callq 0x8540
addq $0xc0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x71(%rbp), %rdi
callq 0x8540
movq -0x80(%rbp), %rdi
callq 0x8880
nopw %cs:(%rax,%rax)
// File: Kei18[P]pibt/./src/solver/hca.h
// Function: HCA::logStr[abi:cxx11]()
std::string logStr() {
    std::string str;
    str += "[solver] type:HCA\n";
    str += Solver::logStr();
    return str;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x50(%rbp)
movq %rdi, %rax
movq %rax, -0x60(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movb $0x0, -0x11(%rbp)
callq 0x86b0
movq -0x50(%rbp), %rdi
leaq 0xa4d1c(%rip), %rsi     # 0xb35c3
callq 0x84c0
jmp 0xe8ae
movq -0x58(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x9da50
jmp 0xe8bd
movq -0x50(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x8640
jmp 0xe8cc
leaq -0x48(%rbp), %rdi
callq 0x8330
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0xe90f
jmp 0xe906
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xe919
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x8330
jmp 0xe919
movq -0x50(%rbp), %rdi
callq 0x8330
movq -0x60(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x8330
movq -0x20(%rbp), %rdi
callq 0x8880
nopl (%rax,%rax)
// File: Kei18[P]pibt/./src/agent/agent.cpp
// Function: Agent::Agent()
Agent::Agent() : id(cntId) {
  ++cntId;
  g = nullptr;
  tau = nullptr;
  updated = false;
  beforeNode = nullptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
movl 0xc7562(%rip), %eax     # 0x10190c
movl %eax, (%rdi)
addq $0x20, %rdi
callq 0x3ac50
movq -0x10(%rbp), %rax
movl 0xc754d(%rip), %ecx     # 0x10190c
addl $0x1, %ecx
movl %ecx, 0xc7544(%rip)     # 0x10190c
movq $0x0, 0x10(%rax)
movq $0x0, 0x18(%rax)
movb $0x0, 0x38(%rax)
movq $0x0, 0x40(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: Kei18[P]pibt/./src/agent/agent.cpp
// Function: Agent::Agent(Node*)
Agent::Agent(Node* _v) : id(cntId) {
  ++cntId;
  g = nullptr;
  tau = nullptr;
  v = nullptr;
  setNode(_v);
  updated = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
movl 0xc74fe(%rip), %eax     # 0x10190c
movl %eax, (%rdi)
addq $0x20, %rdi
movq %rdi, -0x30(%rbp)
callq 0x3ac50
movq -0x28(%rbp), %rdi
movl 0xc74e5(%rip), %eax     # 0x10190c
incl %eax
movl %eax, 0xc74dd(%rip)     # 0x10190c
movq $0x0, 0x10(%rdi)
movq $0x0, 0x18(%rdi)
movq $0x0, 0x8(%rdi)
movq -0x10(%rbp), %rsi
callq 0x3a480
jmp 0x3a452
movq -0x28(%rbp), %rax
movb $0x0, 0x38(%rax)
addq $0x30, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x3ac70
movq -0x18(%rbp), %rdi
callq 0x8880
nop
// File: Kei18[P]pibt/./src/agent/agent.cpp
// Function: Agent::setNode(Node*)
void Agent::setNode(Node* _v) {
  // error check
  if (v != nullptr) {
    auto neigh = v->getNeighbor();
    if (!(_v == v || inArray(_v, neigh))) {
      std::cout << "error@Agent, set invalid node, from "
                << v->getId() << " to " << _v->getId() << std::endl;
      std::exit(1);
    }
  }

  beforeNode = v;
  v = _v;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, 0x8(%rax)
je 0x3a597
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rsi
leaq -0x28(%rbp), %rdi
callq 0x3add0
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
cmpq 0x8(%rcx), %rax
je 0x3a58e
movq -0x10(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x3a670
movb %al, -0x41(%rbp)
jmp 0x3a4db
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x3a58e
jmp 0x3a4e8
movq 0xc6aa9(%rip), %rdi     # 0x100f98
leaq 0x79ffe(%rip), %rsi     # 0xb44f4
callq 0x84d0
movq %rax, -0x50(%rbp)
jmp 0x3a501
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x3ae00
movl %eax, -0x54(%rbp)
jmp 0x3a513
movl -0x54(%rbp), %esi
movq -0x50(%rbp), %rdi
callq 0x8860
movq %rax, -0x60(%rbp)
jmp 0x3a525
movq -0x60(%rbp), %rdi
leaq 0x7c998(%rip), %rsi     # 0xb6ec8
callq 0x84d0
movq %rax, -0x68(%rbp)
jmp 0x3a53b
movq -0x10(%rbp), %rdi
callq 0x3ae00
movl %eax, -0x6c(%rbp)
jmp 0x3a549
movl -0x6c(%rbp), %esi
movq -0x68(%rbp), %rdi
callq 0x8860
movq %rax, -0x78(%rbp)
jmp 0x3a55b
movq -0x78(%rbp), %rdi
movq 0xc69e2(%rip), %rsi     # 0x100f48
callq 0x8520
jmp 0x3a56d
movl $0x1, %edi
callq 0x85d0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xd7d0
jmp 0x3a5b4
leaq -0x28(%rbp), %rdi
callq 0xd7d0
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
addq $0x80, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x8880
nopl (%rax)
// File: Kei18[P]pibt/./src/agent/agent.cpp
// Function: Agent::updateHist()
void Agent::updateHist() {
  AgentStatus* s = new AgentStatus;
  s->v = v;
  if (hasGoal()) {
    s->g = g;
  } else {
    s->g = nullptr;
  }
  if (hasTask()) {
    s->tau = tau;
  } else {
    s->tau = nullptr;
  }
  hist.push_back(s);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x18, %edi
callq 0x84e0
movq -0x18(%rbp), %rdi
movq %rax, -0x10(%rbp)
movq 0x8(%rdi), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
callq 0x3ae10
testb $0x1, %al
jne 0x3a71c
jmp 0x3a72e
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x3a73a
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x18(%rbp), %rdi
callq 0x3ae30
testb $0x1, %al
jne 0x3a749
jmp 0x3a75b
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x3a767
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
leaq -0x10(%rbp), %rsi
callq 0x3ae50
addq $0x20, %rsp
popq %rbp
retq
nop
// File: Kei18[P]pibt/./src/graph/graph.cpp
// Function: Graph::~Graph()
Graph::~Graph() {
  for (auto v : nodes) delete v;
  nodes.clear();
  for (auto p : knownPaths) delete p.second;
  knownPaths.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0xc4152(%rip), %rcx     # 0x100570
addq $0x10, %rcx
movq %rcx, (%rax)
addq $0x10, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3b730
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3b760
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x3b790
testb $0x1, %al
jne 0x3c45a
jmp 0x3c49c
leaq -0x18(%rbp), %rdi
callq 0x3bb00
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, %rax
je 0x3c48f
movq -0x78(%rbp), %rdi
callq 0x3e9d0
movq -0x78(%rbp), %rdi
movl $0x28, %esi
callq 0x84f0
jmp 0x3c491
leaq -0x18(%rbp), %rdi
callq 0x3bad0
jmp 0x3c447
movq -0x70(%rbp), %rdi
addq $0x10, %rdi
callq 0x3e9f0
movq -0x70(%rbp), %rax
addq $0x28, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x3ea10
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
callq 0x3ea40
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3ea70
testb $0x1, %al
jne 0x3c4e2
jmp 0x3c532
leaq -0x38(%rbp), %rdi
callq 0x3eaa0
movq %rax, %rsi
leaq -0x68(%rbp), %rdi
callq 0x3ead0
jmp 0x3c4f9
movq -0x48(%rbp), %rax
movq %rax, -0x80(%rbp)
cmpq $0x0, %rax
je 0x3c51e
movq -0x80(%rbp), %rdi
callq 0x3eb10
movq -0x80(%rbp), %rdi
movl $0x28, %esi
callq 0x84f0
leaq -0x68(%rbp), %rdi
callq 0x3eb30
leaq -0x38(%rbp), %rdi
callq 0x3eb50
jmp 0x3c4cf
movq -0x70(%rbp), %rdi
addq $0x28, %rdi
callq 0x3eb80
movq -0x70(%rbp), %rdi
addq $0x80, %rdi
callq 0xd7d0
movq -0x70(%rbp), %rdi
addq $0x68, %rdi
callq 0xd7d0
movq -0x70(%rbp), %rdi
addq $0x28, %rdi
callq 0x3e9b0
movq -0x70(%rbp), %rdi
addq $0x10, %rdi
callq 0xd7d0
addq $0x80, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0xe520
nopw (%rax,%rax)
// File: Kei18[P]pibt/./src/graph/graph.cpp
// Function: Graph::getNode(int)
Node* Graph::getNode(int id) {
  auto itr = std::find_if(nodes.begin(), nodes.end(),
                          [id](Node* v){ return v->getId() == id; });
  // error check
  if (itr == nodes.end()) {
    std::cout << "error@Graph::getNode, "
              << "node index is over, " << id << "\n";
    std::exit(1);
  }

  return *itr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
addq $0x10, %rdi
callq 0x3b730
movq -0x40(%rbp), %rdi
movq %rax, -0x20(%rbp)
addq $0x10, %rdi
callq 0x3b760
movq %rax, -0x28(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
callq 0x3c660
movq -0x40(%rbp), %rdi
movq %rax, -0x18(%rbp)
addq $0x10, %rdi
callq 0x3b760
movq %rax, -0x38(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3eba0
testb $0x1, %al
jne 0x3c603
jmp 0x3c649
movq 0xc498e(%rip), %rdi     # 0x100f98
leaq 0x77f62(%rip), %rsi     # 0xb4573
callq 0x84d0
movq %rax, %rdi
leaq 0x77f6a(%rip), %rsi     # 0xb458a
callq 0x84d0
movq %rax, %rdi
movl -0xc(%rbp), %esi
callq 0x8860
movq %rax, %rdi
leaq 0x76f7d(%rip), %rsi     # 0xb35b7
callq 0x84d0
movl $0x1, %edi
callq 0x85d0
leaq -0x18(%rbp), %rdi
callq 0x3bb00
movq (%rax), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: Kei18[P]pibt/./src/graph/graph.cpp
// Function: Graph::getNode(int, int)
Node* Graph::getNode(int x, int y) {
  auto itr = std::find_if(nodes.begin(), nodes.end(),
                          [x, y](Node* v)
                          { return v->getPos().x == x
                              && v->getPos().y == y; });
  if (itr == nodes.end()) return nullptr;
  return *itr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x48(%rbp)
addq $0x10, %rdi
callq 0x3b730
movq -0x48(%rbp), %rdi
movq %rax, -0x28(%rbp)
addq $0x10, %rdi
callq 0x3b760
movq %rax, -0x30(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x3c770
movq -0x48(%rbp), %rdi
movq %rax, -0x20(%rbp)
addq $0x10, %rdi
callq 0x3b760
movq %rax, -0x40(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3eba0
testb $0x1, %al
jne 0x3c73d
jmp 0x3c747
movq $0x0, -0x8(%rbp)
jmp 0x3c757
leaq -0x20(%rbp), %rdi
callq 0x3bb00
movq (%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: Kei18[P]pibt/./src/graph/graph.cpp
// Function: Graph::getKey[abi:cxx11](Node*, Node*)
std::string Graph::getKey(Node* s, Node* g) {
  int sIndex = getNodeIndex(s);
  int gIndex = getNodeIndex(g);
  std::string key = "";
  key += std::to_string(sIndex);
  key += "-";
  key += std::to_string(gIndex);
  return key;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x90(%rbp)
movq %rdi, %rax
movq %rax, -0xa0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x98(%rbp)
movq -0x18(%rbp), %rsi
callq 0x3c8b0
movq -0x98(%rbp), %rdi
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rsi
callq 0x3c8b0
movl %eax, -0x28(%rbp)
movb $0x0, -0x29(%rbp)
leaq -0x2a(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0x8890
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rdx
leaq 0x75f09(%rip), %rsi     # 0xb35b8
callq 0xd8c0
jmp 0x3d6b6
leaq -0x2a(%rbp), %rdi
callq 0x8540
movl -0x24(%rbp), %esi
leaq -0x60(%rbp), %rdi
callq 0xdf50
jmp 0x3d6cd
movq -0x90(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x8640
jmp 0x3d6df
leaq -0x60(%rbp), %rdi
callq 0x8330
movq -0x90(%rbp), %rdi
leaq 0x7a1fd(%rip), %rsi     # 0xb78f3
callq 0x84c0
jmp 0x3d6fd
movl -0x28(%rbp), %esi
leaq -0x80(%rbp), %rdi
callq 0xdf50
jmp 0x3d70b
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x8640
jmp 0x3d71d
leaq -0x80(%rbp), %rdi
callq 0x8330
movb $0x1, -0x29(%rbp)
testb $0x1, -0x29(%rbp)
jne 0x3d791
jmp 0x3d785
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x2a(%rbp), %rdi
callq 0x8540
jmp 0x3d7ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x3d7a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x8330
jmp 0x3d7a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x8330
jmp 0x3d7a1
movq -0x90(%rbp), %rdi
callq 0x8330
movq -0xa0(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
movq -0x90(%rbp), %rdi
callq 0x8330
movq -0x38(%rbp), %rdi
callq 0x8880
nopw %cs:(%rax,%rax)
// File: Kei18[P]pibt/./src/graph/graph.cpp
// Function: Graph::registerPath(std::vector<Node*, std::allocator<Node*>> const&)
void Graph::registerPath(const Nodes &path) {
  if (path.empty()) return;

  Nodes tmp = path;
  std::string key;

  Node *v1, *v2;
  do {
    v1 = tmp[0];
    v2 = tmp[tmp.size() - 1];
    key = getKey(v1, v2);
    KnownPath* knownPath = new KnownPath { v1, v2, tmp };
    knownPaths.emplace(key, knownPath);
    tmp.erase(tmp.begin());
  } while (tmp.size() > 2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3ec00
testb $0x1, %al
jne 0x3d85d
jmp 0x3d862
jmp 0x3d9f5
movq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x3aff0
leaq -0x48(%rbp), %rdi
callq 0x86b0
xorl %eax, %eax
movl %eax, %esi
leaq -0x28(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0xda90
movq -0xc8(%rbp), %rdi
movq (%rax), %rax
movq %rax, -0x50(%rbp)
callq 0x3b0e0
movq -0xc8(%rbp), %rdi
movq %rax, %rsi
decq %rsi
callq 0xda90
movq -0xc0(%rbp), %rsi
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
leaq -0x78(%rbp), %rdi
callq 0x3d630
jmp 0x3d8d2
leaq -0x48(%rbp), %rdi
leaq -0x78(%rbp), %rsi
movq %rsi, -0xd8(%rbp)
callq 0x85f0
movq -0xd8(%rbp), %rdi
callq 0x8330
movl $0x28, %edi
callq 0x84e0
movq %rax, -0xd0(%rbp)
jmp 0x3d905
movq -0xd0(%rbp), %rdi
movq -0x50(%rbp), %rax
movq %rax, (%rdi)
movq -0x58(%rbp), %rax
movq %rax, 0x8(%rdi)
addq $0x10, %rdi
leaq -0x28(%rbp), %rsi
callq 0x3aff0
jmp 0x3d92a
movq -0xc0(%rbp), %rdi
movq -0xd0(%rbp), %rax
movq %rax, -0x90(%rbp)
addq $0x28, %rdi
leaq -0x48(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x3f5c0
movb %dl, -0xe1(%rbp)
movq %rax, -0xe0(%rbp)
jmp 0x3d962
movb -0xe1(%rbp), %al
movq -0xe0(%rbp), %rcx
movq %rcx, -0xa0(%rbp)
movb %al, -0x98(%rbp)
leaq -0x28(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x3b730
movq %rax, -0xb0(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x3f680
movq -0xf8(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x3f610
movq %rax, -0xf0(%rbp)
jmp 0x3d9c2
movq -0xf0(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3b0e0
cmpq $0x2, %rax
ja 0x3d878
leaq -0x48(%rbp), %rdi
callq 0x8330
leaq -0x28(%rbp), %rdi
callq 0xd7d0
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x3da2f
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movl $0x28, %esi
callq 0x84f0
leaq -0x48(%rbp), %rdi
callq 0x8330
leaq -0x28(%rbp), %rdi
callq 0xd7d0
movq -0x80(%rbp), %rdi
callq 0x8880
nopw (%rax,%rax)
// File: Kei18[P]pibt/./src/graph/graph.h
// Function: Fib_AN::operator<(Fib_AN const&) const
bool operator<(const Fib_AN& other) const {
    if (node->f != other.node->f) {
      return node->f > other.node->f;
    } else {
      return node->g < other.node->g;
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq (%rax), %rax
movl 0xc(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
cmpl 0xc(%rcx), %eax
je 0x431b4
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0xc(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
cmpl 0xc(%rcx), %eax
setg %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x431d0
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0x8(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
cmpl 0x8(%rcx), %eax
setl %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
popq %rbp
retq
nopw (%rax,%rax)
// File: Kei18[P]pibt/./src/graph/grid.cpp
// Function: Grid::manhattanDist(Node*, Node*)
int Grid::manhattanDist(Node* v, Node* u) {
  Vec2f vPos = v->getPos();
  Vec2f uPos = u->getPos();
  return (int)(std::abs((int)(vPos.x - uPos.x))
               + std::abs((int)(vPos.y - uPos.y)));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x416e0
movlpd %xmm0, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x416e0
movlpd %xmm0, -0x20(%rbp)
movss -0x18(%rbp), %xmm0
subss -0x20(%rbp), %xmm0
cvttss2si %xmm0, %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movss -0x14(%rbp), %xmm0
subss -0x1c(%rbp), %xmm0
cvttss2si %xmm0, %ecx
movl %ecx, %edx
negl %edx
cmovnsl %edx, %ecx
addl %ecx, %eax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: Kei18[P]pibt/./src/graph/grid.cpp
// Function: Grid::logStr[abi:cxx11]()
std::string Grid::logStr() {
  std::string str;
  str += "[graph] width:" + std::to_string(getW()) + "\n";
  str += "[graph] height:" + std::to_string(getH()) + "\n";
  return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x108(%rbp)
movq %rdi, %rax
movq %rax, -0x100(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xf8(%rbp)
movb $0x0, -0x11(%rbp)
callq 0x86b0
movq -0xf8(%rbp), %rdi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
movl %eax, -0xec(%rbp)
jmp 0x484af
movl -0xec(%rbp), %esi
leaq -0x78(%rbp), %rdi
callq 0xdf50
jmp 0x484c0
leaq 0x6ccc1(%rip), %rsi     # 0xb5188
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0xdf00
jmp 0x484d6
leaq 0x6b0da(%rip), %rdx     # 0xb35b7
leaq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0xdeb0
jmp 0x484ec
movq -0x108(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x8640
jmp 0x484fe
leaq -0x38(%rbp), %rdi
callq 0x8330
leaq -0x58(%rbp), %rdi
callq 0x8330
leaq -0x78(%rbp), %rdi
callq 0x8330
movq -0xf8(%rbp), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
callq *%rax
movl %eax, -0x10c(%rbp)
jmp 0x48531
movl -0x10c(%rbp), %esi
leaq -0xe8(%rbp), %rdi
callq 0xdf50
jmp 0x48545
leaq 0x6cc4b(%rip), %rsi     # 0xb5197
leaq -0xc8(%rbp), %rdi
leaq -0xe8(%rbp), %rdx
callq 0xdf00
jmp 0x48561
leaq 0x6b04f(%rip), %rdx     # 0xb35b7
leaq -0xa8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xdeb0
jmp 0x4857d
movq -0x108(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x8640
jmp 0x48592
leaq -0xa8(%rbp), %rdi
callq 0x8330
leaq -0xc8(%rbp), %rdi
callq 0x8330
leaq -0xe8(%rbp), %rdi
callq 0x8330
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x4868e
jmp 0x48682
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x4869e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x48620
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x48617
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x8330
leaq -0x58(%rbp), %rdi
callq 0x8330
leaq -0x78(%rbp), %rdi
callq 0x8330
jmp 0x4869e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x48674
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x48668
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x8330
leaq -0xc8(%rbp), %rdi
callq 0x8330
leaq -0xe8(%rbp), %rdi
callq 0x8330
jmp 0x4869e
movq -0x108(%rbp), %rdi
callq 0x8330
movq -0x100(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0x108(%rbp), %rdi
callq 0x8330
movq -0x80(%rbp), %rdi
callq 0x8880
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: Kei18[P]pibt/./src/graph/pd.cpp
// Function: PD::setStartGoal()
void PD::setStartGoal() {
  // initialization
  starts.clear();
  goals.clear();

  // update starts
  starts = endpoints;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
addq $0x68, %rdi
callq 0x3e9f0
movq -0x10(%rbp), %rdi
addq $0x80, %rdi
callq 0x3e9f0
movq -0x10(%rbp), %rdi
movq %rdi, %rsi
addq $0xf0, %rsi
addq $0x68, %rdi
callq 0x3eca0
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: Kei18[P]pibt/./src/graph/simplegrid.cpp
// Function: SimpleGrid::init()
void SimpleGrid::init() {
  setBasicParams();  // read w, h
  createNodes();     // create nodes, not edges
  createEdges();     // set neighbor
  setStartGoal();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
callq 0x4aac0
movq -0x10(%rbp), %rdi
callq 0x4afc0
movq -0x10(%rbp), %rdi
callq 0x4b520
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
callq *0x68(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: Kei18[P]pibt/./src/graph/simplegrid.cpp
// Function: SimpleGrid::getNewGoal(Node*)
Node* SimpleGrid::getNewGoal(Node* v) {
  Node* u;
  do {
    u = randomChoose(goals, MT);
  } while (u == v);
  return u;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, %rdi
addq $0x80, %rdi
movq 0x60(%rax), %rsi
callq 0x4bff0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x10(%rbp), %rax
je 0x4bfb8
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: Kei18[P]pibt/./src/graph/station.cpp
// Function: Station::setStartGoal()
void Station::setStartGoal() {
  // initialization
  starts.clear();
  goals.clear();

  // update starts
  for (auto st : stations) {
    for (auto v : st) {
      starts.push_back(v);
      goals.push_back(v);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x70(%rbp)
addq $0x68, %rdi
callq 0x3e9f0
movq -0x70(%rbp), %rdi
addq $0x80, %rdi
callq 0x3e9f0
movq -0x70(%rbp), %rax
addq $0xc8, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x377e0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x37500
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x4e640
testb $0x1, %al
jne 0x4d24b
jmp 0x4d306
leaq -0x18(%rbp), %rdi
callq 0x37d00
movq %rax, %rsi
leaq -0x38(%rbp), %rdi
callq 0x3aff0
leaq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x3b730
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x3b760
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x3b790
testb $0x1, %al
jne 0x4d295
jmp 0x4d2ef
leaq -0x48(%rbp), %rdi
callq 0x3bb00
movq -0x70(%rbp), %rdi
movq (%rax), %rax
movq %rax, -0x58(%rbp)
addq $0x68, %rdi
leaq -0x58(%rbp), %rsi
callq 0x3f490
jmp 0x4d2b8
movq -0x70(%rbp), %rdi
subq $-0x80, %rdi
leaq -0x58(%rbp), %rsi
callq 0x3f490
jmp 0x4d2cb
jmp 0x4d2cd
leaq -0x48(%rbp), %rdi
callq 0x3bad0
jmp 0x4d282
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xd7d0
jmp 0x4d30c
leaq -0x38(%rbp), %rdi
callq 0xd7d0
leaq -0x18(%rbp), %rdi
callq 0x4e750
jmp 0x4d235
addq $0x70, %rsp
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x8880
nopw %cs:(%rax,%rax)
// File: Kei18[P]pibt/./src/graph/station.cpp
// Function: Station::getNewGoal(Node*)
Node* Station::getNewGoal(Node* v) {
  int vIn = -1;
  std::vector<int> cands;
  for (int i = 0; i < stations.size(); ++i) {
    cands.push_back(i);
    if (inArray(v, stations[i])) vIn = i;
  }

  int newSt;
  do {
    newSt = randomChoose(cands, MT);
  } while (newSt == vIn);

  return randomChoose(stations[newSt], MT);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movl $0xffffffff, -0x14(%rbp) # imm = 0xFFFFFFFF
leaq -0x30(%rbp), %rdi
callq 0x4e800
movl $0x0, -0x34(%rbp)
movq -0x50(%rbp), %rdi
movslq -0x34(%rbp), %rax
movq %rax, -0x58(%rbp)
addq $0xc8, %rdi
callq 0x37930
movq %rax, %rcx
movq -0x58(%rbp), %rax
cmpq %rcx, %rax
jae 0x4de0a
leaq -0x30(%rbp), %rdi
leaq -0x34(%rbp), %rsi
callq 0x4e820
jmp 0x4dda5
movq -0x50(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
addq $0xc8, %rdi
movslq -0x34(%rbp), %rsi
callq 0xda70
movq -0x68(%rbp), %rdi
movq %rax, %rsi
callq 0x4de80
movb %al, -0x59(%rbp)
jmp 0x4ddd2
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x4dddb
jmp 0x4ddfa
movl -0x34(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x4ddfa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x4e960
jmp 0x4de70
jmp 0x4ddfc
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x4dd72
jmp 0x4de0c
movq -0x50(%rbp), %rax
movq 0x60(%rax), %rsi
leaq -0x30(%rbp), %rdi
callq 0x4dce0
movl %eax, -0x6c(%rbp)
jmp 0x4de22
movl -0x6c(%rbp), %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x14(%rbp), %eax
je 0x4de0c
movq -0x50(%rbp), %rdi
addq $0xc8, %rdi
movslq -0x48(%rbp), %rsi
callq 0xda70
movq %rax, %rdi
movq -0x50(%rbp), %rax
movq 0x60(%rax), %rsi
callq 0x4def0
movq %rax, -0x78(%rbp)
jmp 0x4de5a
leaq -0x30(%rbp), %rdi
callq 0x4e960
movq -0x78(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x8880
nopl (%rax)
// File: Kei18[P]pibt/./src/problem/imapf.cpp
// Function: IMAPF::init()
void IMAPF::init() {
  taskSum = 0;
  taskSumStr = "0,";
  nodes = G->getNodes();

  // initial allocation
  for (auto a : A) {
    allocate(a);
    a->updateHist();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
movl $0x0, 0x90(%rdi)
addq $0xb0, %rdi
leaq 0x64848(%rip), %rsi     # 0xb5514
callq 0x86a0
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x20(%rbp), %rdi
callq 0x51ba0
movq -0x48(%rbp), %rdi
addq $0x98, %rdi
leaq -0x20(%rbp), %rsi
callq 0x3f230
leaq -0x20(%rbp), %rdi
callq 0xd7d0
movq -0x48(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x39b60
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x399f0
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x51bd0
testb $0x1, %al
jne 0x50d38
jmp 0x50d69
leaq -0x30(%rbp), %rdi
callq 0x51c10
movq -0x48(%rbp), %rdi
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rsi
callq 0x50ef0
movq -0x40(%rbp), %rdi
callq 0x3a6e0
leaq -0x30(%rbp), %rdi
callq 0x51c30
jmp 0x50d25
addq $0x50, %rsp
popq %rbp
retq
nop
// File: Kei18[P]pibt/./src/problem/imapf.cpp
// Function: IMAPF::allocate(Agent*)
void IMAPF::allocate(Agent* a) {
  Node* v = G->getNewGoal(a->getNode());
  Task* tau = new Task(v, timestep);
  a->setTask(tau);
  a->setGoal(a->getTask()->getG()[0]);
  T_OPEN.push_back(tau);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x51cb0
movq -0x60(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
movq %rax, -0x18(%rbp)
movl $0x40, %edi
callq 0x84e0
movq %rax, %rdi
movq -0x58(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x50(%rbp)
movq -0x18(%rbp), %rsi
movl 0x8(%rax), %edx
callq 0xb18a0
jmp 0x50f53
movq -0x50(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x51cf0
movq -0x10(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x51c90
movq %rax, %rsi
leaq -0x48(%rbp), %rdi
movq %rdi, -0x70(%rbp)
callq 0x51d30
movq -0x70(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xda90
movq -0x68(%rbp), %rdi
movq (%rax), %rsi
callq 0x51d10
jmp 0x50fa0
leaq -0x48(%rbp), %rdi
callq 0xd7d0
movq -0x58(%rbp), %rdi
addq $0x30, %rdi
leaq -0x20(%rbp), %rsi
callq 0xdb40
addq $0x70, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x40, %esi
callq 0x84f0
jmp 0x50ff1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xd7d0
movq -0x28(%rbp), %rdi
callq 0x8880
nopw (%rax,%rax)
// File: Kei18[P]pibt/./src/problem/imapf.cpp
// Function: IMAPF::isSolved()
bool IMAPF::isSolved() {
  if (taskSum < taskLimit) return false;
  // check all tasks are completed or not
  for (int i = 0; i < taskLimit; ++i) {
    auto itr = std::find_if(T_CLOSE.begin(), T_CLOSE.end(),
                            [i] (Task* tau) { return tau->getId() == i; });
    if (itr == T_CLOSE.end()) return false;
  }
  return true;;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movl 0x90(%rcx), %eax
cmpl 0x94(%rcx), %eax
jge 0x5102b
movb $0x0, -0x1(%rbp)
jmp 0x510bb
movl $0x0, -0x14(%rbp)
movq -0x48(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x94(%rcx), %eax
jge 0x510b7
movq -0x48(%rbp), %rdi
addq $0x48, %rdi
callq 0x3a140
movq -0x48(%rbp), %rdi
movq %rax, -0x28(%rbp)
addq $0x48, %rdi
callq 0x39fd0
movq %rax, -0x30(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x34(%rbp), %edx
callq 0x510d0
movq -0x48(%rbp), %rdi
movq %rax, -0x20(%rbp)
addq $0x48, %rdi
callq 0x39fd0
movq %rax, -0x40(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x51c50
testb $0x1, %al
jne 0x510a1
jmp 0x510a7
movb $0x0, -0x1(%rbp)
jmp 0x510bb
jmp 0x510a9
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x51032
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: Kei18[P]pibt/./src/problem/imapf.cpp
// Function: IMAPF::update()
void IMAPF::update() {
  ++timestep;

  for (auto a : A) {
    auto tau = a->getTask();
    if (tau) {
      tau->update(a->getNode());

      if (tau->completed()) {
        ++taskSum;
        tau->setEndTime(timestep);
        a->releaseTask();
        openToClose(tau, T_OPEN, T_CLOSE);
        allocate(a);
        a->goalUpdated(true);
      } else {
        a->goalUpdated(false);
      }
    } else {
      allocate(a);
    }
    a->updateHist();
  }

  taskSumStr += std::to_string(taskSum) + ",";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
addq $0x18, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x39b60
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x399f0
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x51bd0
testb $0x1, %al
jne 0x5118b
jmp 0x5127f
leaq -0x18(%rbp), %rdi
callq 0x51c10
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x51c90
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x51258
movq -0x30(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x28(%rbp), %rdi
callq 0x51cb0
movq -0x90(%rbp), %rdi
movq %rax, %rsi
callq 0xb1a70
movq -0x30(%rbp), %rdi
callq 0xb1b50
testb $0x1, %al
jne 0x511e5
jmp 0x5124b
movq -0x88(%rbp), %rax
movl 0x90(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x90(%rax)
movq -0x30(%rbp), %rdi
movl 0x8(%rax), %esi
callq 0xb1b70
movq -0x28(%rbp), %rdi
callq 0x3a780
movq -0x88(%rbp), %rdx
movq -0x30(%rbp), %rdi
movq %rdx, %rsi
addq $0x30, %rsi
addq $0x48, %rdx
callq 0x51320
movq -0x88(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x50ef0
movq -0x28(%rbp), %rdi
movl $0x1, %esi
callq 0x51cd0
jmp 0x51256
movq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x51cd0
jmp 0x51268
movq -0x88(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x50ef0
movq -0x28(%rbp), %rdi
callq 0x3a6e0
leaq -0x18(%rbp), %rdi
callq 0x51c30
jmp 0x51175
movq -0x88(%rbp), %rax
movl 0x90(%rax), %esi
leaq -0x70(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0xdf50
movq -0x98(%rbp), %rsi
leaq 0x63289(%rip), %rdx     # 0xb4533
leaq -0x50(%rbp), %rdi
callq 0xdeb0
jmp 0x512b5
movq -0x88(%rbp), %rdi
addq $0xb0, %rdi
leaq -0x50(%rbp), %rsi
callq 0x8640
jmp 0x512ce
leaq -0x50(%rbp), %rdi
callq 0x8330
leaq -0x70(%rbp), %rdi
callq 0x8330
addq $0xa0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x5130c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x8330
leaq -0x70(%rbp), %rdi
callq 0x8330
movq -0x78(%rbp), %rdi
callq 0x8880
nop
// File: Kei18[P]pibt/./src/problem/../util/util.h
// Function: void openToClose<Task*>(Task*, std::vector<Task*, std::allocator<Task*>>&, std::vector<Task*, std::allocator<Task*>>&)
static void openToClose(T a, std::vector<T>& OPEN, std::vector<T> &CLOSE) {
  auto itr = std::find(OPEN.begin(), OPEN.end(), a);
  if (itr != OPEN.end()) {
    CLOSE.push_back(*itr);
    OPEN.erase(itr);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3a140
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x39fd0
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x8(%rbp), %rdx
callq 0x520b0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x39fd0
movq %rax, -0x38(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x51e40
testb $0x1, %al
jne 0x51383
jmp 0x513c6
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x51e80
movq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0xdb40
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x52170
movq -0x50(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x52100
movq %rax, -0x48(%rbp)
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
// File: Kei18[P]pibt/./src/problem/imapf_fair.cpp
// Function: IMAPF_FAIR::init()
void IMAPF_FAIR::init() {
  taskSum = 0;

  // initial allocation
  for (auto a : A) {
    goalCounts.push_back(0);
    allocate(a);
    a->updateHist();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x0, 0x94(%rax)
addq $0x18, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x39b60
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x399f0
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x51bd0
testb $0x1, %al
jne 0x529b3
jmp 0x529ff
leaq -0x18(%rbp), %rdi
callq 0x51c10
movq -0x38(%rbp), %rdi
movq (%rax), %rax
movq %rax, -0x28(%rbp)
addq $0x98, %rdi
movl $0x0, -0x2c(%rbp)
leaq -0x2c(%rbp), %rsi
callq 0x536f0
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x52b60
movq -0x28(%rbp), %rdi
callq 0x3a6e0
leaq -0x18(%rbp), %rdi
callq 0x51c30
jmp 0x529a0
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: Kei18[P]pibt/./src/problem/imapf_fair.cpp
// Function: IMAPF_FAIR::update()
void IMAPF_FAIR::update() {
  ++timestep;
  Agent* a;

  for (int i = 0; i < A.size(); ++i) {
    a = A[i];
    auto tau = a->getTask();
    if (tau) {
      tau->update(a->getNode());

      if (tau->completed()) {
        ++taskSum;
        goalCounts[i] += 1;
        tau->setEndTime(timestep);
        a->releaseTask();
        openToClose(tau, T_OPEN, T_CLOSE);
        allocate(a);
        a->goalUpdated(true);
      } else {
        a->goalUpdated(false);
      }
    } else {
      allocate(a);
    }
    a->updateHist();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
movl $0x0, -0x14(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x14(%rbp), %rax
movq %rax, -0x30(%rbp)
addq $0x18, %rdi
callq 0x383b0
movq %rax, %rcx
movq -0x30(%rbp), %rax
cmpq %rcx, %rax
jae 0x52dc1
movq -0x28(%rbp), %rdi
addq $0x18, %rdi
movslq -0x14(%rbp), %rsi
callq 0x53720
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x51c90
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x52d9d
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x51cb0
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0xb1a70
movq -0x20(%rbp), %rdi
callq 0xb1b50
testb $0x1, %al
jne 0x52d15
jmp 0x52d90
movq -0x28(%rbp), %rdi
movl 0x94(%rdi), %eax
addl $0x1, %eax
movl %eax, 0x94(%rdi)
addq $0x98, %rdi
movslq -0x14(%rbp), %rsi
callq 0x4ea00
movq %rax, %rcx
movq -0x28(%rbp), %rax
movl (%rcx), %edx
addl $0x1, %edx
movl %edx, (%rcx)
movq -0x20(%rbp), %rdi
movl 0x8(%rax), %esi
callq 0xb1b70
movq -0x10(%rbp), %rdi
callq 0x3a780
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rdi
movq %rdx, %rsi
addq $0x30, %rsi
addq $0x48, %rdx
callq 0x52dd0
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x52b60
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x51cd0
jmp 0x52d9b
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x51cd0
jmp 0x52daa
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x52b60
movq -0x10(%rbp), %rdi
callq 0x3a6e0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x52c94
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)