// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/tests/tests.c
// Function: test_init_protocol_version
int
test_init_protocol_version(TestTracker *tracker)
{
    TRACK_TEST(tracker);

    kmip_init_protocol_version(NULL, KMIP_1_0);

    ProtocolVersion pv = {0};

    if(pv.major != 0)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(pv.minor != 0)
        TEST_FAILED(tracker, __func__, __LINE__);

    kmip_init_protocol_version(&pv, KMIP_1_0);

    if(pv.major != 1)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(pv.minor != 0)
        TEST_FAILED(tracker, __func__, __LINE__);

    kmip_init_protocol_version(&pv, KMIP_1_1);

    if(pv.major != 1)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(pv.minor != 1)
        TEST_FAILED(tracker, __func__, __LINE__);

    kmip_init_protocol_version(&pv, KMIP_1_2);

    if(pv.major != 1)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(pv.minor != 2)
        TEST_FAILED(tracker, __func__, __LINE__);

    kmip_init_protocol_version(&pv, KMIP_1_3);

    if(pv.major != 1)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(pv.minor != 3)
        TEST_FAILED(tracker, __func__, __LINE__);

    kmip_init_protocol_version(&pv, KMIP_1_4);

    if(pv.major != 1)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(pv.minor != 4)
        TEST_FAILED(tracker, __func__, __LINE__);

    kmip_init_protocol_version(&pv, KMIP_2_0);

    if(pv.major != 2)
        TEST_FAILED(tracker, __func__, __LINE__);
    if(pv.minor != 0)
        TEST_FAILED(tracker, __func__, __LINE__);

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
xorl %eax, %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x1d260
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x1090
cmpl $0x0, -0x18(%rbp)
je 0x4283
jmp 0x424d
leaq 0x3ae61(%rip), %rdi     # 0x3f0b5
leaq 0x3b1a6(%rip), %rsi     # 0x3f401
movl $0x495, %edx            # imm = 0x495
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
cmpl $0x0, -0x14(%rbp)
je 0x42c1
jmp 0x428b
leaq 0x3ae23(%rip), %rdi     # 0x3f0b5
leaq 0x3b168(%rip), %rsi     # 0x3f401
movl $0x497, %edx            # imm = 0x497
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x1d260
cmpl $0x1, -0x18(%rbp)
je 0x430a
jmp 0x42d4
leaq 0x3adda(%rip), %rdi     # 0x3f0b5
leaq 0x3b11f(%rip), %rsi     # 0x3f401
movl $0x49c, %edx            # imm = 0x49C
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
cmpl $0x0, -0x14(%rbp)
je 0x4348
jmp 0x4312
leaq 0x3ad9c(%rip), %rdi     # 0x3f0b5
leaq 0x3b0e1(%rip), %rsi     # 0x3f401
movl $0x49e, %edx            # imm = 0x49E
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
leaq -0x18(%rbp), %rdi
movl $0x1, %esi
callq 0x1d260
cmpl $0x1, -0x18(%rbp)
je 0x4394
jmp 0x435e
leaq 0x3ad50(%rip), %rdi     # 0x3f0b5
leaq 0x3b095(%rip), %rsi     # 0x3f401
movl $0x4a3, %edx            # imm = 0x4A3
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
cmpl $0x1, -0x14(%rbp)
je 0x43d2
jmp 0x439c
leaq 0x3ad12(%rip), %rdi     # 0x3f0b5
leaq 0x3b057(%rip), %rsi     # 0x3f401
movl $0x4a5, %edx            # imm = 0x4A5
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
leaq -0x18(%rbp), %rdi
movl $0x2, %esi
callq 0x1d260
cmpl $0x1, -0x18(%rbp)
je 0x441e
jmp 0x43e8
leaq 0x3acc6(%rip), %rdi     # 0x3f0b5
leaq 0x3b00b(%rip), %rsi     # 0x3f401
movl $0x4aa, %edx            # imm = 0x4AA
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
cmpl $0x2, -0x14(%rbp)
je 0x445c
jmp 0x4426
leaq 0x3ac88(%rip), %rdi     # 0x3f0b5
leaq 0x3afcd(%rip), %rsi     # 0x3f401
movl $0x4ac, %edx            # imm = 0x4AC
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
leaq -0x18(%rbp), %rdi
movl $0x3, %esi
callq 0x1d260
cmpl $0x1, -0x18(%rbp)
je 0x44a8
jmp 0x4472
leaq 0x3ac3c(%rip), %rdi     # 0x3f0b5
leaq 0x3af81(%rip), %rsi     # 0x3f401
movl $0x4b1, %edx            # imm = 0x4B1
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
cmpl $0x3, -0x14(%rbp)
je 0x44e6
jmp 0x44b0
leaq 0x3abfe(%rip), %rdi     # 0x3f0b5
leaq 0x3af43(%rip), %rsi     # 0x3f401
movl $0x4b3, %edx            # imm = 0x4B3
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
leaq -0x18(%rbp), %rdi
movl $0x4, %esi
callq 0x1d260
cmpl $0x1, -0x18(%rbp)
je 0x4532
jmp 0x44fc
leaq 0x3abb2(%rip), %rdi     # 0x3f0b5
leaq 0x3aef7(%rip), %rsi     # 0x3f401
movl $0x4b8, %edx            # imm = 0x4B8
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
cmpl $0x4, -0x14(%rbp)
je 0x4570
jmp 0x453a
leaq 0x3ab74(%rip), %rdi     # 0x3f0b5
leaq 0x3aeb9(%rip), %rsi     # 0x3f401
movl $0x4ba, %edx            # imm = 0x4BA
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
leaq -0x18(%rbp), %rdi
movl $0x5, %esi
callq 0x1d260
cmpl $0x2, -0x18(%rbp)
je 0x45b9
jmp 0x4586
leaq 0x3ab28(%rip), %rdi     # 0x3f0b5
leaq 0x3ae6d(%rip), %rsi     # 0x3f401
movl $0x4bf, %edx            # imm = 0x4BF
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
cmpl $0x0, -0x14(%rbp)
je 0x45f4
jmp 0x45c1
leaq 0x3aaed(%rip), %rdi     # 0x3f0b5
leaq 0x3ae32(%rip), %rsi     # 0x3f401
movl $0x4c1, %edx            # imm = 0x4C1
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4622
jmp 0x45f6
leaq 0x3aa4e(%rip), %rdi     # 0x3f04b
leaq 0x3adfd(%rip), %rsi     # 0x3f401
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x4(%rax), %cx
addw $0x1, %cx
movw %cx, 0x4(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)