#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__ isalpha(char);
scalar_t__ isdigit(char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int main(void) {
  const int IDLEN = 80;
  char name[IDLEN];
  int result = 1;
  int i = 0;
  printf("\n_____IDENTIFY_____\n\n");
  scanf("%s", name);
  if (strcmp(name, "auto") == 0 || strcmp(name, "break") == 0 ||
      strcmp(name, "case") == 0 || strcmp(name, "char") == 0 ||
      strcmp(name, "continue") == 0 || strcmp(name, "do") == 0 ||
      strcmp(name, "default") == 0 || strcmp(name, "const") == 0 ||
      strcmp(name, "double") == 0 || strcmp(name, "else") == 0 ||
      strcmp(name, "enum") == 0 || strcmp(name, "extern") == 0 ||
      strcmp(name, "for") == 0 || strcmp(name, "if") == 0 ||
      strcmp(name, "goto") == 0 || strcmp(name, "float") == 0 ||
      strcmp(name, "int") == 0 || strcmp(name, "long") == 0 ||
      strcmp(name, "register") == 0 || strcmp(name, "return") == 0 ||
      strcmp(name, "signed") == 0 || strcmp(name, "static") == 0 ||
      strcmp(name, "sizeof") == 0 || strcmp(name, "short") == 0 ||
      strcmp(name, "struct") == 0 || strcmp(name, "switch") == 0 ||
      strcmp(name, "typedef") == 0 || strcmp(name, "union") == 0 ||
      strcmp(name, "void") == 0 || strcmp(name, "while") == 0 ||
      strcmp(name, "volatile") == 0 || strcmp(name, "unsigned") == 0) {
    printf("\n\"%s\" is a keyword in C therfore it cannot be an identifier\n\n",
           name);
    printf("Identifier Name:     Invalid\n\n");
    result = 0;
  }
  for (i = 0; i < strlen(name); i++) {
    if (isalpha(name[i])) {
    } else if (isdigit(name[i])) {
    } else if (name[i] == '_') {
    } else {
      printf("\nIdentifier Name:     Invalid\n\n");
      break;
    }
    if (i == (strlen(name) - 1) && result != 0) {
      printf("\nIdentifier Name:     Valid\n\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x50,-0x8(%rbp)
mov    %rsp,%rax
mov    %rax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe73(%rip),%rdi
lea    -0x70(%rbp),%rsi
call   1080 <scanf@plt>
lea    0xe66(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xe51(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xe3d(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xe28(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xe13(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xe02(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xdeb(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xdd9(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xdc5(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xdb2(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd9d(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd88(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd75(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd5f(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd48(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd33(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd1f(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd09(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xcf4(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xce3(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xd16(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xcb6(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xca3(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xc90(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xc7c(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xc69(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xc56(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xc44(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xc30(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xc1b(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xc07(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ec <main+0x38c>
lea    0xbf6(%rip),%rsi
lea    -0x70(%rbp),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1513 <main+0x3b3>
lea    0xbe5(%rip),%rdi
lea    -0x70(%rbp),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc12(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x74(%rbp)
lea    -0x70(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x74(%rbp),%eax
cmp    %ecx,%eax
jge    15ee <main+0x48e>
movslq -0x18(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%edi
call   1070 <isalpha@plt>
cmp    $0x0,%rax
je     1553 <main+0x3f3>
jmp    15a4 <main+0x444>
movslq -0x18(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1570 <main+0x410>
jmp    159f <main+0x43f>
movslq -0x18(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x5f,%eax
jne    1587 <main+0x427>
jmp    159a <main+0x43a>
lea    0xb88(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15ee <main+0x48e>
jmp    159f <main+0x43f>
jmp    15a4 <main+0x444>
mov    -0x18(%rbp),%eax
mov    %eax,-0x78(%rbp)
lea    -0x70(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x78(%rbp),%eax
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    15db <main+0x47b>
cmpl   $0x0,-0x14(%rbp)
je     15db <main+0x47b>
lea    0xb62(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15e0 <main+0x480>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    151a <main+0x3ba>
movl   $0x0,-0x4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x58,%rsp
lea    0xf7f(%rip),%rdi
call   1040 <puts@plt>
lea    0xe73(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1090 <scanf@plt>
lea    0xe64(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xe51(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xe3f(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xe2c(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xe19(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xe0a(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xdf5(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xde5(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xdd3(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xdc2(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xdaf(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd9c(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd8b(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd77(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd62(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd4f(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd3d(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd29(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd16(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd07(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xd3c(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xcde(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xccd(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xcbc(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xcaa(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xc99(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xc8c(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xc80(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xc72(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xc63(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xc55(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147f <main+0x30f>
lea    0xc4a(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
mov    $0x1,%r15b
test   %rax,%rax
jne    149f <main+0x32f>
lea    0xc3c(%rip),%rdi
xor    %r15d,%r15d
mov    %rsp,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc7c(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    153c <main+0x3cc>
xor    %ebp,%ebp
mov    %rsp,%rbx
xor    $0x1,%r15b
lea    0xc75(%rip),%r14
jmp    14e3 <main+0x373>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbp
mov    %rbx,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%rbp
jge    153c <main+0x3cc>
movsbl (%rsp,%rbp,1),%edi
call   1080 <isalpha@plt>
test   %rax,%rax
jne    1510 <main+0x3a0>
movsbl (%rsp,%rbp,1),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
jne    1510 <main+0x3a0>
cmpb   $0x5f,(%rsp,%rbp,1)
jne    1530 <main+0x3c0>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
call   1050 <strlen@plt>
add    $0xffffffff,%eax
cmp    %rax,%rbp
setne  %al
or     %r15b,%al
jne    14d0 <main+0x360>
mov    %r14,%rdi
call   1040 <puts@plt>
jmp    14d0 <main+0x360>
lea    0xbde(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"\0A_____IDENTIFY_____\0A\0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [5 x i8] c"auto\00"
@.str.3 = [6 x i8] c"break\00"
@.str.4 = [5 x i8] c"case\00"
@.str.5 = [5 x i8] c"char\00"
@.str.6 = [9 x i8] c"continue\00"
@.str.7 = [3 x i8] c"do\00"
@.str.8 = [8 x i8] c"default\00"
@.str.9 = [6 x i8] c"const\00"
@.str.10 = [7 x i8] c"double\00"
@.str.11 = [5 x i8] c"else\00"
@.str.12 = [5 x i8] c"enum\00"
@.str.13 = [7 x i8] c"extern\00"
@.str.14 = [4 x i8] c"for\00"
@.str.15 = [3 x i8] c"if\00"
@.str.16 = [5 x i8] c"goto\00"
@.str.17 = [6 x i8] c"float\00"
@.str.18 = [4 x i8] c"int\00"
@.str.19 = [5 x i8] c"long\00"
@.str.20 = [9 x i8] c"register\00"
@.str.21 = [7 x i8] c"return\00"
@.str.22 = [7 x i8] c"signed\00"
@.str.23 = [7 x i8] c"static\00"
@.str.24 = [7 x i8] c"sizeof\00"
@.str.25 = [6 x i8] c"short\00"
@.str.26 = [7 x i8] c"struct\00"
@.str.27 = [7 x i8] c"switch\00"
@.str.28 = [8 x i8] c"typedef\00"
@.str.29 = [6 x i8] c"union\00"
@.str.30 = [5 x i8] c"void\00"
@.str.31 = [6 x i8] c"while\00"
@.str.32 = [9 x i8] c"volatile\00"
@.str.33 = [9 x i8] c"unsigned\00"
@.str.34 = [62 x i8] c"\0A\22%s\22 is a keyword in C therfore it cannot be an identifier\0A\0A\00"
@.str.35 = [31 x i8] c"Identifier Name: Invalid\0A\0A\00"
@.str.36 = [32 x i8] c"\0AIdentifier Name: Invalid\0A\0A\00"
@.str.37 = [30 x i8] c"\0AIdentifier Name: Valid\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 80, i32* %2
%6 = call i8* @llvm.stacksave()
store i8* %6, i8** %3
%7 = alloca i8, i64 80
store i32 1, i32* %4
store i32 0, i32* %5
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%10 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %105, label %12
12: ; preds = %0
%13 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %105, label %15
15: ; preds = %12
%16 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %105, label %18
18: ; preds = %15
%19 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %105, label %21
21: ; preds = %18
%22 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %105, label %24
24: ; preds = %21
%25 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %105, label %27
27: ; preds = %24
%28 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %105, label %30
30: ; preds = %27
%31 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %105, label %33
33: ; preds = %30
%34 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %105, label %36
36: ; preds = %33
%37 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %105, label %39
39: ; preds = %36
%40 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %105, label %42
42: ; preds = %39
%43 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %105, label %45
45: ; preds = %42
%46 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %105, label %48
48: ; preds = %45
%49 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %105, label %51
51: ; preds = %48
%52 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %105, label %54
54: ; preds = %51
%55 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %105, label %57
57: ; preds = %54
%58 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %105, label %60
60: ; preds = %57
%61 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %105, label %63
63: ; preds = %60
%64 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %105, label %66
66: ; preds = %63
%67 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %105, label %69
69: ; preds = %66
%70 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %105, label %72
72: ; preds = %69
%73 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %105, label %75
75: ; preds = %72
%76 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %105, label %78
78: ; preds = %75
%79 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %105, label %81
81: ; preds = %78
%82 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %105, label %84
84: ; preds = %81
%85 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %105, label %87
87: ; preds = %84
%88 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %105, label %90
90: ; preds = %87
%91 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %105, label %93
93: ; preds = %90
%94 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %105, label %96
96: ; preds = %93
%97 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
%98 = icmp eq i64 %97, 0
br i1 %98, label %105, label %99
99: ; preds = %96
%100 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.32, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %105, label %102
102: ; preds = %99
%103 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.33, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %102, %99, %96, %93, %90, %87, %84, %81, %78, %75, %72, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %0
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.34, i64 0, i64 0), i8* %7)
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.35, i64 0, i64 0))
store i32 0, i32* %4
br label %108
108: ; preds = %105, %102
store i32 0, i32* %5
br label %109
109: ; preds = %152, %108
%110 = load i32, i32* %5
%111 = call i32 @strlen(i8* %7)
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %155
113: ; preds = %109
%114 = load i32, i32* %5
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, i8* %7, i64 %115
%117 = load i8, i8* %116
%118 = call i64 @isalpha(i8 signext %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %121
120: ; preds = %113
br label %141
121: ; preds = %113
%122 = load i32, i32* %5
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, i8* %7, i64 %123
%125 = load i8, i8* %124
%126 = call i64 @isdigit(i8 signext %125)
%127 = icmp ne i64 %126, 0
br i1 %127, label %128, label %129
128: ; preds = %121
br label %140
129: ; preds = %121
%130 = load i32, i32* %5
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i8, i8* %7, i64 %131
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 95
br i1 %135, label %136, label %137
136: ; preds = %129
br label %139
137: ; preds = %129
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.36, i64 0, i64 0))
br label %155
139: ; preds = %136
br label %140
140: ; preds = %139, %128
br label %141
141: ; preds = %140, %120
%142 = load i32, i32* %5
%143 = call i32 @strlen(i8* %7)
%144 = sub nsw i32 %143, 1
%145 = icmp eq i32 %142, %144
br i1 %145, label %146, label %151
146: ; preds = %141
%147 = load i32, i32* %4
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.37, i64 0, i64 0))
br label %151
151: ; preds = %149, %146, %141
br label %152
152: ; preds = %151
%153 = load i32, i32* %5
%154 = add nsw i32 %153, 1
store i32 %154, i32* %5
br label %109
155: ; preds = %137, %109
store i32 0, i32* %1
%156 = load i8*, i8** %3
%157 = load i32, i32* %1
ret i32 %157
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [5 x i8] c"auto\00"
@.str.3 = [6 x i8] c"break\00"
@.str.4 = [5 x i8] c"case\00"
@.str.5 = [5 x i8] c"char\00"
@.str.6 = [9 x i8] c"continue\00"
@.str.7 = [3 x i8] c"do\00"
@.str.8 = [8 x i8] c"default\00"
@.str.9 = [6 x i8] c"const\00"
@.str.10 = [7 x i8] c"double\00"
@.str.11 = [5 x i8] c"else\00"
@.str.12 = [5 x i8] c"enum\00"
@.str.13 = [7 x i8] c"extern\00"
@.str.14 = [4 x i8] c"for\00"
@.str.15 = [3 x i8] c"if\00"
@.str.16 = [5 x i8] c"goto\00"
@.str.17 = [6 x i8] c"float\00"
@.str.18 = [4 x i8] c"int\00"
@.str.19 = [5 x i8] c"long\00"
@.str.20 = [9 x i8] c"register\00"
@.str.21 = [7 x i8] c"return\00"
@.str.22 = [7 x i8] c"signed\00"
@.str.23 = [7 x i8] c"static\00"
@.str.24 = [7 x i8] c"sizeof\00"
@.str.25 = [6 x i8] c"short\00"
@.str.26 = [7 x i8] c"struct\00"
@.str.27 = [7 x i8] c"switch\00"
@.str.28 = [8 x i8] c"typedef\00"
@.str.29 = [6 x i8] c"union\00"
@.str.30 = [5 x i8] c"void\00"
@.str.31 = [6 x i8] c"while\00"
@.str.32 = [9 x i8] c"volatile\00"
@.str.33 = [9 x i8] c"unsigned\00"
@.str.34 = [62 x i8] c"\0A\22%s\22 is a keyword in C therfore it cannot be an identifier\0A\0A\00"
@str = [21 x i8] c"\0A_____IDENTIFY_____\0A\00"
@str.38 = [31 x i8] c"\0AIdentifier Name: Invalid\0A\00"
@str.39 = [29 x i8] c"\0AIdentifier Name: Valid\0A\00"
@str.40 = [30 x i8] c"Identifier Name: Invalid\0A\00"
define i32 @main() {
%1 = alloca [80 x i8]
%2 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %100, label %7
7: ; preds = %0
%8 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %100, label %10
10: ; preds = %7
%11 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %100, label %13
13: ; preds = %10
%14 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %100, label %16
16: ; preds = %13
%17 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %100, label %19
19: ; preds = %16
%20 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %100, label %22
22: ; preds = %19
%23 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %100, label %25
25: ; preds = %22
%26 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %100, label %28
28: ; preds = %25
%29 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %100, label %31
31: ; preds = %28
%32 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %100, label %34
34: ; preds = %31
%35 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %100, label %37
37: ; preds = %34
%38 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %100, label %40
40: ; preds = %37
%41 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %100, label %43
43: ; preds = %40
%44 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %100, label %46
46: ; preds = %43
%47 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %100, label %49
49: ; preds = %46
%50 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %100, label %52
52: ; preds = %49
%53 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %100, label %55
55: ; preds = %52
%56 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %100, label %58
58: ; preds = %55
%59 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %100, label %61
61: ; preds = %58
%62 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %100, label %64
64: ; preds = %61
%65 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %100, label %67
67: ; preds = %64
%68 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %100, label %70
70: ; preds = %67
%71 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %100, label %73
73: ; preds = %70
%74 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %100, label %76
76: ; preds = %73
%77 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %100, label %79
79: ; preds = %76
%80 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %100, label %82
82: ; preds = %79
%83 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %100, label %85
85: ; preds = %82
%86 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %100, label %88
88: ; preds = %85
%89 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %100, label %91
91: ; preds = %88
%92 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %100, label %94
94: ; preds = %91
%95 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.32, i64 0, i64 0))
%96 = icmp eq i64 %95, 0
br i1 %96, label %100, label %97
97: ; preds = %94
%98 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.33, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %97, %94, %91, %88, %85, %82, %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %0
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.34, i64 0, i64 0), i8* %2)
%102 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.40, i64 0, i64 0))
br label %103
103: ; preds = %100, %97
%104 = phi i1 [ false, %100 ], [ true, %97 ]
%105 = call i32 @strlen(i8* %2)
%106 = icmp sgt i32 %105, 0
br i1 %106, label %107, label %135
107: ; preds = %103, %130
%108 = phi i64 [ %131, %130 ], [ 0, %103 ]
%109 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 %108
%110 = load i8, i8* %109
%111 = call i64 @isalpha(i8 signext %110)
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %122
113: ; preds = %107
%114 = load i8, i8* %109
%115 = call i64 @isdigit(i8 signext %114)
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %122
117: ; preds = %113
%118 = load i8, i8* %109
%119 = icmp eq i8 %118, 95
br i1 %119, label %122, label %120
120: ; preds = %117
%121 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.38, i64 0, i64 0))
br label %135
122: ; preds = %113, %117, %107
%123 = call i32 @strlen(i8* %2)
%124 = add nsw i32 %123, -1
%125 = zext i32 %124 to i64
%126 = icmp eq i64 %108, %125
%127 = and i1 %104, %126
br i1 %127, label %128, label %130
128: ; preds = %122
%129 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.39, i64 0, i64 0))
br label %130
130: ; preds = %122, %128
%131 = add nuw nsw i64 %108, 1
%132 = call i32 @strlen(i8* %2)
%133 = sext i32 %132 to i64
%134 = icmp slt i64 %131, %133
br i1 %134, label %107, label %135
135: ; preds = %130, %103, %120
ret i32 0
}