#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 /*<<< orphan*/ point(char *);
int ifline(char *s) {
  if (!point(s))
    return (0);
  if (s[0] == '\\')
    s++;
  if (s[1])
    return (0);
  if (s[0] == '_')
    return ('-');
  if (s[0] == '=')
    return ('=');
  return (0);
}


x86 assembly (clang, -O0):
<ifline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <point@plt>
cmp    $0x0,%eax
jne    113a <ifline+0x2a>
movl   $0x0,-0x4(%rbp)
jmp    11af <ifline+0x9f>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5c,%eax
jne    1156 <ifline+0x46>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,0x1(%rax)
je     1170 <ifline+0x60>
movl   $0x0,-0x4(%rbp)
jmp    11af <ifline+0x9f>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
jne    118c <ifline+0x7c>
movl   $0x2d,-0x4(%rbp)
jmp    11af <ifline+0x9f>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
jne    11a8 <ifline+0x98>
movl   $0x3d,-0x4(%rbp)
jmp    11af <ifline+0x9f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ifline>:
push   %rbx
mov    %rdi,%rbx
call   1030 <point@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
je     1130 <ifline+0x20>
xor    %ecx,%ecx
cmpb   $0x5c,(%rbx)
sete   %cl
cmpb   $0x0,0x1(%rbx,%rcx,1)
je     1132 <ifline+0x22>
pop    %rbx
ret
mov    (%rbx,%rcx,1),%al
xor    %ecx,%ecx
cmp    $0x3d,%al
mov    $0x3d,%edx
cmovne %ecx,%edx
cmp    $0x5f,%al
mov    $0x2d,%eax
cmovne %edx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @ifline(i8* %0) {
%2 = tail call i32 @point(i8* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %18, label %4
4: ; preds = %1
%5 = load i8, i8* %0
%6 = icmp eq i8 %5, 92
%7 = zext i1 %6 to i64
%8 = getelementptr i8, i8* %0, i64 %7
%9 = getelementptr inbounds i8, i8* %8, i64 1
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %4
%13 = load i8, i8* %8
%14 = icmp eq i8 %13, 61
%15 = select i1 %14, i32 61, i32 0
%16 = icmp eq i8 %13, 95
%17 = select i1 %16, i32 45, i32 %15
br label %18
18: ; preds = %12, %4, %1
%19 = phi i32 [ 0, %1 ], [ 0, %4 ], [ %17, %12 ]
ret i32 %19
}