// File: /workspace/github_c_makefile_star2_O2/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 0x12296
testl %eax, %eax
je 0x2596
leaq 0x23c9d(%rip), %rdi     # 0x26222
leaq 0x23f01(%rip), %rsi     # 0x2648d
movl $0x36a, %edx            # imm = 0x36A
jmp 0x2983
movl $0x42000e, %edi         # imm = 0x42000E
callq 0x12296
cmpl $0x1, %eax
jne 0x278a
movl $0x420011, %edi         # imm = 0x420011
callq 0x12296
cmpl $0x2, %eax
jne 0x27a2
movl $0x420024, %edi         # imm = 0x420024
callq 0x12296
cmpl $0x3, %eax
jne 0x27ba
movl $0x420028, %edi         # imm = 0x420028
callq 0x12296
cmpl $0x4, %eax
jne 0x27d2
movl $0x42002c, %edi         # imm = 0x42002C
callq 0x12296
cmpl $0x5, %eax
jne 0x27ea
movl $0x4200ae, %edi         # imm = 0x4200AE
callq 0x12296
cmpl $0x6, %eax
jne 0x2802
movl $0x4200a3, %edi         # imm = 0x4200A3
callq 0x12296
cmpl $0x7, %eax
jne 0x281a
movl $0x420038, %edi         # imm = 0x420038
callq 0x12296
cmpl $0x8, %eax
jne 0x2832
movl $0x420041, %edi         # imm = 0x420041
callq 0x12296
cmpl $0x9, %eax
jne 0x284a
movl $0x420042, %edi         # imm = 0x420042
callq 0x12296
cmpl $0xa, %eax
jne 0x2862
movl $0x420083, %edi         # imm = 0x420083
callq 0x12296
cmpl $0xb, %eax
jne 0x287a
movl $0x4200f8, %edi         # imm = 0x4200F8
callq 0x12296
cmpl $0xc, %eax
jne 0x2892
movl $0x420101, %edi         # imm = 0x420101
callq 0x12296
cmpl $0xd, %eax
jne 0x28aa
movl $0x420054, %edi         # imm = 0x420054
callq 0x12296
cmpl $0xe, %eax
jne 0x28c2
movl $0x420057, %edi         # imm = 0x420057
callq 0x12296
cmpl $0xf, %eax
jne 0x28da
movl $0x42005c, %edi         # imm = 0x42005C
callq 0x12296
cmpl $0x10, %eax
jne 0x28f2
movl $0x42005f, %edi         # imm = 0x42005F
callq 0x12296
cmpl $0x11, %eax
jne 0x2907
movl $0x42015e, %edi         # imm = 0x42015E
callq 0x12296
cmpl $0x12, %eax
jne 0x291c
movl $0x42007e, %edi         # imm = 0x42007E
callq 0x12296
cmpl $0x13, %eax
jne 0x2931
movl $0x42007f, %edi         # imm = 0x42007F
callq 0x12296
cmpl $0x14, %eax
jne 0x2946
movl $0x42008d, %edi         # imm = 0x42008D
callq 0x12296
cmpl $0x15, %eax
jne 0x295b
xorl %edi, %edi
callq 0x12296
cmpl $0x16, %eax
jne 0x2970
pushq $0x1
popq %rbp
movl %ebp, %edi
callq 0x12296
cmpl $0x17, %eax
jne 0x299d
movl $0x42009e, %edi         # imm = 0x42009E
callq 0x12296
cmpl $0x18, %eax
jne 0x29b2
pushq $-0x1
popq %rdi
callq 0x12296
cmpl $0x19, %eax
jne 0x29c7
leaq 0x23aa4(%rip), %rdi     # 0x26217
leaq 0x23d13(%rip), %rsi     # 0x2648d
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
pushq $0x4
jmp 0x298f
leaq 0x23a91(%rip), %rdi     # 0x26222
leaq 0x23cf5(%rip), %rsi     # 0x2648d
movl $0x36f, %edx            # imm = 0x36F
jmp 0x2983
leaq 0x23a79(%rip), %rdi     # 0x26222
leaq 0x23cdd(%rip), %rsi     # 0x2648d
movl $0x374, %edx            # imm = 0x374
jmp 0x2983
leaq 0x23a61(%rip), %rdi     # 0x26222
leaq 0x23cc5(%rip), %rsi     # 0x2648d
movl $0x379, %edx            # imm = 0x379
jmp 0x2983
leaq 0x23a49(%rip), %rdi     # 0x26222
leaq 0x23cad(%rip), %rsi     # 0x2648d
movl $0x37e, %edx            # imm = 0x37E
jmp 0x2983
leaq 0x23a31(%rip), %rdi     # 0x26222
leaq 0x23c95(%rip), %rsi     # 0x2648d
movl $0x383, %edx            # imm = 0x383
jmp 0x2983
leaq 0x23a19(%rip), %rdi     # 0x26222
leaq 0x23c7d(%rip), %rsi     # 0x2648d
movl $0x388, %edx            # imm = 0x388
jmp 0x2983
leaq 0x23a01(%rip), %rdi     # 0x26222
leaq 0x23c65(%rip), %rsi     # 0x2648d
movl $0x38d, %edx            # imm = 0x38D
jmp 0x2983
leaq 0x239e9(%rip), %rdi     # 0x26222
leaq 0x23c4d(%rip), %rsi     # 0x2648d
movl $0x392, %edx            # imm = 0x392
jmp 0x2983
leaq 0x239d1(%rip), %rdi     # 0x26222
leaq 0x23c35(%rip), %rsi     # 0x2648d
movl $0x397, %edx            # imm = 0x397
jmp 0x2983
leaq 0x239b9(%rip), %rdi     # 0x26222
leaq 0x23c1d(%rip), %rsi     # 0x2648d
movl $0x39c, %edx            # imm = 0x39C
jmp 0x2983
leaq 0x239a1(%rip), %rdi     # 0x26222
leaq 0x23c05(%rip), %rsi     # 0x2648d
movl $0x3a1, %edx            # imm = 0x3A1
jmp 0x2983
leaq 0x23989(%rip), %rdi     # 0x26222
leaq 0x23bed(%rip), %rsi     # 0x2648d
movl $0x3a6, %edx            # imm = 0x3A6
jmp 0x2983
leaq 0x23971(%rip), %rdi     # 0x26222
leaq 0x23bd5(%rip), %rsi     # 0x2648d
movl $0x3ab, %edx            # imm = 0x3AB
jmp 0x2983
leaq 0x23959(%rip), %rdi     # 0x26222
leaq 0x23bbd(%rip), %rsi     # 0x2648d
movl $0x3b0, %edx            # imm = 0x3B0
jmp 0x2983
leaq 0x23941(%rip), %rdi     # 0x26222
leaq 0x23ba5(%rip), %rsi     # 0x2648d
movl $0x3b5, %edx            # imm = 0x3B5
jmp 0x2983
leaq 0x23929(%rip), %rdi     # 0x26222
leaq 0x23b8d(%rip), %rsi     # 0x2648d
movl $0x3ba, %edx            # imm = 0x3BA
jmp 0x2983
leaq 0x23914(%rip), %rdi     # 0x26222
leaq 0x23b78(%rip), %rsi     # 0x2648d
movl $0x3bf, %edx            # imm = 0x3BF
jmp 0x2983
leaq 0x238ff(%rip), %rdi     # 0x26222
leaq 0x23b63(%rip), %rsi     # 0x2648d
movl $0x3c4, %edx            # imm = 0x3C4
jmp 0x2983
leaq 0x238ea(%rip), %rdi     # 0x26222
leaq 0x23b4e(%rip), %rsi     # 0x2648d
movl $0x3c9, %edx            # imm = 0x3C9
jmp 0x2983
leaq 0x238d5(%rip), %rdi     # 0x26222
leaq 0x23b39(%rip), %rsi     # 0x2648d
movl $0x3ce, %edx            # imm = 0x3CE
jmp 0x2983
leaq 0x238c0(%rip), %rdi     # 0x26222
leaq 0x23b24(%rip), %rsi     # 0x2648d
movl $0x3d3, %edx            # imm = 0x3D3
jmp 0x2983
leaq 0x238ab(%rip), %rdi     # 0x26222
leaq 0x23b0f(%rip), %rsi     # 0x2648d
movl $0x3d8, %edx            # imm = 0x3D8
xorl %eax, %eax
callq 0x1090
pushq $0x1
popq %rbp
pushq $0x2
popq %rax
incw (%rbx,%rax)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x2387e(%rip), %rdi     # 0x26222
leaq 0x23ae2(%rip), %rsi     # 0x2648d
movl $0x3dd, %edx            # imm = 0x3DD
jmp 0x29da
leaq 0x23869(%rip), %rdi     # 0x26222
leaq 0x23acd(%rip), %rsi     # 0x2648d
movl $0x3e2, %edx            # imm = 0x3E2
jmp 0x29da
leaq 0x23854(%rip), %rdi     # 0x26222
leaq 0x23ab8(%rip), %rsi     # 0x2648d
movl $0x3e7, %edx            # imm = 0x3E7
xorl %eax, %eax
callq 0x1090
jmp 0x298d