// File: /workspace/github_cpp_makefile_star2_O1/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 $0x2c8, %rsp            # imm = 0x2C8
movq %rdx, %r14
movq %rsi, 0x88(%rsp)
movq %rdi, %rbx
leaq 0xc0(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x6590
movq (%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xe0(%rsp,%rax)
jne 0x9959
leaq 0x3ef96(%rip), %rsi     # 0x4834a
leaq 0xa0(%rsp), %rdi
movl $0x10, %edx
callq 0xb26e
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rax
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
leaq 0x18(%rsp), %r12
movq %r14, 0x90(%rsp)
movq 0xc0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x6350
movsbl %al, %edx
movq %rbp, %rdi
leaq 0x68(%rsp), %rsi
callq 0x6650
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x989a
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
addq %rdi, %rsi
leaq 0x40(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
xorl %r8d, %r8d
callq 0x16bf5
testb %al, %al
je 0x93f6
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rax
cmpq %rax, %rcx
je 0x948b
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x5, %rdx
cmpq $-0x2, %rdx
setb %dl
jmp 0x948d
xorl %edx, %edx
leaq 0x8(%rsp), %rdi
addq $0x18, %rcx
addq $-0x48, %rax
testb %dl, %dl
cmovneq %rcx, %rax
cmpb $0x1, 0x10(%rax)
jne 0x94b9
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, 0x8(%rsp)
callq 0x18b72
jmp 0x94cc
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rbx
callq 0x6050
movq %rax, %r13
movl (%rax), %ebp
movl $0x0, (%rax)
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x64e0
cmpq %rbx, 0x30(%rsp)
je 0x9929
movq %rax, %r15
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x9935
movl (%r13), %eax
cmpl $0x22, %eax
je 0x9935
testl %eax, %eax
jne 0x952f
movl %ebp, (%r13)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9546
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rax
cmpq %rax, %rcx
leaq 0x8(%rsp), %rdi
je 0x957f
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x6, %rdx
cmpq $-0x3, %rdx
setb %dl
jmp 0x9581
xorl %edx, %edx
addq $0x30, %rcx
addq $-0x48, %rax
testb %dl, %dl
cmovneq %rcx, %rax
cmpb $0x1, 0x10(%rax)
jne 0x95a8
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, 0x8(%rsp)
callq 0x18b72
jmp 0x95bb
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x8(%rsp), %r14
movl (%r13), %ebp
movl $0x0, (%r13)
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x64e0
cmpq %r14, 0x30(%rsp)
je 0x9905
movq %rax, %rbx
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x9911
movl (%r13), %eax
cmpl $0x22, %eax
je 0x9911
testl %eax, %eax
jne 0x961a
movl %ebp, (%r13)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9631
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rax
cmpq %rax, %rcx
leaq 0x8(%rsp), %rdi
je 0x966a
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x7, %rdx
cmpq $-0x4, %rdx
setb %dl
jmp 0x966c
xorl %edx, %edx
addq $0x48, %rcx
addq $-0x48, %rax
testb %dl, %dl
cmovneq %rcx, %rax
cmpb $0x1, 0x10(%rax)
movq %r15, 0x98(%rsp)
jne 0x969b
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, 0x8(%rsp)
callq 0x18b72
jmp 0x96ae
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x8(%rsp), %r14
movl (%r13), %ebp
movl $0x0, (%r13)
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x64e0
cmpq %r14, 0x30(%rsp)
je 0x98f9
movq %rax, %r15
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x9941
movl (%r13), %eax
cmpl $0x22, %eax
je 0x9941
testl %eax, %eax
jne 0x970d
movl %ebp, (%r13)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9724
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rax
cmpq %rax, %rcx
leaq 0x8(%rsp), %rdi
je 0x975d
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x8, %rdx
cmpq $-0x5, %rdx
setb %dl
jmp 0x975f
xorl %edx, %edx
addq $0x60, %rcx
addq $-0x48, %rax
testb %dl, %dl
cmovneq %rcx, %rax
cmpb $0x1, 0x10(%rax)
jne 0x9786
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, 0x8(%rsp)
callq 0x18b72
jmp 0x9799
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rbp
movl (%r13), %r12d
movl $0x0, (%r13)
movq %rbp, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x64e0
cmpq %rbp, 0x30(%rsp)
je 0x994d
movq %rax, %r14
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
leaq 0xc0(%rsp), %rbp
jb 0x991d
movl (%r13), %eax
cmpl $0x22, %eax
je 0x991d
testl %eax, %eax
jne 0x9800
movl %r12d, (%r13)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r12
cmpq %r12, %rdi
je 0x981c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
movq 0x90(%rsp), %r13
movq %r13, %rdi
movq 0x98(%rsp), %rsi
movl %ebx, %edx
callq 0x1a0d6
movq %rax, 0x30(%rsp)
movq %r13, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x1a0d6
movq %rax, 0x38(%rsp)
movl $0x2, %edx
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x2f(%rsp), %rcx
callq 0xb44a
movq 0x88(%rsp), %rdi
movq %rbx, %rsi
callq 0x18be6
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x93f6
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
jmp 0x93f6
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x98b1
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x98cd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6380
leaq 0xa0(%rsp), %rdi
callq 0xb42a
leaq 0xc0(%rsp), %rdi
callq 0x60f0
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3ec65(%rip), %rdi     # 0x48565
callq 0x6220
leaq 0x3ec59(%rip), %rdi     # 0x48565
callq 0x6220
leaq 0x3ec4d(%rip), %rdi     # 0x48565
callq 0x6520
leaq 0x3ec41(%rip), %rdi     # 0x48565
callq 0x6520
leaq 0x3ec35(%rip), %rdi     # 0x48565
callq 0x6220
leaq 0x3ec29(%rip), %rdi     # 0x48565
callq 0x6520
leaq 0x3ec1d(%rip), %rdi     # 0x48565
callq 0x6520
leaq 0x3ec11(%rip), %rdi     # 0x48565
callq 0x6220
movq 0x58648(%rip), %rdi     # 0x61fa8
leaq 0x3e9b9(%rip), %rsi     # 0x48320
movl $0x18, %edx
callq 0x63f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x58629(%rip), %rdi     # 0x61fa8
callq 0x63f0
movq %rax, %rbx
leaq 0x3e9ab(%rip), %rsi     # 0x48339
movl $0x10, %edx
movq %rax, %rdi
callq 0x63f0
leaq 0x3ebc1(%rip), %rsi     # 0x48563
movq %rbx, %rdi
callq 0x6360
movl $0x1, %edi
callq 0x6440
jmp 0x99b6
movq %rax, %rbx
jmp 0x9a64
jmp 0x9a21
jmp 0x9a21
jmp 0x9a21
jmp 0x9a21
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x9a24
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
jmp 0x9a1a
jmp 0x9a21
jmp 0x9a21
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x9a03
movl %r12d, (%r13)
jmp 0x9a03
jmp 0x99f5
jmp 0x99f5
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x9a03
movl %ebp, (%r13)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9a24
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
jmp 0x9a24
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x9a3b
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x9a57
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6380
leaq 0xa0(%rsp), %rdi
callq 0xb42a
leaq 0xc0(%rsp), %rdi
callq 0x60f0
movq %rbx, %rdi
callq 0x6620