#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 *, unsigned int *);
main() {
  unsigned int m[] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
  unsigned int n, i;
  scanf("%d", &n);
  for (i = 0; i <= 7; i++) {
    if (n & m[i])
      printf("\nyes");
    else
      printf("\nno");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xebe(%rip),%rdi
lea    -0x34(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x7,-0x38(%rbp)
ja     11bf <main+0x9f>
mov    -0x34(%rbp),%eax
mov    -0x38(%rbp),%ecx
and    -0x30(%rbp,%rcx,4),%eax
cmp    $0x0,%eax
je     11a0 <main+0x80>
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
jmp    11ac <main+0x8c>
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
jmp    11b1 <main+0x91>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1172 <main+0x52>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
testb  $0x1,0x4(%rsp)
lea    0xec7(%rip),%r14
lea    0xebb(%rip),%rbx
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <printf@plt>
testb  $0x2,0x4(%rsp)
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <printf@plt>
testb  $0x4,0x4(%rsp)
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <printf@plt>
testb  $0x8,0x4(%rsp)
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <printf@plt>
testb  $0x10,0x4(%rsp)
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <printf@plt>
testb  $0x20,0x4(%rsp)
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <printf@plt>
testb  $0x40,0x4(%rsp)
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <printf@plt>
testb  $0x80,0x4(%rsp)
cmove  %r14,%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.m = [8 x i32] [i32 1, i32 2, i32 4, i32 8, i32 16, i32 32, i32 64, i32 128]
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"\0Ayes\00"
@.str.2 = [4 x i8] c"\0Ano\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [8 x i32]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = bitcast [8 x i32]* %2 to i8*
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
store i32 0, i32* %4
br label %7
7: ; preds = %23, %0
%8 = load i32, i32* %4
%9 = icmp ule i32 %8, 7
br i1 %9, label %10, label %26
10: ; preds = %7
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 %13
%15 = load i32, i32* %14
%16 = and i32 %11, %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %22
20: ; preds = %10
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %23
23: ; preds = %22
%24 = load i32, i32* %4
%25 = add i32 %24, 1
store i32 %25, i32* %4
br label %7
26: ; preds = %7
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [5 x i8] c"\0Ayes\00"
@.str.2 = [4 x i8] c"\0Ano\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
%7 = select i1 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%8 = call i32 @printf(i8* dereferenceable(1) %7)
%9 = load i32, i32* %1
%10 = and i32 %9, 2
%11 = icmp eq i32 %10, 0
%12 = select i1 %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%13 = call i32 @printf(i8* dereferenceable(1) %12)
%14 = load i32, i32* %1
%15 = and i32 %14, 4
%16 = icmp eq i32 %15, 0
%17 = select i1 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%18 = call i32 @printf(i8* dereferenceable(1) %17)
%19 = load i32, i32* %1
%20 = and i32 %19, 8
%21 = icmp eq i32 %20, 0
%22 = select i1 %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%23 = call i32 @printf(i8* dereferenceable(1) %22)
%24 = load i32, i32* %1
%25 = and i32 %24, 16
%26 = icmp eq i32 %25, 0
%27 = select i1 %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%28 = call i32 @printf(i8* dereferenceable(1) %27)
%29 = load i32, i32* %1
%30 = and i32 %29, 32
%31 = icmp eq i32 %30, 0
%32 = select i1 %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%33 = call i32 @printf(i8* dereferenceable(1) %32)
%34 = load i32, i32* %1
%35 = and i32 %34, 64
%36 = icmp eq i32 %35, 0
%37 = select i1 %36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%38 = call i32 @printf(i8* dereferenceable(1) %37)
%39 = load i32, i32* %1
%40 = and i32 %39, 128
%41 = icmp eq i32 %40, 0
%42 = select i1 %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%43 = call i32 @printf(i8* dereferenceable(1) %42)
ret i32 0
}