#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 EXIT_SUCCESS;
char *find_n(char **, int);
char **malloc(int);
int /*<<< orphan*/ printf(char *, char *);
char *strdup(char *);
int main() {
  char **seed = malloc(12 * sizeof(char *));
  seed[0] = strdup("0");
  seed[1] = strdup("1");
  seed[2] = strdup("2");
  seed[3] = strdup("5");
  seed[4] = strdup("8");
  seed[5] = strdup("00");
  seed[6] = strdup("11");
  seed[7] = strdup("22");
  seed[8] = strdup("55");
  seed[9] = strdup("69");
  seed[10] = strdup("88");
  seed[11] = strdup("96");
  printf("ANS: %s\n", find_n(seed, 12));
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x60,%edi
call   1050 <malloc@plt>
mov    %rax,-0x10(%rbp)
lea    0xe9d(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xe8a(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x8(%rax)
lea    0xe76(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x10(%rax)
lea    0xe62(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x18(%rax)
lea    0xe51(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x20(%rax)
lea    0xe2a(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x28(%rax)
lea    0xe16(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x30(%rax)
lea    0xe02(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x38(%rax)
lea    0xdee(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x40(%rax)
lea    0xdda(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x48(%rax)
lea    0xdc6(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x50(%rax)
lea    0xdb2(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x58(%rax)
mov    -0x10(%rbp),%rdi
mov    $0xc,%esi
call   1030 <find_n@plt>
mov    %rax,%rsi
lea    0xd8d(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d4c(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x60,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
lea    0xeac(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,(%rbx)
lea    0xea0(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x8(%rbx)
lea    0xe93(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x10(%rbx)
lea    0xe86(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x18(%rbx)
lea    0xe7c(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x20(%rbx)
lea    0xe5c(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x28(%rbx)
lea    0xe4f(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x30(%rbx)
lea    0xe42(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x38(%rbx)
lea    0xe35(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x40(%rbx)
lea    0xe28(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x48(%rbx)
lea    0xe1b(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x50(%rbx)
lea    0xe0e(%rip),%rdi
call   1060 <strdup@plt>
mov    %rax,0x58(%rbx)
mov    %rbx,%rdi
mov    $0xc,%esi
call   1030 <find_n@plt>
lea    0xdf4(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
mov    0x2db0(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"0\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [2 x i8] c"2\00"
@.str.3 = [2 x i8] c"5\00"
@.str.4 = [2 x i8] c"8\00"
@.str.5 = [3 x i8] c"00\00"
@.str.6 = [3 x i8] c"11\00"
@.str.7 = [3 x i8] c"22\00"
@.str.8 = [3 x i8] c"55\00"
@.str.9 = [3 x i8] c"69\00"
@.str.10 = [3 x i8] c"88\00"
@.str.11 = [3 x i8] c"96\00"
@.str.12 = [9 x i8] c"ANS: %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8**
store i32 0, i32* %1
%3 = call i8** @malloc(i32 96)
store i8** %3, i8*** %2
%4 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = load i8**, i8*** %2
%6 = getelementptr inbounds i8*, i8** %5, i64 0
store i8* %4, i8** %6
%7 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = load i8**, i8*** %2
%9 = getelementptr inbounds i8*, i8** %8, i64 1
store i8* %7, i8** %9
%10 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = load i8**, i8*** %2
%12 = getelementptr inbounds i8*, i8** %11, i64 2
store i8* %10, i8** %12
%13 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%14 = load i8**, i8*** %2
%15 = getelementptr inbounds i8*, i8** %14, i64 3
store i8* %13, i8** %15
%16 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%17 = load i8**, i8*** %2
%18 = getelementptr inbounds i8*, i8** %17, i64 4
store i8* %16, i8** %18
%19 = call i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%20 = load i8**, i8*** %2
%21 = getelementptr inbounds i8*, i8** %20, i64 5
store i8* %19, i8** %21
%22 = call i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%23 = load i8**, i8*** %2
%24 = getelementptr inbounds i8*, i8** %23, i64 6
store i8* %22, i8** %24
%25 = call i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%26 = load i8**, i8*** %2
%27 = getelementptr inbounds i8*, i8** %26, i64 7
store i8* %25, i8** %27
%28 = call i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%29 = load i8**, i8*** %2
%30 = getelementptr inbounds i8*, i8** %29, i64 8
store i8* %28, i8** %30
%31 = call i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%32 = load i8**, i8*** %2
%33 = getelementptr inbounds i8*, i8** %32, i64 9
store i8* %31, i8** %33
%34 = call i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%35 = load i8**, i8*** %2
%36 = getelementptr inbounds i8*, i8** %35, i64 10
store i8* %34, i8** %36
%37 = call i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%38 = load i8**, i8*** %2
%39 = getelementptr inbounds i8*, i8** %38, i64 11
store i8* %37, i8** %39
%40 = load i8**, i8*** %2
%41 = call i8* @find_n(i8** %40, i32 12)
%42 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* %41)
%43 = load i32, i32* @EXIT_SUCCESS
ret i32 %43
}

LLVM IR (-O2):
@.str = [2 x i8] c"0\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [2 x i8] c"2\00"
@.str.3 = [2 x i8] c"5\00"
@.str.4 = [2 x i8] c"8\00"
@.str.5 = [3 x i8] c"00\00"
@.str.6 = [3 x i8] c"11\00"
@.str.7 = [3 x i8] c"22\00"
@.str.8 = [3 x i8] c"55\00"
@.str.9 = [3 x i8] c"69\00"
@.str.10 = [3 x i8] c"88\00"
@.str.11 = [3 x i8] c"96\00"
@.str.12 = [9 x i8] c"ANS: %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i8** @malloc(i32 96)
%2 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %2, i8** %1
%3 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = getelementptr inbounds i8*, i8** %1, i64 1
store i8* %3, i8** %4
%5 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = getelementptr inbounds i8*, i8** %1, i64 2
store i8* %5, i8** %6
%7 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = getelementptr inbounds i8*, i8** %1, i64 3
store i8* %7, i8** %8
%9 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%10 = getelementptr inbounds i8*, i8** %1, i64 4
store i8* %9, i8** %10
%11 = tail call dereferenceable_or_null(3) i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%12 = getelementptr inbounds i8*, i8** %1, i64 5
store i8* %11, i8** %12
%13 = tail call dereferenceable_or_null(3) i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%14 = getelementptr inbounds i8*, i8** %1, i64 6
store i8* %13, i8** %14
%15 = tail call dereferenceable_or_null(3) i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%16 = getelementptr inbounds i8*, i8** %1, i64 7
store i8* %15, i8** %16
%17 = tail call dereferenceable_or_null(3) i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%18 = getelementptr inbounds i8*, i8** %1, i64 8
store i8* %17, i8** %18
%19 = tail call dereferenceable_or_null(3) i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%20 = getelementptr inbounds i8*, i8** %1, i64 9
store i8* %19, i8** %20
%21 = tail call dereferenceable_or_null(3) i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%22 = getelementptr inbounds i8*, i8** %1, i64 10
store i8* %21, i8** %22
%23 = tail call dereferenceable_or_null(3) i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%24 = getelementptr inbounds i8*, i8** %1, i64 11
store i8* %23, i8** %24
%25 = tail call i8* @find_n(i8** %1, i32 12)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* %25)
%27 = load i32, i32* @EXIT_SUCCESS
ret i32 %27
}