#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 rand();
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  int nombre_mystere = 0, nombre_pigeon = 0, nombre_choisi = 0, compteur = 0,
      bool_new_game = 1, niveau = 0, bool_mode_de_jeu = 0, MAX = 100;
  const int MIN = 1;
  srand(time(NULL));
  printf("\n=============================== Plus ou moins "
         "===============================\n");
  printf("Bienvenue etranger, bienvenue dans le jeu\n");
  printf("Ici tu devras mener un combat sans merci contre le hasard et la "
         "malchance\n");
  printf("L'impitoyable demon Hyea a decide pour te faire chier, de choisir un "
         "nombre !!\n");
  printf("Ton seul moyen de finir ce jeu pourri est de trouver ce nombre "
         "*MWAHAHAHAHAH*\n");
  printf("\nTout d'abord, choisis ton niveau de difficulté");
  printf("\n-Niveau 1 : 1 a 10 : tapette");
  printf("\n-Niveau 2 : 1 a 100 : moyen");
  printf("\n-Niveau 3 : 1 a 1000 : guerrier");
  printf("\n-Niveau 4 : 1 a 10000 : Crom\n");
  printf("Indique  ton choix par un chiffre allant de 1 à 4, etranger !  ");
  scanf("%d", &niveau);
  printf("\nIndique aussi ton mode de jeu :\n");
  printf("0 : Tu n'as pas d'amis car tout le monde te deteste\n");
  printf("1 : Tu as trouve un pigeon assez stupide pour jouer avec toi a un "
         "jeu super chiant\n");
  printf("Alors ?  ");
  scanf("%d", &bool_mode_de_jeu);
  if (bool_mode_de_jeu) {
    printf("Que le pigeon prenne ta place et indique le nombre mystere !  ");
    scanf("%d", &nombre_pigeon);
    while (bool_new_game) {
      do {
        printf("Quel est le nombre ? ");
        scanf("%d", &nombre_choisi);
        compteur++;
        if (nombre_choisi < 0 || nombre_choisi > MAX) {
          printf("Entre 0 et %d\n", MAX);
          nombre_choisi = 0;
        } else if (nombre_choisi < nombre_pigeon)
          printf("C'est plus !\n");
        else if (nombre_choisi > nombre_pigeon)
          printf("C'est moins !\n");
        else {
          printf("\nBravo, tu as trouve le nombre mystere en %d coups !\n",
                 compteur);
          switch (compteur) {
          case 1:
            printf("Classement : Coup de chance !");
            break;
          case 2:
            printf("Classement : Excellence !");
            break;
          case 3:
            printf("Classement : Whoa, t'es un pro, toi !");
            break;
          case 4:
            printf("Classement : Tres bon");
            break;
          case 5:
            printf("Classement : Bien");
            break;
          case 6:
            printf("Classement : Pas mal");
            break;
          case 7:
            printf("Classement : Bof");
            break;
          default:
            printf("Classement : Rien d'exceptionnel..");
          }
          printf(
              "\n\n\nUne autre partie, etranger ? (1 pour oui, 0 pour non) ");
          scanf("%d", &bool_new_game);
          compteur = 0;
        }
      } while (nombre_pigeon != nombre_choisi);
    }
  } else {
    switch (niveau) {
    case 1:
      MAX = 10;
      printf("\nJ'espere que tu te feras exploser la gueule, fillette !\n\n");
      break;
    case 2:
      MAX = 100;
      printf("\nEssaie de pas trop mourir, ça serait con\n\n");
      break;
    case 3:
      MAX = 1000;
      printf("\nQue le dieu de l'acier et de la baston guide tes mandales, "
             "etranger\n\n");
      break;
    case 4:
      MAX = 10000;
      printf("\nTATA YOYOOOOOO !!!!\n\n");
      break;
    }
    nombre_mystere = (rand() % (MAX - MIN + 1)) + MIN;
    while (bool_new_game) {
      do {
        printf("Quel est le nombre ? ");
        scanf("%d", &nombre_choisi);
        compteur++;
        if (nombre_choisi < 0 || nombre_choisi > MAX) {
          printf("Entre 0 et %d\n", MAX);
          nombre_choisi = 0;
        } else if (nombre_choisi < nombre_mystere)
          printf("C'est plus !\n");
        else if (nombre_choisi > nombre_mystere)
          printf("C'est moins !\n");
        else {
          printf("\nBravo, tu as trouve le nombre mystere en %d coups !\n",
                 compteur);
          switch (compteur) {
          case 1:
            printf("Classement : Coup de chance !");
            break;
          case 2:
            printf("Classement : Excellence !");
            break;
          case 3:
            printf("Classement : Whoa, t'es un pro, toi !");
            break;
          case 4:
            printf("Classement : Tres bon");
            break;
          case 5:
            printf("Classement : Bien");
            break;
          case 6:
            printf("Classement : Pas mal");
            break;
          case 7:
            printf("Classement : Bof");
            break;
          default:
            printf("Classement : Rien d'exceptionnel..");
          }
          printf(
              "\n\n\nUne autre partie, etranger ? (1 pour oui, 0 pour non) ");
          scanf("%d", &bool_new_game);
          compteur = 0;
        }
      } while (nombre_mystere != nombre_choisi);
      nombre_mystere = (rand() % (MAX - MIN + 1)) + MIN;
    }
  }
  printf("\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x64,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfde(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1000(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1044(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1060 <scanf@plt>
lea    0x1037(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1072(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffc(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   1060 <scanf@plt>
cmpl   $0x0,-0x2c(%rbp)
je     148d <main+0x33d>
lea    0x109a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd4(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
cmpl   $0x0,-0x24(%rbp)
je     1488 <main+0x338>
jmp    12de <main+0x18e>
lea    0x10ac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jl     131b <main+0x1cb>
mov    -0x1c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    1338 <main+0x1e8>
mov    -0x30(%rbp),%esi
lea    0x1082(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
jmp    1472 <main+0x322>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1357 <main+0x207>
lea    0x106b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    146d <main+0x31d>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    1376 <main+0x226>
lea    0x105a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1468 <main+0x318>
mov    -0x20(%rbp),%esi
lea    0x1053(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x6,%eax
ja     1435 <main+0x2e5>
mov    -0x40(%rbp),%rax
lea    0xc85(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1052(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1443 <main+0x2f3>
lea    0x105d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1443 <main+0x2f3>
lea    0x1064(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1443 <main+0x2f3>
lea    0x1077(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1443 <main+0x2f3>
lea    0x107a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1443 <main+0x2f3>
lea    0x1079(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1443 <main+0x2f3>
lea    0x107b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1443 <main+0x2f3>
lea    0x1079(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe42(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   1060 <scanf@plt>
movl   $0x0,-0x20(%rbp)
jmp    146d <main+0x31d>
jmp    1472 <main+0x322>
jmp    1477 <main+0x327>
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jne    12de <main+0x18e>
jmp    12cf <main+0x17f>
jmp    1709 <main+0x5b9>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x3,%eax
ja     1519 <main+0x3c9>
mov    -0x48(%rbp),%rax
lea    0xb53(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xa,-0x30(%rbp)
lea    0x104e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1519 <main+0x3c9>
movl   $0x64,-0x30(%rbp)
lea    0x106f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1519 <main+0x3c9>
movl   $0x3e8,-0x30(%rbp)
lea    0x1082(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1519 <main+0x3c9>
movl   $0x2710,-0x30(%rbp)
lea    0x10af(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <rand@plt>
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x14(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     1704 <main+0x5b4>
jmp    1541 <main+0x3f1>
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd44(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jl     157e <main+0x42e>
mov    -0x1c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    159b <main+0x44b>
mov    -0x30(%rbp),%esi
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
jmp    16d5 <main+0x585>
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15ba <main+0x46a>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16d0 <main+0x580>
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    15d9 <main+0x489>
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16cb <main+0x57b>
mov    -0x20(%rbp),%esi
lea    0xdf0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0x6,%eax
ja     1698 <main+0x548>
mov    -0x50(%rbp),%rax
lea    0xa06(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16a6 <main+0x556>
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16a6 <main+0x556>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16a6 <main+0x556>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16a6 <main+0x556>
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16a6 <main+0x556>
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16a6 <main+0x556>
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    16a6 <main+0x556>
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbdf(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   1060 <scanf@plt>
movl   $0x0,-0x20(%rbp)
jmp    16d0 <main+0x580>
jmp    16d5 <main+0x585>
jmp    16da <main+0x58a>
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jne    1541 <main+0x3f1>
mov    $0x0,%al
call   1070 <rand@plt>
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x14(%rbp)
jmp    1532 <main+0x3e2>
jmp    1709 <main+0x5b9>
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x0,0xc(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x1,0x8(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
lea    0x10d3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1116(%rip),%rdi
call   1030 <puts@plt>
lea    0x1134(%rip),%rdi
call   1030 <puts@plt>
lea    0x1172(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b5(%rip),%rdi
call   1030 <puts@plt>
lea    0xe19(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe3c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe4c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe5b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x11bf(%rip),%rdi
call   1030 <puts@plt>
lea    0xe62(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe95(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    0x11af(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c4(%rip),%rdi
call   1030 <puts@plt>
lea    0x11ec(%rip),%rdi
call   1030 <puts@plt>
lea    0xe60(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
cmpl   $0x0,0x10(%rsp)
je     13d6 <main+0x276>
lea    0xe44(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe29(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    0xe61(%rip),%r14
lea    0x4(%rsp),%rbp
lea    0xe6b(%rip),%r15
xor    %r12d,%r12d
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1070 <scanf@plt>
lea    0x1(%r12),%r13d
mov    0x4(%rsp),%eax
cmp    $0x65,%eax
jb     1320 <main+0x1c0>
mov    %r15,%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x4(%rsp)
mov    %r13d,%r12d
jmp    13a0 <main+0x240>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    0xc(%rsp),%eax
jge    1330 <main+0x1d0>
lea    0x1247(%rip),%rdi
jmp    1339 <main+0x1d9>
nop
jle    1343 <main+0x1e3>
lea    0x122d(%rip),%rdi
call   1030 <puts@plt>
mov    %r13d,%r12d
jmp    13a0 <main+0x240>
lea    0xdf5(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
cmp    $0x6,%r12d
ja     136f <main+0x20f>
movslq %r12d,%rax
lea    0x2a7d(%rip),%rcx
mov    (%rcx,%rax,8),%rdi
xor    %r12d,%r12d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
call   1070 <scanf@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0xc(%rsp),%eax
cmp    0x4(%rsp),%eax
jne    12d0 <main+0x170>
cmpl   $0x0,0x8(%rsp)
jne    12d0 <main+0x170>
lea    0x11a4(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x14(%rsp),%eax
add    $0xffffffff,%eax
mov    $0x64,%ebx
cmp    $0x3,%eax
ja     1406 <main+0x2a6>
cltq
lea    0x1194(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
lea    0x1196(%rip),%rcx
mov    (%rcx,%rax,4),%ebx
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <rand@plt>
lea    0xcba(%rip),%r15
xor    %r12d,%r12d
jmp    142e <main+0x2ce>
nopl   0x0(%rax)
xor    %eax,%eax
call   1080 <rand@plt>
cmpl   $0x0,0x8(%rsp)
je     13b9 <main+0x259>
cltd
idiv   %ebx
mov    %edx,%ebp
lea    0x1(%rbp),%r14d
jmp    1462 <main+0x302>
nopl   0x0(%rax)
lea    0xce9(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x4(%rsp)
mov    %r13d,%r12d
cmp    0x4(%rsp),%r14d
je     1420 <main+0x2c0>
lea    0xcb1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
lea    0x4(%rsp),%rsi
call   1070 <scanf@plt>
lea    0x1(%r12),%r13d
mov    0x4(%rsp),%eax
cmp    %ebx,%eax
ja     1440 <main+0x2e0>
cmp    %ebp,%eax
jle    14a0 <main+0x340>
cmp    %r14d,%eax
jle    14ae <main+0x34e>
lea    0x10cc(%rip),%rdi
jmp    14a7 <main+0x347>
nopl   0x0(%rax)
lea    0x10cd(%rip),%rdi
call   1030 <puts@plt>
jmp    1458 <main+0x2f8>
lea    0xc8a(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd5b(%rip),%rdi
cmp    $0x6,%r12d
ja     14da <main+0x37a>
movslq %r12d,%rax
lea    0x2912(%rip),%rcx
mov    (%rcx,%rax,8),%rdi
xor    %r12d,%r12d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd59(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
lea    0x8(%rsp),%rsi
call   1070 <scanf@plt>
cmp    0x4(%rsp),%r14d
jne    1462 <main+0x302>
jmp    1420 <main+0x2c0>

LLVM IR (-O0):
@.str = [80 x i8] c"\0A=============================== Plus ou moins ===============================\0A\00"
@.str.1 = [43 x i8] c"Bienvenue etranger, bienvenue dans le jeu\0A\00"
@.str.2 = [75 x i8] c"Ici tu devras mener un combat sans merci contre le hasard et la malchance\0A\00"
@.str.3 = [80 x i8] c"L'impitoyable demon Hyea a decide pour te faire chier, de choisir un nombre !!\0A\00"
@.str.4 = [79 x i8] c"Ton seul moyen de finir ce jeu pourri est de trouver ce nombre *MWAHAHAHAHAH*\0A\00"
@.str.5 = [49 x i8] c"\0ATout d'abord, choisis ton niveau de difficult\C3\A9\00"
@.str.6 = [30 x i8] c"\0A-Niveau 1 : 1 a 10 : tapette\00"
@.str.7 = [29 x i8] c"\0A-Niveau 2 : 1 a 100 : moyen\00"
@.str.8 = [33 x i8] c"\0A-Niveau 3 : 1 a 1000 : guerrier\00"
@.str.9 = [31 x i8] c"\0A-Niveau 4 : 1 a 10000 : Crom\0A\00"
@.str.10 = [65 x i8] c"Indique ton choix par un chiffre allant de 1 \C3\A0 4, etranger ! \00"
@.str.11 = [3 x i8] c"%d\00"
@.str.12 = [34 x i8] c"\0AIndique aussi ton mode de jeu :\0A\00"
@.str.13 = [53 x i8] c"0 : Tu n'as pas d'amis car tout le monde te deteste\0A\00"
@.str.14 = [84 x i8] c"1 : Tu as trouve un pigeon assez stupide pour jouer avec toi a un jeu super chiant\0A\00"
@.str.15 = [10 x i8] c"Alors ? \00"
@.str.16 = [63 x i8] c"Que le pigeon prenne ta place et indique le nombre mystere ! \00"
@.str.17 = [22 x i8] c"Quel est le nombre ? \00"
@.str.18 = [15 x i8] c"Entre 0 et %d\0A\00"
@.str.19 = [14 x i8] c"C'est plus !\0A\00"
@.str.20 = [15 x i8] c"C'est moins !\0A\00"
@.str.21 = [54 x i8] c"\0ABravo, tu as trouve le nombre mystere en %d coups !\0A\00"
@.str.22 = [30 x i8] c"Classement : Coup de chance !\00"
@.str.23 = [26 x i8] c"Classement : Excellence !\00"
@.str.24 = [38 x i8] c"Classement : Whoa, t'es un pro, toi !\00"
@.str.25 = [22 x i8] c"Classement : Tres bon\00"
@.str.26 = [18 x i8] c"Classement : Bien\00"
@.str.27 = [21 x i8] c"Classement : Pas mal\00"
@.str.28 = [17 x i8] c"Classement : Bof\00"
@.str.29 = [35 x i8] c"Classement : Rien d'exceptionnel..\00"
@.str.30 = [58 x i8] c"\0A\0A\0AUne autre partie, etranger ? (1 pour oui, 0 pour non) \00"
@.str.31 = [59 x i8] c"\0AJ'espere que tu te feras exploser la gueule, fillette !\0A\0A\00"
@.str.32 = [45 x i8] c"\0AEssaie de pas trop mourir, \C3\A7a serait con\0A\0A\00"
@.str.33 = [71 x i8] c"\0AQue le dieu de l'acier et de la baston guide tes mandales, etranger\0A\0A\00"
@.str.34 = [23 x i8] c"\0ATATA YOYOOOOOO !!!!\0A\0A\00"
@.str.35 = [3 x i8] c"\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 1, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 100, i32* %13
store i32 1, i32* %14
%15 = call i32 @time(i32* null)
%16 = call i32 @srand(i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.3, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.4, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %11)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.13, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.14, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %12)
%34 = load i32, i32* %12
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %101
36: ; preds = %2
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %7)
br label %39
39: ; preds = %99, %36
%40 = load i32, i32* %10
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %100
42: ; preds = %39
br label %43
43: ; preds = %95, %42
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
%45 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %8)
%46 = load i32, i32* %9
%47 = add nsw i32 %46, 1
store i32 %47, i32* %9
%48 = load i32, i32* %8
%49 = icmp slt i32 %48, 0
br i1 %49, label %54, label %50
50: ; preds = %43
%51 = load i32, i32* %8
%52 = load i32, i32* %13
%53 = icmp sgt i32 %51, %52
br i1 %53, label %54, label %57
54: ; preds = %50, %43
%55 = load i32, i32* %13
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i32 %55)
store i32 0, i32* %8
br label %94
57: ; preds = %50
%58 = load i32, i32* %8
%59 = load i32, i32* %7
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0))
br label %93
63: ; preds = %57
%64 = load i32, i32* %8
%65 = load i32, i32* %7
%66 = icmp sgt i32 %64, %65
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0))
br label %92
69: ; preds = %63
%70 = load i32, i32* %9
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.21, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %9
switch i32 %72, label %87 [
i32 1, label %73
i32 2, label %75
i32 3, label %77
i32 4, label %79
i32 5, label %81
i32 6, label %83
i32 7, label %85
]
73: ; preds = %69
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0))
br label %89
75: ; preds = %69
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0))
br label %89
77: ; preds = %69
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.24, i64 0, i64 0))
br label %89
79: ; preds = %69
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
br label %89
81: ; preds = %69
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.26, i64 0, i64 0))
br label %89
83: ; preds = %69
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.27, i64 0, i64 0))
br label %89
85: ; preds = %69
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.28, i64 0, i64 0))
br label %89
87: ; preds = %69
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.29, i64 0, i64 0))
br label %89
89: ; preds = %87, %85, %83, %81, %79, %77, %75, %73
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.30, i64 0, i64 0))
%91 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %10)
store i32 0, i32* %9
br label %92
92: ; preds = %89, %67
br label %93
93: ; preds = %92, %61
br label %94
94: ; preds = %93, %54
br label %95
95: ; preds = %94
%96 = load i32, i32* %7
%97 = load i32, i32* %8
%98 = icmp ne i32 %96, %97
br i1 %98, label %43, label %99
99: ; preds = %95
br label %39
100: ; preds = %39
br label %186
101: ; preds = %2
%102 = load i32, i32* %11
switch i32 %102, label %111 [
i32 1, label %103
i32 2, label %105
i32 3, label %107
i32 4, label %109
]
103: ; preds = %101
store i32 10, i32* %13
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.31, i64 0, i64 0))
br label %111
105: ; preds = %101
store i32 100, i32* %13
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.32, i64 0, i64 0))
br label %111
107: ; preds = %101
store i32 1000, i32* %13
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.33, i64 0, i64 0))
br label %111
109: ; preds = %101
store i32 10000, i32* %13
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.34, i64 0, i64 0))
br label %111
111: ; preds = %101, %109, %107, %105, %103
%112 = call i32 (...) @rand()
%113 = load i32, i32* %13
%114 = sub nsw i32 %113, 1
%115 = add nsw i32 %114, 1
%116 = srem i32 %112, %115
%117 = add nsw i32 %116, 1
store i32 %117, i32* %6
br label %118
118: ; preds = %178, %111
%119 = load i32, i32* %10
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %185
121: ; preds = %118
br label %122
122: ; preds = %174, %121
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
%124 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %8)
%125 = load i32, i32* %9
%126 = add nsw i32 %125, 1
store i32 %126, i32* %9
%127 = load i32, i32* %8
%128 = icmp slt i32 %127, 0
br i1 %128, label %133, label %129
129: ; preds = %122
%130 = load i32, i32* %8
%131 = load i32, i32* %13
%132 = icmp sgt i32 %130, %131
br i1 %132, label %133, label %136
133: ; preds = %129, %122
%134 = load i32, i32* %13
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i32 %134)
store i32 0, i32* %8
br label %173
136: ; preds = %129
%137 = load i32, i32* %8
%138 = load i32, i32* %6
%139 = icmp slt i32 %137, %138
br i1 %139, label %140, label %142
140: ; preds = %136
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0))
br label %172
142: ; preds = %136
%143 = load i32, i32* %8
%144 = load i32, i32* %6
%145 = icmp sgt i32 %143, %144
br i1 %145, label %146, label %148
146: ; preds = %142
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0))
br label %171
148: ; preds = %142
%149 = load i32, i32* %9
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.21, i64 0, i64 0), i32 %149)
%151 = load i32, i32* %9
switch i32 %151, label %166 [
i32 1, label %152
i32 2, label %154
i32 3, label %156
i32 4, label %158
i32 5, label %160
i32 6, label %162
i32 7, label %164
]
152: ; preds = %148
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0))
br label %168
154: ; preds = %148
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0))
br label %168
156: ; preds = %148
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.24, i64 0, i64 0))
br label %168
158: ; preds = %148
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
br label %168
160: ; preds = %148
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.26, i64 0, i64 0))
br label %168
162: ; preds = %148
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.27, i64 0, i64 0))
br label %168
164: ; preds = %148
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.28, i64 0, i64 0))
br label %168
166: ; preds = %148
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.29, i64 0, i64 0))
br label %168
168: ; preds = %166, %164, %162, %160, %158, %156, %154, %152
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.30, i64 0, i64 0))
%170 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %10)
store i32 0, i32* %9
br label %171
171: ; preds = %168, %146
br label %172
172: ; preds = %171, %140
br label %173
173: ; preds = %172, %133
br label %174
174: ; preds = %173
%175 = load i32, i32* %6
%176 = load i32, i32* %8
%177 = icmp ne i32 %175, %176
br i1 %177, label %122, label %178
178: ; preds = %174
%179 = call i32 (...) @rand()
%180 = load i32, i32* %13
%181 = sub nsw i32 %180, 1
%182 = add nsw i32 %181, 1
%183 = srem i32 %179, %182
%184 = add nsw i32 %183, 1
store i32 %184, i32* %6
br label %118
185: ; preds = %118
br label %186
186: ; preds = %185, %100
%187 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.5 = [49 x i8] c"\0ATout d'abord, choisis ton niveau de difficult\C3\A9\00"
@.str.6 = [30 x i8] c"\0A-Niveau 1 : 1 a 10 : tapette\00"
@.str.7 = [29 x i8] c"\0A-Niveau 2 : 1 a 100 : moyen\00"
@.str.8 = [33 x i8] c"\0A-Niveau 3 : 1 a 1000 : guerrier\00"
@.str.10 = [65 x i8] c"Indique ton choix par un chiffre allant de 1 \C3\A0 4, etranger ! \00"
@.str.11 = [3 x i8] c"%d\00"
@.str.15 = [10 x i8] c"Alors ? \00"
@.str.16 = [63 x i8] c"Que le pigeon prenne ta place et indique le nombre mystere ! \00"
@.str.17 = [22 x i8] c"Quel est le nombre ? \00"
@.str.18 = [15 x i8] c"Entre 0 et %d\0A\00"
@.str.21 = [54 x i8] c"\0ABravo, tu as trouve le nombre mystere en %d coups !\0A\00"
@.str.22 = [30 x i8] c"Classement : Coup de chance !\00"
@.str.23 = [26 x i8] c"Classement : Excellence !\00"
@.str.24 = [38 x i8] c"Classement : Whoa, t'es un pro, toi !\00"
@.str.25 = [22 x i8] c"Classement : Tres bon\00"
@.str.26 = [18 x i8] c"Classement : Bien\00"
@.str.27 = [21 x i8] c"Classement : Pas mal\00"
@.str.28 = [17 x i8] c"Classement : Bof\00"
@.str.29 = [35 x i8] c"Classement : Rien d'exceptionnel..\00"
@.str.30 = [58 x i8] c"\0A\0A\0AUne autre partie, etranger ? (1 pour oui, 0 pour non) \00"
@str = [79 x i8] c"\0A=============================== Plus ou moins ===============================\00"
@str.36 = [42 x i8] c"Bienvenue etranger, bienvenue dans le jeu\00"
@str.37 = [74 x i8] c"Ici tu devras mener un combat sans merci contre le hasard et la malchance\00"
@str.38 = [79 x i8] c"L'impitoyable demon Hyea a decide pour te faire chier, de choisir un nombre !!\00"
@str.39 = [78 x i8] c"Ton seul moyen de finir ce jeu pourri est de trouver ce nombre *MWAHAHAHAHAH*\00"
@str.40 = [30 x i8] c"\0A-Niveau 4 : 1 a 10000 : Crom\00"
@str.41 = [33 x i8] c"\0AIndique aussi ton mode de jeu :\00"
@str.42 = [52 x i8] c"0 : Tu n'as pas d'amis car tout le monde te deteste\00"
@str.43 = [83 x i8] c"1 : Tu as trouve un pigeon assez stupide pour jouer avec toi a un jeu super chiant\00"
@str.44 = [22 x i8] c"\0ATATA YOYOOOOOO !!!!\0A\00"
@str.45 = [2 x i8] c"\0A\00"
@str.48 = [70 x i8] c"\0AQue le dieu de l'acier et de la baston guide tes mandales, etranger\0A\00"
@str.49 = [44 x i8] c"\0AEssaie de pas trop mourir, \C3\A7a serait con\0A\00"
@str.50 = [58 x i8] c"\0AJ'espere que tu te feras exploser la gueule, fillette !\0A\00"
@str.51 = [14 x i8] c"C'est moins !\00"
@str.52 = [13 x i8] c"C'est plus !\00"
@reltable.main = [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([58 x i8]* @str.50 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @str.49 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([70 x i8]* @str.48 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @str.44 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32)]
@switch.table.main.54 = [4 x i32] [i32 10, i32 100, i32 1000, i32 10000]
@switch.table.main.55 = [7 x i8*] [i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.28, i64 0, i64 0)]
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%9 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%10 = bitcast i32* %5 to i8*
store i32 1, i32* %5
%11 = bitcast i32* %6 to i8*
store i32 0, i32* %6
%12 = bitcast i32* %7 to i8*
store i32 0, i32* %7
%13 = tail call i32 @time(i32* null)
%14 = tail call i32 @srand(i32 %13)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.36, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.37, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.38, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.39, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.40, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %6)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.41, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.42, i64 0, i64 0))
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.43, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %7)
%32 = load i32, i32* %7
%33 = icmp eq i32 %32, 0
br i1 %33, label %75, label %34
34: ; preds = %2
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0))
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %3)
br label %37
37: ; preds = %34, %67
%38 = phi i32 [ %68, %67 ], [ 0, %34 ]
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %4)
%41 = add nsw i32 %38, 1
%42 = load i32, i32* %4
%43 = icmp ugt i32 %42, 100
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i32 100)
store i32 0, i32* %4
br label %67
46: ; preds = %37
%47 = load i32, i32* %3
%48 = icmp slt i32 %42, %47
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.52, i64 0, i64 0))
br label %67
51: ; preds = %46
%52 = icmp sgt i32 %42, %47
br i1 %52, label %53, label %55
53: ; preds = %51
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.51, i64 0, i64 0))
br label %67
55: ; preds = %51
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.21, i64 0, i64 0), i32 %41)
%57 = icmp ult i32 %38, 7
br i1 %57, label %58, label %62
58: ; preds = %55
%59 = sext i32 %38 to i64
%60 = getelementptr inbounds [7 x i8*], [7 x i8*]* @switch.table.main.55, i64 0, i64 %59
%61 = load i8*, i8** %60
br label %62
62: ; preds = %55, %58
%63 = phi i8* [ %61, %58 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.29, i64 0, i64 0), %55 ]
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %63)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.30, i64 0, i64 0))
%66 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %5)
br label %67
67: ; preds = %44, %53, %62, %49
%68 = phi i32 [ %41, %44 ], [ %41, %49 ], [ %41, %53 ], [ 0, %62 ]
%69 = load i32, i32* %3
%70 = load i32, i32* %4
%71 = icmp ne i32 %69, %70
%72 = load i32, i32* %5
%73 = icmp ne i32 %72, 0
%74 = select i1 %71, i1 true, i1 %73
br i1 %74, label %37, label %132
75: ; preds = %2
%76 = load i32, i32* %6
%77 = add i32 %76, -1
%78 = icmp ult i32 %77, 4
br i1 %78, label %79, label %87
79: ; preds = %75
%80 = sext i32 %77 to i64
%81 = shl i64 %80, 2
%82 = call i8* @llvm.load.relative.i64(i8* bitcast ([4 x i32]* @reltable.main to i8*), i64 %81)
%83 = sext i32 %77 to i64
%84 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.main.54, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = call i32 @puts(i8* dereferenceable(1) %82)
br label %87
87: ; preds = %75, %79
%88 = phi i32 [ 100, %75 ], [ %85, %79 ]
%89 = call i32 (...) @rand()
br label %90
90: ; preds = %87, %128
%91 = phi i32 [ %129, %128 ], [ %89, %87 ]
%92 = phi i32 [ %125, %128 ], [ 0, %87 ]
%93 = srem i32 %91, %88
%94 = add nsw i32 %93, 1
br label %95
95: ; preds = %90, %124
%96 = phi i32 [ %125, %124 ], [ %92, %90 ]
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
%98 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %4)
%99 = add nsw i32 %96, 1
%100 = load i32, i32* %4
%101 = icmp ugt i32 %100, %88
br i1 %101, label %102, label %104
102: ; preds = %95
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i32 %88)
store i32 0, i32* %4
br label %124
104: ; preds = %95
%105 = icmp sgt i32 %100, %93
br i1 %105, label %108, label %106
106: ; preds = %104
%107 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.52, i64 0, i64 0))
br label %124
108: ; preds = %104
%109 = icmp sgt i32 %100, %94
br i1 %109, label %110, label %112
110: ; preds = %108
%111 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.51, i64 0, i64 0))
br label %124
112: ; preds = %108
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.21, i64 0, i64 0), i32 %99)
%114 = icmp ult i32 %96, 7
br i1 %114, label %115, label %119
115: ; preds = %112
%116 = sext i32 %96 to i64
%117 = getelementptr inbounds [7 x i8*], [7 x i8*]* @switch.table.main.55, i64 0, i64 %116
%118 = load i8*, i8** %117
br label %119
119: ; preds = %112, %115
%120 = phi i8* [ %118, %115 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.29, i64 0, i64 0), %112 ]
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %120)
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.30, i64 0, i64 0))
%123 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %5)
br label %124
124: ; preds = %102, %110, %119, %106
%125 = phi i32 [ %99, %102 ], [ %99, %106 ], [ %99, %110 ], [ 0, %119 ]
%126 = load i32, i32* %4
%127 = icmp eq i32 %94, %126
br i1 %127, label %128, label %95
128: ; preds = %124
%129 = call i32 (...) @rand()
%130 = load i32, i32* %5
%131 = icmp eq i32 %130, 0
br i1 %131, label %132, label %90
132: ; preds = %67, %128
%133 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.45, i64 0, i64 0))
ret i32 0
}