#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 const *, char *);
int Get_var_itemsize(void *self, const char *name, int *itemsize) {
  if (strcmp(name, "model_grid_cell__row_index") == 0) {
    *itemsize = sizeof(int);
  } else if (strcmp(name, "model_grid_cell__column_index") == 0) {
    *itemsize = sizeof(int);
  } else if (strcmp(name, "cyclone__magnitude_of_velocity") == 0) {
    *itemsize = sizeof(double);
  } else if (strcmp(name, "cyclone__azimuth_angle_of_velocity") == 0) {
    *itemsize = sizeof(double);
  } else if (strcmp(name, "atmosphere_bottom_air__pressure") == 0) {
    *itemsize = sizeof(double);
  } else if (strcmp(name, "atmosphere_bottom_air__reference_pressure") == 0) {
    *itemsize = sizeof(double);
  } else if (strcmp(name, "cyclone_air_flow_max_speed__radius") == 0) {
    *itemsize = sizeof(double);
  } else if (strcmp(name, "cyclone__radius") == 0) {
    *itemsize = sizeof(double);
  } else if (strcmp(name, "atmosphere_air_flow__east_component_of_velocity") ==
             0) {
    *itemsize = sizeof(double);
  } else if (strcmp(name, "atmosphere_air_flow__north_component_of_velocity") ==
             0) {
    *itemsize = sizeof(double);
  } else {
    *itemsize = 0;
    return (1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<Get_var_itemsize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xed1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    114d <Get_var_itemsize+0x3d>
mov    -0x20(%rbp),%rax
movl   $0x4,(%rax)
jmp    1301 <Get_var_itemsize+0x1f1>
mov    -0x18(%rbp),%rdi
lea    0xec3(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1176 <Get_var_itemsize+0x66>
mov    -0x20(%rbp),%rax
movl   $0x4,(%rax)
jmp    12fc <Get_var_itemsize+0x1ec>
mov    -0x18(%rbp),%rdi
lea    0xeb8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    119f <Get_var_itemsize+0x8f>
mov    -0x20(%rbp),%rax
movl   $0x8,(%rax)
jmp    12f7 <Get_var_itemsize+0x1e7>
mov    -0x18(%rbp),%rdi
lea    0xeae(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11c8 <Get_var_itemsize+0xb8>
mov    -0x20(%rbp),%rax
movl   $0x8,(%rax)
jmp    12f2 <Get_var_itemsize+0x1e2>
mov    -0x18(%rbp),%rdi
lea    0xea8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11f1 <Get_var_itemsize+0xe1>
mov    -0x20(%rbp),%rax
movl   $0x8,(%rax)
jmp    12ed <Get_var_itemsize+0x1dd>
mov    -0x18(%rbp),%rdi
lea    0xe9f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    121a <Get_var_itemsize+0x10a>
mov    -0x20(%rbp),%rax
movl   $0x8,(%rax)
jmp    12e8 <Get_var_itemsize+0x1d8>
mov    -0x18(%rbp),%rdi
lea    0xea0(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1243 <Get_var_itemsize+0x133>
mov    -0x20(%rbp),%rax
movl   $0x8,(%rax)
jmp    12e3 <Get_var_itemsize+0x1d3>
mov    -0x18(%rbp),%rdi
lea    0xe9a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    126c <Get_var_itemsize+0x15c>
mov    -0x20(%rbp),%rax
movl   $0x8,(%rax)
jmp    12de <Get_var_itemsize+0x1ce>
mov    -0x18(%rbp),%rdi
lea    0xe81(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1295 <Get_var_itemsize+0x185>
mov    -0x20(%rbp),%rax
movl   $0x8,(%rax)
jmp    12d9 <Get_var_itemsize+0x1c9>
mov    -0x18(%rbp),%rdi
lea    0xe88(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12be <Get_var_itemsize+0x1ae>
mov    -0x20(%rbp),%rax
movl   $0x8,(%rax)
jmp    12d4 <Get_var_itemsize+0x1c4>
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1308 <Get_var_itemsize+0x1f8>
jmp    12d9 <Get_var_itemsize+0x1c9>
jmp    12de <Get_var_itemsize+0x1ce>
jmp    12e3 <Get_var_itemsize+0x1d3>
jmp    12e8 <Get_var_itemsize+0x1d8>
jmp    12ed <Get_var_itemsize+0x1dd>
jmp    12f2 <Get_var_itemsize+0x1e2>
jmp    12f7 <Get_var_itemsize+0x1e7>
jmp    12fc <Get_var_itemsize+0x1ec>
jmp    1301 <Get_var_itemsize+0x1f1>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Get_var_itemsize>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%rbx
lea    0xedc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
xor    %r15d,%r15d
mov    $0x4,%ebp
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xed7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xedd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    $0x8,%ebp
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xedf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xeea(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xef6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xf0c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xf1b(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xf17(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1210 <Get_var_itemsize+0x100>
lea    0xf33(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
xor    %r15d,%r15d
xor    %ebp,%ebp
test   %rax,%rax
setne  %r15b
sete   %bpl
shl    $0x3,%ebp
mov    %ebp,(%r14)
mov    %r15d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"model_grid_cell__row_index\00"
@.str.1 = [30 x i8] c"model_grid_cell__column_index\00"
@.str.2 = [31 x i8] c"cyclone__magnitude_of_velocity\00"
@.str.3 = [35 x i8] c"cyclone__azimuth_angle_of_velocity\00"
@.str.4 = [32 x i8] c"atmosphere_bottom_air__pressure\00"
@.str.5 = [42 x i8] c"atmosphere_bottom_air__reference_pressure\00"
@.str.6 = [35 x i8] c"cyclone_air_flow_max_speed__radius\00"
@.str.7 = [16 x i8] c"cyclone__radius\00"
@.str.8 = [48 x i8] c"atmosphere_air_flow__east_component_of_velocity\00"
@.str.9 = [49 x i8] c"atmosphere_air_flow__north_component_of_velocity\00"
define i32 @Get_var_itemsize(i8* %0, i8* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32* %2, i32** %7
%8 = load i8*, i8** %6
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = load i32*, i32** %7
store i32 4, i32* %12
br label %78
13: ; preds = %3
%14 = load i8*, i8** %6
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load i32*, i32** %7
store i32 4, i32* %18
br label %77
19: ; preds = %13
%20 = load i8*, i8** %6
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = load i32*, i32** %7
store i32 8, i32* %24
br label %76
25: ; preds = %19
%26 = load i8*, i8** %6
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = load i32*, i32** %7
store i32 8, i32* %30
br label %75
31: ; preds = %25
%32 = load i8*, i8** %6
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32*, i32** %7
store i32 8, i32* %36
br label %74
37: ; preds = %31
%38 = load i8*, i8** %6
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = load i32*, i32** %7
store i32 8, i32* %42
br label %73
43: ; preds = %37
%44 = load i8*, i8** %6
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load i32*, i32** %7
store i32 8, i32* %48
br label %72
49: ; preds = %43
%50 = load i8*, i8** %6
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = load i32*, i32** %7
store i32 8, i32* %54
br label %71
55: ; preds = %49
%56 = load i8*, i8** %6
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = load i32*, i32** %7
store i32 8, i32* %60
br label %70
61: ; preds = %55
%62 = load i8*, i8** %6
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = load i32*, i32** %7
store i32 8, i32* %66
br label %69
67: ; preds = %61
%68 = load i32*, i32** %7
store i32 0, i32* %68
store i32 1, i32* %4
br label %79
69: ; preds = %65
br label %70
70: ; preds = %69, %59
br label %71
71: ; preds = %70, %53
br label %72
72: ; preds = %71, %47
br label %73
73: ; preds = %72, %41
br label %74
74: ; preds = %73, %35
br label %75
75: ; preds = %74, %29
br label %76
76: ; preds = %75, %23
br label %77
77: ; preds = %76, %17
br label %78
78: ; preds = %77, %11
store i32 0, i32* %4
br label %79
79: ; preds = %78, %67
%80 = load i32, i32* %4
ret i32 %80
}

LLVM IR (-O2):
@.str = [27 x i8] c"model_grid_cell__row_index\00"
@.str.1 = [30 x i8] c"model_grid_cell__column_index\00"
@.str.2 = [31 x i8] c"cyclone__magnitude_of_velocity\00"
@.str.3 = [35 x i8] c"cyclone__azimuth_angle_of_velocity\00"
@.str.4 = [32 x i8] c"atmosphere_bottom_air__pressure\00"
@.str.5 = [42 x i8] c"atmosphere_bottom_air__reference_pressure\00"
@.str.6 = [35 x i8] c"cyclone_air_flow_max_speed__radius\00"
@.str.7 = [16 x i8] c"cyclone__radius\00"
@.str.8 = [48 x i8] c"atmosphere_air_flow__east_component_of_velocity\00"
@.str.9 = [49 x i8] c"atmosphere_air_flow__north_component_of_velocity\00"
define i32 @Get_var_itemsize(i8* nocapture readnone %0, i8* %1, i32* nocapture writeonly %2) {
%4 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %36, label %6
6: ; preds = %3
%7 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %36, label %9
9: ; preds = %6
%10 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %36, label %12
12: ; preds = %9
%13 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %36, label %15
15: ; preds = %12
%16 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %36, label %18
18: ; preds = %15
%19 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %36, label %21
21: ; preds = %18
%22 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %36, label %24
24: ; preds = %21
%25 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %36, label %27
27: ; preds = %24
%28 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %36, label %30
30: ; preds = %27
%31 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
%33 = select i1 %32, i32 8, i32 0
%34 = xor i1 %32, true
%35 = zext i1 %34 to i32
br label %36
36: ; preds = %30, %27, %24, %21, %18, %15, %12, %9, %6, %3
%37 = phi i32 [ 4, %3 ], [ 4, %6 ], [ 8, %9 ], [ 8, %12 ], [ 8, %15 ], [ 8, %18 ], [ 8, %21 ], [ 8, %24 ], [ 8, %27 ], [ %33, %30 ]
%38 = phi i32 [ 0, %3 ], [ 0, %6 ], [ 0, %9 ], [ 0, %12 ], [ 0, %15 ], [ 0, %18 ], [ 0, %21 ], [ 0, %24 ], [ 0, %27 ], [ %35, %30 ]
store i32 %37, i32* %2
ret i32 %38
}