// File: /workspace/github_cpp_makefile_star2_O3/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 0x775c
movq %rax, %rbx
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x7865
cmpl $0x3, %eax
jne 0x1948a
movq %rbx, %rdi
callq 0x7854
cmpl $0x2d, %eax
jne 0x194a9
movq %rbx, %rdi
callq 0x785b
cmpl $0x12, %eax
jne 0x194c8
movq %rbx, %rdi
callq 0x788d
testb %al, %al
jne 0x194e7
movq %rbx, %rdi
callq 0x7883
testb %al, %al
jne 0x19506
movq %rbx, %rdi
callq 0x7879
testl %eax, %eax
jne 0x19525
movq %rbx, %rdi
callq 0x7897
testb %al, %al
jne 0x19544
movq %rbx, %rdi
callq 0x786f
testl %eax, %eax
jne 0x19563
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x77c0
movq (%rbx), %rdi
callq 0x7865
cmpl $0x3, %eax
jne 0x19582
movq 0x8(%rsp), %rdi
callq 0x7854
cmpl $0x2d, %eax
jne 0x195a1
movq 0x8(%rsp), %rdi
callq 0x785b
cmpl $0x12, %eax
jne 0x195c0
movq 0x8(%rsp), %rdi
callq 0x788d
testb %al, %al
jne 0x195df
movq 0x8(%rsp), %rdi
callq 0x7883
testb %al, %al
je 0x195fe
movq 0x8(%rsp), %rdi
callq 0x7879
cmpl $0x1, %eax
jne 0x1961d
movq 0x8(%rsp), %rdi
callq 0x7897
testb %al, %al
jne 0x1963c
movq 0x8(%rsp), %rdi
callq 0x786f
testl %eax, %eax
jne 0x1965b
addq $0x10, %rsp
popq %rbx
retq
leaq 0x196c7(%rip), %rdi     # 0x32b58
leaq 0x19568(%rip), %rsi     # 0x32a00
leaq 0x196cf(%rip), %rcx     # 0x32b6e
movl $0x4b, %edx
callq 0x20d0
leaq 0x196d6(%rip), %rdi     # 0x32b86
leaq 0x19549(%rip), %rsi     # 0x32a00
leaq 0x196b0(%rip), %rcx     # 0x32b6e
movl $0x4c, %edx
callq 0x20d0
leaq 0x196cb(%rip), %rdi     # 0x32b9a
leaq 0x1952a(%rip), %rsi     # 0x32a00
leaq 0x19691(%rip), %rcx     # 0x32b6e
movl $0x4d, %edx
callq 0x20d0
leaq 0x19560(%rip), %rdi     # 0x32a4e
leaq 0x1950b(%rip), %rsi     # 0x32a00
leaq 0x19672(%rip), %rcx     # 0x32b6e
movl $0x4e, %edx
callq 0x20d0
leaq 0x19553(%rip), %rdi     # 0x32a60
leaq 0x194ec(%rip), %rsi     # 0x32a00
leaq 0x19653(%rip), %rcx     # 0x32b6e
movl $0x4f, %edx
callq 0x20d0
leaq 0x19680(%rip), %rdi     # 0x32bac
leaq 0x194cd(%rip), %rsi     # 0x32a00
leaq 0x19634(%rip), %rcx     # 0x32b6e
movl $0x50, %edx
callq 0x20d0
leaq 0x19525(%rip), %rdi     # 0x32a70
leaq 0x194ae(%rip), %rsi     # 0x32a00
leaq 0x19615(%rip), %rcx     # 0x32b6e
movl $0x51, %edx
callq 0x20d0
leaq 0x19515(%rip), %rdi     # 0x32a7f
leaq 0x1948f(%rip), %rsi     # 0x32a00
leaq 0x195f6(%rip), %rcx     # 0x32b6e
movl $0x52, %edx
callq 0x20d0
leaq 0x195cf(%rip), %rdi     # 0x32b58
leaq 0x19470(%rip), %rsi     # 0x32a00
leaq 0x195d7(%rip), %rcx     # 0x32b6e
movl $0x55, %edx
callq 0x20d0
leaq 0x195de(%rip), %rdi     # 0x32b86
leaq 0x19451(%rip), %rsi     # 0x32a00
leaq 0x195b8(%rip), %rcx     # 0x32b6e
movl $0x56, %edx
callq 0x20d0
leaq 0x195d3(%rip), %rdi     # 0x32b9a
leaq 0x19432(%rip), %rsi     # 0x32a00
leaq 0x19599(%rip), %rcx     # 0x32b6e
movl $0x57, %edx
callq 0x20d0
leaq 0x19468(%rip), %rdi     # 0x32a4e
leaq 0x19413(%rip), %rsi     # 0x32a00
leaq 0x1957a(%rip), %rcx     # 0x32b6e
movl $0x58, %edx
callq 0x20d0
leaq 0x1945c(%rip), %rdi     # 0x32a61
leaq 0x193f4(%rip), %rsi     # 0x32a00
leaq 0x1955b(%rip), %rcx     # 0x32b6e
movl $0x59, %edx
callq 0x20d0
leaq 0x195a9(%rip), %rdi     # 0x32bcd
leaq 0x193d5(%rip), %rsi     # 0x32a00
leaq 0x1953c(%rip), %rcx     # 0x32b6e
movl $0x5a, %edx
callq 0x20d0
leaq 0x1942d(%rip), %rdi     # 0x32a70
leaq 0x193b6(%rip), %rsi     # 0x32a00
leaq 0x1951d(%rip), %rcx     # 0x32b6e
movl $0x5b, %edx
callq 0x20d0
leaq 0x1941d(%rip), %rdi     # 0x32a7f
leaq 0x19397(%rip), %rsi     # 0x32a00
leaq 0x194fe(%rip), %rcx     # 0x32b6e
movl $0x5c, %edx
callq 0x20d0