// File: /workspace/github_cpp_makefile_star2_O1/jswaff[P]prophet3/test/move__test.cpp
// Function: test_set_capture()
void test_set_capture() {
    move mv = to_move(BISHOP,F3,C6);
    assert(get_piece(mv)==BISHOP);
    assert(get_from_sq(mv)==F3);
    assert(get_to_sq(mv)==C6);
    assert(!is_epcapture(mv));
    assert(!is_capture(mv));
    assert(get_captured_piece(mv)==NO_PIECE);
    assert(!is_castle(mv));
    assert(get_promopiece(mv)==NO_PIECE);

    set_capture(&mv,PAWN);
    assert(get_piece(mv)==BISHOP);
    assert(get_from_sq(mv)==F3);
    assert(get_to_sq(mv)==C6);
    assert(!is_epcapture(mv));
    assert(is_capture(mv));
    assert(get_captured_piece(mv)==PAWN);
    assert(!is_castle(mv));
    assert(get_promopiece(mv)==NO_PIECE);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl $0x3, %edi
movl $0x2d, %esi
movl $0x12, %edx
callq 0x76b8
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x77c1
cmpl $0x3, %eax
jne 0x195fe
movq 0x8(%rsp), %rdi
callq 0x77b0
cmpl $0x2d, %eax
jne 0x1961d
movq 0x8(%rsp), %rdi
callq 0x77b7
cmpl $0x12, %eax
jne 0x1963c
movq 0x8(%rsp), %rdi
callq 0x77e9
testb %al, %al
jne 0x1965b
movq 0x8(%rsp), %rdi
callq 0x77df
testb %al, %al
jne 0x1967a
movq 0x8(%rsp), %rdi
callq 0x77d5
testl %eax, %eax
jne 0x19699
movq 0x8(%rsp), %rdi
callq 0x77f3
testb %al, %al
jne 0x196b8
movq 0x8(%rsp), %rdi
callq 0x77cb
testl %eax, %eax
jne 0x196d7
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x771c
movq (%rbx), %rdi
callq 0x77c1
cmpl $0x3, %eax
jne 0x196f6
movq 0x8(%rsp), %rdi
callq 0x77b0
cmpl $0x2d, %eax
jne 0x19715
movq 0x8(%rsp), %rdi
callq 0x77b7
cmpl $0x12, %eax
jne 0x19734
movq 0x8(%rsp), %rdi
callq 0x77e9
testb %al, %al
jne 0x19753
movq 0x8(%rsp), %rdi
callq 0x77df
testb %al, %al
je 0x19772
movq 0x8(%rsp), %rdi
callq 0x77d5
cmpl $0x1, %eax
jne 0x19791
movq 0x8(%rsp), %rdi
callq 0x77f3
testb %al, %al
jne 0x197b0
movq 0x8(%rsp), %rdi
callq 0x77cb
testl %eax, %eax
jne 0x197cf
addq $0x10, %rsp
popq %rbx
retq
leaq 0x194d3(%rip), %rdi     # 0x32ad8
leaq 0x19374(%rip), %rsi     # 0x32980
leaq 0x194db(%rip), %rcx     # 0x32aee
movl $0x4b, %edx
callq 0x20d0
leaq 0x194e2(%rip), %rdi     # 0x32b06
leaq 0x19355(%rip), %rsi     # 0x32980
leaq 0x194bc(%rip), %rcx     # 0x32aee
movl $0x4c, %edx
callq 0x20d0
leaq 0x194d7(%rip), %rdi     # 0x32b1a
leaq 0x19336(%rip), %rsi     # 0x32980
leaq 0x1949d(%rip), %rcx     # 0x32aee
movl $0x4d, %edx
callq 0x20d0
leaq 0x1936c(%rip), %rdi     # 0x329ce
leaq 0x19317(%rip), %rsi     # 0x32980
leaq 0x1947e(%rip), %rcx     # 0x32aee
movl $0x4e, %edx
callq 0x20d0
leaq 0x1935f(%rip), %rdi     # 0x329e0
leaq 0x192f8(%rip), %rsi     # 0x32980
leaq 0x1945f(%rip), %rcx     # 0x32aee
movl $0x4f, %edx
callq 0x20d0
leaq 0x1948c(%rip), %rdi     # 0x32b2c
leaq 0x192d9(%rip), %rsi     # 0x32980
leaq 0x19440(%rip), %rcx     # 0x32aee
movl $0x50, %edx
callq 0x20d0
leaq 0x19331(%rip), %rdi     # 0x329f0
leaq 0x192ba(%rip), %rsi     # 0x32980
leaq 0x19421(%rip), %rcx     # 0x32aee
movl $0x51, %edx
callq 0x20d0
leaq 0x19321(%rip), %rdi     # 0x329ff
leaq 0x1929b(%rip), %rsi     # 0x32980
leaq 0x19402(%rip), %rcx     # 0x32aee
movl $0x52, %edx
callq 0x20d0
leaq 0x193db(%rip), %rdi     # 0x32ad8
leaq 0x1927c(%rip), %rsi     # 0x32980
leaq 0x193e3(%rip), %rcx     # 0x32aee
movl $0x55, %edx
callq 0x20d0
leaq 0x193ea(%rip), %rdi     # 0x32b06
leaq 0x1925d(%rip), %rsi     # 0x32980
leaq 0x193c4(%rip), %rcx     # 0x32aee
movl $0x56, %edx
callq 0x20d0
leaq 0x193df(%rip), %rdi     # 0x32b1a
leaq 0x1923e(%rip), %rsi     # 0x32980
leaq 0x193a5(%rip), %rcx     # 0x32aee
movl $0x57, %edx
callq 0x20d0
leaq 0x19274(%rip), %rdi     # 0x329ce
leaq 0x1921f(%rip), %rsi     # 0x32980
leaq 0x19386(%rip), %rcx     # 0x32aee
movl $0x58, %edx
callq 0x20d0
leaq 0x19268(%rip), %rdi     # 0x329e1
leaq 0x19200(%rip), %rsi     # 0x32980
leaq 0x19367(%rip), %rcx     # 0x32aee
movl $0x59, %edx
callq 0x20d0
leaq 0x193b5(%rip), %rdi     # 0x32b4d
leaq 0x191e1(%rip), %rsi     # 0x32980
leaq 0x19348(%rip), %rcx     # 0x32aee
movl $0x5a, %edx
callq 0x20d0
leaq 0x19239(%rip), %rdi     # 0x329f0
leaq 0x191c2(%rip), %rsi     # 0x32980
leaq 0x19329(%rip), %rcx     # 0x32aee
movl $0x5b, %edx
callq 0x20d0
leaq 0x19229(%rip), %rdi     # 0x329ff
leaq 0x191a3(%rip), %rsi     # 0x32980
leaq 0x1930a(%rip), %rcx     # 0x32aee
movl $0x5c, %edx
callq 0x20d0