#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 /*<<< orphan*/ afterquote();
int /*<<< orphan*/ afterslash();
int getchar();
int /*<<< orphan*/ putMissingNLifAny();
int /*<<< orphan*/ putnonblank(int);
int main(int argc, char *argv[]) {
  int c;
  while ((c = getchar()) != EOF)
    if (c == '/')
      afterslash();
    else if (c == '"')
      afterquote();
    else
      putnonblank(c);
  putMissingNLifAny();
  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   1060 <getchar@plt>
mov    %eax,-0x14(%rbp)
mov    0x2e71(%rip),%rcx
cmp    (%rcx),%eax
je     11bd <main+0x6d>
cmpl   $0x2f,-0x14(%rbp)
jne    1195 <main+0x45>
mov    $0x0,%al
call   1030 <afterslash@plt>
jmp    11b8 <main+0x68>
cmpl   $0x22,-0x14(%rbp)
jne    11ab <main+0x5b>
mov    $0x0,%al
call   1070 <afterquote@plt>
jmp    11b3 <main+0x63>
mov    -0x14(%rbp),%edi
call   1050 <putnonblank@plt>
jmp    11b8 <main+0x68>
jmp    1166 <main+0x16>
mov    $0x0,%al
call   1040 <putMissingNLifAny@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1060 <getchar@plt>
mov    0x2e89(%rip),%rbx
jmp    117e <main+0x2e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %eax,%edi
call   1050 <putnonblank@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
cmp    (%rbx),%eax
je     11a9 <main+0x59>
cmp    $0x22,%eax
je     11a0 <main+0x50>
cmp    $0x2f,%eax
jne    1170 <main+0x20>
xor    %eax,%eax
call   1030 <afterslash@plt>
jmp    1177 <main+0x27>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1070 <afterquote@plt>
jmp    1177 <main+0x27>
xor    %eax,%eax
call   1040 <putMissingNLifAny@plt>
xor    %eax,%eax
pop    %rbx
ret

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 = %25, %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 %26
11: ; preds = %7
%12 = load i32, i32* %6
%13 = icmp eq i32 %12, 47
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 (...) @afterslash()
br label %25
16: ; preds = %11
%17 = load i32, i32* %6
%18 = icmp eq i32 %17, 34
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (...) @afterquote()
br label %24
21: ; preds = %16
%22 = load i32, i32* %6
%23 = call i32 @putnonblank(i32 %22)
br label %24
24: ; preds = %21, %19
br label %25
25: ; preds = %24, %14
br label %7
26: ; preds = %7
%27 = call i32 (...) @putMissingNLifAny()
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 %18, label %6
6: ; preds = %2, %14
%7 = phi i32 [ %15, %14 ], [ %3, %2 ]
switch i32 %7, label %12 [
i32 47, label %8
i32 34, label %10
]
8: ; preds = %6
%9 = tail call i32 (...) @afterslash()
br label %14
10: ; preds = %6
%11 = tail call i32 (...) @afterquote()
br label %14
12: ; preds = %6
%13 = tail call i32 @putnonblank(i32 %7)
br label %14
14: ; preds = %10, %12, %8
%15 = tail call i32 (...) @getchar()
%16 = load i32, i32* @EOF
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %6
18: ; preds = %14, %2
%19 = tail call i32 (...) @putMissingNLifAny()
ret i32 0
}