#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ ffi_type;

/* Variables and functions */
int /*<<< orphan*/ ffi_type_pointer;
int /*<<< orphan*/ ffi_type_sint;
int /*<<< orphan*/ ffi_type_sint16;
int /*<<< orphan*/ ffi_type_sint32;
int /*<<< orphan*/ ffi_type_sint64;
int /*<<< orphan*/ ffi_type_sint8;
int /*<<< orphan*/ ffi_type_slong;
int /*<<< orphan*/ ffi_type_sshort;
int /*<<< orphan*/ ffi_type_uint;
int /*<<< orphan*/ ffi_type_uint16;
int /*<<< orphan*/ ffi_type_uint32;
int /*<<< orphan*/ ffi_type_uint64;
int /*<<< orphan*/ ffi_type_uint8;
int /*<<< orphan*/ ffi_type_ulong;
int /*<<< orphan*/ ffi_type_ushort;
int /*<<< orphan*/ ffi_type_void;
scalar_t__ strcmp(char *, char const *);
ffi_type *szl_ffi_get_type(const char *name) {
  if ((strcmp("int8", name) == 0) || (strcmp("char", name) == 0))
    return &ffi_type_sint8;
  else if ((strcmp("uint8", name) == 0) || (strcmp("uchar", name) == 0))
    return &ffi_type_uint8;
  else if (strcmp("int16", name) == 0)
    return &ffi_type_sint16;
  else if (strcmp("uint16", name) == 0)
    return &ffi_type_uint16;
  else if (strcmp("int32", name) == 0)
    return &ffi_type_sint32;
  else if (strcmp("uint32", name) == 0)
    return &ffi_type_uint32;
  else if (strcmp("int64", name) == 0)
    return &ffi_type_sint64;
  else if (strcmp("uint64", name) == 0)
    return &ffi_type_uint64;
  else if (strcmp("short", name) == 0)
    return &ffi_type_sshort;
  else if (strcmp("ushort", name) == 0)
    return &ffi_type_ushort;
  else if (strcmp("int", name) == 0)
    return &ffi_type_sint;
  else if (strcmp("uint", name) == 0)
    return &ffi_type_uint;
  else if (strcmp("long", name) == 0)
    return &ffi_type_slong;
  else if (strcmp("ulong", name) == 0)
    return &ffi_type_ulong;
  else if (strcmp("pointer", name) == 0)
    return &ffi_type_pointer;
  else if (strcmp("void", name) == 0)
    return &ffi_type_void;
  else
    return NULL;
}


x86 assembly (clang, -O0):
<szl_ffi_get_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xeda(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1150 <szl_ffi_get_type+0x40>
mov    -0x10(%rbp),%rsi
lea    0xec6(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1160 <szl_ffi_get_type+0x50>
mov    0x2e19(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xe95(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1194 <szl_ffi_get_type+0x84>
mov    -0x10(%rbp),%rsi
lea    0xe81(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11a4 <szl_ffi_get_type+0x94>
mov    0x2dfd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xe5e(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11ce <szl_ffi_get_type+0xbe>
mov    0x2e0b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xe33(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11f8 <szl_ffi_get_type+0xe8>
mov    0x2d91(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xe11(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1222 <szl_ffi_get_type+0x112>
mov    0x2d6f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xde6(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    124c <szl_ffi_get_type+0x13c>
mov    0x2d85(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xdc4(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1276 <szl_ffi_get_type+0x166>
mov    0x2d43(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xd99(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12a0 <szl_ffi_get_type+0x190>
mov    0x2d11(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xd77(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12ca <szl_ffi_get_type+0x1ba>
mov    0x2cb7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xd4c(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12f4 <szl_ffi_get_type+0x1e4>
mov    0x2d05(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xd2a(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    131e <szl_ffi_get_type+0x20e>
mov    0x2c8b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xcff(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1348 <szl_ffi_get_type+0x238>
mov    0x2c51(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xcdb(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1372 <szl_ffi_get_type+0x262>
mov    0x2c77(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xcb0(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    139c <szl_ffi_get_type+0x28c>
mov    0x2c45(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xc8c(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13c6 <szl_ffi_get_type+0x2b6>
mov    0x2bfb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
mov    -0x10(%rbp),%rsi
lea    0xc6a(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13f0 <szl_ffi_get_type+0x2e0>
mov    0x2b79(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13f8 <szl_ffi_get_type+0x2e8>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<szl_ffi_get_type>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xee3(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
mov    0x2e43(%rip),%rbx
test   %rax,%rax
je     1351 <szl_ffi_get_type+0x241>
lea    0xeca(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1351 <szl_ffi_get_type+0x241>
lea    0xeab(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
mov    0x2e34(%rip),%rbx
test   %rax,%rax
je     1351 <szl_ffi_get_type+0x241>
lea    0xe92(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1351 <szl_ffi_get_type+0x241>
lea    0xe81(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     12da <szl_ffi_get_type+0x1ca>
lea    0xe68(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     12e3 <szl_ffi_get_type+0x1d3>
lea    0xe58(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     12ec <szl_ffi_get_type+0x1dc>
lea    0xe3f(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     12f5 <szl_ffi_get_type+0x1e5>
lea    0xe2f(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     12fe <szl_ffi_get_type+0x1ee>
lea    0xe16(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1307 <szl_ffi_get_type+0x1f7>
lea    0xe06(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1310 <szl_ffi_get_type+0x200>
lea    0xded(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1319 <szl_ffi_get_type+0x209>
lea    0xddd(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1322 <szl_ffi_get_type+0x212>
lea    0xdc4(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     132b <szl_ffi_get_type+0x21b>
lea    0xdb2(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1334 <szl_ffi_get_type+0x224>
lea    0xd99(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     133d <szl_ffi_get_type+0x22d>
lea    0xd87(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1346 <szl_ffi_get_type+0x236>
lea    0xd77(%rip),%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    134f <szl_ffi_get_type+0x23f>
mov    0x2c88(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2cef(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2c96(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2c95(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2ccc(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2cab(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2c9a(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2c61(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2cd0(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2c77(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2c5e(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2ca5(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2c94(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
mov    0x2c6b(%rip),%rbx
jmp    1351 <szl_ffi_get_type+0x241>
xor    %ebx,%ebx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [5 x i8] c"int8\00"
@.str.1 = [5 x i8] c"char\00"
@ffi_type_sint8 = global i32 0
@.str.2 = [6 x i8] c"uint8\00"
@.str.3 = [6 x i8] c"uchar\00"
@ffi_type_uint8 = global i32 0
@.str.4 = [6 x i8] c"int16\00"
@ffi_type_sint16 = global i32 0
@.str.5 = [7 x i8] c"uint16\00"
@ffi_type_uint16 = global i32 0
@.str.6 = [6 x i8] c"int32\00"
@ffi_type_sint32 = global i32 0
@.str.7 = [7 x i8] c"uint32\00"
@ffi_type_uint32 = global i32 0
@.str.8 = [6 x i8] c"int64\00"
@ffi_type_sint64 = global i32 0
@.str.9 = [7 x i8] c"uint64\00"
@ffi_type_uint64 = global i32 0
@.str.10 = [6 x i8] c"short\00"
@ffi_type_sshort = global i32 0
@.str.11 = [7 x i8] c"ushort\00"
@ffi_type_ushort = global i32 0
@.str.12 = [4 x i8] c"int\00"
@ffi_type_sint = global i32 0
@.str.13 = [5 x i8] c"uint\00"
@ffi_type_uint = global i32 0
@.str.14 = [5 x i8] c"long\00"
@ffi_type_slong = global i32 0
@.str.15 = [6 x i8] c"ulong\00"
@ffi_type_ulong = global i32 0
@.str.16 = [8 x i8] c"pointer\00"
@ffi_type_pointer = global i32 0
@.str.17 = [5 x i8] c"void\00"
@ffi_type_void = global i32 0
define i32* @szl_ffi_get_type(i8* %0) {
%2 = alloca i32*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7, %1
store i32* @ffi_type_sint8, i32** %2
br label %92
12: ; preds = %7
%13 = load i8*, i8** %3
%14 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %13)
%15 = icmp eq i64 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i8*, i8** %3
%18 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %16, %12
store i32* @ffi_type_uint8, i32** %2
br label %92
21: ; preds = %16
%22 = load i8*, i8** %3
%23 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %21
store i32* @ffi_type_sint16, i32** %2
br label %92
26: ; preds = %21
%27 = load i8*, i8** %3
%28 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %27)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %26
store i32* @ffi_type_uint16, i32** %2
br label %92
31: ; preds = %26
%32 = load i8*, i8** %3
%33 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %31
store i32* @ffi_type_sint32, i32** %2
br label %92
36: ; preds = %31
%37 = load i8*, i8** %3
%38 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %37)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %36
store i32* @ffi_type_uint32, i32** %2
br label %92
41: ; preds = %36
%42 = load i8*, i8** %3
%43 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* %42)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %41
store i32* @ffi_type_sint64, i32** %2
br label %92
46: ; preds = %41
%47 = load i8*, i8** %3
%48 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* %47)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %46
store i32* @ffi_type_uint64, i32** %2
br label %92
51: ; preds = %46
%52 = load i8*, i8** %3
%53 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %52)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %51
store i32* @ffi_type_sshort, i32** %2
br label %92
56: ; preds = %51
%57 = load i8*, i8** %3
%58 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %57)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %56
store i32* @ffi_type_ushort, i32** %2
br label %92
61: ; preds = %56
%62 = load i8*, i8** %3
%63 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* %62)
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %61
store i32* @ffi_type_sint, i32** %2
br label %92
66: ; preds = %61
%67 = load i8*, i8** %3
%68 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %67)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %66
store i32* @ffi_type_uint, i32** %2
br label %92
71: ; preds = %66
%72 = load i8*, i8** %3
%73 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* %72)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %71
store i32* @ffi_type_slong, i32** %2
br label %92
76: ; preds = %71
%77 = load i8*, i8** %3
%78 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* %77)
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %76
store i32* @ffi_type_ulong, i32** %2
br label %92
81: ; preds = %76
%82 = load i8*, i8** %3
%83 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8* %82)
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %81
store i32* @ffi_type_pointer, i32** %2
br label %92
86: ; preds = %81
%87 = load i8*, i8** %3
%88 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* %87)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %86
store i32* @ffi_type_void, i32** %2
br label %92
91: ; preds = %86
store i32* null, i32** %2
br label %92
92: ; preds = %91, %90, %85, %80, %75, %70, %65, %60, %55, %50, %45, %40, %35, %30, %25, %20, %11
%93 = load i32*, i32** %2
ret i32* %93
}

LLVM IR (-O2):
@.str = [5 x i8] c"int8\00"
@.str.1 = [5 x i8] c"char\00"
@ffi_type_sint8 = global i32 0
@.str.2 = [6 x i8] c"uint8\00"
@.str.3 = [6 x i8] c"uchar\00"
@ffi_type_uint8 = global i32 0
@.str.4 = [6 x i8] c"int16\00"
@ffi_type_sint16 = global i32 0
@.str.5 = [7 x i8] c"uint16\00"
@ffi_type_uint16 = global i32 0
@.str.6 = [6 x i8] c"int32\00"
@ffi_type_sint32 = global i32 0
@.str.7 = [7 x i8] c"uint32\00"
@ffi_type_uint32 = global i32 0
@.str.8 = [6 x i8] c"int64\00"
@ffi_type_sint64 = global i32 0
@.str.9 = [7 x i8] c"uint64\00"
@ffi_type_uint64 = global i32 0
@.str.10 = [6 x i8] c"short\00"
@ffi_type_sshort = global i32 0
@.str.11 = [7 x i8] c"ushort\00"
@ffi_type_ushort = global i32 0
@.str.12 = [4 x i8] c"int\00"
@ffi_type_sint = global i32 0
@.str.13 = [5 x i8] c"uint\00"
@ffi_type_uint = global i32 0
@.str.14 = [5 x i8] c"long\00"
@ffi_type_slong = global i32 0
@.str.15 = [6 x i8] c"ulong\00"
@ffi_type_ulong = global i32 0
@.str.16 = [8 x i8] c"pointer\00"
@ffi_type_pointer = global i32 0
@.str.17 = [5 x i8] c"void\00"
@ffi_type_void = global i32 0
define i32* @szl_ffi_get_type(i8* %0) {
%2 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %56, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%6 = icmp eq i64 %5, 0
br i1 %6, label %56, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%9 = icmp eq i64 %8, 0
br i1 %9, label %56, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%12 = icmp eq i64 %11, 0
br i1 %12, label %56, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%15 = icmp eq i64 %14, 0
br i1 %15, label %56, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %56, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%21 = icmp eq i64 %20, 0
br i1 %21, label %56, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%24 = icmp eq i64 %23, 0
br i1 %24, label %56, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%27 = icmp eq i64 %26, 0
br i1 %27, label %56, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* %0)
%30 = icmp eq i64 %29, 0
br i1 %30, label %56, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%33 = icmp eq i64 %32, 0
br i1 %33, label %56, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %0)
%36 = icmp eq i64 %35, 0
br i1 %36, label %56, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* %0)
%39 = icmp eq i64 %38, 0
br i1 %39, label %56, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %0)
%42 = icmp eq i64 %41, 0
br i1 %42, label %56, label %43
43: ; preds = %40
%44 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* %0)
%45 = icmp eq i64 %44, 0
br i1 %45, label %56, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* %0)
%48 = icmp eq i64 %47, 0
br i1 %48, label %56, label %49
49: ; preds = %46
%50 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8* %0)
%51 = icmp eq i64 %50, 0
br i1 %51, label %56, label %52
52: ; preds = %49
%53 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* %0)
%54 = icmp eq i64 %53, 0
%55 = select i1 %54, i32* @ffi_type_void, i32* null
br label %56
56: ; preds = %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %7, %10, %1, %4
%57 = phi i32* [ @ffi_type_sint8, %4 ], [ @ffi_type_sint8, %1 ], [ @ffi_type_uint8, %10 ], [ @ffi_type_uint8, %7 ], [ @ffi_type_sint16, %13 ], [ @ffi_type_uint16, %16 ], [ @ffi_type_sint32, %19 ], [ @ffi_type_uint32, %22 ], [ @ffi_type_sint64, %25 ], [ @ffi_type_uint64, %28 ], [ @ffi_type_sshort, %31 ], [ @ffi_type_ushort, %34 ], [ @ffi_type_sint, %37 ], [ @ffi_type_uint, %40 ], [ @ffi_type_slong, %43 ], [ @ffi_type_ulong, %46 ], [ @ffi_type_pointer, %49 ], [ %55, %52 ]
ret i32* %57
}