// File: /workspace/github_cpp_makefile_star2_O3/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 0x133f(%rip), %xmm0     # 0x3048
movq %rax, %rdi
movaps %xmm0, %xmm1
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x1317(%rip), %xmm0     # 0x3050
movsd 0x1317(%rip), %xmm1     # 0x3058
movq %rax, %rdi
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x12f2(%rip), %xmm0     # 0x3060
movsd 0x12f2(%rip), %xmm1     # 0x3068
movq %rax, %rdi
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x12cd(%rip), %xmm0     # 0x3070
movsd 0x12bd(%rip), %xmm1     # 0x3068
movq %rax, %rdi
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x1298(%rip), %xmm0     # 0x3070
movsd 0x1298(%rip), %xmm1     # 0x3078
movq %rax, %rdi
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x1273(%rip), %xmm0     # 0x3080
movsd 0x1273(%rip), %xmm1     # 0x3088
movq %rax, %rdi
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x124e(%rip), %xmm0     # 0x3090
movsd 0x124e(%rip), %xmm1     # 0x3098
movq %rax, %rdi
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x1229(%rip), %xmm0     # 0x30a0
movsd 0x1229(%rip), %xmm1     # 0x30a8
movq %rax, %rdi
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
movl $0x10, %edi
callq 0x10c0
movq %rax, %r14
movsd 0x11f4(%rip), %xmm0     # 0x30a0
movsd 0x11fc(%rip), %xmm1     # 0x30b0
movq %rax, %rdi
callq 0x22ec
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x2186
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 0x1f10
movq -0x80(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movl $0x10, %edi
callq 0x10c0
movq %rax, %r15
movsd 0x1143(%rip), %xmm0     # 0x3068
movsd 0x1183(%rip), %xmm1     # 0x30b0
movq %rax, %rdi
callq 0x1cb0
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
leaq -0x40(%rbp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq -0x1c(%rbp), %rdx
movl $0x0, (%rdx)
xorl %esi, %esi
callq 0x1a92
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rax
movl $0x3, -0x1c(%rbp)
cmpq %rax, %rsi
je 0x1f9d
movl $0x3, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x1fb2
leaq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
callq 0x1a92
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rax
movl $0x6, -0x1c(%rbp)
cmpq %rax, %rsi
je 0x1fce
movl $0x6, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x1fe3
leaq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
callq 0x1a92
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rax
movl $0x8, -0x1c(%rbp)
cmpq %rax, %rsi
je 0x1fff
movl $0x8, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x200c
leaq -0x40(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
callq 0x1a92
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x1502
movl %eax, %ebx
movq 0x2fb1(%rip), %rdi      # 0x4fd8
leaq 0x108a(%rip), %rsi      # 0x30b8
movl $0x1d, %edx
callq 0x10e0
movzbl %bl, %esi
movq 0x2f96(%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 0x2086
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x209b
movq -0x68(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x20b0
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 0x213c
jmp 0x213c
jmp 0x213c
jmp 0x213c
movq %rax, %rbx
jmp 0x2154
movq %rax, %rbx
movl $0x10, %esi
movq %r15, %rdi
jmp 0x2164
jmp 0x2137
movq %rax, %rbx
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x20ff
movq -0x80(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
jmp 0x20ff
movq %rax, %rbx
movl $0x18, %esi
jmp 0x2120
jmp 0x2137
jmp 0x2118
jmp 0x2118
jmp 0x2118
jmp 0x2118
jmp 0x2118
jmp 0x2118
jmp 0x2118
jmp 0x2118
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
jmp 0x2164
jmp 0x2137
jmp 0x2137
jmp 0x2137
jmp 0x2137
jmp 0x2137
jmp 0x2137
jmp 0x2137
jmp 0x2137
jmp 0x2137
movq %rax, %rbx
jmp 0x2169
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2154
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x2169
movq -0x68(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x217e
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq %rbx, %rdi
callq 0x1140