#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, char);
int /*<<< orphan*/ stdin;
int main(void) {
  char zeichen = 'F';
  printf("%d", (zeichen >> 7) & 1);
  printf("%d", (zeichen >> 6) & 1);
  printf("%d", (zeichen >> 5) & 1);
  printf("%d", (zeichen >> 4) & 1);
  printf("%d", (zeichen >> 3) & 1);
  printf("%d", (zeichen >> 2) & 1);
  printf("%d", (zeichen >> 1) & 1);
  printf("%d", zeichen & 1);
  fflush(stdin);
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x46,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
sar    $0x7,%eax
and    $0x1,%eax
lea    0xeac(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
sar    $0x6,%eax
and    $0x1,%eax
lea    0xe93(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
sar    $0x5,%eax
and    $0x1,%eax
lea    0xe7a(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
sar    $0x4,%eax
and    $0x1,%eax
lea    0xe61(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
sar    $0x3,%eax
and    $0x1,%eax
lea    0xe48(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
sar    $0x2,%eax
and    $0x1,%eax
lea    0xe2f(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
sar    $0x1,%eax
and    $0x1,%eax
lea    0xe16(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
and    $0x1,%eax
lea    0xe00(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
store i8 70, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = ashr i32 %4, 7
%6 = and i32 %5, 1
%7 = trunc i32 %6 to i8
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %7)
%9 = load i8, i8* %2
%10 = sext i8 %9 to i32
%11 = ashr i32 %10, 6
%12 = and i32 %11, 1
%13 = trunc i32 %12 to i8
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %13)
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = ashr i32 %16, 5
%18 = and i32 %17, 1
%19 = trunc i32 %18 to i8
%20 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %19)
%21 = load i8, i8* %2
%22 = sext i8 %21 to i32
%23 = ashr i32 %22, 4
%24 = and i32 %23, 1
%25 = trunc i32 %24 to i8
%26 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %25)
%27 = load i8, i8* %2
%28 = sext i8 %27 to i32
%29 = ashr i32 %28, 3
%30 = and i32 %29, 1
%31 = trunc i32 %30 to i8
%32 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %31)
%33 = load i8, i8* %2
%34 = sext i8 %33 to i32
%35 = ashr i32 %34, 2
%36 = and i32 %35, 1
%37 = trunc i32 %36 to i8
%38 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %37)
%39 = load i8, i8* %2
%40 = sext i8 %39 to i32
%41 = ashr i32 %40, 1
%42 = and i32 %41, 1
%43 = trunc i32 %42 to i8
%44 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %43)
%45 = load i8, i8* %2
%46 = sext i8 %45 to i32
%47 = and i32 %46, 1
%48 = trunc i32 %47 to i8
%49 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %48)
%50 = load i32, i32* @stdin
%51 = call i32 @fflush(i32 %50)
%52 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@stdin = global i32 0
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 1)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 0)
%9 = load i32, i32* @stdin
%10 = tail call i32 @fflush(i32 %9)
%11 = tail call i32 (...) @getchar()
ret i32 0
}