// File: /workspace/github_cpp_makefile_star2_O3/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), %r13
movq %r13, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x6590
movq (%r13), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xe0(%rsp,%rax)
jne 0x9992
leaq 0x3ef6f(%rip), %rsi     # 0x4834a
leaq 0xa0(%rsp), %rdi
movl $0x10, %edx
callq 0xb2a8
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rbp
movaps %xmm0, 0x10(%rbp)
movaps %xmm0, (%rbp)
movq %r14, 0x90(%rsp)
movq 0xc0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x6350
movsbl %al, %edx
movq %r13, %rdi
leaq 0x68(%rsp), %rsi
callq 0x6650
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x98d3
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
addq %rdi, %rsi
movq %rbp, %rdx
leaq 0xa0(%rsp), %rcx
xorl %r8d, %r8d
callq 0x16c4f
testb %al, %al
je 0x9419
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
je 0x94ac
movq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x5, %rdx
cmpq $-0x3, %rdx
ja 0x94ac
addq $0x18, %rax
jmp 0x94b3
addq %rcx, %rax
addq $-0x48, %rax
leaq 0x8(%rsp), %rdi
cmpb $0x1, 0x10(%rax)
jne 0x94db
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
callq 0x18bdc
movq 0x8(%rsp), %rbx
jmp 0x94f3
leaq 0x18(%rsp), %rbx
movq %rbx, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
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 0x9962
movq %rax, %r12
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x996e
movl (%r13), %eax
cmpl $0x22, %eax
je 0x996e
testl %eax, %eax
jne 0x9551
movl %ebp, (%r13)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x956d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
je 0x95a1
movq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x6, %rdx
cmpq $-0x4, %rdx
ja 0x95a1
addq $0x30, %rax
jmp 0x95a8
addq %rcx, %rax
addq $-0x48, %rax
cmpb $0x1, 0x10(%rax)
jne 0x95d0
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x18bdc
movq 0x8(%rsp), %r14
jmp 0x95e8
leaq 0x18(%rsp), %r14
movq %r14, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movl (%r13), %ebp
movl $0x0, (%r13)
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x64e0
cmpq %r14, 0x30(%rsp)
je 0x993e
movq %rax, %rbx
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x994a
movl (%r13), %eax
cmpl $0x22, %eax
je 0x994a
testl %eax, %eax
jne 0x9642
movl %ebp, (%r13)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x965e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
je 0x9692
movq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x7, %rdx
cmpq $-0x5, %rdx
ja 0x9692
addq $0x48, %rax
jmp 0x9699
addq %rcx, %rax
addq $-0x48, %rax
cmpb $0x1, 0x10(%rax)
jne 0x96c1
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x18bdc
movq 0x8(%rsp), %r14
jmp 0x96d9
leaq 0x18(%rsp), %r14
movq %r14, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movl (%r13), %ebp
movl $0x0, (%r13)
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x64e0
cmpq %r14, 0x30(%rsp)
je 0x9932
movq %rax, %r15
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
jb 0x997a
movl (%r13), %eax
cmpl $0x22, %eax
je 0x997a
testl %eax, %eax
jne 0x9733
movl %ebp, (%r13)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x974f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
je 0x9783
movq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x8, %rdx
cmpq $-0x6, %rdx
ja 0x9783
addq $0x60, %rax
jmp 0x978a
addq %rcx, %rax
addq $-0x48, %rax
cmpb $0x1, 0x10(%rax)
movq %r12, 0x98(%rsp)
jne 0x97ba
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x18bdc
movq 0x8(%rsp), %rbp
jmp 0x97d2
leaq 0x18(%rsp), %rbp
movq %rbp, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movl (%r13), %r12d
movl $0x0, (%r13)
movq %rbp, %rdi
leaq 0x30(%rsp), %rsi
movl $0xa, %edx
callq 0x64e0
cmpq %rbp, 0x30(%rsp)
je 0x9986
movq %rax, %r14
addq $-0x80000000, %rax      # imm = 0x80000000
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
cmpq %rcx, %rax
leaq 0x40(%rsp), %rbp
jb 0x9956
movl (%r13), %eax
cmpl $0x22, %eax
je 0x9956
testl %eax, %eax
jne 0x9831
movl %r12d, (%r13)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x984d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
movq 0x90(%rsp), %r12
movq %r12, %rdi
movq 0x98(%rsp), %rsi
movl %ebx, %edx
callq 0x1a12c
leaq 0xc0(%rsp), %r13
movq %rax, 0x30(%rsp)
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x1a12c
movq %rax, 0x38(%rsp)
movl $0x2, %edx
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x2f(%rsp), %rcx
callq 0xb484
movq 0x88(%rsp), %rdi
movq %rbx, %rsi
callq 0x18c56
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x9419
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
jmp 0x9419
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x98ea
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x9906
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6380
leaq 0xa0(%rsp), %rdi
callq 0xb464
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 0x3ec2c(%rip), %rdi     # 0x48565
callq 0x6220
leaq 0x3ec20(%rip), %rdi     # 0x48565
callq 0x6220
leaq 0x3ec14(%rip), %rdi     # 0x48565
callq 0x6520
leaq 0x3ec08(%rip), %rdi     # 0x48565
callq 0x6520
leaq 0x3ebfc(%rip), %rdi     # 0x48565
callq 0x6220
leaq 0x3ebf0(%rip), %rdi     # 0x48565
callq 0x6520
leaq 0x3ebe4(%rip), %rdi     # 0x48565
callq 0x6520
leaq 0x3ebd8(%rip), %rdi     # 0x48565
callq 0x6220
movq 0x5860f(%rip), %rdi     # 0x61fa8
leaq 0x3e980(%rip), %rsi     # 0x48320
movl $0x18, %edx
callq 0x63f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x585f0(%rip), %rdi     # 0x61fa8
callq 0x63f0
movq %rax, %rbx
leaq 0x3e972(%rip), %rsi     # 0x48339
movl $0x10, %edx
movq %rax, %rdi
callq 0x63f0
leaq 0x3eb88(%rip), %rsi     # 0x48563
movq %rbx, %rdi
callq 0x6360
movl $0x1, %edi
callq 0x6440
jmp 0x99ef
movq %rax, %rbx
jmp 0x9a9d
jmp 0x9a5a
jmp 0x9a5a
jmp 0x9a5a
jmp 0x9a5a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x9a5d
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
jmp 0x9a53
jmp 0x9a5a
jmp 0x9a5a
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x9a3c
movl %r12d, (%r13)
jmp 0x9a3c
jmp 0x9a2e
jmp 0x9a2e
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x9a3c
movl %ebp, (%r13)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9a5d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6380
jmp 0x9a5d
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x9a74
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x9a90
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6380
leaq 0xa0(%rsp), %rdi
callq 0xb464
leaq 0xc0(%rsp), %rdi
callq 0x60f0
movq %rbx, %rdi
callq 0x6620