// File: /workspace/github_cpp_makefile_star2_O1/ujjwal-ism[P]Jumping_game/run.cpp
// Function: main
int main(){
  std::vector<Square*> game_board;

  game_board.push_back(new Square(15,15));
  game_board.push_back(new Square(17,13));
  game_board.push_back(new Square(19,11));
  game_board.push_back(new Square(24,11));
  game_board.push_back(new Square(24,30));
  game_board.push_back(new Square(25,7));
  game_board.push_back(new Square(18,12));
  game_board.push_back(new Square(20,4));
  game_board.push_back(new Square(20,3));

  Game* game1 = new Game(game_board);
  Player* player1 = new Player(11, 3);

  std::vector<Square*> board = game1->getBoard();

  GameUtil* util = new GameUtil();

  //int maxTravelDistance = util->compute(game_board.at(0), player1);
  //std::cout << "max distance: " << maxTravelDistance << std::endl;

  //int length = util->shortestPathDistance(game1, player1);
  //std::cout << "Length of shortest path: " << length << std::endl;

  std::vector<int> path;
  path.push_back(0);
  path.push_back(3);
  path.push_back(6);
  path.push_back(8); 

  bool valid = util->isValidPath(path, player1, game1);
  std::cout << "Example path is valid (0/1): " << valid << std::endl;

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x1343(%rip), %xmm0     # 0x3048
movq %rax, %rdi
movaps %xmm0, %xmm1
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x131b(%rip), %xmm0     # 0x3050
movsd 0x131b(%rip), %xmm1     # 0x3058
movq %rax, %rdi
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x12f6(%rip), %xmm0     # 0x3060
movsd 0x12f6(%rip), %xmm1     # 0x3068
movq %rax, %rdi
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x12d1(%rip), %xmm0     # 0x3070
movsd 0x12c1(%rip), %xmm1     # 0x3068
movq %rax, %rdi
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x129c(%rip), %xmm0     # 0x3070
movsd 0x129c(%rip), %xmm1     # 0x3078
movq %rax, %rdi
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x1277(%rip), %xmm0     # 0x3080
movsd 0x1277(%rip), %xmm1     # 0x3088
movq %rax, %rdi
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x1252(%rip), %xmm0     # 0x3090
movsd 0x1252(%rip), %xmm1     # 0x3098
movq %rax, %rdi
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x122d(%rip), %xmm0     # 0x30a0
movsd 0x122d(%rip), %xmm1     # 0x30a8
movq %rax, %rdi
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x11f8(%rip), %xmm0     # 0x30a0
movsd 0x1200(%rip), %xmm1     # 0x30b0
movq %rax, %rdi
callq 0x22f0
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2192
movl $0x18, %edi
callq 0x10c0
movq %rax, %r14
leaq -0x90(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x1330
leaq -0x90(%rbp), %rsi
movq %r14, %rdi
callq 0x131c
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x1f0c
movq -0x80(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movl $0x10, %edi
callq 0x10c0
movq %rax, %r15
movsd 0x1147(%rip), %xmm0     # 0x3068
movsd 0x1187(%rip), %xmm1     # 0x30b0
movq %rax, %rdi
callq 0x1cac
movq %r14, %rdi
callq 0x1326
leaq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0x1330
movl $0x1, %edi
callq 0x10c0
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x38(%rbp), %rsi
testq %rsi, %rsi
je 0x1f81
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x1f8e
leaq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
callq 0x1a90
movl $0x3, -0x1c(%rbp)
movq -0x38(%rbp), %rsi
cmpq -0x30(%rbp), %rsi
je 0x1faf
movl $0x3, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x1fbc
leaq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
callq 0x1a90
movl $0x6, -0x1c(%rbp)
movq -0x38(%rbp), %rsi
cmpq -0x30(%rbp), %rsi
je 0x1fdd
movl $0x6, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x1fea
leaq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
callq 0x1a90
movl $0x8, -0x1c(%rbp)
movq -0x38(%rbp), %rsi
cmpq -0x30(%rbp), %rsi
je 0x200b
movl $0x8, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x2018
leaq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
callq 0x1a90
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x1502
movl %eax, %ebx
movq 0x2fa5(%rip), %rdi      # 0x4fd8
leaq 0x107e(%rip), %rsi      # 0x30b8
movl $0x1d, %edx
callq 0x10e0
movzbl %bl, %esi
movq 0x2f8a(%rip), %rdi      # 0x4fd8
callq 0x1110
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1070
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2092
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x20a7
movq -0x68(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x20bc
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2148
jmp 0x2148
jmp 0x2148
jmp 0x2148
movq %rax, %rbx
jmp 0x2160
movq %rax, %rbx
movl $0x10, %esi
movq %r15, %rdi
jmp 0x2170
jmp 0x2143
movq %rax, %rbx
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x210b
movq -0x80(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
jmp 0x210b
movq %rax, %rbx
movl $0x18, %esi
jmp 0x212c
jmp 0x2143
jmp 0x2124
jmp 0x2124
jmp 0x2124
jmp 0x2124
jmp 0x2124
jmp 0x2124
jmp 0x2124
jmp 0x2124
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
jmp 0x2170
jmp 0x2143
jmp 0x2143
jmp 0x2143
jmp 0x2143
jmp 0x2143
jmp 0x2143
jmp 0x2143
jmp 0x2143
jmp 0x2143
movq %rax, %rbx
jmp 0x2175
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2160
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x2175
movq -0x68(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x218a
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq %rbx, %rdi
callq 0x1140