#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 */

/* Variables and functions */
scalar_t__ strcmp(char *, char *);
char *GetSizeOf(char *input) {
  char *status = "0";
  if (strcmp(input, "int") == 0) {
    status = "2";
  } else if (strcmp(input, "bool") == 0) {
    status = "2";
  } else if (strcmp(input, "float") == 0) {
    status = "4";
  } else if (strcmp(input, "long") == 0) {
    status = "4";
  } else if (strcmp(input, "char") == 0) {
    status = "1";
  } else if (strcmp(input, "double") == 0) {
    status = "8";
  } else if (strcmp(input, "string") == 0) {
    status = "12";
  } else if (strcmp(input, "void") == 0) {
    status = "0";
  } else if (strcmp(input, "auto") == 0) {
    status = "2";
  } else {
    status = "12";
  }
  return status;
}


x86 assembly (clang, -O0):
<GetSizeOf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed0(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1151 <GetSizeOf+0x41>
lea    0xee8(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12d4 <GetSizeOf+0x1c4>
mov    -0x8(%rbp),%rdi
lea    0xeaa(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    117b <GetSizeOf+0x6b>
lea    0xebe(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12cf <GetSizeOf+0x1bf>
mov    -0x8(%rbp),%rdi
lea    0xe85(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11a5 <GetSizeOf+0x95>
lea    0xe75(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12ca <GetSizeOf+0x1ba>
mov    -0x8(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11cf <GetSizeOf+0xbf>
lea    0xe4b(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12c5 <GetSizeOf+0x1b5>
mov    -0x8(%rbp),%rdi
lea    0xe3e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11f9 <GetSizeOf+0xe9>
lea    0xe2d(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12c0 <GetSizeOf+0x1b0>
mov    -0x8(%rbp),%rdi
lea    0xe1b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1223 <GetSizeOf+0x113>
lea    0xe0c(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12bb <GetSizeOf+0x1ab>
mov    -0x8(%rbp),%rdi
lea    0xdfa(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    124d <GetSizeOf+0x13d>
lea    0xdeb(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12b6 <GetSizeOf+0x1a6>
mov    -0x8(%rbp),%rdi
lea    0xdda(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1277 <GetSizeOf+0x167>
lea    0xd92(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12b1 <GetSizeOf+0x1a1>
mov    -0x8(%rbp),%rdi
lea    0xdb5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12a1 <GetSizeOf+0x191>
lea    0xd98(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12ac <GetSizeOf+0x19c>
lea    0xd87(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    12b1 <GetSizeOf+0x1a1>
jmp    12b6 <GetSizeOf+0x1a6>
jmp    12bb <GetSizeOf+0x1ab>
jmp    12c0 <GetSizeOf+0x1b0>
jmp    12c5 <GetSizeOf+0x1b5>
jmp    12ca <GetSizeOf+0x1ba>
jmp    12cf <GetSizeOf+0x1bf>
jmp    12d4 <GetSizeOf+0x1c4>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetSizeOf>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xee4(%rip),%rsi
call   1030 <strcmp@plt>
lea    0xf06(%rip),%rbx
test   %rax,%rax
je     121a <GetSizeOf+0x10a>
lea    0xecc(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     121a <GetSizeOf+0x10a>
lea    0xeb9(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
lea    0xeb0(%rip),%rbx
test   %rax,%rax
je     121a <GetSizeOf+0x10a>
lea    0xea2(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     121a <GetSizeOf+0x10a>
lea    0xe8f(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     11f8 <GetSizeOf+0xe8>
lea    0xe82(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <GetSizeOf+0xf1>
lea    0xe77(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     120a <GetSizeOf+0xfa>
lea    0xe6d(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1213 <GetSizeOf+0x103>
lea    0xe5e(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
lea    0xe45(%rip),%rax
lea    0xe3d(%rip),%rbx
cmove  %rax,%rbx
jmp    121a <GetSizeOf+0x10a>
lea    0xe1e(%rip),%rbx
jmp    121a <GetSizeOf+0x10a>
lea    0xe1e(%rip),%rbx
jmp    121a <GetSizeOf+0x10a>
lea    0xe1e(%rip),%rbx
jmp    121a <GetSizeOf+0x10a>
lea    0xde6(%rip),%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [2 x i8] c"0\00"
@.str.1 = [4 x i8] c"int\00"
@.str.2 = [2 x i8] c"2\00"
@.str.3 = [5 x i8] c"bool\00"
@.str.4 = [6 x i8] c"float\00"
@.str.5 = [2 x i8] c"4\00"
@.str.6 = [5 x i8] c"long\00"
@.str.7 = [5 x i8] c"char\00"
@.str.8 = [2 x i8] c"1\00"
@.str.9 = [7 x i8] c"double\00"
@.str.10 = [2 x i8] c"8\00"
@.str.11 = [7 x i8] c"string\00"
@.str.12 = [3 x i8] c"12\00"
@.str.13 = [5 x i8] c"void\00"
@.str.14 = [5 x i8] c"auto\00"
define i8* @GetSizeOf(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = load i8*, i8** %2
%5 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %3
br label %57
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %3
br label %56
13: ; preds = %8
%14 = load i8*, i8** %2
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8** %3
br label %55
18: ; preds = %13
%19 = load i8*, i8** %2
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8** %3
br label %54
23: ; preds = %18
%24 = load i8*, i8** %2
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8** %3
br label %53
28: ; preds = %23
%29 = load i8*, i8** %2
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), i8** %3
br label %52
33: ; preds = %28
%34 = load i8*, i8** %2
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8** %3
br label %51
38: ; preds = %33
%39 = load i8*, i8** %2
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %3
br label %50
43: ; preds = %38
%44 = load i8*, i8** %2
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %3
br label %49
48: ; preds = %43
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8** %3
br label %49
49: ; preds = %48, %47
br label %50
50: ; preds = %49, %42
br label %51
51: ; preds = %50, %37
br label %52
52: ; preds = %51, %32
br label %53
53: ; preds = %52, %27
br label %54
54: ; preds = %53, %22
br label %55
55: ; preds = %54, %17
br label %56
56: ; preds = %55, %12
br label %57
57: ; preds = %56, %7
%58 = load i8*, i8** %3
ret i8* %58
}

LLVM IR (-O2):
@.str = [2 x i8] c"0\00"
@.str.1 = [4 x i8] c"int\00"
@.str.2 = [2 x i8] c"2\00"
@.str.3 = [5 x i8] c"bool\00"
@.str.4 = [6 x i8] c"float\00"
@.str.5 = [2 x i8] c"4\00"
@.str.6 = [5 x i8] c"long\00"
@.str.7 = [5 x i8] c"char\00"
@.str.8 = [2 x i8] c"1\00"
@.str.9 = [7 x i8] c"double\00"
@.str.10 = [2 x i8] c"8\00"
@.str.11 = [7 x i8] c"string\00"
@.str.12 = [3 x i8] c"12\00"
@.str.13 = [5 x i8] c"void\00"
@.str.14 = [5 x i8] c"auto\00"
define i8* @GetSizeOf(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %29, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %29, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %29, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %29, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %29, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %29, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %29, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %29, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
%28 = select i1 %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0)
br label %29
29: ; preds = %25, %22, %19, %16, %13, %10, %7, %4, %1
%30 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %1 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %4 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), %7 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), %10 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), %13 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), %16 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), %19 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %22 ], [ %28, %25 ]
ret i8* %30
}