#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__ EOF;
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, double *);
int main(void) {
  double weight;
  while (scanf("%lf", &weight) != EOF) {
    if (weight <= 48.00) {
      printf("light fly\n");
    } else if (weight <= 51.00) {
      printf("fly\n");
    } else if (weight <= 54.00) {
      printf("bantam\n");
    } else if (weight <= 57.00) {
      printf("feather\n");
    } else if (weight <= 60.00) {
      printf("light\n");
    } else if (weight <= 64.00) {
      printf("light welter\n");
    } else if (weight <= 69.00) {
      printf("welter\n");
    } else if (weight <= 75.00) {
      printf("light middle\n");
    } else if (weight <= 81.00) {
      printf("middle\n");
    } else if (weight <= 91.00) {
      printf("light heavy\n");
    } else {
      printf("heavy\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf1a(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    0x2ea2(%rip),%rcx
cmp    (%rcx),%rax
je     12f5 <main+0x1d5>
movsd  0xea9(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1173 <main+0x53>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
jmp    12f0 <main+0x1d0>
movsd  0xe8d(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1197 <main+0x77>
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
jmp    12eb <main+0x1cb>
movsd  0xe71(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11bb <main+0x9b>
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
jmp    12e6 <main+0x1c6>
movsd  0xe55(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11df <main+0xbf>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
jmp    12e1 <main+0x1c1>
movsd  0xe39(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1203 <main+0xe3>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
jmp    12dc <main+0x1bc>
movsd  0xe1d(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1227 <main+0x107>
lea    0xe5a(%rip),%rdi
call   1030 <printf@plt>
jmp    12d7 <main+0x1b7>
movsd  0xe01(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     124b <main+0x12b>
lea    0xe3c(%rip),%rdi
call   1030 <printf@plt>
jmp    12d2 <main+0x1b2>
movsd  0xde5(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     126f <main+0x14f>
lea    0xe20(%rip),%rdi
call   1030 <printf@plt>
jmp    12cd <main+0x1ad>
movsd  0xdc9(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1293 <main+0x173>
lea    0xe02(%rip),%rdi
call   1030 <printf@plt>
jmp    12c8 <main+0x1a8>
movsd  0xdad(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     12b7 <main+0x197>
lea    0xde6(%rip),%rdi
call   1030 <printf@plt>
jmp    12c3 <main+0x1a3>
lea    0xddb(%rip),%rdi
call   1030 <printf@plt>
jmp    12c8 <main+0x1a8>
jmp    12cd <main+0x1ad>
jmp    12d2 <main+0x1b2>
jmp    12d7 <main+0x1b7>
jmp    12dc <main+0x1bc>
jmp    12e1 <main+0x1c1>
jmp    12e6 <main+0x1c6>
jmp    12eb <main+0x1cb>
jmp    12f0 <main+0x1d0>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xf1e(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    0x2ea7(%rip),%r15
cmp    (%r15),%rax
jne    1157 <main+0x37>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xf31(%rip),%r12
lea    0xf30(%rip),%r13
lea    0xf1c(%rip),%rbp
lea    0xedd(%rip),%r14
mov    %rsp,%rbx
jmp    1195 <main+0x75>
nopl   0x0(%rax,%rax,1)
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
cmp    (%r15),%rax
je     1146 <main+0x26>
movsd  (%rsp),%xmm0
movsd  0xe5e(%rip),%xmm1
ucomisd %xmm0,%xmm1
mov    %r12,%rdi
jae    1180 <main+0x60>
movsd  0xe55(%rip),%xmm1
ucomisd %xmm0,%xmm1
mov    %r13,%rdi
jae    1180 <main+0x60>
movsd  0xe4c(%rip),%xmm1
ucomisd %xmm0,%xmm1
mov    %rbp,%rdi
jae    1180 <main+0x60>
movsd  0xe43(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xea0(%rip),%rdi
jae    1180 <main+0x60>
movsd  0xe36(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xe85(%rip),%rdi
jae    1180 <main+0x60>
movsd  0xe29(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xe63(%rip),%rdi
jae    1180 <main+0x60>
movsd  0xe18(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xe50(%rip),%rdi
jae    1180 <main+0x60>
movsd  0xe07(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xe24(%rip),%rdi
jae    1180 <main+0x60>
movsd  0xdf6(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xe11(%rip),%rdi
jae    1180 <main+0x60>
movsd  0xde5(%rip),%xmm1
ucomisd %xmm0,%xmm1
lea    0xdec(%rip),%rdi
jb     1180 <main+0x60>
lea    0xdd9(%rip),%rdi
jmp    1180 <main+0x60>

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\00"
@EOF = global i64 0
@.str.1 = [11 x i8] c"light fly\0A\00"
@.str.2 = [5 x i8] c"fly\0A\00"
@.str.3 = [8 x i8] c"bantam\0A\00"
@.str.4 = [9 x i8] c"feather\0A\00"
@.str.5 = [7 x i8] c"light\0A\00"
@.str.6 = [14 x i8] c"light welter\0A\00"
@.str.7 = [8 x i8] c"welter\0A\00"
@.str.8 = [14 x i8] c"light middle\0A\00"
@.str.9 = [8 x i8] c"middle\0A\00"
@.str.10 = [13 x i8] c"light heavy\0A\00"
@.str.11 = [7 x i8] c"heavy\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
br label %3
3: ; preds = %68, %0
%4 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %2)
%5 = load i64, i64* @EOF
%6 = icmp ne i64 %4, %5
br i1 %6, label %7, label %69
7: ; preds = %3
%8 = load double, double* %2
%9 = fcmp ole double %8, 4.800000e+01
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %68
12: ; preds = %7
%13 = load double, double* %2
%14 = fcmp ole double %13, 5.100000e+01
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %67
17: ; preds = %12
%18 = load double, double* %2
%19 = fcmp ole double %18, 5.400000e+01
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %66
22: ; preds = %17
%23 = load double, double* %2
%24 = fcmp ole double %23, 5.700000e+01
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %65
27: ; preds = %22
%28 = load double, double* %2
%29 = fcmp ole double %28, 6.000000e+01
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %64
32: ; preds = %27
%33 = load double, double* %2
%34 = fcmp ole double %33, 6.400000e+01
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
br label %63
37: ; preds = %32
%38 = load double, double* %2
%39 = fcmp ole double %38, 6.900000e+01
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %62
42: ; preds = %37
%43 = load double, double* %2
%44 = fcmp ole double %43, 7.500000e+01
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %61
47: ; preds = %42
%48 = load double, double* %2
%49 = fcmp ole double %48, 8.100000e+01
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %60
52: ; preds = %47
%53 = load double, double* %2
%54 = fcmp ole double %53, 9.100000e+01
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
br label %59
57: ; preds = %52
%58 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %59
59: ; preds = %57, %55
br label %60
60: ; preds = %59, %50
br label %61
61: ; preds = %60, %45
br label %62
62: ; preds = %61, %40
br label %63
63: ; preds = %62, %35
br label %64
64: ; preds = %63, %30
br label %65
65: ; preds = %64, %25
br label %66
66: ; preds = %65, %20
br label %67
67: ; preds = %66, %15
br label %68
68: ; preds = %67, %10
br label %3
69: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@EOF = global i64 0
@str = [6 x i8] c"heavy\00"
@str.12 = [12 x i8] c"light heavy\00"
@str.13 = [7 x i8] c"middle\00"
@str.14 = [13 x i8] c"light middle\00"
@str.15 = [7 x i8] c"welter\00"
@str.16 = [13 x i8] c"light welter\00"
@str.17 = [6 x i8] c"light\00"
@str.18 = [8 x i8] c"feather\00"
@str.19 = [7 x i8] c"bantam\00"
@str.20 = [4 x i8] c"fly\00"
@str.21 = [10 x i8] c"light fly\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
%3 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %1)
%4 = load i64, i64* @EOF
%5 = icmp eq i64 %3, %4
br i1 %5, label %34, label %6
6: ; preds = %0, %28
%7 = load double, double* %1
%8 = fcmp ugt double %7, 4.800000e+01
br i1 %8, label %9, label %28
9: ; preds = %6
%10 = fcmp ugt double %7, 5.100000e+01
br i1 %10, label %11, label %28
11: ; preds = %9
%12 = fcmp ugt double %7, 5.400000e+01
br i1 %12, label %13, label %28
13: ; preds = %11
%14 = fcmp ugt double %7, 5.700000e+01
br i1 %14, label %15, label %28
15: ; preds = %13
%16 = fcmp ugt double %7, 6.000000e+01
br i1 %16, label %17, label %28
17: ; preds = %15
%18 = fcmp ugt double %7, 6.400000e+01
br i1 %18, label %19, label %28
19: ; preds = %17
%20 = fcmp ugt double %7, 6.900000e+01
br i1 %20, label %21, label %28
21: ; preds = %19
%22 = fcmp ugt double %7, 7.500000e+01
br i1 %22, label %23, label %28
23: ; preds = %21
%24 = fcmp ugt double %7, 8.100000e+01
br i1 %24, label %25, label %28
25: ; preds = %23
%26 = fcmp ugt double %7, 9.100000e+01
%27 = select i1 %26, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.12, i64 0, i64 0)
br label %28
28: ; preds = %25, %23, %21, %19, %17, %15, %13, %11, %9, %6
%29 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @str.21, i64 0, i64 0), %6 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.20, i64 0, i64 0), %9 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.19, i64 0, i64 0), %11 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.18, i64 0, i64 0), %13 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.17, i64 0, i64 0), %15 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.15, i64 0, i64 0), %19 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.14, i64 0, i64 0), %21 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.13, i64 0, i64 0), %23 ], [ %27, %25 ]
%30 = call i32 @puts(i8* dereferenceable(1) %29)
%31 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %1)
%32 = load i64, i64* @EOF
%33 = icmp eq i64 %31, %32
br i1 %33, label %34, label %6
34: ; preds = %28, %0
ret i32 0
}