#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 m;
  scanf("%d", &m);
  if (m > 0 && m <= 4)
    printf("few\n");
  if (m > 4 && m <= 9)
    printf("several\n");
  if (m > 9 && m <= 19)
    printf("pack\n");
  if (m > 19 && m <= 49)
    printf("lots\n");
  if (m > 49 && m <= 99)
    printf("horde\n");
  if (m > 99 && m <= 249)
    printf("throng\n");
  if (m > 249 && m <= 499)
    printf("swarm\n");
  if (m > 499 && m <= 999)
    printf("zounds\n");
  if (m >= 1000)
    printf("legion\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    115f <main+0x3f>
cmpl   $0x4,-0x8(%rbp)
jg     115f <main+0x3f>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x8(%rbp)
jle    117f <main+0x5f>
cmpl   $0x9,-0x8(%rbp)
jg     117f <main+0x5f>
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x8(%rbp)
jle    119f <main+0x7f>
cmpl   $0x13,-0x8(%rbp)
jg     119f <main+0x7f>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x13,-0x8(%rbp)
jle    11bf <main+0x9f>
cmpl   $0x31,-0x8(%rbp)
jg     11bf <main+0x9f>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x31,-0x8(%rbp)
jle    11df <main+0xbf>
cmpl   $0x63,-0x8(%rbp)
jg     11df <main+0xbf>
lea    0xe43(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x63,-0x8(%rbp)
jle    1202 <main+0xe2>
cmpl   $0xf9,-0x8(%rbp)
jg     1202 <main+0xe2>
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0xf9,-0x8(%rbp)
jle    1228 <main+0x108>
cmpl   $0x1f3,-0x8(%rbp)
jg     1228 <main+0x108>
lea    0xe09(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x1f3,-0x8(%rbp)
jle    124e <main+0x12e>
cmpl   $0x3e7,-0x8(%rbp)
jg     124e <main+0x12e>
lea    0xdea(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3e8,-0x8(%rbp)
jl     1267 <main+0x147>
lea    0xdd9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
lea    -0x1(%rax),%ecx
cmp    $0x3,%ecx
ja     114e <main+0x2e>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0x5(%rax),%ecx
cmp    $0x4,%ecx
ja     1166 <main+0x46>
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0xa(%rax),%ecx
cmp    $0x9,%ecx
ja     117e <main+0x5e>
lea    0xeb4(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0x14(%rax),%ecx
cmp    $0x1d,%ecx
ja     1196 <main+0x76>
lea    0xe97(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0x32(%rax),%ecx
cmp    $0x31,%ecx
ja     11ae <main+0x8e>
lea    0xe79(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0x64(%rax),%ecx
cmp    $0x95,%ecx
ja     11c9 <main+0xa9>
lea    0xe57(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0xfa(%rax),%ecx
cmp    $0xf9,%ecx
ja     11e7 <main+0xc7>
lea    0xe33(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
lea    -0x1f4(%rax),%ecx
cmp    $0x1f3,%ecx
ja     1205 <main+0xe5>
lea    0xe0e(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x3e8,%eax
jl     1218 <main+0xf8>
lea    0xdf0(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"few\0A\00"
@.str.2 = [9 x i8] c"several\0A\00"
@.str.3 = [6 x i8] c"pack\0A\00"
@.str.4 = [6 x i8] c"lots\0A\00"
@.str.5 = [7 x i8] c"horde\0A\00"
@.str.6 = [8 x i8] c"throng\0A\00"
@.str.7 = [7 x i8] c"swarm\0A\00"
@.str.8 = [8 x i8] c"zounds\0A\00"
@.str.9 = [8 x i8] c"legion\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %0
%7 = load i32, i32* %2
%8 = icmp sle i32 %7, 4
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %9, %6, %0
%12 = load i32, i32* %2
%13 = icmp sgt i32 %12, 4
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load i32, i32* %2
%16 = icmp sle i32 %15, 9
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %19
19: ; preds = %17, %14, %11
%20 = load i32, i32* %2
%21 = icmp sgt i32 %20, 9
br i1 %21, label %22, label %27
22: ; preds = %19
%23 = load i32, i32* %2
%24 = icmp sle i32 %23, 19
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %25, %22, %19
%28 = load i32, i32* %2
%29 = icmp sgt i32 %28, 19
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load i32, i32* %2
%32 = icmp sle i32 %31, 49
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %35
35: ; preds = %33, %30, %27
%36 = load i32, i32* %2
%37 = icmp sgt i32 %36, 49
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = load i32, i32* %2
%40 = icmp sle i32 %39, 99
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %43
43: ; preds = %41, %38, %35
%44 = load i32, i32* %2
%45 = icmp sgt i32 %44, 99
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = load i32, i32* %2
%48 = icmp sle i32 %47, 249
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %51
51: ; preds = %49, %46, %43
%52 = load i32, i32* %2
%53 = icmp sgt i32 %52, 249
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = load i32, i32* %2
%56 = icmp sle i32 %55, 499
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %59
59: ; preds = %57, %54, %51
%60 = load i32, i32* %2
%61 = icmp sgt i32 %60, 499
br i1 %61, label %62, label %67
62: ; preds = %59
%63 = load i32, i32* %2
%64 = icmp sle i32 %63, 999
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %67
67: ; preds = %65, %62, %59
%68 = load i32, i32* %2
%69 = icmp sge i32 %68, 1000
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %72
72: ; preds = %70, %67
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [7 x i8] c"legion\00"
@str.10 = [7 x i8] c"zounds\00"
@str.11 = [6 x i8] c"swarm\00"
@str.12 = [7 x i8] c"throng\00"
@str.13 = [6 x i8] c"horde\00"
@str.14 = [5 x i8] c"lots\00"
@str.15 = [5 x i8] c"pack\00"
@str.16 = [8 x i8] c"several\00"
@str.17 = [4 x i8] c"few\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = add i32 %4, -1
%6 = icmp ult i32 %5, 4
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.17, i64 0, i64 0))
%9 = load i32, i32* %1
br label %10
10: ; preds = %7, %0
%11 = phi i32 [ %9, %7 ], [ %4, %0 ]
%12 = add i32 %11, -5
%13 = icmp ult i32 %12, 5
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.16, i64 0, i64 0))
%16 = load i32, i32* %1
br label %17
17: ; preds = %14, %10
%18 = phi i32 [ %16, %14 ], [ %11, %10 ]
%19 = add i32 %18, -10
%20 = icmp ult i32 %19, 10
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.15, i64 0, i64 0))
%23 = load i32, i32* %1
br label %24
24: ; preds = %21, %17
%25 = phi i32 [ %23, %21 ], [ %18, %17 ]
%26 = add i32 %25, -20
%27 = icmp ult i32 %26, 30
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.14, i64 0, i64 0))
%30 = load i32, i32* %1
br label %31
31: ; preds = %28, %24
%32 = phi i32 [ %30, %28 ], [ %25, %24 ]
%33 = add i32 %32, -50
%34 = icmp ult i32 %33, 50
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.13, i64 0, i64 0))
%37 = load i32, i32* %1
br label %38
38: ; preds = %35, %31
%39 = phi i32 [ %37, %35 ], [ %32, %31 ]
%40 = add i32 %39, -100
%41 = icmp ult i32 %40, 150
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.12, i64 0, i64 0))
%44 = load i32, i32* %1
br label %45
45: ; preds = %42, %38
%46 = phi i32 [ %44, %42 ], [ %39, %38 ]
%47 = add i32 %46, -250
%48 = icmp ult i32 %47, 250
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.11, i64 0, i64 0))
%51 = load i32, i32* %1
br label %52
52: ; preds = %49, %45
%53 = phi i32 [ %51, %49 ], [ %46, %45 ]
%54 = add i32 %53, -500
%55 = icmp ult i32 %54, 500
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.10, i64 0, i64 0))
%58 = load i32, i32* %1
br label %59
59: ; preds = %56, %52
%60 = phi i32 [ %58, %56 ], [ %53, %52 ]
%61 = icmp sgt i32 %60, 999
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
br label %64
64: ; preds = %62, %59
ret i32 0
}