// File: /workspace/github_c_makefile_star2_O1/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 0x12f23
testl %eax, %eax
je 0x2713
leaq 0x2cb20(%rip), %rdi     # 0x2f222
leaq 0x2cd84(%rip), %rsi     # 0x2f48d
movl $0x36a, %edx            # imm = 0x36A
jmp 0x2b0a
movl $0x42000e, %edi         # imm = 0x42000E
callq 0x12f23
cmpl $0x1, %eax
jne 0x2911
movl $0x420011, %edi         # imm = 0x420011
callq 0x12f23
cmpl $0x2, %eax
jne 0x2929
movl $0x420024, %edi         # imm = 0x420024
callq 0x12f23
cmpl $0x3, %eax
jne 0x2941
movl $0x420028, %edi         # imm = 0x420028
callq 0x12f23
cmpl $0x4, %eax
jne 0x2959
movl $0x42002c, %edi         # imm = 0x42002C
callq 0x12f23
cmpl $0x5, %eax
jne 0x2971
movl $0x4200ae, %edi         # imm = 0x4200AE
callq 0x12f23
cmpl $0x6, %eax
jne 0x2989
movl $0x4200a3, %edi         # imm = 0x4200A3
callq 0x12f23
cmpl $0x7, %eax
jne 0x29a1
movl $0x420038, %edi         # imm = 0x420038
callq 0x12f23
cmpl $0x8, %eax
jne 0x29b9
movl $0x420041, %edi         # imm = 0x420041
callq 0x12f23
cmpl $0x9, %eax
jne 0x29d1
movl $0x420042, %edi         # imm = 0x420042
callq 0x12f23
cmpl $0xa, %eax
jne 0x29e9
movl $0x420083, %edi         # imm = 0x420083
callq 0x12f23
cmpl $0xb, %eax
jne 0x2a01
movl $0x4200f8, %edi         # imm = 0x4200F8
callq 0x12f23
cmpl $0xc, %eax
jne 0x2a19
movl $0x420101, %edi         # imm = 0x420101
callq 0x12f23
cmpl $0xd, %eax
jne 0x2a31
movl $0x420054, %edi         # imm = 0x420054
callq 0x12f23
cmpl $0xe, %eax
jne 0x2a49
movl $0x420057, %edi         # imm = 0x420057
callq 0x12f23
cmpl $0xf, %eax
jne 0x2a61
movl $0x42005c, %edi         # imm = 0x42005C
callq 0x12f23
cmpl $0x10, %eax
jne 0x2a79
movl $0x42005f, %edi         # imm = 0x42005F
callq 0x12f23
cmpl $0x11, %eax
jne 0x2a8e
movl $0x42015e, %edi         # imm = 0x42015E
callq 0x12f23
cmpl $0x12, %eax
jne 0x2aa3
movl $0x42007e, %edi         # imm = 0x42007E
callq 0x12f23
cmpl $0x13, %eax
jne 0x2ab8
movl $0x42007f, %edi         # imm = 0x42007F
callq 0x12f23
cmpl $0x14, %eax
jne 0x2acd
movl $0x42008d, %edi         # imm = 0x42008D
callq 0x12f23
cmpl $0x15, %eax
jne 0x2ae2
xorl %edi, %edi
callq 0x12f23
cmpl $0x16, %eax
jne 0x2af7
movl $0x1, %ebp
movl $0x1, %edi
callq 0x12f23
cmpl $0x17, %eax
jne 0x2b28
movl $0x42009e, %edi         # imm = 0x42009E
callq 0x12f23
cmpl $0x18, %eax
jne 0x2b3d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x12f23
cmpl $0x19, %eax
jne 0x2b52
leaq 0x2c920(%rip), %rdi     # 0x2f217
leaq 0x2cb8f(%rip), %rsi     # 0x2f48d
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1090
movl $0x4, %eax
jmp 0x2b1b
leaq 0x2c90a(%rip), %rdi     # 0x2f222
leaq 0x2cb6e(%rip), %rsi     # 0x2f48d
movl $0x36f, %edx            # imm = 0x36F
jmp 0x2b0a
leaq 0x2c8f2(%rip), %rdi     # 0x2f222
leaq 0x2cb56(%rip), %rsi     # 0x2f48d
movl $0x374, %edx            # imm = 0x374
jmp 0x2b0a
leaq 0x2c8da(%rip), %rdi     # 0x2f222
leaq 0x2cb3e(%rip), %rsi     # 0x2f48d
movl $0x379, %edx            # imm = 0x379
jmp 0x2b0a
leaq 0x2c8c2(%rip), %rdi     # 0x2f222
leaq 0x2cb26(%rip), %rsi     # 0x2f48d
movl $0x37e, %edx            # imm = 0x37E
jmp 0x2b0a
leaq 0x2c8aa(%rip), %rdi     # 0x2f222
leaq 0x2cb0e(%rip), %rsi     # 0x2f48d
movl $0x383, %edx            # imm = 0x383
jmp 0x2b0a
leaq 0x2c892(%rip), %rdi     # 0x2f222
leaq 0x2caf6(%rip), %rsi     # 0x2f48d
movl $0x388, %edx            # imm = 0x388
jmp 0x2b0a
leaq 0x2c87a(%rip), %rdi     # 0x2f222
leaq 0x2cade(%rip), %rsi     # 0x2f48d
movl $0x38d, %edx            # imm = 0x38D
jmp 0x2b0a
leaq 0x2c862(%rip), %rdi     # 0x2f222
leaq 0x2cac6(%rip), %rsi     # 0x2f48d
movl $0x392, %edx            # imm = 0x392
jmp 0x2b0a
leaq 0x2c84a(%rip), %rdi     # 0x2f222
leaq 0x2caae(%rip), %rsi     # 0x2f48d
movl $0x397, %edx            # imm = 0x397
jmp 0x2b0a
leaq 0x2c832(%rip), %rdi     # 0x2f222
leaq 0x2ca96(%rip), %rsi     # 0x2f48d
movl $0x39c, %edx            # imm = 0x39C
jmp 0x2b0a
leaq 0x2c81a(%rip), %rdi     # 0x2f222
leaq 0x2ca7e(%rip), %rsi     # 0x2f48d
movl $0x3a1, %edx            # imm = 0x3A1
jmp 0x2b0a
leaq 0x2c802(%rip), %rdi     # 0x2f222
leaq 0x2ca66(%rip), %rsi     # 0x2f48d
movl $0x3a6, %edx            # imm = 0x3A6
jmp 0x2b0a
leaq 0x2c7ea(%rip), %rdi     # 0x2f222
leaq 0x2ca4e(%rip), %rsi     # 0x2f48d
movl $0x3ab, %edx            # imm = 0x3AB
jmp 0x2b0a
leaq 0x2c7d2(%rip), %rdi     # 0x2f222
leaq 0x2ca36(%rip), %rsi     # 0x2f48d
movl $0x3b0, %edx            # imm = 0x3B0
jmp 0x2b0a
leaq 0x2c7ba(%rip), %rdi     # 0x2f222
leaq 0x2ca1e(%rip), %rsi     # 0x2f48d
movl $0x3b5, %edx            # imm = 0x3B5
jmp 0x2b0a
leaq 0x2c7a2(%rip), %rdi     # 0x2f222
leaq 0x2ca06(%rip), %rsi     # 0x2f48d
movl $0x3ba, %edx            # imm = 0x3BA
jmp 0x2b0a
leaq 0x2c78d(%rip), %rdi     # 0x2f222
leaq 0x2c9f1(%rip), %rsi     # 0x2f48d
movl $0x3bf, %edx            # imm = 0x3BF
jmp 0x2b0a
leaq 0x2c778(%rip), %rdi     # 0x2f222
leaq 0x2c9dc(%rip), %rsi     # 0x2f48d
movl $0x3c4, %edx            # imm = 0x3C4
jmp 0x2b0a
leaq 0x2c763(%rip), %rdi     # 0x2f222
leaq 0x2c9c7(%rip), %rsi     # 0x2f48d
movl $0x3c9, %edx            # imm = 0x3C9
jmp 0x2b0a
leaq 0x2c74e(%rip), %rdi     # 0x2f222
leaq 0x2c9b2(%rip), %rsi     # 0x2f48d
movl $0x3ce, %edx            # imm = 0x3CE
jmp 0x2b0a
leaq 0x2c739(%rip), %rdi     # 0x2f222
leaq 0x2c99d(%rip), %rsi     # 0x2f48d
movl $0x3d3, %edx            # imm = 0x3D3
jmp 0x2b0a
leaq 0x2c724(%rip), %rdi     # 0x2f222
leaq 0x2c988(%rip), %rsi     # 0x2f48d
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 0x2c6f3(%rip), %rdi     # 0x2f222
leaq 0x2c957(%rip), %rsi     # 0x2f48d
movl $0x3dd, %edx            # imm = 0x3DD
jmp 0x2b65
leaq 0x2c6de(%rip), %rdi     # 0x2f222
leaq 0x2c942(%rip), %rsi     # 0x2f48d
movl $0x3e2, %edx            # imm = 0x3E2
jmp 0x2b65
leaq 0x2c6c9(%rip), %rdi     # 0x2f222
leaq 0x2c92d(%rip), %rsi     # 0x2f48d
movl $0x3e7, %edx            # imm = 0x3E7
xorl %eax, %eax
callq 0x1090
jmp 0x2b16