#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 getchar();
int /*<<< orphan*/ putchar(char);
int main(int argc, char const *argv[]) {
  int c;
  while ((c = getchar()) != EOF) {
    if (c == ' ' || c == '\t' || c == '\n') {
      continue;
    } else {
      putchar(c);
      putchar('\n');
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x14(%rbp)
mov    0x2ea1(%rip),%rcx
cmp    (%rcx),%eax
je     118c <main+0x6c>
cmpl   $0x20,-0x14(%rbp)
je     116d <main+0x4d>
cmpl   $0x9,-0x14(%rbp)
je     116d <main+0x4d>
cmpl   $0xa,-0x14(%rbp)
jne    1172 <main+0x52>
jmp    1136 <main+0x16>
mov    -0x14(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <getchar@plt>
mov    0x2eb6(%rip),%rbx
cmp    (%rbx),%eax
jne    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
movabs $0x100000600,%r14
jmp    116d <main+0x4d>
nopl   0x0(%rax)
movsbl %al,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    (%rbx),%eax
je     1136 <main+0x16>
cmp    $0x20,%eax
ja     1150 <main+0x30>
mov    %eax,%ecx
bt     %rcx,%r14
jb     1162 <main+0x42>
jmp    1150 <main+0x30>

LLVM IR (-O0):
@EOF = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %7
7: ; preds = %26, %20, %2
%8 = call i32 (...) @getchar()
store i32 %8, i32* %6
%9 = load i32, i32* @EOF
%10 = icmp ne i32 %8, %9
br i1 %10, label %11, label %27
11: ; preds = %7
%12 = load i32, i32* %6
%13 = icmp eq i32 %12, 32
br i1 %13, label %20, label %14
14: ; preds = %11
%15 = load i32, i32* %6
%16 = icmp eq i32 %15, 9
br i1 %16, label %20, label %17
17: ; preds = %14
%18 = load i32, i32* %6
%19 = icmp eq i32 %18, 10
br i1 %19, label %20, label %21
20: ; preds = %17, %14, %11
br label %7
21: ; preds = %17
%22 = load i32, i32* %6
%23 = trunc i32 %22 to i8
%24 = call i32 @putchar(i8 signext %23)
%25 = call i32 @putchar(i8 signext 10)
br label %26
26: ; preds = %21
br label %7
27: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @getchar()
%4 = load i32, i32* @EOF
%5 = icmp eq i32 %3, %4
br i1 %5, label %16, label %6
6: ; preds = %2, %12
%7 = phi i32 [ %13, %12 ], [ %3, %2 ]
switch i32 %7, label %8 [
i32 32, label %12
i32 10, label %12
i32 9, label %12
]
8: ; preds = %6
%9 = trunc i32 %7 to i8
%10 = tail call i32 @putchar(i8 signext %9)
%11 = tail call i32 @putchar(i8 signext 10)
br label %12
12: ; preds = %8, %6, %6, %6
%13 = tail call i32 (...) @getchar()
%14 = load i32, i32* @EOF
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %6
16: ; preds = %12, %2
ret i32 0
}