#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 */
const char *GetWindForceDescription(int windSpeedInKnots) {
  if (windSpeedInKnots < 0) {
    return NULL;
  }
  if (windSpeedInKnots < 1) {
    return "Calm";
  } else if (windSpeedInKnots < 4) {
    return "Light air";
  } else if (windSpeedInKnots < 28) {
    return "Breeze";
  } else if (windSpeedInKnots < 48) {
    return "Gale";
  } else if (windSpeedInKnots < 64) {
    return "Storm";
  }
  return "Hurricane";
}


x86 assembly (clang, -O0):
<GetWindForceDescription>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    111e <GetWindForceDescription+0x1e>
movq   $0x0,-0x8(%rbp)
jmp    11bf <GetWindForceDescription+0xbf>
cmpl   $0x1,-0xc(%rbp)
jge    1138 <GetWindForceDescription+0x38>
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11bf <GetWindForceDescription+0xbf>
cmpl   $0x4,-0xc(%rbp)
jge    1152 <GetWindForceDescription+0x52>
lea    0xebc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11bf <GetWindForceDescription+0xbf>
cmpl   $0x1c,-0xc(%rbp)
jge    116c <GetWindForceDescription+0x6c>
lea    0xeac(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11bf <GetWindForceDescription+0xbf>
cmpl   $0x30,-0xc(%rbp)
jge    1186 <GetWindForceDescription+0x86>
lea    0xe99(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11bf <GetWindForceDescription+0xbf>
cmpl   $0x40,-0xc(%rbp)
jge    11a0 <GetWindForceDescription+0xa0>
lea    0xe84(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11bf <GetWindForceDescription+0xbf>
jmp    11a5 <GetWindForceDescription+0xa5>
jmp    11aa <GetWindForceDescription+0xaa>
jmp    11af <GetWindForceDescription+0xaf>
jmp    11b4 <GetWindForceDescription+0xb4>
lea    0xe66(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetWindForceDescription>:
test   %edi,%edi
js     1113 <GetWindForceDescription+0x13>
je     1116 <GetWindForceDescription+0x16>
cmp    $0x4,%edi
jae    111e <GetWindForceDescription+0x1e>
lea    0xef3(%rip),%rax
ret
xor    %eax,%eax
ret
lea    0xee3(%rip),%rax
ret
cmp    $0x1c,%edi
jae    112b <GetWindForceDescription+0x2b>
lea    0xee5(%rip),%rax
ret
cmp    $0x30,%edi
jae    1138 <GetWindForceDescription+0x38>
lea    0xedf(%rip),%rax
ret
cmp    $0x40,%edi
lea    0xed9(%rip),%rcx
lea    0xed8(%rip),%rax
cmovb  %rcx,%rax
ret

LLVM IR (-O0):
@.str = [5 x i8] c"Calm\00"
@.str.1 = [10 x i8] c"Light air\00"
@.str.2 = [7 x i8] c"Breeze\00"
@.str.3 = [5 x i8] c"Gale\00"
@.str.4 = [6 x i8] c"Storm\00"
@.str.5 = [10 x i8] c"Hurricane\00"
define i8* @GetWindForceDescription(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i8* null, i8** %2
br label %32
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp slt i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %7
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %2
br label %32
11: ; preds = %7
%12 = load i32, i32* %3
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %15
14: ; preds = %11
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %32
15: ; preds = %11
%16 = load i32, i32* %3
%17 = icmp slt i32 %16, 28
br i1 %17, label %18, label %19
18: ; preds = %15
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %32
19: ; preds = %15
%20 = load i32, i32* %3
%21 = icmp slt i32 %20, 48
br i1 %21, label %22, label %23
22: ; preds = %19
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %32
23: ; preds = %19
%24 = load i32, i32* %3
%25 = icmp slt i32 %24, 64
br i1 %25, label %26, label %27
26: ; preds = %23
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %32
27: ; preds = %23
br label %28
28: ; preds = %27
br label %29
29: ; preds = %28
br label %30
30: ; preds = %29
br label %31
31: ; preds = %30
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %32
32: ; preds = %31, %26, %22, %18, %14, %10, %6
%33 = load i8*, i8** %2
ret i8* %33
}

LLVM IR (-O2):
@.str = [5 x i8] c"Calm\00"
@.str.1 = [10 x i8] c"Light air\00"
@.str.2 = [7 x i8] c"Breeze\00"
@.str.3 = [5 x i8] c"Gale\00"
@.str.4 = [6 x i8] c"Storm\00"
@.str.5 = [10 x i8] c"Hurricane\00"
define i8* @GetWindForceDescription(i32 %0) {
%2 = icmp slt i32 %0, 0
br i1 %2, label %14, label %3
3: ; preds = %1
%4 = icmp eq i32 %0, 0
br i1 %4, label %14, label %5
5: ; preds = %3
%6 = icmp ult i32 %0, 4
br i1 %6, label %14, label %7
7: ; preds = %5
%8 = icmp ult i32 %0, 28
br i1 %8, label %14, label %9
9: ; preds = %7
%10 = icmp ult i32 %0, 48
br i1 %10, label %14, label %11
11: ; preds = %9
%12 = icmp ult i32 %0, 64
%13 = select i1 %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0)
br label %14
14: ; preds = %11, %9, %7, %5, %3, %1
%15 = phi i8* [ null, %1 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %3 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), %5 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), %7 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %9 ], [ %13, %11 ]
ret i8* %15
}