#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__ countNumberOfChamps_test();
scalar_t__ createTable_test();
scalar_t__ divideCharEToCharEArray_test();
int /*<<< orphan*/ printf(char *);
scalar_t__ rearrangeLineRows_test();
int main(void) {
  printf("countNumberOfChamps_test() : \n");
  if (countNumberOfChamps_test() == 0) {
    printf("OK !\n");
  }
  printf("divideCharEToCharEArray_test() : \n");
  if (divideCharEToCharEArray_test() == 0) {
    printf("OK !\n");
    printf("Ligne créée, vérifier les données manuellement !\n");
  }
  printf("rearrangeLineRows_test() : \n");
  if (rearrangeLineRows_test() == 0) {
    printf("Ligne arrangée, vérifier les données manuellement !\n");
  }
  printf("createTable_test() : \n");
  if (createTable_test() == 0) {
    if (0) {
      printf("Table créée et organisée, vérifier les données manuellement !\n");
    } else {
      printf("#define TABLETOPRINT 0 -> table non-affichée.\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <countNumberOfChamps_test@plt>
cmp    $0x0,%rax
jne    1188 <main+0x38>
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <divideCharEToCharEArray_test@plt>
cmp    $0x0,%rax
jne    11bd <main+0x6d>
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <rearrangeLineRows_test@plt>
cmp    $0x0,%rax
jne    11e6 <main+0x96>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <createTable_test@plt>
cmp    $0x0,%rax
jne    120f <main+0xbf>
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xea8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <countNumberOfChamps_test@plt>
test   %rax,%rax
jne    1175 <main+0x25>
lea    0xf9d(%rip),%rdi
call   1030 <puts@plt>
lea    0xea2(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <divideCharEToCharEArray_test@plt>
test   %rax,%rax
jne    11a5 <main+0x55>
lea    0xf79(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xe94(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <rearrangeLineRows_test@plt>
test   %rax,%rax
jne    11c9 <main+0x79>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <createTable_test@plt>
test   %rax,%rax
jne    11ed <main+0x9d>
lea    0xe8a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"countNumberOfChamps_test() : \0A\00"
@.str.1 = [6 x i8] c"OK !\0A\00"
@.str.2 = [35 x i8] c"divideCharEToCharEArray_test() : \0A\00"
@.str.3 = [54 x i8] c"Ligne cr\C3\A9\C3\A9e, v\C3\A9rifier les donn\C3\A9es manuellement !\0A\00"
@.str.4 = [29 x i8] c"rearrangeLineRows_test() : \0A\00"
@.str.5 = [56 x i8] c"Ligne arrang\C3\A9e, v\C3\A9rifier les donn\C3\A9es manuellement !\0A\00"
@.str.6 = [23 x i8] c"createTable_test() : \0A\00"
@.str.7 = [48 x i8] c"#define TABLETOPRINT 0 -> table non-affich\C3\A9e.\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%3 = call i64 (...) @countNumberOfChamps_test()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %5, %0
%8 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%9 = call i64 (...) @divideCharEToCharEArray_test()
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
br label %14
14: ; preds = %11, %7
%15 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%16 = call i64 (...) @rearrangeLineRows_test()
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
br label %20
20: ; preds = %18, %14
%21 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%22 = call i64 (...) @createTable_test()
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
br label %26
26: ; preds = %24, %20
ret i32 0
}

LLVM IR (-O2):
@str = [30 x i8] c"countNumberOfChamps_test() : \00"
@str.8 = [34 x i8] c"divideCharEToCharEArray_test() : \00"
@str.9 = [28 x i8] c"rearrangeLineRows_test() : \00"
@str.10 = [22 x i8] c"createTable_test() : \00"
@str.11 = [47 x i8] c"#define TABLETOPRINT 0 -> table non-affich\C3\A9e.\00"
@str.12 = [55 x i8] c"Ligne arrang\C3\A9e, v\C3\A9rifier les donn\C3\A9es manuellement !\00"
@str.14 = [53 x i8] c"Ligne cr\C3\A9\C3\A9e, v\C3\A9rifier les donn\C3\A9es manuellement !\00"
@str.15 = [5 x i8] c"OK !\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%2 = tail call i64 (...) @countNumberOfChamps_test()
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.15, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.8, i64 0, i64 0))
%8 = tail call i64 (...) @divideCharEToCharEArray_test()
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.15, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.14, i64 0, i64 0))
br label %13
13: ; preds = %10, %6
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.9, i64 0, i64 0))
%15 = tail call i64 (...) @rearrangeLineRows_test()
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.12, i64 0, i64 0))
br label %19
19: ; preds = %17, %13
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.10, i64 0, i64 0))
%21 = tail call i64 (...) @createTable_test()
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.11, i64 0, i64 0))
br label %25
25: ; preds = %23, %19
ret i32 0
}