// File: /workspace/github_cpp_makefile_star2_O2/Kei18[P]pibt/./src/util/param.h
// Function: setScenario(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::vector<Node*, std::allocator<Node*>>, std::allocator<std::vector<Node*, std::allocator<Node*>>>>&, Graph*)
void setScenario(std::string filename, Paths &points, Graph* G)
{
  // file open
  std::ifstream file(filename);
  if (!file) {
    std::cout << "error@setScenario, file "
              << filename
              <<" cannot be read." << "\n";
    std::exit(1);
  }

  std::regex r_config = std::regex(R"(\d+\t.+?\t\d+\t\d+\t(\d+)\t(\d+)\t(\d+)\t(\d+)\t.+)");

  std::string line;
  std::smatch results;
  int x1, y1, x2, y2;

  // read files
  while (getline(file, line)) {
    if (std::regex_match(line, results, r_config)) {
      x1 = std::stoi(results[1].str());
      y1 = std::stoi(results[2].str());
      x2 = std::stoi(results[3].str());
      y2 = std::stoi(results[4].str());
      points.push_back({G->getNode(x1, y1), G->getNode(x2, y2)});
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rdx, %r15
movq %rsi, 0x30(%rsp)
movq %rdi, %rbx
leaq 0xb0(%rsp), %r14
pushq $0x8
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x65a0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xd0(%rsp,%rax)
jne 0x800f
movq %r15, 0x38(%rsp)
leaq 0x3259b(%rip), %rsi     # 0x3a34a
leaq 0x90(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0x9162
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r12
movaps %xmm0, 0x10(%r12)
movaps %xmm0, (%r12)
leaq 0x50(%rsp), %r13
pushq $0xa
popq %rbp
pushq $0x18
popq %r15
leaq 0xb0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x60b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7fcf
leaq 0x70(%rsp), %rdi
movq %r12, %rsi
leaq 0x90(%rsp), %rdx
xorl %ecx, %ecx
callq 0x91c8
testb %al, %al
je 0x7df2
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
subq %rsi, %rcx
je 0x7e58
movq %rcx, %rax
cqto
idivq %r15
addq $-0x5, %rax
cmpq $-0x3, %rax
ja 0x7e58
addq $0x18, %rsi
jmp 0x7e5f
addq %rcx, %rsi
addq $-0x48, %rsi
movq %r13, %rdi
callq 0x91e4
movq %r13, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x922b
movl %eax, 0xc(%rsp)
movq %r13, %rdi
callq 0x61d0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
subq %rsi, %rcx
je 0x7ea6
movq %rcx, %rax
cqto
idivq %r15
addq $-0x6, %rax
cmpq $-0x4, %rax
ja 0x7ea6
addq $0x30, %rsi
jmp 0x7ead
addq %rcx, %rsi
addq $-0x48, %rsi
movq %r13, %rdi
callq 0x91e4
movq %r13, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x922b
movl %eax, 0x8(%rsp)
movq %r13, %rdi
callq 0x61d0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
subq %rsi, %rcx
je 0x7ef4
movq %rcx, %rax
cqto
idivq %r15
addq $-0x7, %rax
cmpq $-0x5, %rax
ja 0x7ef4
addq $0x48, %rsi
jmp 0x7efb
addq %rcx, %rsi
addq $-0x48, %rsi
movq %r13, %rdi
callq 0x91e4
movq %r13, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x922b
movl %eax, 0x4(%rsp)
movq %r13, %rdi
callq 0x61d0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
subq %rsi, %rcx
je 0x7f42
movq %rcx, %rax
cqto
idivq %r15
addq $-0x8, %rax
cmpq $-0x6, %rax
ja 0x7f42
addq $0x60, %rsi
jmp 0x7f49
addq %rcx, %rsi
addq $-0x48, %rsi
movq %r13, %rdi
callq 0x91e4
movq %r13, %rdi
xorl %esi, %esi
movl %ebp, %r14d
movl %ebp, %edx
callq 0x922b
movl %eax, %ebp
movq %r13, %rbx
movq %r13, %rdi
callq 0x61d0
movq 0x38(%rsp), %r13
movq %r13, %rdi
movl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x162e4
movq %rax, 0x40(%rsp)
movq %r13, %rdi
movl 0x4(%rsp), %esi
movl %ebp, %edx
callq 0x162e4
movq %rax, 0x48(%rsp)
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
pushq $0x2
popq %rdx
leaq 0x3(%rsp), %rcx
callq 0x927a
movq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x15146
movl %r14d, %ebp
movq %rbx, %rdi
callq 0x990e
movq %rbx, %r13
jmp 0x7df2
leaq 0x10(%rsp), %rdi
callq 0x9690
leaq 0x70(%rsp), %rdi
callq 0x61d0
leaq 0x90(%rsp), %rdi
callq 0x9260
leaq 0xb0(%rsp), %rdi
callq 0x6120
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x51f82(%rip), %rdi     # 0x59f98
leaq 0x32303(%rip), %rsi     # 0x3a320
callq 0x63a0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6360
leaq 0x32305(%rip), %rsi     # 0x3a339
movq %rax, %rdi
callq 0x63a0
leaq 0x32520(%rip), %rsi     # 0x3a563
movq %rax, %rdi
callq 0x63a0
pushq $0x1
popq %rdi
callq 0x6450
jmp 0x8055
movq %rax, %rbx
jmp 0x80ae
jmp 0x8077
jmp 0x8077
jmp 0x8077
jmp 0x808a
jmp 0x808a
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x990e
jmp 0x808d
jmp 0x808a
jmp 0x808a
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x61d0
jmp 0x808d
jmp 0x808a
jmp 0x808a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x9690
leaq 0x70(%rsp), %rdi
callq 0x61d0
leaq 0x90(%rsp), %rdi
callq 0x9260
leaq 0xb0(%rsp), %rdi
callq 0x6120
movq %rbx, %rdi
callq 0x6650