#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 */
char EOF;
char gc();
char cLineComment() {
  char e, f;
  e = gc();
  if (e == EOF || e == '\n') {
    return e;
  } else {
    while ((f = gc()) != EOF) {
      if (e != '\\' && f == '\n') {
        return f;
      } else {
        e = f;
      }
    }
    return EOF;
  }
}


x86 assembly (clang, -O0):
<cLineComment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <gc@plt>
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
mov    0x2ebb(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     1145 <cLineComment+0x35>
movsbl -0x2(%rbp),%eax
cmp    $0xa,%eax
jne    1150 <cLineComment+0x40>
mov    -0x2(%rbp),%al
mov    %al,-0x1(%rbp)
jmp    11b0 <cLineComment+0xa0>
jmp    1155 <cLineComment+0x45>
mov    $0x0,%al
call   1030 <gc@plt>
mov    %al,-0x3(%rbp)
movsbl %al,%eax
mov    0x2e7f(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     11a4 <cLineComment+0x94>
movsbl -0x2(%rbp),%eax
cmp    $0x5c,%eax
je     1199 <cLineComment+0x89>
movsbl -0x3(%rbp),%eax
cmp    $0xa,%eax
jne    1199 <cLineComment+0x89>
mov    -0x3(%rbp),%al
mov    %al,-0x1(%rbp)
jmp    11b0 <cLineComment+0xa0>
mov    -0x3(%rbp),%al
mov    %al,-0x2(%rbp)
jmp    1155 <cLineComment+0x45>
mov    0x2e3d(%rip),%rax
mov    (%rax),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cLineComment>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <gc@plt>
mov    %eax,%ebx
cmp    $0xa,%al
je     114f <cLineComment+0x3f>
mov    0x2ec0(%rip),%r14
cmp    (%r14),%bl
je     114f <cLineComment+0x3f>
nopl   (%rax)
xor    %eax,%eax
call   1030 <gc@plt>
cmp    (%r14),%al
je     114d <cLineComment+0x3d>
cmp    $0x5c,%bl
mov    %eax,%ebx
je     1130 <cLineComment+0x20>
mov    %eax,%ebx
cmp    $0xa,%al
jne    1130 <cLineComment+0x20>
mov    $0xa,%bl
jmp    114f <cLineComment+0x3f>
mov    %eax,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@EOF = global i8 0
define signext i8 @cLineComment() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i8
%4 = call signext i8 (...) @gc()
store i8 %4, i8* %2
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = load i8, i8* @EOF
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %6, %8
br i1 %9, label %14, label %10
10: ; preds = %0
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 10
br i1 %13, label %14, label %16
14: ; preds = %10, %0
%15 = load i8, i8* %2
store i8 %15, i8* %1
br label %38
16: ; preds = %10
br label %17
17: ; preds = %35, %16
%18 = call signext i8 (...) @gc()
store i8 %18, i8* %3
%19 = sext i8 %18 to i32
%20 = load i8, i8* @EOF
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %19, %21
br i1 %22, label %23, label %36
23: ; preds = %17
%24 = load i8, i8* %2
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 92
br i1 %26, label %27, label %33
27: ; preds = %23
%28 = load i8, i8* %3
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 10
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = load i8, i8* %3
store i8 %32, i8* %1
br label %38
33: ; preds = %27, %23
%34 = load i8, i8* %3
store i8 %34, i8* %2
br label %35
35: ; preds = %33
br label %17
36: ; preds = %17
%37 = load i8, i8* @EOF
store i8 %37, i8* %1
br label %38
38: ; preds = %36, %31, %14
%39 = load i8, i8* %1
ret i8 %39
}

LLVM IR (-O2):
@EOF = global i8 0
define signext i8 @cLineComment() {
%1 = tail call signext i8 (...) @gc()
%2 = load i8, i8* @EOF
%3 = icmp eq i8 %1, %2
%4 = icmp eq i8 %1, 10
%5 = or i1 %4, %3
br i1 %5, label %15, label %6
6: ; preds = %0, %11
%7 = phi i8 [ %8, %11 ], [ %1, %0 ]
%8 = tail call signext i8 (...) @gc()
%9 = load i8, i8* @EOF
%10 = icmp eq i8 %8, %9
br i1 %10, label %15, label %11
11: ; preds = %6
%12 = icmp ne i8 %7, 92
%13 = icmp eq i8 %8, 10
%14 = select i1 %12, i1 %13, i1 false
br i1 %14, label %15, label %6
15: ; preds = %6, %11, %0
%16 = phi i8 [ %1, %0 ], [ %8, %6 ], [ 10, %11 ]
ret i8 %16
}