// File: /workspace/github_c_makefile_star2_O1/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 0x13e28
movq $0x0, 0x8(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x319b
leaq 0x2c095(%rip), %rdi     # 0x2f222
leaq 0x2c343(%rip), %rsi     # 0x2f4d7
movl $0x497, %edx            # imm = 0x497
jmp 0x31df
leaq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x13e28
cmpl $0x1, (%r14)
jne 0x31cc
cmpl $0x0, 0xc(%rsp)
je 0x31ff
leaq 0x2c064(%rip), %rdi     # 0x2f222
leaq 0x2c312(%rip), %rsi     # 0x2f4d7
movl $0x49e, %edx            # imm = 0x49E
jmp 0x31df
leaq 0x2c04f(%rip), %rdi     # 0x2f222
leaq 0x2c2fd(%rip), %rsi     # 0x2f4d7
movl $0x49c, %edx            # imm = 0x49C
xorl %eax, %eax
callq 0x1090
movl $0x1, %ebp
movl $0x2, %eax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x8(%rsp), %r14
movl $0x1, %ebp
movq %r14, %rdi
movl $0x1, %esi
callq 0x13e28
cmpl $0x1, (%r14)
jne 0x32df
cmpl $0x1, 0xc(%rsp)
jne 0x32f7
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x2, %esi
callq 0x13e28
cmpl $0x1, (%r14)
jne 0x330f
cmpl $0x2, 0xc(%rsp)
jne 0x3324
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x3, %esi
callq 0x13e28
cmpl $0x1, (%r14)
jne 0x3339
cmpl $0x3, 0xc(%rsp)
jne 0x334e
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x4, %esi
callq 0x13e28
cmpl $0x1, (%r14)
jne 0x3363
cmpl $0x4, 0xc(%rsp)
jne 0x3378
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x5, %esi
callq 0x13e28
cmpl $0x2, (%r14)
jne 0x338d
cmpl $0x0, 0xc(%rsp)
je 0x33ac
leaq 0x2bf54(%rip), %rdi     # 0x2f222
leaq 0x2c202(%rip), %rsi     # 0x2f4d7
movl $0x4c1, %edx            # imm = 0x4C1
jmp 0x33a0
leaq 0x2bf3c(%rip), %rdi     # 0x2f222
leaq 0x2c1ea(%rip), %rsi     # 0x2f4d7
movl $0x4a3, %edx            # imm = 0x4A3
jmp 0x33a0
leaq 0x2bf24(%rip), %rdi     # 0x2f222
leaq 0x2c1d2(%rip), %rsi     # 0x2f4d7
movl $0x4a5, %edx            # imm = 0x4A5
jmp 0x33a0
leaq 0x2bf0c(%rip), %rdi     # 0x2f222
leaq 0x2c1ba(%rip), %rsi     # 0x2f4d7
movl $0x4aa, %edx            # imm = 0x4AA
jmp 0x33a0
leaq 0x2bef7(%rip), %rdi     # 0x2f222
leaq 0x2c1a5(%rip), %rsi     # 0x2f4d7
movl $0x4ac, %edx            # imm = 0x4AC
jmp 0x33a0
leaq 0x2bee2(%rip), %rdi     # 0x2f222
leaq 0x2c190(%rip), %rsi     # 0x2f4d7
movl $0x4b1, %edx            # imm = 0x4B1
jmp 0x33a0
leaq 0x2becd(%rip), %rdi     # 0x2f222
leaq 0x2c17b(%rip), %rsi     # 0x2f4d7
movl $0x4b3, %edx            # imm = 0x4B3
jmp 0x33a0
leaq 0x2beb8(%rip), %rdi     # 0x2f222
leaq 0x2c166(%rip), %rsi     # 0x2f4d7
movl $0x4b8, %edx            # imm = 0x4B8
jmp 0x33a0
leaq 0x2bea3(%rip), %rdi     # 0x2f222
leaq 0x2c151(%rip), %rsi     # 0x2f4d7
movl $0x4ba, %edx            # imm = 0x4BA
jmp 0x33a0
leaq 0x2be8e(%rip), %rdi     # 0x2f222
leaq 0x2c13c(%rip), %rsi     # 0x2f4d7
movl $0x4bf, %edx            # imm = 0x4BF
xorl %eax, %eax
callq 0x1090
jmp 0x31eb
leaq 0x2be64(%rip), %rdi     # 0x2f217
leaq 0x2c11d(%rip), %rsi     # 0x2f4d7
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
movl $0x4, %eax
jmp 0x31f0