#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__ copierCharE_test();
scalar_t__ getLine_test(char *);
int /*<<< orphan*/ printf(char *);
scalar_t__ removeHeadAndTailChar_test();
int main(void) {
  printf("copierCharE_test() : \n");
  if (copierCharE_test() == 0) {
    printf("OK !\n");
  }
  printf("getLine_test(\"Donnees/repas.table\") : \n");
  if (getLine_test("Donnees/repas.table") == 0) {
    printf("Fichier lu, vérifier les données manuellement !\n");
  }
  printf("removeHeadAndTailChar_test() : \n");
  if (removeHeadAndTailChar_test() == 0) {
    printf("OK !\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <copierCharE_test@plt>
cmp    $0x0,%rax
jne    1178 <main+0x38>
lea    0xea4(%rip),%rdi
call   1050 <printf@plt>
lea    0xe9e(%rip),%rdi
call   1050 <printf@plt>
lea    0xeba(%rip),%rdi
call   1040 <getLine_test@plt>
cmp    $0x0,%rax
jne    11a6 <main+0x66>
lea    0xeb8(%rip),%rdi
call   1050 <printf@plt>
lea    0xedf(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <removeHeadAndTailChar_test@plt>
cmp    $0x0,%rax
jne    11cf <main+0x8f>
lea    0xe4d(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xecc(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <copierCharE_test@plt>
test   %rax,%rax
jne    1165 <main+0x25>
lea    0xf43(%rip),%rdi
call   1030 <puts@plt>
lea    0xebe(%rip),%rdi
call   1030 <puts@plt>
lea    0xe88(%rip),%rdi
call   1050 <getLine_test@plt>
test   %rax,%rax
jne    118e <main+0x4e>
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <removeHeadAndTailChar_test@plt>
test   %rax,%rax
jne    11b2 <main+0x72>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"copierCharE_test() : \0A\00"
@.str.1 = [6 x i8] c"OK !\0A\00"
@.str.2 = [40 x i8] c"getLine_test(\22Donnees/repas.table\22) : \0A\00"
@.str.3 = [20 x i8] c"Donnees/repas.table\00"
@.str.4 = [51 x i8] c"Fichier lu, v\C3\A9rifier les donn\C3\A9es manuellement !\0A\00"
@.str.5 = [33 x i8] c"removeHeadAndTailChar_test() : \0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%3 = call i64 (...) @copierCharE_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 ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%9 = call i64 @getLine_test(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %7
%12 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
br label %13
13: ; preds = %11, %7
%14 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%15 = call i64 (...) @removeHeadAndTailChar_test()
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %13
ret i32 0
}

LLVM IR (-O2):
@.str.3 = [20 x i8] c"Donnees/repas.table\00"
@str = [22 x i8] c"copierCharE_test() : \00"
@str.6 = [39 x i8] c"getLine_test(\22Donnees/repas.table\22) : \00"
@str.7 = [32 x i8] c"removeHeadAndTailChar_test() : \00"
@str.9 = [50 x i8] c"Fichier lu, v\C3\A9rifier les donn\C3\A9es manuellement !\00"
@str.10 = [5 x i8] c"OK !\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%2 = tail call i64 (...) @copierCharE_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.10, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.6, i64 0, i64 0))
%8 = tail call i64 @getLine_test(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.9, i64 0, i64 0))
br label %12
12: ; preds = %10, %6
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.7, i64 0, i64 0))
%14 = tail call i64 (...) @removeHeadAndTailChar_test()
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.10, i64 0, i64 0))
br label %18
18: ; preds = %16, %12
ret i32 0
}