#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*/ assert(int);
char *calloc(int, int);
int check_hyphenation(char *, char *, char *);
int /*<<< orphan*/ free(char *);
int main(int argc, char **argv) {
  int ret = 0;
  char *tables = "da-dk-g26.ctb";
  char *word = "achena";
  char *hyphens = calloc(8, sizeof(char));
  hyphens[0] = '0';
  hyphens[1] = '1';
  hyphens[2] = '0';
  hyphens[3] = '0';
  hyphens[4] = '1';
  hyphens[5] = '0';
  ret = check_hyphenation(tables, word, hyphens);
  assert(hyphens[6] == '\0');
  assert(hyphens[7] == '\0');
  free(hyphens);
  return ret;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xe9c(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xe9f(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    $0x8,%edi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movb   $0x30,(%rax)
mov    -0x30(%rbp),%rax
movb   $0x31,0x1(%rax)
mov    -0x30(%rbp),%rax
movb   $0x30,0x2(%rax)
mov    -0x30(%rbp),%rax
movb   $0x30,0x3(%rax)
mov    -0x30(%rbp),%rax
movb   $0x31,0x4(%rax)
mov    -0x30(%rbp),%rax
movb   $0x30,0x5(%rax)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1030 <check_hyphenation@plt>
mov    %eax,-0x14(%rbp)
mov    -0x30(%rbp),%rax
movsbl 0x6(%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x30(%rbp),%rax
movsbl 0x7(%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x30(%rbp),%rdi
call   1040 <free@plt>
mov    -0x14(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0x8,%edi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,%rbx
movl   $0x30303130,(%rax)
movw   $0x3031,0x4(%rax)
lea    0xe98(%rip),%rdi
lea    0xe9f(%rip),%rsi
mov    %rax,%rdx
call   1030 <check_hyphenation@plt>
mov    %eax,%ebp
xor    %edi,%edi
cmpb   $0x0,0x6(%rbx)
sete   %dil
call   1060 <assert@plt>
xor    %edi,%edi
cmpb   $0x0,0x7(%rbx)
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
call   1040 <free@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"da-dk-g26.ctb\00"
@.str.1 = [7 x i8] c"achena\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8** %7
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %8
%10 = call i8* @calloc(i32 8, i32 1)
store i8* %10, i8** %9
%11 = load i8*, i8** %9
%12 = getelementptr inbounds i8, i8* %11, i64 0
store i8 48, i8* %12
%13 = load i8*, i8** %9
%14 = getelementptr inbounds i8, i8* %13, i64 1
store i8 49, i8* %14
%15 = load i8*, i8** %9
%16 = getelementptr inbounds i8, i8* %15, i64 2
store i8 48, i8* %16
%17 = load i8*, i8** %9
%18 = getelementptr inbounds i8, i8* %17, i64 3
store i8 48, i8* %18
%19 = load i8*, i8** %9
%20 = getelementptr inbounds i8, i8* %19, i64 4
store i8 49, i8* %20
%21 = load i8*, i8** %9
%22 = getelementptr inbounds i8, i8* %21, i64 5
store i8 48, i8* %22
%23 = load i8*, i8** %7
%24 = load i8*, i8** %8
%25 = load i8*, i8** %9
%26 = call i32 @check_hyphenation(i8* %23, i8* %24, i8* %25)
store i32 %26, i32* %6
%27 = load i8*, i8** %9
%28 = getelementptr inbounds i8, i8* %27, i64 6
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 %32)
%34 = load i8*, i8** %9
%35 = getelementptr inbounds i8, i8* %34, i64 7
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = load i8*, i8** %9
%42 = call i32 @free(i8* %41)
%43 = load i32, i32* %6
ret i32 %43
}

LLVM IR (-O2):
@.str = [14 x i8] c"da-dk-g26.ctb\00"
@.str.1 = [7 x i8] c"achena\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call dereferenceable_or_null(8) i8* @calloc(i32 8, i32 1)
store i8 48, i8* %3
%4 = getelementptr inbounds i8, i8* %3, i64 1
store i8 49, i8* %4
%5 = getelementptr inbounds i8, i8* %3, i64 2
store i8 48, i8* %5
%6 = getelementptr inbounds i8, i8* %3, i64 3
store i8 48, i8* %6
%7 = getelementptr inbounds i8, i8* %3, i64 4
store i8 49, i8* %7
%8 = getelementptr inbounds i8, i8* %3, i64 5
store i8 48, i8* %8
%9 = tail call i32 @check_hyphenation(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%10 = getelementptr inbounds i8, i8* %3, i64 6
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 %13)
%15 = getelementptr inbounds i8, i8* %3, i64 7
%16 = load i8, i8* %15
%17 = icmp eq i8 %16, 0
%18 = zext i1 %17 to i32
%19 = tail call i32 @assert(i32 %18)
%20 = tail call i32 @free(i8* %3)
ret i32 %9
}