// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
movl $0x4200c7, %edi         # imm = 0x4200C7
callq 0x1b7b0
cmpl $0x0, %eax
je 0x31d1
jmp 0x319b
leaq 0x3bf13(%rip), %rdi     # 0x3f0b5
leaq 0x3c20e(%rip), %rsi     # 0x3f3b7
movl $0x36a, %edx            # imm = 0x36A
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42000e, %edi         # imm = 0x42000E
callq 0x1b7b0
cmpl $0x1, %eax
je 0x3218
jmp 0x31e2
leaq 0x3becc(%rip), %rdi     # 0x3f0b5
leaq 0x3c1c7(%rip), %rsi     # 0x3f3b7
movl $0x36f, %edx            # imm = 0x36F
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420011, %edi         # imm = 0x420011
callq 0x1b7b0
cmpl $0x2, %eax
je 0x325f
jmp 0x3229
leaq 0x3be85(%rip), %rdi     # 0x3f0b5
leaq 0x3c180(%rip), %rsi     # 0x3f3b7
movl $0x374, %edx            # imm = 0x374
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420024, %edi         # imm = 0x420024
callq 0x1b7b0
cmpl $0x3, %eax
je 0x32a6
jmp 0x3270
leaq 0x3be3e(%rip), %rdi     # 0x3f0b5
leaq 0x3c139(%rip), %rsi     # 0x3f3b7
movl $0x379, %edx            # imm = 0x379
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420028, %edi         # imm = 0x420028
callq 0x1b7b0
cmpl $0x4, %eax
je 0x32ed
jmp 0x32b7
leaq 0x3bdf7(%rip), %rdi     # 0x3f0b5
leaq 0x3c0f2(%rip), %rsi     # 0x3f3b7
movl $0x37e, %edx            # imm = 0x37E
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42002c, %edi         # imm = 0x42002C
callq 0x1b7b0
cmpl $0x5, %eax
je 0x3334
jmp 0x32fe
leaq 0x3bdb0(%rip), %rdi     # 0x3f0b5
leaq 0x3c0ab(%rip), %rsi     # 0x3f3b7
movl $0x383, %edx            # imm = 0x383
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x4200ae, %edi         # imm = 0x4200AE
callq 0x1b7b0
cmpl $0x6, %eax
je 0x337b
jmp 0x3345
leaq 0x3bd69(%rip), %rdi     # 0x3f0b5
leaq 0x3c064(%rip), %rsi     # 0x3f3b7
movl $0x388, %edx            # imm = 0x388
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x4200a3, %edi         # imm = 0x4200A3
callq 0x1b7b0
cmpl $0x7, %eax
je 0x33c2
jmp 0x338c
leaq 0x3bd22(%rip), %rdi     # 0x3f0b5
leaq 0x3c01d(%rip), %rsi     # 0x3f3b7
movl $0x38d, %edx            # imm = 0x38D
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420038, %edi         # imm = 0x420038
callq 0x1b7b0
cmpl $0x8, %eax
je 0x3409
jmp 0x33d3
leaq 0x3bcdb(%rip), %rdi     # 0x3f0b5
leaq 0x3bfd6(%rip), %rsi     # 0x3f3b7
movl $0x392, %edx            # imm = 0x392
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420041, %edi         # imm = 0x420041
callq 0x1b7b0
cmpl $0x9, %eax
je 0x3450
jmp 0x341a
leaq 0x3bc94(%rip), %rdi     # 0x3f0b5
leaq 0x3bf8f(%rip), %rsi     # 0x3f3b7
movl $0x397, %edx            # imm = 0x397
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420042, %edi         # imm = 0x420042
callq 0x1b7b0
cmpl $0xa, %eax
je 0x3497
jmp 0x3461
leaq 0x3bc4d(%rip), %rdi     # 0x3f0b5
leaq 0x3bf48(%rip), %rsi     # 0x3f3b7
movl $0x39c, %edx            # imm = 0x39C
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420083, %edi         # imm = 0x420083
callq 0x1b7b0
cmpl $0xb, %eax
je 0x34de
jmp 0x34a8
leaq 0x3bc06(%rip), %rdi     # 0x3f0b5
leaq 0x3bf01(%rip), %rsi     # 0x3f3b7
movl $0x3a1, %edx            # imm = 0x3A1
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x4200f8, %edi         # imm = 0x4200F8
callq 0x1b7b0
cmpl $0xc, %eax
je 0x3525
jmp 0x34ef
leaq 0x3bbbf(%rip), %rdi     # 0x3f0b5
leaq 0x3beba(%rip), %rsi     # 0x3f3b7
movl $0x3a6, %edx            # imm = 0x3A6
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420101, %edi         # imm = 0x420101
callq 0x1b7b0
cmpl $0xd, %eax
je 0x356c
jmp 0x3536
leaq 0x3bb78(%rip), %rdi     # 0x3f0b5
leaq 0x3be73(%rip), %rsi     # 0x3f3b7
movl $0x3ab, %edx            # imm = 0x3AB
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420054, %edi         # imm = 0x420054
callq 0x1b7b0
cmpl $0xe, %eax
je 0x35b3
jmp 0x357d
leaq 0x3bb31(%rip), %rdi     # 0x3f0b5
leaq 0x3be2c(%rip), %rsi     # 0x3f3b7
movl $0x3b0, %edx            # imm = 0x3B0
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x420057, %edi         # imm = 0x420057
callq 0x1b7b0
cmpl $0xf, %eax
je 0x35fa
jmp 0x35c4
leaq 0x3baea(%rip), %rdi     # 0x3f0b5
leaq 0x3bde5(%rip), %rsi     # 0x3f3b7
movl $0x3b5, %edx            # imm = 0x3B5
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42005c, %edi         # imm = 0x42005C
callq 0x1b7b0
cmpl $0x10, %eax
je 0x3641
jmp 0x360b
leaq 0x3baa3(%rip), %rdi     # 0x3f0b5
leaq 0x3bd9e(%rip), %rsi     # 0x3f3b7
movl $0x3ba, %edx            # imm = 0x3BA
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42005f, %edi         # imm = 0x42005F
callq 0x1b7b0
cmpl $0x11, %eax
je 0x3688
jmp 0x3652
leaq 0x3ba5c(%rip), %rdi     # 0x3f0b5
leaq 0x3bd57(%rip), %rsi     # 0x3f3b7
movl $0x3bf, %edx            # imm = 0x3BF
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42015e, %edi         # imm = 0x42015E
callq 0x1b7b0
cmpl $0x12, %eax
je 0x36cf
jmp 0x3699
leaq 0x3ba15(%rip), %rdi     # 0x3f0b5
leaq 0x3bd10(%rip), %rsi     # 0x3f3b7
movl $0x3c4, %edx            # imm = 0x3C4
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42007e, %edi         # imm = 0x42007E
callq 0x1b7b0
cmpl $0x13, %eax
je 0x3716
jmp 0x36e0
leaq 0x3b9ce(%rip), %rdi     # 0x3f0b5
leaq 0x3bcc9(%rip), %rsi     # 0x3f3b7
movl $0x3c9, %edx            # imm = 0x3C9
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42007f, %edi         # imm = 0x42007F
callq 0x1b7b0
cmpl $0x14, %eax
je 0x375d
jmp 0x3727
leaq 0x3b987(%rip), %rdi     # 0x3f0b5
leaq 0x3bc82(%rip), %rsi     # 0x3f3b7
movl $0x3ce, %edx            # imm = 0x3CE
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42008d, %edi         # imm = 0x42008D
callq 0x1b7b0
cmpl $0x15, %eax
je 0x37a4
jmp 0x376e
leaq 0x3b940(%rip), %rdi     # 0x3f0b5
leaq 0x3bc3b(%rip), %rsi     # 0x3f3b7
movl $0x3d3, %edx            # imm = 0x3D3
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
xorl %edi, %edi
callq 0x1b7b0
cmpl $0x16, %eax
je 0x37e8
jmp 0x37b2
leaq 0x3b8fc(%rip), %rdi     # 0x3f0b5
leaq 0x3bbf7(%rip), %rsi     # 0x3f3b7
movl $0x3d8, %edx            # imm = 0x3D8
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x1, %edi
callq 0x1b7b0
cmpl $0x17, %eax
je 0x382f
jmp 0x37f9
leaq 0x3b8b5(%rip), %rdi     # 0x3f0b5
leaq 0x3bbb0(%rip), %rsi     # 0x3f3b7
movl $0x3dd, %edx            # imm = 0x3DD
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0x42009e, %edi         # imm = 0x42009E
callq 0x1b7b0
cmpl $0x18, %eax
je 0x3873
jmp 0x3840
leaq 0x3b86e(%rip), %rdi     # 0x3f0b5
leaq 0x3bb69(%rip), %rsi     # 0x3f3b7
movl $0x3e2, %edx            # imm = 0x3E2
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1b7b0
cmpl $0x19, %eax
je 0x38b7
jmp 0x3884
leaq 0x3b82a(%rip), %rdi     # 0x3f0b5
leaq 0x3bb25(%rip), %rsi     # 0x3f3b7
movl $0x3e7, %edx            # imm = 0x3E7
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
addw $0x1, %cx
movw %cx, 0x2(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x38e5
jmp 0x38b9
leaq 0x3b78b(%rip), %rdi     # 0x3f04b
leaq 0x3baf0(%rip), %rsi     # 0x3f3b7
movb $0x0, %al
callq 0x1070
movq -0x10(%rbp), %rax
movw 0x4(%rax), %cx
addw $0x1, %cx
movw %cx, 0x4(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nop