#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 */
scalar_t__ get_line(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int main(int argc, char **argv) {
  char input_buffer[65536];
  char *ptr;
  while (get_line(input_buffer, stdin)) {
    for (ptr = input_buffer; *ptr; ptr++) {
      if (*ptr == '\\') {
        if (*(ptr + 1)) {
          if (*(ptr + 1) == '\'')
            continue;
        }
      }
      printf("%c", *ptr);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10020,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x10010(%rbp),%rdi
mov    0x2ea1(%rip),%rax
mov    (%rax),%esi
call   1030 <get_line@plt>
cmp    $0x0,%rax
je     11ff <main+0xdf>
lea    -0x10010(%rbp),%rax
mov    %rax,-0x10018(%rbp)
mov    -0x10018(%rbp),%rax
cmpb   $0x0,(%rax)
je     11ec <main+0xcc>
mov    -0x10018(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5c,%eax
jne    11bd <main+0x9d>
mov    -0x10018(%rbp),%rax
cmpb   $0x0,0x1(%rax)
je     11b8 <main+0x98>
mov    -0x10018(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x27,%eax
jne    11b3 <main+0x93>
jmp    11d5 <main+0xb5>
jmp    11b8 <main+0x98>
jmp    11bd <main+0x9d>
mov    -0x10018(%rbp),%rax
movsbl (%rax),%esi
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10018(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10018(%rbp)
jmp    1166 <main+0x46>
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1139 <main+0x19>
mov    -0x4(%rbp),%eax
add    $0x10020,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10000,%rsp
mov    0x2eb5(%rip),%r14
mov    (%r14),%esi
mov    %rsp,%r15
mov    %r15,%rdi
call   1040 <get_line@plt>
test   %rax,%rax
je     118b <main+0x6b>
mov    %r15,%rbx
jmp    116d <main+0x4d>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%r14),%esi
mov    %r15,%rdi
call   1040 <get_line@plt>
mov    %r15,%rbx
test   %rax,%rax
je     118b <main+0x6b>
movsbl (%rbx),%edi
test   %edi,%edi
je     1150 <main+0x30>
cmp    $0x5c,%dil
jne    1180 <main+0x60>
cmpb   $0x27,0x1(%rbx)
je     1185 <main+0x65>
call   1030 <putchar@plt>
add    $0x1,%rbx
jmp    116d <main+0x4d>
xor    %eax,%eax
add    $0x10000,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [65536 x i8]
%7 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %8
8: ; preds = %46, %2
%9 = getelementptr inbounds [65536 x i8], [65536 x i8]* %6, i64 0, i64 0
%10 = load i32, i32* @stdin
%11 = call i64 @get_line(i8* %9, i32 %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %48
13: ; preds = %8
%14 = getelementptr inbounds [65536 x i8], [65536 x i8]* %6, i64 0, i64 0
store i8* %14, i8** %7
br label %15
15: ; preds = %43, %13
%16 = load i8*, i8** %7
%17 = load i8, i8* %16
%18 = icmp ne i8 %17, 0
br i1 %18, label %19, label %46
19: ; preds = %15
%20 = load i8*, i8** %7
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 92
br i1 %23, label %24, label %38
24: ; preds = %19
%25 = load i8*, i8** %7
%26 = getelementptr inbounds i8, i8* %25, i64 1
%27 = load i8, i8* %26
%28 = icmp ne i8 %27, 0
br i1 %28, label %29, label %37
29: ; preds = %24
%30 = load i8*, i8** %7
%31 = getelementptr inbounds i8, i8* %30, i64 1
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 39
br i1 %34, label %35, label %36
35: ; preds = %29
br label %43
36: ; preds = %29
br label %37
37: ; preds = %36, %24
br label %38
38: ; preds = %37, %19
%39 = load i8*, i8** %7
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %41)
br label %43
43: ; preds = %38, %35
%44 = load i8*, i8** %7
%45 = getelementptr inbounds i8, i8* %44, i32 1
store i8* %45, i8** %7
br label %15
46: ; preds = %15
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %8
48: ; preds = %8
%49 = load i32, i32* %3
ret i32 %49
}

LLVM IR (-O2):
@stdin = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [65536 x i8]
%4 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%5 = load i32, i32* @stdin
%6 = call i64 @get_line(i8* %4, i32 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %27, label %8
8: ; preds = %2, %20
%9 = phi i8* [ %21, %20 ], [ %4, %2 ]
%10 = load i8, i8* %9
switch i8 %10, label %15 [
i8 0, label %22
i8 92, label %11
]
11: ; preds = %8
%12 = getelementptr inbounds i8, i8* %9, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 39
br i1 %14, label %18, label %15
15: ; preds = %11, %8
%16 = sext i8 %10 to i32
%17 = call i32 @putchar(i32 %16)
br label %18
18: ; preds = %11, %15
%19 = getelementptr inbounds i8, i8* %9, i64 1
br label %20
20: ; preds = %18, %22
%21 = phi i8* [ %19, %18 ], [ %4, %22 ]
br label %8
22: ; preds = %8
%23 = call i32 @putchar(i32 10)
%24 = load i32, i32* @stdin
%25 = call i64 @get_line(i8* %4, i32 %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %20
27: ; preds = %22, %2
ret i32 0
}