#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 EOF;
int fgetc(int /*<<< orphan*/);
int /*<<< orphan*/ fputc(int, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int main() {
  int c;
  c = fgetc(stdin);
  fputc(0xa0, stdout);
  c = fgetc(stdin);
  fputc(0x09, stdout);
  while ((c = fgetc(stdin)) != EOF)
    fputc(c, stdout);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%edi
call   1030 <fgetc@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e89(%rip),%rax
mov    (%rax),%esi
mov    $0xa0,%edi
call   1040 <fputc@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
call   1030 <fgetc@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
mov    $0x9,%edi
call   1040 <fputc@plt>
mov    0x2e6a(%rip),%rax
mov    (%rax),%edi
call   1030 <fgetc@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e51(%rip),%rcx
cmp    (%rcx),%eax
je     11ad <main+0x8d>
mov    -0x8(%rbp),%edi
mov    0x2e2f(%rip),%rax
mov    (%rax),%esi
call   1040 <fputc@plt>
jmp    1177 <main+0x57>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
mov    0x2ebc(%rip),%r14
mov    (%r14),%edi
call   1030 <fgetc@plt>
mov    0x2e95(%rip),%r15
mov    (%r15),%esi
mov    $0xa0,%edi
call   1040 <fputc@plt>
mov    (%r14),%edi
call   1030 <fgetc@plt>
mov    (%r15),%esi
mov    $0x9,%edi
call   1040 <fputc@plt>
mov    (%r14),%edi
call   1030 <fgetc@plt>
mov    0x2e74(%rip),%rbx
cmp    (%rbx),%eax
je     1186 <main+0x66>
mov    (%r15),%esi
mov    %eax,%edi
call   1040 <fputc@plt>
mov    (%r14),%edi
call   1030 <fgetc@plt>
cmp    (%rbx),%eax
jne    1170 <main+0x50>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdin = global i32 0
@stdout = global i32 0
@EOF = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* @stdin
%4 = call i32 @fgetc(i32 %3)
store i32 %4, i32* %2
%5 = load i32, i32* @stdout
%6 = call i32 @fputc(i32 160, i32 %5)
%7 = load i32, i32* @stdin
%8 = call i32 @fgetc(i32 %7)
store i32 %8, i32* %2
%9 = load i32, i32* @stdout
%10 = call i32 @fputc(i32 9, i32 %9)
br label %11
11: ; preds = %16, %0
%12 = load i32, i32* @stdin
%13 = call i32 @fgetc(i32 %12)
store i32 %13, i32* %2
%14 = load i32, i32* @EOF
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i32, i32* %2
%18 = load i32, i32* @stdout
%19 = call i32 @fputc(i32 %17, i32 %18)
br label %11
20: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@stdout = global i32 0
@EOF = global i32 0
define i32 @main() {
%1 = load i32, i32* @stdin
%2 = tail call i32 @fgetc(i32 %1)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fputc(i32 160, i32 %3)
%5 = load i32, i32* @stdin
%6 = tail call i32 @fgetc(i32 %5)
%7 = load i32, i32* @stdout
%8 = tail call i32 @fputc(i32 9, i32 %7)
%9 = load i32, i32* @stdin
%10 = tail call i32 @fgetc(i32 %9)
%11 = load i32, i32* @EOF
%12 = icmp eq i32 %10, %11
br i1 %12, label %21, label %13
13: ; preds = %0, %13
%14 = phi i32 [ %18, %13 ], [ %10, %0 ]
%15 = load i32, i32* @stdout
%16 = tail call i32 @fputc(i32 %14, i32 %15)
%17 = load i32, i32* @stdin
%18 = tail call i32 @fgetc(i32 %17)
%19 = load i32, i32* @EOF
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %13
21: ; preds = %13, %0
ret i32 0
}