#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 /*<<< orphan*/ lou_free();
int main(int argc, char **argv) {
  int ret = 0;
  char *tables = "da-dk-g26.ctb";
  char *word = "alderen";
  char *hyphens = calloc(9, sizeof(char));
  hyphens[0] = '0';
  hyphens[1] = '0';
  hyphens[2] = '1';
  hyphens[3] = '0';
  hyphens[4] = '1';
  hyphens[5] = '0';
  hyphens[6] = '0';
  ret = check_hyphenation(tables, word, hyphens);
  assert(hyphens[7] == '\0');
  assert(hyphens[8] == '\0');
  free(hyphens);
  lou_free();
  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    0xe8c(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xe8f(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    $0x9,%edi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movb   $0x30,(%rax)
mov    -0x30(%rbp),%rax
movb   $0x30,0x1(%rax)
mov    -0x30(%rbp),%rax
movb   $0x31,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    -0x30(%rbp),%rax
movb   $0x30,0x6(%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 0x7(%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x30(%rbp),%rax
movsbl 0x8(%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x30(%rbp),%rdi
call   1040 <free@plt>
mov    $0x0,%al
call   1060 <lou_free@plt>
mov    -0x14(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0x9,%edi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,%rbx
movl   $0x30313030,(%rax)
movw   $0x3031,0x4(%rax)
movb   $0x30,0x6(%rax)
lea    0xe84(%rip),%rdi
lea    0xe8b(%rip),%rsi
mov    %rax,%rdx
call   1030 <check_hyphenation@plt>
mov    %eax,%ebp
xor    %edi,%edi
cmpb   $0x0,0x7(%rbx)
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
cmpb   $0x0,0x8(%rbx)
sete   %dil
call   1070 <assert@plt>
mov    %rbx,%rdi
call   1040 <free@plt>
xor    %eax,%eax
call   1060 <lou_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 = [8 x i8] c"alderen\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 ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %8
%10 = call i8* @calloc(i32 9, 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 48, i8* %14
%15 = load i8*, i8** %9
%16 = getelementptr inbounds i8, i8* %15, i64 2
store i8 49, 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** %9
%24 = getelementptr inbounds i8, i8* %23, i64 6
store i8 48, i8* %24
%25 = load i8*, i8** %7
%26 = load i8*, i8** %8
%27 = load i8*, i8** %9
%28 = call i32 @check_hyphenation(i8* %25, i8* %26, i8* %27)
store i32 %28, i32* %6
%29 = load i8*, i8** %9
%30 = getelementptr inbounds i8, i8* %29, i64 7
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 0
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
%36 = load i8*, i8** %9
%37 = getelementptr inbounds i8, i8* %36, i64 8
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 0
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = load i8*, i8** %9
%44 = call i32 @free(i8* %43)
%45 = call i32 (...) @lou_free()
%46 = load i32, i32* %6
ret i32 %46
}

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