#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ genDictionnary(int /*<<< orphan*/ *, char ***, int *,
                                  char **, int);
int /*<<< orphan*/ *openFile();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int nbNumber = 5;
  int nbLetters = 5;
  char letters[26] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
                      'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
                      'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
  char numbers[10] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
  FILE *f = openFile();
  char *dictionnary[1024] = {""};
  int index = 0;
  char *number[10] = {"?u"};
  printf("%s", dictionnary[0]);
  for (int i = 0; i < 1024; i++) {
    dictionnary[i] = "";
  }
  genDictionnary(f, &dictionnary, &index, number, 10);
  printf("dictionnary generated in file pass.txt\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20c0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
mov    0xe99(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe96(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe93(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe90(%rip),%ax
mov    %ax,-0x18(%rbp)
mov    0xe87(%rip),%rax
mov    %rax,-0x3a(%rbp)
mov    0xe84(%rip),%ax
mov    %ax,-0x32(%rbp)
mov    $0x0,%al
call   1030 <openFile@plt>
mov    %rax,-0x48(%rbp)
lea    -0x2050(%rbp),%rdi
xor    %esi,%esi
mov    $0x2000,%edx
call   1050 <memset@plt>
lea    0xe8a(%rip),%rax
mov    %rax,-0x2050(%rbp)
movl   $0x0,-0x2054(%rbp)
lea    -0x20b0(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
lea    0xe32(%rip),%rax
mov    %rax,-0x20b0(%rbp)
mov    -0x2050(%rbp),%rsi
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x20b4(%rbp)
cmpl   $0x400,-0x20b4(%rbp)
jge    1252 <main+0x112>
movslq -0x20b4(%rbp),%rax
lea    0xe1b(%rip),%rcx
mov    %rcx,-0x2050(%rbp,%rax,8)
ff
mov    -0x20b4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20b4(%rbp)
jmp    1218 <main+0xd8>
mov    -0x48(%rbp),%rdi
lea    -0x2050(%rbp),%rsi
lea    -0x20b0(%rbp),%rcx
lea    -0x2054(%rbp),%rdx
mov    $0xa,%r8d
call   1060 <genDictionnary@plt>
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x2068,%rsp
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <openFile@plt>
mov    %rax,%r14
lea    0x60(%rsp),%rdi
mov    $0x2000,%edx
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xebb(%rip),%rax
mov    %rax,0x60(%rsp)
movl   $0x0,0xc(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
lea    0xe62(%rip),%rcx
mov    %rcx,0x10(%rsp)
movq   %rax,%xmm0
pshufd $0x44,%xmm0,%xmm0
nopl   (%rax)
movdqa %xmm0,0x60(%rsp,%rbx,8)
movdqa %xmm0,0x70(%rsp,%rbx,8)
movdqa %xmm0,0x80(%rsp,%rbx,8)
movdqa %xmm0,0x90(%rsp,%rbx,8)
movdqa %xmm0,0xa0(%rsp,%rbx,8)
movdqa %xmm0,0xb0(%rsp,%rbx,8)
movdqa %xmm0,0xc0(%rsp,%rbx,8)
movdqa %xmm0,0xd0(%rsp,%rbx,8)
movdqa %xmm0,0xe0(%rsp,%rbx,8)
movdqa %xmm0,0xf0(%rsp,%rbx,8)
movdqa %xmm0,0x100(%rsp,%rbx,8)
movdqa %xmm0,0x110(%rsp,%rbx,8)
movdqa %xmm0,0x120(%rsp,%rbx,8)
movdqa %xmm0,0x130(%rsp,%rbx,8)
movdqa %xmm0,0x140(%rsp,%rbx,8)
movdqa %xmm0,0x150(%rsp,%rbx,8)
add    $0x20,%rbx
cmp    $0x400,%rbx
jne    11b0 <main+0x70>
lea    0x60(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x10(%rsp),%rcx
mov    %r14,%rdi
mov    $0xa,%r8d
call   1060 <genDictionnary@plt>
lea    0xd94(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x2068,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.letters = [26 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
@__const.main.numbers = [10 x i8] c"0123456789"
@.str = [1 x i8] zeroinitializer
@.str.1 = [3 x i8] c"?u\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [40 x i8] c"dictionnary generated in file pass.txt\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [26 x i8]
%5 = alloca [10 x i8]
%6 = alloca i32*
%7 = alloca [1024 x i8*]
%8 = alloca i32
%9 = alloca [10 x i8*]
%10 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %2
store i32 5, i32* %3
%11 = bitcast [26 x i8]* %4 to i8*
%12 = bitcast [10 x i8]* %5 to i8*
%13 = call i32* (...) @openFile()
store i32* %13, i32** %6
%14 = bitcast [1024 x i8*]* %7 to i8*
%15 = bitcast i8* %14 to <{ i8*, [1023 x i8*] }>*
%16 = getelementptr inbounds <{ i8*, [1023 x i8*] }>, <{ i8*, [1023 x i8*] }>* %15, i32 0, i32 0
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8** %16
store i32 0, i32* %8
%17 = bitcast [10 x i8*]* %9 to i8*
%18 = bitcast i8* %17 to <{ i8*, [9 x i8*] }>*
%19 = getelementptr inbounds <{ i8*, [9 x i8*] }>, <{ i8*, [9 x i8*] }>* %18, i32 0, i32 0
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8** %19
%20 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %7, i64 0, i64 0
%21 = load i8*, i8** %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %21)
store i32 0, i32* %10
br label %23
23: ; preds = %30, %0
%24 = load i32, i32* %10
%25 = icmp slt i32 %24, 1024
br i1 %25, label %26, label %33
26: ; preds = %23
%27 = load i32, i32* %10
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %7, i64 0, i64 %28
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %29
br label %30
30: ; preds = %26
%31 = load i32, i32* %10
%32 = add nsw i32 %31, 1
store i32 %32, i32* %10
br label %23
33: ; preds = %23
%34 = load i32*, i32** %6
%35 = bitcast [1024 x i8*]* %7 to i8***
%36 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 0
%37 = call i32 @genDictionnary(i32* %34, i8*** %35, i32* %8, i8** %36, i32 10)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [3 x i8] c"?u\00"
@str = [39 x i8] c"dictionnary generated in file pass.txt\00"
define i32 @main() {
%1 = alloca [1024 x i8*]
%2 = alloca i32
%3 = alloca [10 x i8*]
%4 = tail call i32* (...) @openFile()
%5 = bitcast [1024 x i8*]* %1 to i8*
%6 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 0
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %6
%7 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%8 = bitcast [10 x i8*]* %3 to i8*
%9 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 0
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %9
br label %10
10: ; preds = %10, %0
%11 = phi i64 [ 0, %0 ], [ %51, %10 ]
%12 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 %11
%13 = bitcast i8** %12 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %13
%14 = getelementptr inbounds i8*, i8** %12, i64 2
%15 = bitcast i8** %14 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %15
%16 = or i64 %11, 4
%17 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 %16
%18 = bitcast i8** %17 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %18
%19 = getelementptr inbounds i8*, i8** %17, i64 2
%20 = bitcast i8** %19 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %20
%21 = or i64 %11, 8
%22 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 %21
%23 = bitcast i8** %22 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %23
%24 = getelementptr inbounds i8*, i8** %22, i64 2
%25 = bitcast i8** %24 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %25
%26 = or i64 %11, 12
%27 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 %26
%28 = bitcast i8** %27 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %28
%29 = getelementptr inbounds i8*, i8** %27, i64 2
%30 = bitcast i8** %29 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %30
%31 = or i64 %11, 16
%32 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 %31
%33 = bitcast i8** %32 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %33
%34 = getelementptr inbounds i8*, i8** %32, i64 2
%35 = bitcast i8** %34 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %35
%36 = or i64 %11, 20
%37 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 %36
%38 = bitcast i8** %37 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %38
%39 = getelementptr inbounds i8*, i8** %37, i64 2
%40 = bitcast i8** %39 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %40
%41 = or i64 %11, 24
%42 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 %41
%43 = bitcast i8** %42 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %43
%44 = getelementptr inbounds i8*, i8** %42, i64 2
%45 = bitcast i8** %44 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %45
%46 = or i64 %11, 28
%47 = getelementptr inbounds [1024 x i8*], [1024 x i8*]* %1, i64 0, i64 %46
%48 = bitcast i8** %47 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %48
%49 = getelementptr inbounds i8*, i8** %47, i64 2
%50 = bitcast i8** %49 to <2 x i8*>*
store <2 x i8*> <i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)>, <2 x i8*>* %50
%51 = add nuw nsw i64 %11, 32
%52 = icmp eq i64 %51, 1024
br i1 %52, label %53, label %10
53: ; preds = %10
%54 = bitcast [1024 x i8*]* %1 to i8***
%55 = call i32 @genDictionnary(i32* %4, i8*** %54, i32* %2, i8** %9, i32 10)
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
ret i32 0
}