#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 iscon(char *symbol) {
  int i = 0;
  char *cons[] = {"k",  "kh",  "g",  "gh",  "ch",  "chh", "j",  "jh",
                  "tt", "tth", "dd", "ddh", "nna", "t",   "th", "d",
                  "dh", "n",   "p",  "f",   "b",   "bh",  "m",  "y",
                  "r",  "l",   "ll", "v",   "sh",  "s",   "h",  "\0"};
  while (cons[i] != "\0") {
    if (strcmp(cons[i], symbol) == 0) {
      return (1);
      break;
    }
    i++;
  }
  return (0);
}


x86 assembly (clang, -O0):
<iscon>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    -0x120(%rbp),%rdi
lea    0x2bdc(%rip),%rsi
mov    $0x100,%edx
call   1040 <memcpy@plt>
movslq -0x14(%rbp),%rax
lea    0xeea(%rip),%rcx
cmp    %rcx,-0x120(%rbp,%rax,8)
ff
je     11a0 <iscon+0x80>
movslq -0x14(%rbp),%rax
mov    -0x120(%rbp,%rax,8),%rdi
ff
mov    -0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1192 <iscon+0x72>
movl   $0x1,-0x4(%rbp)
jmp    11a7 <iscon+0x87>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114e <iscon+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscon>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
xor    %r14d,%r14d
lea    0xf1f(%rip),%r15
lea    0xed5(%rip),%rdi
cmp    %r15,%rdi
je     1162 <iscon+0x52>
lea    0x2bf1(%rip),%rbp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     115c <iscon+0x4c>
mov    0x0(%rbp),%rdi
add    $0x8,%rbp
cmp    %r15,%rdi
jne    1140 <iscon+0x30>
jmp    1162 <iscon+0x52>
mov    $0x1,%r14d
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"k\00"
@.str.1 = [3 x i8] c"kh\00"
@.str.2 = [2 x i8] c"g\00"
@.str.3 = [3 x i8] c"gh\00"
@.str.4 = [3 x i8] c"ch\00"
@.str.5 = [4 x i8] c"chh\00"
@.str.6 = [2 x i8] c"j\00"
@.str.7 = [3 x i8] c"jh\00"
@.str.8 = [3 x i8] c"tt\00"
@.str.9 = [4 x i8] c"tth\00"
@.str.10 = [3 x i8] c"dd\00"
@.str.11 = [4 x i8] c"ddh\00"
@.str.12 = [4 x i8] c"nna\00"
@.str.13 = [2 x i8] c"t\00"
@.str.14 = [3 x i8] c"th\00"
@.str.15 = [2 x i8] c"d\00"
@.str.16 = [3 x i8] c"dh\00"
@.str.17 = [2 x i8] c"n\00"
@.str.18 = [2 x i8] c"p\00"
@.str.19 = [2 x i8] c"f\00"
@.str.20 = [2 x i8] c"b\00"
@.str.21 = [3 x i8] c"bh\00"
@.str.22 = [2 x i8] c"m\00"
@.str.23 = [2 x i8] c"y\00"
@.str.24 = [2 x i8] c"r\00"
@.str.25 = [2 x i8] c"l\00"
@.str.26 = [3 x i8] c"ll\00"
@.str.27 = [2 x i8] c"v\00"
@.str.28 = [3 x i8] c"sh\00"
@.str.29 = [2 x i8] c"s\00"
@.str.30 = [2 x i8] c"h\00"
@.str.31 = [2 x i8] zeroinitializer
@__const.iscon.cons = [32 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i32 0, i32 0)]
define i32 @iscon(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [32 x i8*]
store i8* %0, i8** %3
store i32 0, i32* %4
%6 = bitcast [32 x i8*]* %5 to i8*
br label %7
7: ; preds = %22, %1
%8 = load i32, i32* %4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [32 x i8*], [32 x i8*]* %5, i64 0, i64 %9
%11 = load i8*, i8** %10
%12 = icmp ne i8* %11, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0)
br i1 %12, label %13, label %25
13: ; preds = %7
%14 = load i32, i32* %4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [32 x i8*], [32 x i8*]* %5, i64 0, i64 %15
%17 = load i8*, i8** %16
%18 = load i8*, i8** %3
%19 = call i64 @strcmp(i8* %17, i8* %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %13
store i32 1, i32* %2
br label %26
22: ; preds = %13
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
br label %7
25: ; preds = %7
store i32 0, i32* %2
br label %26
26: ; preds = %25, %21
%27 = load i32, i32* %2
ret i32 %27
}

LLVM IR (-O2):
@.str = [2 x i8] c"k\00"
@.str.1 = [3 x i8] c"kh\00"
@.str.2 = [2 x i8] c"g\00"
@.str.3 = [3 x i8] c"gh\00"
@.str.4 = [3 x i8] c"ch\00"
@.str.5 = [4 x i8] c"chh\00"
@.str.6 = [2 x i8] c"j\00"
@.str.7 = [3 x i8] c"jh\00"
@.str.8 = [3 x i8] c"tt\00"
@.str.9 = [4 x i8] c"tth\00"
@.str.10 = [3 x i8] c"dd\00"
@.str.11 = [4 x i8] c"ddh\00"
@.str.12 = [4 x i8] c"nna\00"
@.str.13 = [2 x i8] c"t\00"
@.str.14 = [3 x i8] c"th\00"
@.str.15 = [2 x i8] c"d\00"
@.str.16 = [3 x i8] c"dh\00"
@.str.17 = [2 x i8] c"n\00"
@.str.18 = [2 x i8] c"p\00"
@.str.19 = [2 x i8] c"f\00"
@.str.20 = [2 x i8] c"b\00"
@.str.21 = [3 x i8] c"bh\00"
@.str.22 = [2 x i8] c"m\00"
@.str.23 = [2 x i8] c"y\00"
@.str.24 = [2 x i8] c"r\00"
@.str.25 = [2 x i8] c"l\00"
@.str.26 = [3 x i8] c"ll\00"
@.str.27 = [2 x i8] c"v\00"
@.str.28 = [3 x i8] c"sh\00"
@.str.29 = [2 x i8] c"s\00"
@.str.30 = [2 x i8] c"h\00"
@.str.31 = [2 x i8] zeroinitializer
@__const.iscon.cons = [32 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i32 0, i32 0)]
define i32 @iscon(i8* %0) {
br i1 icmp eq (i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0)), label %12, label %6
2: ; preds = %6
%3 = getelementptr inbounds [32 x i8*], [32 x i8*]* @__const.iscon.cons, i64 0, i64 %11
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0)
br i1 %5, label %12, label %6
6: ; preds = %1, %2
%7 = phi i64 [ %11, %2 ], [ 0, %1 ]
%8 = phi i8* [ %4, %2 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %1 ]
%9 = tail call i64 @strcmp(i8* %8, i8* %0)
%10 = icmp eq i64 %9, 0
%11 = add nuw i64 %7, 1
br i1 %10, label %12, label %2
12: ; preds = %6, %2, %1
%13 = phi i32 [ 0, %1 ], [ 0, %2 ], [ 1, %6 ]
ret i32 %13
}