#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*/ incomment(int *, int *);
int /*<<< orphan*/ putchar(int);
int main(void) {
  int c;
  int ctriple[3];
  int cmnt[2];
  cmnt[0] = 0;
  cmnt[1] = 0;
  ctriple[2] = '\0';
  while (ctriple[2] != EOF && (c = getchar()) != EOF) {
    ctriple[0] = ctriple[1];
    ctriple[1] = ctriple[2];
    ctriple[2] = c;
    if (!(incomment(ctriple, cmnt))) {
      putchar(ctriple[2]);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
xor    %eax,%eax
mov    0x2e88(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x1d(%rbp)
je     1184 <main+0x54>
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e6c(%rip),%rcx
cmp    (%rcx),%eax
setne  %al
mov    %al,-0x1d(%rbp)
mov    -0x1d(%rbp),%al
test   $0x1,%al
jne    1194 <main+0x64>
jmp    11c9 <main+0x99>
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
lea    -0x14(%rbp),%rdi
lea    -0x1c(%rbp),%rsi
call   1040 <incomment@plt>
cmp    $0x0,%eax
jne    11c4 <main+0x94>
mov    -0xc(%rbp),%edi
call   1030 <putchar@plt>
jmp    1154 <main+0x24>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
movq   $0x0,0x18(%rsp)
movl   $0x0,0x14(%rsp)
mov    0x2e97(%rip),%rbx
cmpl   $0x0,(%rbx)
je     11ab <main+0x7b>
lea    0xc(%rsp),%r14
lea    0x18(%rsp),%r15
jmp    1178 <main+0x48>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x14(%rsp),%eax
cmp    (%rbx),%eax
je     11ab <main+0x7b>
xor    %eax,%eax
call   1050 <getchar@plt>
cmp    (%rbx),%eax
je     11ab <main+0x7b>
mov    0x10(%rsp),%rcx
mov    %rcx,0xc(%rsp)
mov    %eax,0x14(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <incomment@plt>
test   %eax,%eax
jne    1170 <main+0x40>
mov    0x14(%rsp),%edi
call   1030 <putchar@plt>
jmp    1170 <main+0x40>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@EOF = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [3 x i32]
%4 = alloca [2 x i32]
store i32 0, i32* %1
%5 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
store i32 0, i32* %5
%6 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
store i32 0, i32* %6
%7 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
store i32 0, i32* %7
br label %8
8: ; preds = %36, %0
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%10 = load i32, i32* %9
%11 = load i32, i32* @EOF
%12 = icmp ne i32 %10, %11
br i1 %12, label %13, label %17
13: ; preds = %8
%14 = call i32 (...) @getchar()
store i32 %14, i32* %2
%15 = load i32, i32* @EOF
%16 = icmp ne i32 %14, %15
br label %17
17: ; preds = %13, %8
%18 = phi i1 [ false, %8 ], [ %16, %13 ]
br i1 %18, label %19, label %37
19: ; preds = %17
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%21 = load i32, i32* %20
%22 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
store i32 %21, i32* %22
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%24 = load i32, i32* %23
%25 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
store i32 %24, i32* %25
%26 = load i32, i32* %2
%27 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
store i32 %26, i32* %27
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%29 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%30 = call i32 @incomment(i32* %28, i32* %29)
%31 = icmp ne i32 %30, 0
br i1 %31, label %36, label %32
32: ; preds = %19
%33 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%34 = load i32, i32* %33
%35 = call i32 @putchar(i32 %34)
br label %36
36: ; preds = %32, %19
br label %8
37: ; preds = %17
ret i32 0
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @main() {
%1 = alloca [3 x i32]
%2 = alloca [2 x i32]
%3 = bitcast [3 x i32]* %1 to i8*
%4 = bitcast [2 x i32]* %2 to i8*
%5 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 0
store i32 0, i32* %5
%6 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 1
store i32 0, i32* %6
%7 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 2
store i32 0, i32* %7
%8 = load i32, i32* @EOF
%9 = icmp eq i32 %8, 0
br i1 %9, label %29, label %10
10: ; preds = %0
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 1
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 0
br label %13
13: ; preds = %10, %25
%14 = call i32 (...) @getchar()
%15 = load i32, i32* @EOF
%16 = icmp eq i32 %14, %15
br i1 %16, label %29, label %17
17: ; preds = %13
%18 = load i32, i32* %11
store i32 %18, i32* %12
%19 = load i32, i32* %7
store i32 %19, i32* %11
store i32 %14, i32* %7
%20 = call i32 @incomment(i32* %12, i32* %5)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load i32, i32* %7
%24 = call i32 @putchar(i32 %23)
br label %25
25: ; preds = %22, %17
%26 = load i32, i32* %7
%27 = load i32, i32* @EOF
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %13
29: ; preds = %13, %25, %0
ret i32 0
}