#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 number;
  int flag = 0;
  scanf("%d", &number);
  if (number % 2 == 0) {
    flag = 1;
  } else if (flag == 1) {
    printf("alhpa\n");
  }
  if (number % 3 == 0) {
    flag = 1;
  } else if (flag == 1) {
    printf("bravo\n");
  }
  if (number % 5 == 0) {
    flag = 1;
  } else if (flag == 1) {
    printf("charley\n");
  } else 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   $0x0,-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    1217 <main+0xf7>
cmpl   $0x1,-0xc(%rbp)
jne    11f7 <main+0xd7>
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
jmp    1212 <main+0xf2>
cmpl   $0x0,-0xc(%rbp)
jne    120d <main+0xed>
lea    0xe12(%rip),%rdi
call   1030 <printf@plt>
jmp    1212 <main+0xf2>
jmp    1217 <main+0xf7>
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>
movslq 0x4(%rsp),%rax
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%edx
mov    %eax,%ecx
sub    %edx,%ecx
je     1184 <main+0x64>
mov    %eax,%edx
and    $0x1,%edx
jne    1184 <main+0x64>
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
imul   $0xcccccccd,0x4(%rsp),%eax
cc
add    $0x19999999,%eax
cmp    $0x33333333,%eax
jb     11af <main+0x8f>
lea    0xe86(%rip),%rdi
jmp    11aa <main+0x8a>
imul   $0xcccccccd,%eax,%eax
add    $0x19999999,%eax
cmp    $0x33333333,%eax
jb     11af <main+0x8f>
test   %ecx,%ecx
lea    0xe69(%rip),%rax
lea    0xe5d(%rip),%rdi
cmove  %rax,%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"alhpa\0A\00"
@.str.2 = [7 x i8] c"bravo\0A\00"
@.str.3 = [9 x i8] c"charley\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 0, 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 %43
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 %42
36: ; preds = %31
%37 = load i32, i32* %3
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
br label %42
42: ; preds = %41, %34
br label %43
43: ; preds = %42, %30
ret i32 0
}

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