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

    if(kmip_get_enum_string_index(KMIP_TAG_ATTESTATION_TYPE) != 0)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_BATCH_ERROR_CONTINUATION_OPTION) != 1)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_BLOCK_CIPHER_MODE) != 2)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_CREDENTIAL_TYPE) != 3)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_CRYPTOGRAPHIC_ALGORITHM) != 4)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_CRYPTOGRAPHIC_USAGE_MASK) != 5)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_DIGITAL_SIGNATURE_ALGORITHM) != 6)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_ENCODING_OPTION) != 7)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_HASHING_ALGORITHM) != 8)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_KEY_COMPRESSION_TYPE) != 9)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_KEY_FORMAT_TYPE) != 10)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_KEY_ROLE_TYPE) != 11)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_KEY_WRAP_TYPE) != 12)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_MASK_GENERATOR) != 13)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_NAME_TYPE) != 14)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_OBJECT_TYPE) != 15)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_OPERATION) != 16)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_PADDING_METHOD) != 17)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_PROTECTION_STORAGE_MASK) != 18)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_RESULT_REASON) != 19)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_RESULT_STATUS) != 20)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_STATE) != 21)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_TAG) != 22)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_TYPE) != 23)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(KMIP_TAG_WRAPPING_METHOD) != 24)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    if(kmip_get_enum_string_index(-1) != 25)
    {
        TEST_FAILED(tracker, __func__, __LINE__);
    }

    TEST_PASSED(tracker, __func__);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
incw (%rdi)
movl $0x4200c7, %edi         # imm = 0x4200C7
callq 0x12952
testl %eax, %eax
je 0x2676
leaq 0x2abbd(%rip), %rdi     # 0x2d222
leaq 0x2ae21(%rip), %rsi     # 0x2d48d
movl $0x36a, %edx            # imm = 0x36A
jmp 0x2a6d
movl $0x42000e, %edi         # imm = 0x42000E
callq 0x12952
cmpl $0x1, %eax
jne 0x2874
movl $0x420011, %edi         # imm = 0x420011
callq 0x12952
cmpl $0x2, %eax
jne 0x288c
movl $0x420024, %edi         # imm = 0x420024
callq 0x12952
cmpl $0x3, %eax
jne 0x28a4
movl $0x420028, %edi         # imm = 0x420028
callq 0x12952
cmpl $0x4, %eax
jne 0x28bc
movl $0x42002c, %edi         # imm = 0x42002C
callq 0x12952
cmpl $0x5, %eax
jne 0x28d4
movl $0x4200ae, %edi         # imm = 0x4200AE
callq 0x12952
cmpl $0x6, %eax
jne 0x28ec
movl $0x4200a3, %edi         # imm = 0x4200A3
callq 0x12952
cmpl $0x7, %eax
jne 0x2904
movl $0x420038, %edi         # imm = 0x420038
callq 0x12952
cmpl $0x8, %eax
jne 0x291c
movl $0x420041, %edi         # imm = 0x420041
callq 0x12952
cmpl $0x9, %eax
jne 0x2934
movl $0x420042, %edi         # imm = 0x420042
callq 0x12952
cmpl $0xa, %eax
jne 0x294c
movl $0x420083, %edi         # imm = 0x420083
callq 0x12952
cmpl $0xb, %eax
jne 0x2964
movl $0x4200f8, %edi         # imm = 0x4200F8
callq 0x12952
cmpl $0xc, %eax
jne 0x297c
movl $0x420101, %edi         # imm = 0x420101
callq 0x12952
cmpl $0xd, %eax
jne 0x2994
movl $0x420054, %edi         # imm = 0x420054
callq 0x12952
cmpl $0xe, %eax
jne 0x29ac
movl $0x420057, %edi         # imm = 0x420057
callq 0x12952
cmpl $0xf, %eax
jne 0x29c4
movl $0x42005c, %edi         # imm = 0x42005C
callq 0x12952
cmpl $0x10, %eax
jne 0x29dc
movl $0x42005f, %edi         # imm = 0x42005F
callq 0x12952
cmpl $0x11, %eax
jne 0x29f1
movl $0x42015e, %edi         # imm = 0x42015E
callq 0x12952
cmpl $0x12, %eax
jne 0x2a06
movl $0x42007e, %edi         # imm = 0x42007E
callq 0x12952
cmpl $0x13, %eax
jne 0x2a1b
movl $0x42007f, %edi         # imm = 0x42007F
callq 0x12952
cmpl $0x14, %eax
jne 0x2a30
movl $0x42008d, %edi         # imm = 0x42008D
callq 0x12952
cmpl $0x15, %eax
jne 0x2a45
xorl %edi, %edi
callq 0x12952
cmpl $0x16, %eax
jne 0x2a5a
movl $0x1, %ebp
movl $0x1, %edi
callq 0x12952
cmpl $0x17, %eax
jne 0x2a8b
movl $0x42009e, %edi         # imm = 0x42009E
callq 0x12952
cmpl $0x18, %eax
jne 0x2aa0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x12952
cmpl $0x19, %eax
jne 0x2ab5
leaq 0x2a9bd(%rip), %rdi     # 0x2d217
leaq 0x2ac2c(%rip), %rsi     # 0x2d48d
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
movl $0x4, %eax
jmp 0x2a7e
leaq 0x2a9a7(%rip), %rdi     # 0x2d222
leaq 0x2ac0b(%rip), %rsi     # 0x2d48d
movl $0x36f, %edx            # imm = 0x36F
jmp 0x2a6d
leaq 0x2a98f(%rip), %rdi     # 0x2d222
leaq 0x2abf3(%rip), %rsi     # 0x2d48d
movl $0x374, %edx            # imm = 0x374
jmp 0x2a6d
leaq 0x2a977(%rip), %rdi     # 0x2d222
leaq 0x2abdb(%rip), %rsi     # 0x2d48d
movl $0x379, %edx            # imm = 0x379
jmp 0x2a6d
leaq 0x2a95f(%rip), %rdi     # 0x2d222
leaq 0x2abc3(%rip), %rsi     # 0x2d48d
movl $0x37e, %edx            # imm = 0x37E
jmp 0x2a6d
leaq 0x2a947(%rip), %rdi     # 0x2d222
leaq 0x2abab(%rip), %rsi     # 0x2d48d
movl $0x383, %edx            # imm = 0x383
jmp 0x2a6d
leaq 0x2a92f(%rip), %rdi     # 0x2d222
leaq 0x2ab93(%rip), %rsi     # 0x2d48d
movl $0x388, %edx            # imm = 0x388
jmp 0x2a6d
leaq 0x2a917(%rip), %rdi     # 0x2d222
leaq 0x2ab7b(%rip), %rsi     # 0x2d48d
movl $0x38d, %edx            # imm = 0x38D
jmp 0x2a6d
leaq 0x2a8ff(%rip), %rdi     # 0x2d222
leaq 0x2ab63(%rip), %rsi     # 0x2d48d
movl $0x392, %edx            # imm = 0x392
jmp 0x2a6d
leaq 0x2a8e7(%rip), %rdi     # 0x2d222
leaq 0x2ab4b(%rip), %rsi     # 0x2d48d
movl $0x397, %edx            # imm = 0x397
jmp 0x2a6d
leaq 0x2a8cf(%rip), %rdi     # 0x2d222
leaq 0x2ab33(%rip), %rsi     # 0x2d48d
movl $0x39c, %edx            # imm = 0x39C
jmp 0x2a6d
leaq 0x2a8b7(%rip), %rdi     # 0x2d222
leaq 0x2ab1b(%rip), %rsi     # 0x2d48d
movl $0x3a1, %edx            # imm = 0x3A1
jmp 0x2a6d
leaq 0x2a89f(%rip), %rdi     # 0x2d222
leaq 0x2ab03(%rip), %rsi     # 0x2d48d
movl $0x3a6, %edx            # imm = 0x3A6
jmp 0x2a6d
leaq 0x2a887(%rip), %rdi     # 0x2d222
leaq 0x2aaeb(%rip), %rsi     # 0x2d48d
movl $0x3ab, %edx            # imm = 0x3AB
jmp 0x2a6d
leaq 0x2a86f(%rip), %rdi     # 0x2d222
leaq 0x2aad3(%rip), %rsi     # 0x2d48d
movl $0x3b0, %edx            # imm = 0x3B0
jmp 0x2a6d
leaq 0x2a857(%rip), %rdi     # 0x2d222
leaq 0x2aabb(%rip), %rsi     # 0x2d48d
movl $0x3b5, %edx            # imm = 0x3B5
jmp 0x2a6d
leaq 0x2a83f(%rip), %rdi     # 0x2d222
leaq 0x2aaa3(%rip), %rsi     # 0x2d48d
movl $0x3ba, %edx            # imm = 0x3BA
jmp 0x2a6d
leaq 0x2a82a(%rip), %rdi     # 0x2d222
leaq 0x2aa8e(%rip), %rsi     # 0x2d48d
movl $0x3bf, %edx            # imm = 0x3BF
jmp 0x2a6d
leaq 0x2a815(%rip), %rdi     # 0x2d222
leaq 0x2aa79(%rip), %rsi     # 0x2d48d
movl $0x3c4, %edx            # imm = 0x3C4
jmp 0x2a6d
leaq 0x2a800(%rip), %rdi     # 0x2d222
leaq 0x2aa64(%rip), %rsi     # 0x2d48d
movl $0x3c9, %edx            # imm = 0x3C9
jmp 0x2a6d
leaq 0x2a7eb(%rip), %rdi     # 0x2d222
leaq 0x2aa4f(%rip), %rsi     # 0x2d48d
movl $0x3ce, %edx            # imm = 0x3CE
jmp 0x2a6d
leaq 0x2a7d6(%rip), %rdi     # 0x2d222
leaq 0x2aa3a(%rip), %rsi     # 0x2d48d
movl $0x3d3, %edx            # imm = 0x3D3
jmp 0x2a6d
leaq 0x2a7c1(%rip), %rdi     # 0x2d222
leaq 0x2aa25(%rip), %rsi     # 0x2d48d
movl $0x3d8, %edx            # imm = 0x3D8
xorl %eax, %eax
callq 0x1090
movl $0x1, %ebp
movl $0x2, %eax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x2a790(%rip), %rdi     # 0x2d222
leaq 0x2a9f4(%rip), %rsi     # 0x2d48d
movl $0x3dd, %edx            # imm = 0x3DD
jmp 0x2ac8
leaq 0x2a77b(%rip), %rdi     # 0x2d222
leaq 0x2a9df(%rip), %rsi     # 0x2d48d
movl $0x3e2, %edx            # imm = 0x3E2
jmp 0x2ac8
leaq 0x2a766(%rip), %rdi     # 0x2d222
leaq 0x2a9ca(%rip), %rsi     # 0x2d48d
movl $0x3e7, %edx            # imm = 0x3E7
xorl %eax, %eax
callq 0x1090
jmp 0x2a79