#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__ is_identifier_initial(char);
scalar_t__ isdigit(unsigned int);
int is_identifier_subsequent(char c) {
  if (is_identifier_initial(c) || isdigit((unsigned)c) || '.' == c ||
      '+' == c || '-' == c) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<is_identifier_subsequent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%edi
call   1040 <is_identifier_initial@plt>
cmp    $0x0,%rax
jne    1187 <is_identifier_subsequent+0x67>
movsbl -0x5(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
jne    1187 <is_identifier_subsequent+0x67>
movsbl -0x5(%rbp),%ecx
mov    $0x2e,%eax
cmp    %ecx,%eax
je     1187 <is_identifier_subsequent+0x67>
movsbl -0x5(%rbp),%ecx
mov    $0x2b,%eax
cmp    %ecx,%eax
je     1187 <is_identifier_subsequent+0x67>
movsbl -0x5(%rbp),%ecx
mov    $0x2d,%eax
cmp    %ecx,%eax
jne    1193 <is_identifier_subsequent+0x73>
movl   $0x1,-0x4(%rbp)
jmp    119a <is_identifier_subsequent+0x7a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_identifier_subsequent>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
call   1040 <is_identifier_initial@plt>
mov    $0x1,%ebp
test   %rax,%rax
jne    1159 <is_identifier_subsequent+0x39>
movsbl %bl,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
jne    1159 <is_identifier_subsequent+0x39>
add    $0xd5,%bl
xor    %ebp,%ebp
cmp    $0x3,%bl
ja     1159 <is_identifier_subsequent+0x39>
movsbq %bl,%rax
lea    0xeaa(%rip),%rcx
mov    (%rcx,%rax,4),%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @is_identifier_subsequent(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = call i64 @is_identifier_initial(i8 signext %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %24, label %7
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = call i64 @isdigit(i32 %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %24, label %12
12: ; preds = %7
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
%15 = icmp eq i32 46, %14
br i1 %15, label %24, label %16
16: ; preds = %12
%17 = load i8, i8* %3
%18 = sext i8 %17 to i32
%19 = icmp eq i32 43, %18
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = load i8, i8* %3
%22 = sext i8 %21 to i32
%23 = icmp eq i32 45, %22
br i1 %23, label %24, label %25
24: ; preds = %20, %16, %12, %7, %1
store i32 1, i32* %2
br label %26
25: ; preds = %20
store i32 0, i32* %2
br label %26
26: ; preds = %25, %24
%27 = load i32, i32* %2
ret i32 %27
}

LLVM IR (-O2):
@switch.table.is_identifier_subsequent = [4 x i32] [i32 1, i32 0, i32 1, i32 1]
define i32 @is_identifier_subsequent(i8 signext %0) {
%2 = tail call i64 @is_identifier_initial(i8 signext %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %16
4: ; preds = %1
%5 = sext i8 %0 to i32
%6 = tail call i64 @isdigit(i32 %5)
%7 = freeze i64 %6
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %4
%10 = add i8 %0, -43
%11 = icmp ult i8 %10, 4
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = sext i8 %10 to i64
%14 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.is_identifier_subsequent, i64 0, i64 %13
%15 = load i32, i32* %14
br label %16
16: ; preds = %9, %12, %1, %4
%17 = phi i32 [ 1, %4 ], [ 1, %1 ], [ %15, %12 ], [ 0, %9 ]
ret i32 %17
}