#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 */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int noise = 0;
  while (1) {
    scanf("%d", &noise);
    if (noise <= 50) {
      printf("quiet\n");
    } else if (noise <= 70) {
      printf("intrusive\n");
    } else if (noise <= 90) {
      printf("annoying\n");
    } else if (noise <= 100) {
      printf("very annoying\n");
    } else {
      printf("uncomfortable\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x32,-0x8(%rbp)
jg     1161 <main+0x41>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
jmp    11cd <main+0xad>
cmpl   $0x46,-0x8(%rbp)
jg     117c <main+0x5c>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
jmp    11c8 <main+0xa8>
cmpl   $0x5a,-0x8(%rbp)
jg     1197 <main+0x77>
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0xa3>
cmpl   $0x64,-0x8(%rbp)
jg     11b2 <main+0x92>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
jmp    11be <main+0x9e>
lea    0xe6b(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0xa3>
jmp    11c8 <main+0xa8>
jmp    11cd <main+0xad>
jmp    1136 <main+0x16>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movl   $0x0,0x4(%rsp)
lea    0xec6(%rip),%r14
lea    0x4(%rsp),%r15
lea    0xee3(%rip),%rbx
lea    0xed2(%rip),%r12
lea    0xec2(%rip),%r13
lea    0xeb6(%rip),%rbp
jmp    1165 <main+0x45>
nopl   (%rax)
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %rbx,%rdi
cmp    $0x33,%eax
jl     1160 <main+0x40>
mov    %r12,%rdi
cmp    $0x47,%eax
jb     1160 <main+0x40>
mov    %r13,%rdi
cmp    $0x5b,%eax
jb     1160 <main+0x40>
mov    %rbp,%rdi
cmp    $0x65,%eax
jb     1160 <main+0x40>
lea    0xe68(%rip),%rdi
jmp    1160 <main+0x40>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [7 x i8] c"quiet\0A\00"
@.str.2 = [11 x i8] c"intrusive\0A\00"
@.str.3 = [10 x i8] c"annoying\0A\00"
@.str.4 = [15 x i8] c"very annoying\0A\00"
@.str.5 = [15 x i8] c"uncomfortable\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %0, %29
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 50
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %29
9: ; preds = %3
%10 = load i32, i32* %2
%11 = icmp sle i32 %10, 70
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %28
14: ; preds = %9
%15 = load i32, i32* %2
%16 = icmp sle i32 %15, 90
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %27
19: ; preds = %14
%20 = load i32, i32* %2
%21 = icmp sle i32 %20, 100
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %26
24: ; preds = %19
%25 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
br label %27
27: ; preds = %26, %17
br label %28
28: ; preds = %27, %12
br label %29
29: ; preds = %28, %7
br label %3
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [14 x i8] c"uncomfortable\00"
@str.6 = [14 x i8] c"very annoying\00"
@str.7 = [9 x i8] c"annoying\00"
@str.8 = [10 x i8] c"intrusive\00"
@str.9 = [6 x i8] c"quiet\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
br label %3
3: ; preds = %14, %0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 51
br i1 %6, label %14, label %7
7: ; preds = %3
%8 = icmp ult i32 %5, 71
br i1 %8, label %14, label %9
9: ; preds = %7
%10 = icmp ult i32 %5, 91
br i1 %10, label %14, label %11
11: ; preds = %9
%12 = icmp ult i32 %5, 101
%13 = select i1 %12, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0)
br label %14
14: ; preds = %11, %9, %7, %3
%15 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.9, i64 0, i64 0), %3 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @str.8, i64 0, i64 0), %7 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.7, i64 0, i64 0), %9 ], [ %13, %11 ]
%16 = call i32 @puts(i8* dereferenceable(1) %15)
br label %3
}