#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 */
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int is_label_anonymous(char *label) {
  int length, i;
  char c;
  if (strcmp(label, "_f") == 0 || strcmp(label, "_F") == 0 ||
      strcmp(label, "_b") == 0 || strcmp(label, "_B") == 0 ||
      strcmp(label, "__") == 0)
    return 0;
  c = *label;
  if (!(c == '-' || c == '+'))
    return 1;
  length = strlen(label);
  for (i = 0; i < length; i++) {
    if (*(label + i) != c)
      return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<is_label_anonymous>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11ae <is_label_anonymous+0x8e>
mov    -0x10(%rbp),%rdi
lea    0xeb2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11ae <is_label_anonymous+0x8e>
mov    -0x10(%rbp),%rdi
lea    0xe9b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11ae <is_label_anonymous+0x8e>
mov    -0x10(%rbp),%rdi
lea    0xe84(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11ae <is_label_anonymous+0x8e>
mov    -0x10(%rbp),%rdi
lea    0xe6d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11ba <is_label_anonymous+0x9a>
movl   $0x0,-0x4(%rbp)
jmp    1246 <is_label_anonymous+0x126>
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x19(%rbp)
movsbl -0x19(%rbp),%eax
cmp    $0x2d,%eax
je     11e9 <is_label_anonymous+0xc9>
movsbl -0x19(%rbp),%eax
cmp    $0x2b,%eax
je     11e9 <is_label_anonymous+0xc9>
movl   $0x1,-0x4(%rbp)
jmp    1246 <is_label_anonymous+0x126>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    123f <is_label_anonymous+0x11f>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0x19(%rbp),%ecx
cmp    %ecx,%eax
je     122c <is_label_anonymous+0x10c>
movl   $0x1,-0x4(%rbp)
jmp    1246 <is_label_anonymous+0x126>
jmp    1231 <is_label_anonymous+0x111>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11fc <is_label_anonymous+0xdc>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_label_anonymous>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
lea    0xed2(%rip),%rsi
call   1040 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     11c6 <is_label_anonymous+0xa6>
lea    0xebe(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11c6 <is_label_anonymous+0xa6>
lea    0xead(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11c6 <is_label_anonymous+0xa6>
lea    0xe9c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11c6 <is_label_anonymous+0xa6>
lea    0xe8b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11c6 <is_label_anonymous+0xa6>
mov    (%rbx),%r14b
cmp    $0x2d,%r14b
je     119d <is_label_anonymous+0x7d>
cmp    $0x2b,%r14b
jne    11c1 <is_label_anonymous+0xa1>
mov    %rbx,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    11c6 <is_label_anonymous+0xa6>
mov    %eax,%eax
xor    %ecx,%ecx
xor    %ebp,%ebp
nop
cmp    %r14b,(%rbx,%rcx,1)
jne    11c1 <is_label_anonymous+0xa1>
add    $0x1,%rcx
cmp    %rcx,%rax
jne    11b0 <is_label_anonymous+0x90>
jmp    11c6 <is_label_anonymous+0xa6>
mov    $0x1,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"_f\00"
@.str.1 = [3 x i8] c"_F\00"
@.str.2 = [3 x i8] c"_b\00"
@.str.3 = [3 x i8] c"_B\00"
@.str.4 = [3 x i8] c"__\00"
define i32 @is_label_anonymous(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8
store i8* %0, i8** %3
%7 = load i8*, i8** %3
%8 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %26, label %10
10: ; preds = %1
%11 = load i8*, i8** %3
%12 = call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %26, label %14
14: ; preds = %10
%15 = load i8*, i8** %3
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %26, label %18
18: ; preds = %14
%19 = load i8*, i8** %3
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %26, label %22
22: ; preds = %18
%23 = load i8*, i8** %3
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22, %18, %14, %10, %1
store i32 0, i32* %2
br label %61
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = load i8, i8* %28
store i8 %29, i8* %6
%30 = load i8, i8* %6
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 45
br i1 %32, label %38, label %33
33: ; preds = %27
%34 = load i8, i8* %6
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 43
br i1 %36, label %38, label %37
37: ; preds = %33
store i32 1, i32* %2
br label %61
38: ; preds = %33, %27
%39 = load i8*, i8** %3
%40 = call i32 @strlen(i8* %39)
store i32 %40, i32* %4
store i32 0, i32* %5
br label %41
41: ; preds = %57, %38
%42 = load i32, i32* %5
%43 = load i32, i32* %4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %60
45: ; preds = %41
%46 = load i8*, i8** %3
%47 = load i32, i32* %5
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, i8* %46, i64 %48
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = load i8, i8* %6
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %51, %53
br i1 %54, label %55, label %56
55: ; preds = %45
store i32 1, i32* %2
br label %61
56: ; preds = %45
br label %57
57: ; preds = %56
%58 = load i32, i32* %5
%59 = add nsw i32 %58, 1
store i32 %59, i32* %5
br label %41
60: ; preds = %41
store i32 0, i32* %2
br label %61
61: ; preds = %60, %55, %37, %26
%62 = load i32, i32* %2
ret i32 %62
}

LLVM IR (-O2):
@.str = [3 x i8] c"_f\00"
@.str.1 = [3 x i8] c"_F\00"
@.str.2 = [3 x i8] c"_b\00"
@.str.3 = [3 x i8] c"_B\00"
@.str.4 = [3 x i8] c"__\00"
define i32 @is_label_anonymous(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %31, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %31, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %31, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %31, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %31, label %16
16: ; preds = %13
%17 = load i8, i8* %0
switch i8 %17, label %31 [
i8 45, label %18
i8 43, label %18
]
18: ; preds = %16, %16
%19 = tail call i32 @strlen(i8* %0)
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %31
21: ; preds = %18
%22 = zext i32 %19 to i64
br label %25
23: ; preds = %25
%24 = icmp eq i64 %30, %22
br i1 %24, label %31, label %25
25: ; preds = %21, %23
%26 = phi i64 [ 0, %21 ], [ %30, %23 ]
%27 = getelementptr inbounds i8, i8* %0, i64 %26
%28 = load i8, i8* %27
%29 = icmp eq i8 %28, %17
%30 = add nuw nsw i64 %26, 1
br i1 %29, label %23, label %31
31: ; preds = %25, %23, %18, %16, %1, %4, %7, %10, %13
%32 = phi i32 [ 0, %13 ], [ 0, %10 ], [ 0, %7 ], [ 0, %4 ], [ 0, %1 ], [ 1, %16 ], [ 0, %18 ], [ 1, %25 ], [ 0, %23 ]
ret i32 %32
}