#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) {
    printf("alpha\n");
    flag = 0;
  }
  if (a % 3 == 0) {
    printf("bravo\n");
    flag = 0;
  }
  if (a % 5 == 0) {
    printf("charlie\n");
    flag = 0;
  }
  if (flag) {
    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    116d <main+0x4d>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1194 <main+0x74>
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11bb <main+0x9b>
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     11d1 <main+0xb1>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%ebx
mov    %ebx,%eax
test   $0x1,%bl
jne    1151 <main+0x31>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
mov    0xc(%rsp),%eax
imul   $0xaaaaaaab,%eax,%ecx
add    $0x2aaaaaaa,%ecx
cmp    $0x55555555,%ecx
jb     1190 <main+0x70>
imul   $0xcccccccd,%eax,%eax
add    $0x19999999,%eax
lea    0xe91(%rip),%rcx
lea    0xe85(%rip),%rdi
cmp    $0x33333333,%eax
cmovb  %rcx,%rdi
jb     11b7 <main+0x97>
and    $0x1,%ebx
je     11bc <main+0x9c>
jmp    11b7 <main+0x97>
lea    0xe79(%rip),%rdi
call   1030 <puts@plt>
imul   $0xcccccccd,0xc(%rsp),%eax
cc
add    $0x19999999,%eax
cmp    $0x33333332,%eax
ja     11bc <main+0x9c>
lea    0xe51(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
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 %10
8: ; preds = %0
%9 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %10
10: ; preds = %8, %0
%11 = load i32, i32* %2
%12 = srem i32 %11, 3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %16
16: ; preds = %14, %10
%17 = load i32, i32* %2
%18 = srem i32 %17, 5
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %22
22: ; preds = %20, %16
%23 = load i32, i32* %3
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %27
27: ; preds = %25, %22
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"charlie\00"
@str.6 = [6 x i8] c"bravo\00"
@str.7 = [6 x i8] c"alpha\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 %7, label %10
7: ; preds = %0
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.7, i64 0, i64 0))
%9 = load i32, i32* %1
br label %10
10: ; preds = %7, %0
%11 = phi i32 [ %9, %7 ], [ %4, %0 ]
%12 = srem i32 %11, 3
%13 = icmp eq i32 %12, 0
br i1 %13, label %20, label %14
14: ; preds = %10
%15 = srem i32 %11, 5
%16 = icmp eq i32 %15, 0
%17 = xor i1 %6, true
%18 = select i1 %16, i1 true, i1 %17
%19 = select i1 %16, 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 i1 %18, label %25, label %28
20: ; preds = %10
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.6, i64 0, i64 0))
%22 = load i32, i32* %1
%23 = srem i32 %22, 5
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %14, %20
%26 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.5, i64 0, i64 0), %20 ], [ %19, %14 ]
%27 = call i32 @puts(i8* dereferenceable(1) %26)
br label %28
28: ; preds = %14, %25, %20
ret i32 0
}