#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 *skip_space(char const *);
bool ignore_line(const char *line) {
  line = skip_space(line);
  switch (*line) {
  case '\0':
  case '#':
  case ';':
    return true;
  case '/':
    return *(line + 1) == '/';
  }
  return false;
}


x86 assembly (clang, -O0):
<ignore_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <skip_space@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x14(%rbp)
test   %eax,%eax
je     1173 <ignore_line+0x63>
jmp    1140 <ignore_line+0x30>
mov    -0x14(%rbp),%eax
sub    $0x23,%eax
je     1173 <ignore_line+0x63>
jmp    1151 <ignore_line+0x41>
mov    -0x14(%rbp),%eax
sub    $0x2f,%eax
je     117f <ignore_line+0x6f>
jmp    1162 <ignore_line+0x52>
mov    -0x14(%rbp),%eax
sub    $0x3b,%eax
jne    119a <ignore_line+0x8a>
jmp    1173 <ignore_line+0x63>
movl   $0x1,-0x4(%rbp)
jmp    11a1 <ignore_line+0x91>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2f,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    11a1 <ignore_line+0x91>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ignore_line>:
push   %rax
call   1030 <skip_space@plt>
mov    %rax,%rcx
movsbl (%rax),%edx
mov    $0x1,%eax
cmp    $0x2e,%edx
jg     1131 <ignore_line+0x21>
test   %edx,%edx
je     112f <ignore_line+0x1f>
cmp    $0x23,%edx
jne    1146 <ignore_line+0x36>
pop    %rcx
ret
cmp    $0x3b,%edx
je     112f <ignore_line+0x1f>
cmp    $0x2f,%edx
jne    1146 <ignore_line+0x36>
xor    %eax,%eax
cmpb   $0x2f,0x1(%rcx)
sete   %al
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @ignore_line(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i8* @skip_space(i8* %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
switch i32 %8, label %17 [
i32 0, label %9
i32 35, label %9
i32 59, label %9
i32 47, label %10
]
9: ; preds = %1, %1, %1
store i32 1, i32* %2
br label %18
10: ; preds = %1
%11 = load i8*, i8** %3
%12 = getelementptr inbounds i8, i8* %11, i64 1
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 47
%16 = zext i1 %15 to i32
store i32 %16, i32* %2
br label %18
17: ; preds = %1
store i32 0, i32* %2
br label %18
18: ; preds = %17, %10, %9
%19 = load i32, i32* %2
ret i32 %19
}

LLVM IR (-O2):
define i32 @ignore_line(i8* %0) {
%2 = tail call i8* @skip_space(i8* %0)
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
switch i32 %4, label %10 [
i32 0, label %11
i32 35, label %11
i32 59, label %11
i32 47, label %5
]
5: ; preds = %1
%6 = getelementptr inbounds i8, i8* %2, i64 1
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 47
%9 = zext i1 %8 to i32
br label %11
10: ; preds = %1
br label %11
11: ; preds = %1, %1, %1, %10, %5
%12 = phi i32 [ 0, %10 ], [ %9, %5 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %12
}