// File: /workspace/github_c_makefile_star2_O2/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
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
incw (%rdi)
xorl %edi, %edi
xorl %esi, %esi
callq 0x12e3e
leaq 0x8(%rsp), %r14
andq $0x0, (%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x12e3e
cmpl $0x1, (%r14)
jne 0x2fbc
cmpl $0x0, 0xc(%rsp)
je 0x2feb
leaq 0x23274(%rip), %rdi     # 0x26222
leaq 0x23522(%rip), %rsi     # 0x264d7
movl $0x49e, %edx            # imm = 0x49E
jmp 0x2fcf
leaq 0x2325f(%rip), %rdi     # 0x26222
leaq 0x2350d(%rip), %rsi     # 0x264d7
movl $0x49c, %edx            # imm = 0x49C
xorl %eax, %eax
callq 0x1090
pushq $0x1
popq %rbp
pushq $0x2
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x8(%rsp), %r14
pushq $0x1
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x12e3e
cmpl $0x1, (%r14)
jne 0x30be
cmpl $0x1, 0xc(%rsp)
jne 0x30d6
leaq 0x8(%rsp), %r14
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x12e3e
cmpl $0x1, (%r14)
jne 0x30ee
cmpl $0x2, 0xc(%rsp)
jne 0x3103
leaq 0x8(%rsp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
callq 0x12e3e
cmpl $0x1, (%r14)
jne 0x3118
cmpl $0x3, 0xc(%rsp)
jne 0x312d
leaq 0x8(%rsp), %r14
pushq $0x4
popq %rsi
movq %r14, %rdi
callq 0x12e3e
cmpl $0x1, (%r14)
jne 0x3142
cmpl $0x4, 0xc(%rsp)
jne 0x3157
leaq 0x8(%rsp), %r14
pushq $0x5
popq %rsi
movq %r14, %rdi
callq 0x12e3e
cmpl $0x2, (%r14)
jne 0x316c
cmpl $0x0, 0xc(%rsp)
je 0x318b
leaq 0x23175(%rip), %rdi     # 0x26222
leaq 0x23423(%rip), %rsi     # 0x264d7
movl $0x4c1, %edx            # imm = 0x4C1
jmp 0x317f
leaq 0x2315d(%rip), %rdi     # 0x26222
leaq 0x2340b(%rip), %rsi     # 0x264d7
movl $0x4a3, %edx            # imm = 0x4A3
jmp 0x317f
leaq 0x23145(%rip), %rdi     # 0x26222
leaq 0x233f3(%rip), %rsi     # 0x264d7
movl $0x4a5, %edx            # imm = 0x4A5
jmp 0x317f
leaq 0x2312d(%rip), %rdi     # 0x26222
leaq 0x233db(%rip), %rsi     # 0x264d7
movl $0x4aa, %edx            # imm = 0x4AA
jmp 0x317f
leaq 0x23118(%rip), %rdi     # 0x26222
leaq 0x233c6(%rip), %rsi     # 0x264d7
movl $0x4ac, %edx            # imm = 0x4AC
jmp 0x317f
leaq 0x23103(%rip), %rdi     # 0x26222
leaq 0x233b1(%rip), %rsi     # 0x264d7
movl $0x4b1, %edx            # imm = 0x4B1
jmp 0x317f
leaq 0x230ee(%rip), %rdi     # 0x26222
leaq 0x2339c(%rip), %rsi     # 0x264d7
movl $0x4b3, %edx            # imm = 0x4B3
jmp 0x317f
leaq 0x230d9(%rip), %rdi     # 0x26222
leaq 0x23387(%rip), %rsi     # 0x264d7
movl $0x4b8, %edx            # imm = 0x4B8
jmp 0x317f
leaq 0x230c4(%rip), %rdi     # 0x26222
leaq 0x23372(%rip), %rsi     # 0x264d7
movl $0x4ba, %edx            # imm = 0x4BA
jmp 0x317f
leaq 0x230af(%rip), %rdi     # 0x26222
leaq 0x2335d(%rip), %rsi     # 0x264d7
movl $0x4bf, %edx            # imm = 0x4BF
xorl %eax, %eax
callq 0x1090
jmp 0x2fd9
leaq 0x23085(%rip), %rdi     # 0x26217
leaq 0x2333e(%rip), %rsi     # 0x264d7
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
pushq $0x4
jmp 0x2fdb