// File: /workspace/github_cpp_makefile_star2_O2/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, -0x40(%rbp)
andq $0x0, -0x30(%rbp)
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x13a8(%rip), %xmm0     # 0x3048
movq %rax, %rdi
movaps %xmm0, %xmm1
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x1382(%rip), %xmm0     # 0x3050
movsd 0x1382(%rip), %xmm1     # 0x3058
movq %rax, %rdi
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x135f(%rip), %xmm0     # 0x3060
movsd 0x135f(%rip), %xmm1     # 0x3068
movq %rax, %rdi
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x133c(%rip), %xmm0     # 0x3070
movsd 0x132c(%rip), %xmm1     # 0x3068
movq %rax, %rdi
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x1309(%rip), %xmm0     # 0x3070
movsd 0x1309(%rip), %xmm1     # 0x3078
movq %rax, %rdi
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x12e6(%rip), %xmm0     # 0x3080
movsd 0x12e6(%rip), %xmm1     # 0x3088
movq %rax, %rdi
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x12c3(%rip), %xmm0     # 0x3090
movsd 0x12c3(%rip), %xmm1     # 0x3098
movq %rax, %rdi
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x12a0(%rip), %xmm0     # 0x30a0
movsd 0x12a0(%rip), %xmm1     # 0x30a8
movq %rax, %rdi
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r14
movsd 0x126d(%rip), %xmm0     # 0x30a0
movsd 0x1275(%rip), %xmm1     # 0x30b0
movq %rax, %rdi
callq 0x2168
leaq -0x58(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x2012
pushq $0x18
popq %rdi
callq 0x10d0
movq %rax, %r14
leaq -0x88(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x12d0
leaq -0x88(%rbp), %rsi
movq %r14, %rdi
callq 0x12bc
leaq -0x88(%rbp), %rdi
callq 0x193e
pushq $0x10
popq %rdi
callq 0x10d0
movq %rax, %r15
movsd 0x11cc(%rip), %xmm0     # 0x3068
movsd 0x120c(%rip), %xmm1     # 0x30b0
movq %rax, %rdi
callq 0x1c4c
movq %r14, %rdi
callq 0x12c6
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x12d0
pushq $0x1
popq %rdi
callq 0x10d0
movq %rax, %rbx
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq -0x1c(%rbp), %rsi
andl $0x0, (%rsi)
callq 0x19e8
leaq -0x1c(%rbp), %rsi
movl $0x3, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x19e8
leaq -0x1c(%rbp), %rsi
movl $0x6, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x19e8
leaq -0x1c(%rbp), %rsi
movl $0x8, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x19e8
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x14c0
movl %eax, %ebx
movq 0x309e(%rip), %rdi      # 0x4fd8
leaq 0x1177(%rip), %rsi      # 0x30b8
callq 0x10c0
movzbl %bl, %esi
movq %rax, %rdi
callq 0x1110
movq %rax, %rdi
callq 0x1060
leaq -0x70(%rbp), %rdi
callq 0x19aa
leaq -0x58(%rbp), %rdi
callq 0x193e
leaq -0x40(%rbp), %rdi
callq 0x193e
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1fec
jmp 0x1fec
jmp 0x1fec
jmp 0x1fec
movq %rax, %rbx
jmp 0x1ff8
movq %rax, %rbx
pushq $0x10
popq %rsi
movq %r15, %rdi
jmp 0x1fce
jmp 0x1fe7
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x193e
jmp 0x1faf
movq %rax, %rbx
pushq $0x18
jmp 0x1fca
jmp 0x1fe7
jmp 0x1fc5
jmp 0x1fc5
jmp 0x1fc5
jmp 0x1fc5
jmp 0x1fc5
jmp 0x1fc5
jmp 0x1fc5
jmp 0x1fc5
movq %rax, %rbx
pushq $0x10
popq %rsi
movq %r14, %rdi
callq 0x10e0
jmp 0x2001
jmp 0x1fe7
jmp 0x1fe7
jmp 0x1fe7
jmp 0x1fe7
jmp 0x1fe7
jmp 0x1fe7
jmp 0x1fe7
jmp 0x1fe7
jmp 0x1fe7
movq %rax, %rbx
jmp 0x2001
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x19aa
leaq -0x58(%rbp), %rdi
callq 0x193e
leaq -0x40(%rbp), %rdi
callq 0x193e
movq %rbx, %rdi
callq 0x1140