#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*/);
char getchar();
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdin;
int main() {
  char c, prop[1000];
  int x = 0;
  do {
    c = getchar();
    if ((c == ' ') || (c == '\t') || (c == '\n'))
      continue;
    else
      prop[x++] = c;
  } while (c != '~');
  prop[x - 1] = '\0';
  putchar('\n');
  puts(prop);
  fflush(stdin);
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x400,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x3f4(%rbp)
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x20,%eax
je     118d <main+0x4d>
movsbl -0x5(%rbp),%eax
cmp    $0x9,%eax
je     118d <main+0x4d>
movsbl -0x5(%rbp),%eax
cmp    $0xa,%eax
jne    1192 <main+0x52>
jmp    11b4 <main+0x74>
mov    -0x5(%rbp),%cl
mov    -0x3f4(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x3f4(%rbp)
cltq
mov    %cl,-0x3f0(%rbp,%rax,1)
jmp    11b4 <main+0x74>
movsbl -0x5(%rbp),%eax
cmp    $0x7e,%eax
jne    115c <main+0x1c>
mov    -0x3f4(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x3f0(%rbp,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x3f0(%rbp),%rdi
call   1040 <puts@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x400,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x3e8,%rsp
movabs $0x100000600,%r14
xor    %ebx,%ebx
jmp    116d <main+0x2d>
nopl   0x0(%rax,%rax,1)
movslq %ebx,%rcx
add    $0x1,%ebx
mov    %al,(%rsp,%rcx,1)
cmp    $0x7e,%al
je     1183 <main+0x43>
xor    %eax,%eax
call   1050 <getchar@plt>
cmp    $0x20,%al
ja     1160 <main+0x20>
movzbl %al,%ecx
bt     %rcx,%r14
jb     1169 <main+0x29>
jmp    1160 <main+0x20>
movslq %ebx,%rax
mov    %rsp,%rbx
movb   $0x0,-0x1(%rax,%rbx,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x3e8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca [1000 x i8]
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
br label %5
5: ; preds = %26, %0
%6 = call signext i8 (...) @getchar()
store i8 %6, i8* %2
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 32
br i1 %9, label %18, label %10
10: ; preds = %5
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 9
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 10
br i1 %17, label %18, label %19
18: ; preds = %14, %10, %5
br label %26
19: ; preds = %14
%20 = load i8, i8* %2
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 1
store i32 %22, i32* %4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 %23
store i8 %20, i8* %24
br label %25
25: ; preds = %19
br label %26
26: ; preds = %25, %18
%27 = load i8, i8* %2
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 126
br i1 %29, label %5, label %30
30: ; preds = %26
%31 = load i32, i32* %4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 %33
store i8 0, i8* %34
%35 = call i32 @putchar(i8 signext 10)
%36 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%37 = call i32 @puts(i8* %36)
%38 = load i32, i32* @stdin
%39 = call i32 @fflush(i32 %38)
%40 = call signext i8 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
br label %3
3: ; preds = %10, %0
%4 = phi i32 [ 0, %0 ], [ %11, %10 ]
%5 = tail call signext i8 (...) @getchar()
switch i8 %5, label %6 [
i8 32, label %10
i8 10, label %10
i8 9, label %10
]
6: ; preds = %3
%7 = add nsw i32 %4, 1
%8 = sext i32 %4 to i64
%9 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 %8
store i8 %5, i8* %9
br label %10
10: ; preds = %3, %3, %3, %6
%11 = phi i32 [ %4, %3 ], [ %7, %6 ], [ %4, %3 ], [ %4, %3 ]
%12 = icmp eq i8 %5, 126
br i1 %12, label %13, label %3
13: ; preds = %10
%14 = add nsw i32 %11, -1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 %15
store i8 0, i8* %16
%17 = tail call i32 @putchar(i8 signext 10)
%18 = call i32 @puts(i8* %2)
%19 = load i32, i32* @stdin
%20 = tail call i32 @fflush(i32 %19)
%21 = tail call signext i8 (...) @getchar()
ret i32 0
}