// File: /workspace/github_cpp_makefile_star2_O1/jswaff[P]prophet3/test/move__test.cpp
// Function: test_move_score()
void test_move_score() {
    move mv = to_move(PAWN,E2,E4);
    assert(get_move_score(&mv)==0);

    set_move_score(&mv,100);
    assert(get_move_score(&mv)==100);

    set_move_score(&mv,-9);
    assert(get_move_score(&mv)==-9);

    set_move_score(&mv,CHECKMATE);
    assert(get_move_score(&mv)==CHECKMATE);

    set_move_score(&mv,-CHECKMATE);
    assert(get_move_score(&mv)==-CHECKMATE);

    set_move_score(&mv,-CHECKMATE+10);
    assert(get_move_score(&mv)==-CHECKMATE+10);

    // make sure we haven't corrupted the move itself
    assert(get_piece(mv)==PAWN);
    assert(get_from_sq(mv)==E2);
    assert(get_to_sq(mv)==E4);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl $0x1, %edi
movl $0x34, %esi
movl $0x24, %edx
callq 0x76b8
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
callq 0x77fd
testl %eax, %eax
jne 0x19c4c
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0x64, %esi
callq 0x7818
movq %rbx, %rdi
callq 0x77fd
cmpl $0x64, %eax
jne 0x19c6b
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0xfffffff7, %esi       # imm = 0xFFFFFFF7
callq 0x7818
movq %rbx, %rdi
callq 0x77fd
cmpl $-0x9, %eax
jne 0x19c8a
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0xffff, %esi           # imm = 0xFFFF
callq 0x7818
movq %rbx, %rdi
callq 0x77fd
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x19ca9
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0xffff0001, %esi       # imm = 0xFFFF0001
callq 0x7818
movq %rbx, %rdi
callq 0x77fd
cmpl $0xffff0001, %eax       # imm = 0xFFFF0001
jne 0x19cc8
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0xffff000b, %esi       # imm = 0xFFFF000B
callq 0x7818
movq %rbx, %rdi
callq 0x77fd
cmpl $0xffff000b, %eax       # imm = 0xFFFF000B
jne 0x19ce7
movq 0x8(%rsp), %rdi
callq 0x77c1
cmpl $0x1, %eax
jne 0x19d06
movq 0x8(%rsp), %rdi
callq 0x77b0
cmpl $0x34, %eax
jne 0x19d25
movq 0x8(%rsp), %rdi
callq 0x77b7
cmpl $0x24, %eax
jne 0x19d44
addq $0x10, %rsp
popq %rbx
retq
leaq 0x18fa8(%rip), %rdi     # 0x32bfb
leaq 0x18d26(%rip), %rsi     # 0x32980
leaq 0x18fb1(%rip), %rcx     # 0x32c12
movl $0x7a, %edx
callq 0x20d0
leaq 0x18fb7(%rip), %rdi     # 0x32c29
leaq 0x18d07(%rip), %rsi     # 0x32980
leaq 0x18f92(%rip), %rcx     # 0x32c12
movl $0x7d, %edx
callq 0x20d0
leaq 0x18fb1(%rip), %rdi     # 0x32c42
leaq 0x18ce8(%rip), %rsi     # 0x32980
leaq 0x18f73(%rip), %rcx     # 0x32c12
movl $0x80, %edx
callq 0x20d0
leaq 0x18faa(%rip), %rdi     # 0x32c5a
leaq 0x18cc9(%rip), %rsi     # 0x32980
leaq 0x18f54(%rip), %rcx     # 0x32c12
movl $0x83, %edx
callq 0x20d0
leaq 0x18faa(%rip), %rdi     # 0x32c79
leaq 0x18caa(%rip), %rsi     # 0x32980
leaq 0x18f35(%rip), %rcx     # 0x32c12
movl $0x86, %edx
callq 0x20d0
leaq 0x18fab(%rip), %rdi     # 0x32c99
leaq 0x18c8b(%rip), %rsi     # 0x32980
leaq 0x18f16(%rip), %rcx     # 0x32c12
movl $0x89, %edx
callq 0x20d0
leaq 0x18128(%rip), %rdi     # 0x31e35
leaq 0x18c6c(%rip), %rsi     # 0x32980
leaq 0x18ef7(%rip), %rcx     # 0x32c12
movl $0x8c, %edx
callq 0x20d0
leaq 0x18c7c(%rip), %rdi     # 0x329a8
leaq 0x18c4d(%rip), %rsi     # 0x32980
leaq 0x18ed8(%rip), %rcx     # 0x32c12
movl $0x8d, %edx
callq 0x20d0
leaq 0x18c71(%rip), %rdi     # 0x329bc
leaq 0x18c2e(%rip), %rsi     # 0x32980
leaq 0x18eb9(%rip), %rcx     # 0x32c12
movl $0x8e, %edx
callq 0x20d0