#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 a;
  int flag = 1;
  scanf("%d", &a);
  if (a % 2 == 0) {
    flag = 1;
  } else if (flag == 1) {
    printf("alpha\n");
  }
  if (a % 3 == 0) {
    flag = 1;
  } else if (flag == 1) {
    printf("bravo\n");
  }
  if (a % 5 == 0) {
    flag = 1;
  } else if (flag == 1) {
    printf("charlie\n");
  }
  if (flag == 0) {
    printf("zulu\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0xc(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1166 <main+0x46>
movl   $0x1,-0xc(%rbp)
jmp    1181 <main+0x61>
cmpl   $0x1,-0xc(%rbp)
jne    117c <main+0x5c>
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
jmp    1181 <main+0x61>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11a1 <main+0x81>
movl   $0x1,-0xc(%rbp)
jmp    11bc <main+0x9c>
cmpl   $0x1,-0xc(%rbp)
jne    11b7 <main+0x97>
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
jmp    11bc <main+0x9c>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11dc <main+0xbc>
movl   $0x1,-0xc(%rbp)
jmp    11f7 <main+0xd7>
cmpl   $0x1,-0xc(%rbp)
jne    11f2 <main+0xd2>
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
jmp    11f7 <main+0xd7>
cmpl   $0x0,-0xc(%rbp)
jne    120d <main+0xed>
lea    0xe12(%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
test   $0x1,%al
je     114a <main+0x2a>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
imul   $0xaaaaaaab,%eax,%ecx
add    $0x2aaaaaaa,%ecx
cmp    $0x55555555,%ecx
jb     116e <main+0x4e>
lea    0xea4(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
imul   $0xcccccccd,%eax,%eax
add    $0x19999999,%eax
cmp    $0x33333333,%eax
jb     118c <main+0x6c>
lea    0xe88(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [7 x i8] c"alpha\0A\00"
@.str.2 = [7 x i8] c"bravo\0A\00"
@.str.3 = [9 x i8] c"charlie\0A\00"
@.str.4 = [6 x i8] c"zulu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %3
%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 = srem i32 %5, 2
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %0
store i32 1, i32* %3
br label %15
9: ; preds = %0
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %9
br label %15
15: ; preds = %14, %8
%16 = load i32, i32* %2
%17 = srem i32 %16, 3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 1, i32* %3
br label %26
20: ; preds = %15
%21 = load i32, i32* %3
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %23, %20
br label %26
26: ; preds = %25, %19
%27 = load i32, i32* %2
%28 = srem i32 %27, 5
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %26
store i32 1, i32* %3
br label %37
31: ; preds = %26
%32 = load i32, i32* %3
%33 = icmp eq i32 %32, 1
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
br label %37
37: ; preds = %36, %30
%38 = load i32, i32* %3
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %42
42: ; preds = %40, %37
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [6 x i8] c"alpha\00"
@str.5 = [6 x i8] c"bravo\00"
@str.6 = [8 x i8] c"charlie\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 = and i32 %4, 1
%6 = icmp eq i32 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%9 = load i32, i32* %1
br label %10
10: ; preds = %0, %7
%11 = phi i32 [ %4, %0 ], [ %9, %7 ]
%12 = srem i32 %11, 3
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.5, i64 0, i64 0))
%16 = load i32, i32* %1
br label %17
17: ; preds = %10, %14
%18 = phi i32 [ %11, %10 ], [ %16, %14 ]
%19 = srem i32 %18, 5
%20 = icmp eq i32 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %17
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.6, i64 0, i64 0))
br label %23
23: ; preds = %21, %17
ret i32 0
}