#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*/ printf(char *);
int secure_INTMinMax(int, int);
int menu() {
  printf("        ***********************************\n");
  printf("        *        Solveur genetique        *\n");
  printf("        *   Auteurs:                      *\n");
  printf("        *     LACAVE Valentin             *\n");
  printf("        *     HURIER Mederic              *\n");
  printf("        *     GULDNER Geoffrey            *\n");
  printf("        *     SOIHILI MOUCHTALI           *\n");
  printf("        ***********************************\n");
  printf("\n");
  printf("MENU:\n");
  printf("-> 1) Rentrer votre propre graphe et vos mesures\n");
  printf("-> 2) Utiliser notre graphe de test et nos mesures\n");
  printf("-> 3) Quitter\n");
  printf("Votre choix: ");
  return secure_INTMinMax(1, 3);
}


x86 assembly (clang, -O0):
<menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <printf@plt>
lea    0xf59(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9b(%rip),%rdi
call   1030 <printf@plt>
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa4(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfed(%rip),%rdi
call   1030 <printf@plt>
lea    0xff0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
mov    $0x3,%esi
call   1040 <secure_INTMinMax@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu>:
push   %rbx
lea    0xfce(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xeb7(%rip),%rdi
call   1040 <puts@plt>
lea    0xed7(%rip),%rdi
call   1040 <puts@plt>
lea    0xef7(%rip),%rdi
call   1040 <puts@plt>
lea    0xf17(%rip),%rdi
call   1040 <puts@plt>
lea    0xf37(%rip),%rdi
call   1040 <puts@plt>
lea    0xf57(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf91(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8b(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd7(%rip),%rdi
call   1040 <puts@plt>
lea    0xe1f(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
mov    $0x3,%esi
pop    %rbx
jmp    1060 <secure_INTMinMax@plt>

LLVM IR (-O0):
@.str = [45 x i8] c" ***********************************\0A\00"
@.str.1 = [45 x i8] c" * Solveur genetique *\0A\00"
@.str.2 = [45 x i8] c" * Auteurs: *\0A\00"
@.str.3 = [45 x i8] c" * LACAVE Valentin *\0A\00"
@.str.4 = [45 x i8] c" * HURIER Mederic *\0A\00"
@.str.5 = [45 x i8] c" * GULDNER Geoffrey *\0A\00"
@.str.6 = [45 x i8] c" * SOIHILI MOUCHTALI *\0A\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [7 x i8] c"MENU:\0A\00"
@.str.9 = [50 x i8] c"-> 1) Rentrer votre propre graphe et vos mesures\0A\00"
@.str.10 = [52 x i8] c"-> 2) Utiliser notre graphe de test et nos mesures\0A\00"
@.str.11 = [15 x i8] c"-> 3) Quitter\0A\00"
@.str.12 = [14 x i8] c"Votre choix: \00"
define i32 @menu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @secure_INTMinMax(i32 1, i32 3)
ret i32 %15
}

LLVM IR (-O2):
@.str.12 = [14 x i8] c"Votre choix: \00"
@str.13 = [44 x i8] c" * Solveur genetique *\00"
@str.14 = [44 x i8] c" * Auteurs: *\00"
@str.15 = [44 x i8] c" * LACAVE Valentin *\00"
@str.16 = [44 x i8] c" * HURIER Mederic *\00"
@str.17 = [44 x i8] c" * GULDNER Geoffrey *\00"
@str.18 = [44 x i8] c" * SOIHILI MOUCHTALI *\00"
@str.19 = [44 x i8] c" ***********************************\00"
@str.20 = [6 x i8] c"MENU:\00"
@str.21 = [49 x i8] c"-> 1) Rentrer votre propre graphe et vos mesures\00"
@str.22 = [51 x i8] c"-> 2) Utiliser notre graphe de test et nos mesures\00"
@str.23 = [14 x i8] c"-> 3) Quitter\00"
define i32 @menu() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.19, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.23, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%15 = tail call i32 @secure_INTMinMax(i32 1, i32 3)
ret i32 %15
}