#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 */
char EOF;
int /*<<< orphan*/ printf(char *, ...);
void main() {
  int i = 0;
  char end = '\0';
  char space = ' ';
  char tab = '\t';
  char *one;
  while (i <= 127) {
    printf("i = %d in digital and \"%c\" in char;\n", i, i);
    i++;
  }
  printf("And EOF = \"%c\" in char and %d in digital.\n", end, end);
  end = EOF;
  one = &end;
  printf("pointer at EOF = %c in char; %d in digital and %p as pointer;\n",
         *one, *one, *one);
  if (*one != EOF) {
    printf("* one != EOF;\n");
  } else {
    printf("* one = EOF;\n");
  }
  printf("space = \"%c\" in char and %d in digit;\n", space, space);
  printf("tab = \"%c\" in char and %d in digit;\n", tab, tab);
  i = 1;
  if (i) {
    printf("i.\n");
  } else {
    printf("Not i.\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
movb   $0x20,-0x6(%rbp)
movb   $0x9,-0x7(%rbp)
cmpl   $0x7f,-0x4(%rbp)
jg     1157 <main+0x47>
mov    -0x4(%rbp),%esi
mov    -0x4(%rbp),%edx
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112b <main+0x1b>
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%al
mov    %al,-0x5(%rbp)
lea    -0x5(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%esi
mov    -0x10(%rbp),%rax
movsbl (%rax),%edx
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    0x2e36(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     11d0 <main+0xc0>
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11de <main+0xce>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x6(%rbp),%esi
movsbl -0x6(%rbp),%edx
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x7(%rbp),%esi
movsbl -0x7(%rbp),%edx
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     122e <main+0x11e>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    123c <main+0x12c>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xed6(%rip),%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebp
cmp    $0x80,%ebp
jne    1130 <main+0x10>
lea    0xed5(%rip),%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e86(%rip),%rbp
movsbl 0x0(%rbp),%ebx
lea    0xee3(%rip),%rdi
mov    %ebx,%esi
mov    %ebx,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
cmp    0x0(%rbp),%bl
lea    0xf57(%rip),%rax
lea    0xf60(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
mov    $0x20,%esi
mov    $0x20,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x9,%esi
mov    $0x9,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1d(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"i = %d in digital and \22%c\22 in char;\0A\00"
@.str.1 = [43 x i8] c"And EOF = \22%c\22 in char and %d in digital.\0A\00"
@EOF = global i8 0
@.str.2 = [63 x i8] c"pointer at EOF = %c in char; %d in digital and %p as pointer;\0A\00"
@.str.3 = [15 x i8] c"* one != EOF;\0A\00"
@.str.4 = [14 x i8] c"* one = EOF;\0A\00"
@.str.5 = [39 x i8] c"space = \22%c\22 in char and %d in digit;\0A\00"
@.str.6 = [37 x i8] c"tab = \22%c\22 in char and %d in digit;\0A\00"
@.str.7 = [4 x i8] c"i.\0A\00"
@.str.8 = [8 x i8] c"Not i.\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8*
store i32 0, i32* %1
store i8 0, i8* %2
store i8 32, i8* %3
store i8 9, i8* %4
br label %6
6: ; preds = %9, %0
%7 = load i32, i32* %1
%8 = icmp sle i32 %7, 127
br i1 %8, label %9, label %15
9: ; preds = %6
%10 = load i32, i32* %1
%11 = load i32, i32* %1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %11)
%13 = load i32, i32* %1
%14 = add nsw i32 %13, 1
store i32 %14, i32* %1
br label %6
15: ; preds = %6
%16 = load i8, i8* %2
%17 = sext i8 %16 to i32
%18 = load i8, i8* %2
%19 = sext i8 %18 to i32
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i32 %17, i32 %19)
%21 = load i8, i8* @EOF
store i8 %21, i8* %2
store i8* %2, i8** %5
%22 = load i8*, i8** %5
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = load i8*, i8** %5
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = load i8*, i8** %5
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), i32 %24, i32 %27, i32 %30)
%32 = load i8*, i8** %5
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = load i8, i8* @EOF
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %34, %36
br i1 %37, label %38, label %40
38: ; preds = %15
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %42
40: ; preds = %15
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %42
42: ; preds = %40, %38
%43 = load i8, i8* %3
%44 = sext i8 %43 to i32
%45 = load i8, i8* %3
%46 = sext i8 %45 to i32
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i32 %44, i32 %46)
%48 = load i8, i8* %4
%49 = sext i8 %48 to i32
%50 = load i8, i8* %4
%51 = sext i8 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %49, i32 %51)
store i32 1, i32* %1
%53 = load i32, i32* %1
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %42
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %59
57: ; preds = %42
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %59
59: ; preds = %57, %55
ret void
}

LLVM IR (-O2):
@.str = [37 x i8] c"i = %d in digital and \22%c\22 in char;\0A\00"
@.str.1 = [43 x i8] c"And EOF = \22%c\22 in char and %d in digital.\0A\00"
@EOF = global i8 0
@.str.2 = [63 x i8] c"pointer at EOF = %c in char; %d in digital and %p as pointer;\0A\00"
@.str.5 = [39 x i8] c"space = \22%c\22 in char and %d in digit;\0A\00"
@.str.6 = [37 x i8] c"tab = \22%c\22 in char and %d in digit;\0A\00"
@str = [13 x i8] c"* one = EOF;\00"
@str.9 = [3 x i8] c"i.\00"
@str.10 = [14 x i8] c"* one != EOF;\00"
define void @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %4, %1 ]
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %2)
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 128
br i1 %5, label %6, label %1
6: ; preds = %1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 0)
%8 = load i8, i8* @EOF
%9 = sext i8 %8 to i32
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %9, i32 %9)
%11 = load i8, i8* @EOF
%12 = icmp eq i8 %8, %11
%13 = select i1 %12, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.10, i64 0, i64 0)
%14 = tail call i32 @puts(i8* dereferenceable(1) %13)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i32 32, i32 32)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 9, i32 9)
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.9, i64 0, i64 0))
ret void
}