#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 a, b, c, d, e, e1, e2, e3, e4, e5, count, n, i, bet;
  srand(time(NULL));
  i = 1;
  do {
    printf("Quanti numeri vuoi giocare(min 3, Max 5): ");
    scanf("%d", &n);
  } while (n < 3 || n > 5);
  switch (n) {
  case 5:
    do {
      printf("Inserisci il %d° numero: ", i);
      scanf("%d", &a);
    } while (a < 1 || a > 90);
    i++;
  case 4:
    do {
      printf("Inserisci il %d° numero: ", i);
      scanf("%d", &b);
    } while (b < 1 || b > 90 || a == b);
    i++;
  case 3:
    do {
      printf("Inserisci il %d° numero: ", i);
      scanf("%d", &c);
    } while (c < 1 || c > 90 || c == b || c == a);
    i++;
    do {
      printf("Inserisci il %d° numero: ", i);
      scanf("%d", &d);
    } while (d < 1 || d > 90 || d == c || d == b || d == a);
    i++;
    do {
      printf("Inserisci il %d° numero: ", i);
      scanf("%d", &e);
    } while (e < 1 || e > 90 || e == d || e == c || e == b || e == a);
  }
  printf("Hai giocato i seguenti numeri: ");
  if (n == 5)
    printf("%d, %d, %d, %d, %d.\n", a, b, c, d, e);
  else if (n == 4)
    printf("%d, %d, %d, %d.\n", b, c, d, e);
  else
    printf("%d, %d, %d.\n", c, d, e);
  do {
    printf("Quanto vuoi puntare? ");
    scanf("%d", &bet);
  } while (bet <= 0);
  e1 = rand() % 90 + 1;
  do
    e2 = rand() % 90 + 1;
  while (e2 == e1);
  do
    e3 = rand() % 90 + 1;
  while (e3 == e1 || e3 == e2);
  do
    e4 = rand() % 90 + 1;
  while (e4 == e3 || e4 == e2 || e4 == e1);
  do
    e5 = rand() % 90 + 1;
  while (e5 == e4 || e5 == e3 || e5 == e2 || e5 == e1);
  printf("Sono stati estratti i seguenti numeri: %d, %d, %d, %d, %d.\n", e1, e2,
         e3, e4, e5);
  if (a == e1 || a == e2 || a == e3 || a == e4 || a == e5)
    count++;
  if (b == e1 || b == e2 || b == e3 || b == e4 || b == e5)
    count++;
  if (c == e1 || c == e2 || c == e3 || c == e4 || c == e5)
    count++;
  if (d == e1 || d == e2 || d == e3 || d == e4 || d == e5)
    count++;
  if (e == e1 || e == e2 || e == e3 || e == e4 || e == e5)
    count++;
  switch (count) {
  case 5:
    bet = bet * 1000000;
    printf("Congratulazioni, hai fatto cinquina. Hai vinto %d€.", bet);
    break;
  case 4:
    bet = bet * 10000;
    printf("Congratulazioni, hai fatto quaterna. Hai vinto %d€.", bet);
    break;
  case 3:
    bet = bet * 100;
    printf("Congratulazioni, hai fatto terno. Hai vinto %d€.", bet);
    break;
  case 2:
    bet = bet * 10;
    printf("Congratulazioni, hai fatto ambo. Hai vinto %d€.", bet);
    break;
  default:
    printf(
        "Mi dispiace, hai perso. Ritenta e sarai più fortunato(In realtà avrai "
        "le stesse probabilità di prima, ma noi vogliamo i tuoi soldi).");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
movl   $0x1,-0x38(%rbp)
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    -0x34(%rbp),%rsi
call   1060 <scanf@plt>
mov    $0x1,%al
cmpl   $0x3,-0x34(%rbp)
mov    %al,-0x3d(%rbp)
jl     11ad <main+0x5d>
cmpl   $0x5,-0x34(%rbp)
setg   %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
test   $0x1,%al
jne    1176 <main+0x26>
mov    -0x34(%rbp),%eax
mov    %eax,-0x44(%rbp)
sub    $0x3,%eax
je     12a5 <main+0x155>
jmp    11cc <main+0x7c>
mov    -0x44(%rbp),%eax
sub    $0x4,%eax
je     1241 <main+0xf1>
jmp    11dd <main+0x8d>
mov    -0x44(%rbp),%eax
sub    $0x5,%eax
jne    1429 <main+0x2d9>
jmp    11ee <main+0x9e>
jmp    11f3 <main+0xa3>
mov    -0x38(%rbp),%esi
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe30(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
mov    $0x1,%al
cmpl   $0x1,-0x8(%rbp)
mov    %al,-0x45(%rbp)
jl     122d <main+0xdd>
cmpl   $0x5a,-0x8(%rbp)
setg   %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
test   $0x1,%al
jne    11f3 <main+0xa3>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1246 <main+0xf6>
mov    -0x38(%rbp),%esi
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xddd(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1060 <scanf@plt>
mov    $0x1,%al
cmpl   $0x1,-0xc(%rbp)
mov    %al,-0x46(%rbp)
jl     1291 <main+0x141>
mov    $0x1,%al
cmpl   $0x5a,-0xc(%rbp)
mov    %al,-0x46(%rbp)
jg     1291 <main+0x141>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
mov    %al,-0x46(%rbp)
mov    -0x46(%rbp),%al
test   $0x1,%al
jne    1246 <main+0xf6>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12aa <main+0x15a>
mov    -0x38(%rbp),%esi
lea    0xd8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd79(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1060 <scanf@plt>
mov    $0x1,%al
cmpl   $0x1,-0x10(%rbp)
mov    %al,-0x47(%rbp)
jl     1306 <main+0x1b6>
mov    $0x1,%al
cmpl   $0x5a,-0x10(%rbp)
mov    %al,-0x47(%rbp)
jg     1306 <main+0x1b6>
mov    -0x10(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x47(%rbp)
je     1306 <main+0x1b6>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
sete   %al
mov    %al,-0x47(%rbp)
mov    -0x47(%rbp),%al
test   $0x1,%al
jne    12aa <main+0x15a>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%esi
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd09(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1060 <scanf@plt>
mov    $0x1,%al
cmpl   $0x1,-0x14(%rbp)
mov    %al,-0x48(%rbp)
jl     1387 <main+0x237>
mov    $0x1,%al
cmpl   $0x5a,-0x14(%rbp)
mov    %al,-0x48(%rbp)
jg     1387 <main+0x237>
mov    -0x14(%rbp),%ecx
mov    $0x1,%al
cmp    -0x10(%rbp),%ecx
mov    %al,-0x48(%rbp)
je     1387 <main+0x237>
mov    -0x14(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x48(%rbp)
je     1387 <main+0x237>
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
sete   %al
mov    %al,-0x48(%rbp)
mov    -0x48(%rbp),%al
test   $0x1,%al
jne    131a <main+0x1ca>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%esi
lea    0xc99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc88(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
mov    $0x1,%al
cmpl   $0x1,-0x18(%rbp)
mov    %al,-0x49(%rbp)
jl     1419 <main+0x2c9>
mov    $0x1,%al
cmpl   $0x5a,-0x18(%rbp)
mov    %al,-0x49(%rbp)
jg     1419 <main+0x2c9>
mov    -0x18(%rbp),%ecx
mov    $0x1,%al
cmp    -0x14(%rbp),%ecx
mov    %al,-0x49(%rbp)
je     1419 <main+0x2c9>
mov    -0x18(%rbp),%ecx
mov    $0x1,%al
cmp    -0x10(%rbp),%ecx
mov    %al,-0x49(%rbp)
je     1419 <main+0x2c9>
mov    -0x18(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x49(%rbp)
je     1419 <main+0x2c9>
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
sete   %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    139b <main+0x24b>
jmp    1429 <main+0x2d9>
lea    0xc29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x5,-0x34(%rbp)
jne    1465 <main+0x315>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
lea    0xc5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14ab <main+0x35b>
cmpl   $0x4,-0x34(%rbp)
jne    148f <main+0x33f>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
lea    0xc37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14a6 <main+0x356>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14ab <main+0x35b>
jmp    14b0 <main+0x360>
lea    0xbc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb76(%rip),%rdi
lea    -0x3c(%rbp),%rsi
call   1060 <scanf@plt>
cmpl   $0x0,-0x3c(%rbp)
jle    14b0 <main+0x360>
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x5a,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x1c(%rbp)
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x5a,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     14ed <main+0x39d>
jmp    1513 <main+0x3c3>
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x5a,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
mov    -0x24(%rbp),%ecx
mov    $0x1,%al
cmp    -0x1c(%rbp),%ecx
mov    %al,-0x4a(%rbp)
je     1545 <main+0x3f5>
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
sete   %al
mov    %al,-0x4a(%rbp)
mov    -0x4a(%rbp),%al
test   $0x1,%al
jne    1513 <main+0x3c3>
jmp    1555 <main+0x405>
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x5a,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x28(%rbp)
mov    -0x28(%rbp),%ecx
mov    $0x1,%al
cmp    -0x24(%rbp),%ecx
mov    %al,-0x4b(%rbp)
je     1598 <main+0x448>
mov    -0x28(%rbp),%ecx
mov    $0x1,%al
cmp    -0x20(%rbp),%ecx
mov    %al,-0x4b(%rbp)
je     1598 <main+0x448>
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
mov    %al,-0x4b(%rbp)
mov    -0x4b(%rbp),%al
test   $0x1,%al
jne    1555 <main+0x405>
jmp    15a8 <main+0x458>
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x5a,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
mov    -0x2c(%rbp),%ecx
mov    $0x1,%al
cmp    -0x28(%rbp),%ecx
mov    %al,-0x4c(%rbp)
je     15fc <main+0x4ac>
mov    -0x2c(%rbp),%ecx
mov    $0x1,%al
cmp    -0x24(%rbp),%ecx
mov    %al,-0x4c(%rbp)
je     15fc <main+0x4ac>
mov    -0x2c(%rbp),%ecx
mov    $0x1,%al
cmp    -0x20(%rbp),%ecx
mov    %al,-0x4c(%rbp)
je     15fc <main+0x4ac>
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
mov    %al,-0x4c(%rbp)
mov    -0x4c(%rbp),%al
test   $0x1,%al
jne    15a8 <main+0x458>
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
lea    0xa70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     1662 <main+0x512>
mov    -0x8(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     1662 <main+0x512>
mov    -0x8(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     1662 <main+0x512>
mov    -0x8(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     1662 <main+0x512>
mov    -0x8(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    166b <main+0x51b>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     16a7 <main+0x557>
mov    -0xc(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     16a7 <main+0x557>
mov    -0xc(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     16a7 <main+0x557>
mov    -0xc(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     16a7 <main+0x557>
mov    -0xc(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    16b0 <main+0x560>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     16ec <main+0x59c>
mov    -0x10(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     16ec <main+0x59c>
mov    -0x10(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     16ec <main+0x59c>
mov    -0x10(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     16ec <main+0x59c>
mov    -0x10(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    16f5 <main+0x5a5>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     1731 <main+0x5e1>
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     1731 <main+0x5e1>
mov    -0x14(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     1731 <main+0x5e1>
mov    -0x14(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     1731 <main+0x5e1>
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    173a <main+0x5ea>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     1776 <main+0x626>
mov    -0x18(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     1776 <main+0x626>
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     1776 <main+0x626>
mov    -0x18(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     1776 <main+0x626>
mov    -0x18(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    177f <main+0x62f>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x58(%rbp)
sub    $0x3,%eax
ja     1822 <main+0x6d2>
mov    -0x58(%rbp),%rax
lea    0x861(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
imul   $0xf4240,-0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
lea    0x90f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1830 <main+0x6e0>
imul   $0x2710,-0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
lea    0x925(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1830 <main+0x6e0>
imul   $0x64,-0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
lea    0x93e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1830 <main+0x6e0>
imul   $0xa,-0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
lea    0x954(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1830 <main+0x6e0>
lea    0x973(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
lea    0xe8f(%rip),%r14
lea    0xeb3(%rip),%rbp
lea    0x1c(%rsp),%rbx
nopl   (%rax)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    0x1c(%rsp),%eax
lea    -0x6(%rax),%ecx
cmp    $0xfffffffd,%ecx
jb     1180 <main+0x30>
mov    $0x1,%ebx
cmp    $0x3,%eax
je     123c <main+0xec>
cmp    $0x4,%eax
je     11fb <main+0xab>
cmp    $0x5,%eax
jne    132b <main+0x1db>
lea    0xe6a(%rip),%r14
lea    0xe60(%rip),%rbp
lea    0xc(%rsp),%rbx
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffa5,%eax
cmp    $0xffffffa6,%eax
jb     11d0 <main+0x80>
mov    $0x2,%ebx
lea    0xe2c(%rip),%r14
lea    0xe22(%rip),%r15
lea    0x8(%rsp),%rbp
xchg   %ax,%ax
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1060 <scanf@plt>
mov    0x8(%rsp),%eax
lea    -0x5b(%rax),%ecx
cmp    $0xffffffa6,%ecx
jb     1210 <main+0xc0>
cmp    %eax,0xc(%rsp)
je     1210 <main+0xc0>
add    $0x1,%ebx
lea    0xdeb(%rip),%r14
lea    0xde1(%rip),%r15
lea    0x4(%rsp),%rbp
nop
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
lea    -0x5b(%rax),%ecx
cmp    $0xffffffa6,%ecx
jb     1250 <main+0x100>
cmp    0x8(%rsp),%eax
je     1250 <main+0x100>
cmp    0xc(%rsp),%eax
je     1250 <main+0x100>
lea    0x1(%rbx),%ebp
lea    0xda5(%rip),%r14
lea    0xd9b(%rip),%r15
lea    0x10(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <scanf@plt>
mov    0x10(%rsp),%eax
lea    -0x5b(%rax),%ecx
cmp    $0xffffffa6,%ecx
jb     12a0 <main+0x150>
cmp    0x4(%rsp),%eax
je     12a0 <main+0x150>
cmp    0x8(%rsp),%eax
je     12a0 <main+0x150>
cmp    0xc(%rsp),%eax
je     12a0 <main+0x150>
add    $0x2,%ebx
lea    0xd4f(%rip),%r14
lea    0xd45(%rip),%r15
lea    0x14(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1060 <scanf@plt>
mov    0x14(%rsp),%eax
lea    -0x5b(%rax),%ecx
cmp    $0xffffffa6,%ecx
jb     12f0 <main+0x1a0>
cmp    0x10(%rsp),%eax
je     12f0 <main+0x1a0>
cmp    0x4(%rsp),%eax
je     12f0 <main+0x1a0>
cmp    0x8(%rsp),%eax
je     12f0 <main+0x1a0>
cmp    0xc(%rsp),%eax
je     12f0 <main+0x1a0>
lea    0xd17(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%rsp),%eax
cmp    $0x4,%eax
je     136d <main+0x21d>
cmp    $0x5,%eax
jne    138e <main+0x23e>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0x4(%rsp),%ecx
mov    0x10(%rsp),%r8d
mov    0x14(%rsp),%r9d
lea    0xd42(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    13a8 <main+0x258>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
mov    0x10(%rsp),%ecx
mov    0x14(%rsp),%r8d
lea    0xd25(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    13a8 <main+0x258>
mov    0x4(%rsp),%esi
mov    0x10(%rsp),%edx
mov    0x14(%rsp),%ecx
lea    0xd0d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xcba(%rip),%r14
lea    0xc75(%rip),%rbp
lea    0x18(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
cmpl   $0x0,0x18(%rsp)
jle    13c0 <main+0x270>
xor    %eax,%eax
call   1070 <rand@plt>
movslq %eax,%r14
imul   $0xffffffffb60b60b7,%r14,%rax
shr    $0x20,%rax
add    %r14d,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x6,%eax
add    %ecx,%eax
imul   $0x5a,%eax,%eax
sub    %eax,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1070 <rand@plt>
movslq %eax,%rbx
imul   $0xffffffffb60b60b7,%rbx,%rax
shr    $0x20,%rax
add    %ebx,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x6,%eax
add    %ecx,%eax
imul   $0x5a,%eax,%eax
sub    %eax,%ebx
cmp    %r14d,%ebx
je     1410 <main+0x2c0>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <rand@plt>
movslq %eax,%r15
imul   $0xffffffffb60b60b7,%r15,%rax
shr    $0x20,%rax
add    %r15d,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x6,%eax
add    %ecx,%eax
imul   $0x5a,%eax,%eax
sub    %eax,%r15d
cmp    %r14d,%r15d
je     1440 <main+0x2f0>
cmp    %ebx,%r15d
je     1440 <main+0x2f0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1070 <rand@plt>
movslq %eax,%r12
imul   $0xffffffffb60b60b7,%r12,%rax
shr    $0x20,%rax
add    %r12d,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x6,%eax
add    %ecx,%eax
imul   $0x5a,%eax,%eax
sub    %eax,%r12d
cmp    %r15d,%r12d
je     1480 <main+0x330>
cmp    %ebx,%r12d
je     1480 <main+0x330>
cmp    %r14d,%r12d
je     1480 <main+0x330>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <rand@plt>
movslq %eax,%r9
imul   $0xffffffffb60b60b7,%r9,%rax
shr    $0x20,%rax
add    %r9d,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x6,%eax
add    %ecx,%eax
imul   $0x5a,%eax,%eax
sub    %eax,%r9d
cmp    %r12d,%r9d
je     14c0 <main+0x370>
cmp    %r15d,%r9d
je     14c0 <main+0x370>
cmp    %ebx,%r9d
je     14c0 <main+0x370>
cmp    %r14d,%r9d
je     14c0 <main+0x370>
add    $0x1,%r9d
add    $0x1,%r12d
add    $0x1,%r15d
add    $0x1,%ebx
add    $0x1,%r14d
lea    0xb69(%rip),%rdi
mov    %r14d,%esi
mov    %ebx,%edx
mov    %r15d,%ecx
mov    %r12d,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
imul   $0xf4240,0x18(%rsp),%esi
mov    %esi,0x18(%rsp)
lea    0xb80(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [43 x i8] c"Quanti numeri vuoi giocare(min 3, Max 5): \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [27 x i8] c"Inserisci il %d\C2\B0 numero: \00"
@.str.3 = [32 x i8] c"Hai giocato i seguenti numeri: \00"
@.str.4 = [21 x i8] c"%d, %d, %d, %d, %d.\0A\00"
@.str.5 = [17 x i8] c"%d, %d, %d, %d.\0A\00"
@.str.6 = [13 x i8] c"%d, %d, %d.\0A\00"
@.str.7 = [22 x i8] c"Quanto vuoi puntare? \00"
@.str.8 = [60 x i8] c"Sono stati estratti i seguenti numeri: %d, %d, %d, %d, %d.\0A\00"
@.str.9 = [54 x i8] c"Congratulazioni, hai fatto cinquina. Hai vinto %d\E2\82\AC.\00"
@.str.10 = [54 x i8] c"Congratulazioni, hai fatto quaterna. Hai vinto %d\E2\82\AC.\00"
@.str.11 = [51 x i8] c"Congratulazioni, hai fatto terno. Hai vinto %d\E2\82\AC.\00"
@.str.12 = [50 x i8] c"Congratulazioni, hai fatto ambo. Hai vinto %d\E2\82\AC.\00"
@.str.13 = [136 x i8] c"Mi dispiace, hai perso. Ritenta e sarai pi\C3\B9 fortunato(In realt\C3\A0 avrai le stesse probabilit\C3\A0 di prima, ma noi vogliamo i tuoi soldi).\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%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
%15 = alloca i32
store i32 0, i32* %1
%16 = call i32 @time(i32* null)
%17 = call i32 @srand(i32 %16)
store i32 1, i32* %14
br label %18
18: ; preds = %27, %0
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
br label %21
21: ; preds = %18
%22 = load i32, i32* %13
%23 = icmp slt i32 %22, 3
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, i32* %13
%26 = icmp sgt i32 %25, 5
br label %27
27: ; preds = %24, %21
%28 = phi i1 [ true, %21 ], [ %26, %24 ]
br i1 %28, label %18, label %29
29: ; preds = %27
%30 = load i32, i32* %13
switch i32 %30, label %147 [
i32 5, label %31
i32 4, label %47
i32 3, label %67
]
31: ; preds = %29
br label %32
32: ; preds = %42, %31
%33 = load i32, i32* %14
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %33)
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
br label %36
36: ; preds = %32
%37 = load i32, i32* %2
%38 = icmp slt i32 %37, 1
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = load i32, i32* %2
%41 = icmp sgt i32 %40, 90
br label %42
42: ; preds = %39, %36
%43 = phi i1 [ true, %36 ], [ %41, %39 ]
br i1 %43, label %32, label %44
44: ; preds = %42
%45 = load i32, i32* %14
%46 = add nsw i32 %45, 1
store i32 %46, i32* %14
br label %47
47: ; preds = %29, %44
br label %48
48: ; preds = %62, %47
%49 = load i32, i32* %14
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %49)
%51 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
br label %52
52: ; preds = %48
%53 = load i32, i32* %3
%54 = icmp slt i32 %53, 1
br i1 %54, label %62, label %55
55: ; preds = %52
%56 = load i32, i32* %3
%57 = icmp sgt i32 %56, 90
br i1 %57, label %62, label %58
58: ; preds = %55
%59 = load i32, i32* %2
%60 = load i32, i32* %3
%61 = icmp eq i32 %59, %60
br label %62
62: ; preds = %58, %55, %52
%63 = phi i1 [ true, %55 ], [ true, %52 ], [ %61, %58 ]
br i1 %63, label %48, label %64
64: ; preds = %62
%65 = load i32, i32* %14
%66 = add nsw i32 %65, 1
store i32 %66, i32* %14
br label %67
67: ; preds = %29, %64
br label %68
68: ; preds = %86, %67
%69 = load i32, i32* %14
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %69)
%71 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
br label %72
72: ; preds = %68
%73 = load i32, i32* %4
%74 = icmp slt i32 %73, 1
br i1 %74, label %86, label %75
75: ; preds = %72
%76 = load i32, i32* %4
%77 = icmp sgt i32 %76, 90
br i1 %77, label %86, label %78
78: ; preds = %75
%79 = load i32, i32* %4
%80 = load i32, i32* %3
%81 = icmp eq i32 %79, %80
br i1 %81, label %86, label %82
82: ; preds = %78
%83 = load i32, i32* %4
%84 = load i32, i32* %2
%85 = icmp eq i32 %83, %84
br label %86
86: ; preds = %82, %78, %75, %72
%87 = phi i1 [ true, %78 ], [ true, %75 ], [ true, %72 ], [ %85, %82 ]
br i1 %87, label %68, label %88
88: ; preds = %86
%89 = load i32, i32* %14
%90 = add nsw i32 %89, 1
store i32 %90, i32* %14
br label %91
91: ; preds = %113, %88
%92 = load i32, i32* %14
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %92)
%94 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
br label %95
95: ; preds = %91
%96 = load i32, i32* %5
%97 = icmp slt i32 %96, 1
br i1 %97, label %113, label %98
98: ; preds = %95
%99 = load i32, i32* %5
%100 = icmp sgt i32 %99, 90
br i1 %100, label %113, label %101
101: ; preds = %98
%102 = load i32, i32* %5
%103 = load i32, i32* %4
%104 = icmp eq i32 %102, %103
br i1 %104, label %113, label %105
105: ; preds = %101
%106 = load i32, i32* %5
%107 = load i32, i32* %3
%108 = icmp eq i32 %106, %107
br i1 %108, label %113, label %109
109: ; preds = %105
%110 = load i32, i32* %5
%111 = load i32, i32* %2
%112 = icmp eq i32 %110, %111
br label %113
113: ; preds = %109, %105, %101, %98, %95
%114 = phi i1 [ true, %105 ], [ true, %101 ], [ true, %98 ], [ true, %95 ], [ %112, %109 ]
br i1 %114, label %91, label %115
115: ; preds = %113
%116 = load i32, i32* %14
%117 = add nsw i32 %116, 1
store i32 %117, i32* %14
br label %118
118: ; preds = %144, %115
%119 = load i32, i32* %14
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %119)
%121 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
br label %122
122: ; preds = %118
%123 = load i32, i32* %6
%124 = icmp slt i32 %123, 1
br i1 %124, label %144, label %125
125: ; preds = %122
%126 = load i32, i32* %6
%127 = icmp sgt i32 %126, 90
br i1 %127, label %144, label %128
128: ; preds = %125
%129 = load i32, i32* %6
%130 = load i32, i32* %5
%131 = icmp eq i32 %129, %130
br i1 %131, label %144, label %132
132: ; preds = %128
%133 = load i32, i32* %6
%134 = load i32, i32* %4
%135 = icmp eq i32 %133, %134
br i1 %135, label %144, label %136
136: ; preds = %132
%137 = load i32, i32* %6
%138 = load i32, i32* %3
%139 = icmp eq i32 %137, %138
br i1 %139, label %144, label %140
140: ; preds = %136
%141 = load i32, i32* %6
%142 = load i32, i32* %2
%143 = icmp eq i32 %141, %142
br label %144
144: ; preds = %140, %136, %132, %128, %125, %122
%145 = phi i1 [ true, %136 ], [ true, %132 ], [ true, %128 ], [ true, %125 ], [ true, %122 ], [ %143, %140 ]
br i1 %145, label %118, label %146
146: ; preds = %144
br label %147
147: ; preds = %146, %29
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%149 = load i32, i32* %13
%150 = icmp eq i32 %149, 5
br i1 %150, label %151, label %158
151: ; preds = %147
%152 = load i32, i32* %2
%153 = load i32, i32* %3
%154 = load i32, i32* %4
%155 = load i32, i32* %5
%156 = load i32, i32* %6
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %152, i32 %153, i32 %154, i32 %155, i32 %156)
br label %173
158: ; preds = %147
%159 = load i32, i32* %13
%160 = icmp eq i32 %159, 4
br i1 %160, label %161, label %167
161: ; preds = %158
%162 = load i32, i32* %3
%163 = load i32, i32* %4
%164 = load i32, i32* %5
%165 = load i32, i32* %6
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %162, i32 %163, i32 %164, i32 %165)
br label %172
167: ; preds = %158
%168 = load i32, i32* %4
%169 = load i32, i32* %5
%170 = load i32, i32* %6
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %168, i32 %169, i32 %170)
br label %172
172: ; preds = %167, %161
br label %173
173: ; preds = %172, %151
br label %174
174: ; preds = %177, %173
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%176 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
br label %177
177: ; preds = %174
%178 = load i32, i32* %15
%179 = icmp sle i32 %178, 0
br i1 %179, label %174, label %180
180: ; preds = %177
%181 = call i32 (...) @rand()
%182 = srem i32 %181, 90
%183 = add nsw i32 %182, 1
store i32 %183, i32* %7
br label %184
184: ; preds = %188, %180
%185 = call i32 (...) @rand()
%186 = srem i32 %185, 90
%187 = add nsw i32 %186, 1
store i32 %187, i32* %8
br label %188
188: ; preds = %184
%189 = load i32, i32* %8
%190 = load i32, i32* %7
%191 = icmp eq i32 %189, %190
br i1 %191, label %184, label %192
192: ; preds = %188
br label %193
193: ; preds = %205, %192
%194 = call i32 (...) @rand()
%195 = srem i32 %194, 90
%196 = add nsw i32 %195, 1
store i32 %196, i32* %9
br label %197
197: ; preds = %193
%198 = load i32, i32* %9
%199 = load i32, i32* %7
%200 = icmp eq i32 %198, %199
br i1 %200, label %205, label %201
201: ; preds = %197
%202 = load i32, i32* %9
%203 = load i32, i32* %8
%204 = icmp eq i32 %202, %203
br label %205
205: ; preds = %201, %197
%206 = phi i1 [ true, %197 ], [ %204, %201 ]
br i1 %206, label %193, label %207
207: ; preds = %205
br label %208
208: ; preds = %224, %207
%209 = call i32 (...) @rand()
%210 = srem i32 %209, 90
%211 = add nsw i32 %210, 1
store i32 %211, i32* %10
br label %212
212: ; preds = %208
%213 = load i32, i32* %10
%214 = load i32, i32* %9
%215 = icmp eq i32 %213, %214
br i1 %215, label %224, label %216
216: ; preds = %212
%217 = load i32, i32* %10
%218 = load i32, i32* %8
%219 = icmp eq i32 %217, %218
br i1 %219, label %224, label %220
220: ; preds = %216
%221 = load i32, i32* %10
%222 = load i32, i32* %7
%223 = icmp eq i32 %221, %222
br label %224
224: ; preds = %220, %216, %212
%225 = phi i1 [ true, %216 ], [ true, %212 ], [ %223, %220 ]
br i1 %225, label %208, label %226
226: ; preds = %224
br label %227
227: ; preds = %247, %226
%228 = call i32 (...) @rand()
%229 = srem i32 %228, 90
%230 = add nsw i32 %229, 1
store i32 %230, i32* %11
br label %231
231: ; preds = %227
%232 = load i32, i32* %11
%233 = load i32, i32* %10
%234 = icmp eq i32 %232, %233
br i1 %234, label %247, label %235
235: ; preds = %231
%236 = load i32, i32* %11
%237 = load i32, i32* %9
%238 = icmp eq i32 %236, %237
br i1 %238, label %247, label %239
239: ; preds = %235
%240 = load i32, i32* %11
%241 = load i32, i32* %8
%242 = icmp eq i32 %240, %241
br i1 %242, label %247, label %243
243: ; preds = %239
%244 = load i32, i32* %11
%245 = load i32, i32* %7
%246 = icmp eq i32 %244, %245
br label %247
247: ; preds = %243, %239, %235, %231
%248 = phi i1 [ true, %239 ], [ true, %235 ], [ true, %231 ], [ %246, %243 ]
br i1 %248, label %227, label %249
249: ; preds = %247
%250 = load i32, i32* %7
%251 = load i32, i32* %8
%252 = load i32, i32* %9
%253 = load i32, i32* %10
%254 = load i32, i32* %11
%255 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0), i32 %250, i32 %251, i32 %252, i32 %253, i32 %254)
%256 = load i32, i32* %2
%257 = load i32, i32* %7
%258 = icmp eq i32 %256, %257
br i1 %258, label %275, label %259
259: ; preds = %249
%260 = load i32, i32* %2
%261 = load i32, i32* %8
%262 = icmp eq i32 %260, %261
br i1 %262, label %275, label %263
263: ; preds = %259
%264 = load i32, i32* %2
%265 = load i32, i32* %9
%266 = icmp eq i32 %264, %265
br i1 %266, label %275, label %267
267: ; preds = %263
%268 = load i32, i32* %2
%269 = load i32, i32* %10
%270 = icmp eq i32 %268, %269
br i1 %270, label %275, label %271
271: ; preds = %267
%272 = load i32, i32* %2
%273 = load i32, i32* %11
%274 = icmp eq i32 %272, %273
br i1 %274, label %275, label %278
275: ; preds = %271, %267, %263, %259, %249
%276 = load i32, i32* %12
%277 = add nsw i32 %276, 1
store i32 %277, i32* %12
br label %278
278: ; preds = %275, %271
%279 = load i32, i32* %3
%280 = load i32, i32* %7
%281 = icmp eq i32 %279, %280
br i1 %281, label %298, label %282
282: ; preds = %278
%283 = load i32, i32* %3
%284 = load i32, i32* %8
%285 = icmp eq i32 %283, %284
br i1 %285, label %298, label %286
286: ; preds = %282
%287 = load i32, i32* %3
%288 = load i32, i32* %9
%289 = icmp eq i32 %287, %288
br i1 %289, label %298, label %290
290: ; preds = %286
%291 = load i32, i32* %3
%292 = load i32, i32* %10
%293 = icmp eq i32 %291, %292
br i1 %293, label %298, label %294
294: ; preds = %290
%295 = load i32, i32* %3
%296 = load i32, i32* %11
%297 = icmp eq i32 %295, %296
br i1 %297, label %298, label %301
298: ; preds = %294, %290, %286, %282, %278
%299 = load i32, i32* %12
%300 = add nsw i32 %299, 1
store i32 %300, i32* %12
br label %301
301: ; preds = %298, %294
%302 = load i32, i32* %4
%303 = load i32, i32* %7
%304 = icmp eq i32 %302, %303
br i1 %304, label %321, label %305
305: ; preds = %301
%306 = load i32, i32* %4
%307 = load i32, i32* %8
%308 = icmp eq i32 %306, %307
br i1 %308, label %321, label %309
309: ; preds = %305
%310 = load i32, i32* %4
%311 = load i32, i32* %9
%312 = icmp eq i32 %310, %311
br i1 %312, label %321, label %313
313: ; preds = %309
%314 = load i32, i32* %4
%315 = load i32, i32* %10
%316 = icmp eq i32 %314, %315
br i1 %316, label %321, label %317
317: ; preds = %313
%318 = load i32, i32* %4
%319 = load i32, i32* %11
%320 = icmp eq i32 %318, %319
br i1 %320, label %321, label %324
321: ; preds = %317, %313, %309, %305, %301
%322 = load i32, i32* %12
%323 = add nsw i32 %322, 1
store i32 %323, i32* %12
br label %324
324: ; preds = %321, %317
%325 = load i32, i32* %5
%326 = load i32, i32* %7
%327 = icmp eq i32 %325, %326
br i1 %327, label %344, label %328
328: ; preds = %324
%329 = load i32, i32* %5
%330 = load i32, i32* %8
%331 = icmp eq i32 %329, %330
br i1 %331, label %344, label %332
332: ; preds = %328
%333 = load i32, i32* %5
%334 = load i32, i32* %9
%335 = icmp eq i32 %333, %334
br i1 %335, label %344, label %336
336: ; preds = %332
%337 = load i32, i32* %5
%338 = load i32, i32* %10
%339 = icmp eq i32 %337, %338
br i1 %339, label %344, label %340
340: ; preds = %336
%341 = load i32, i32* %5
%342 = load i32, i32* %11
%343 = icmp eq i32 %341, %342
br i1 %343, label %344, label %347
344: ; preds = %340, %336, %332, %328, %324
%345 = load i32, i32* %12
%346 = add nsw i32 %345, 1
store i32 %346, i32* %12
br label %347
347: ; preds = %344, %340
%348 = load i32, i32* %6
%349 = load i32, i32* %7
%350 = icmp eq i32 %348, %349
br i1 %350, label %367, label %351
351: ; preds = %347
%352 = load i32, i32* %6
%353 = load i32, i32* %8
%354 = icmp eq i32 %352, %353
br i1 %354, label %367, label %355
355: ; preds = %351
%356 = load i32, i32* %6
%357 = load i32, i32* %9
%358 = icmp eq i32 %356, %357
br i1 %358, label %367, label %359
359: ; preds = %355
%360 = load i32, i32* %6
%361 = load i32, i32* %10
%362 = icmp eq i32 %360, %361
br i1 %362, label %367, label %363
363: ; preds = %359
%364 = load i32, i32* %6
%365 = load i32, i32* %11
%366 = icmp eq i32 %364, %365
br i1 %366, label %367, label %370
367: ; preds = %363, %359, %355, %351, %347
%368 = load i32, i32* %12
%369 = add nsw i32 %368, 1
store i32 %369, i32* %12
br label %370
370: ; preds = %367, %363
%371 = load i32, i32* %12
switch i32 %371, label %392 [
i32 5, label %372
i32 4, label %377
i32 3, label %382
i32 2, label %387
]
372: ; preds = %370
%373 = load i32, i32* %15
%374 = mul nsw i32 %373, 1000000
store i32 %374, i32* %15
%375 = load i32, i32* %15
%376 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0), i32 %375)
br label %394
377: ; preds = %370
%378 = load i32, i32* %15
%379 = mul nsw i32 %378, 10000
store i32 %379, i32* %15
%380 = load i32, i32* %15
%381 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0), i32 %380)
br label %394
382: ; preds = %370
%383 = load i32, i32* %15
%384 = mul nsw i32 %383, 100
store i32 %384, i32* %15
%385 = load i32, i32* %15
%386 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.11, i64 0, i64 0), i32 %385)
br label %394
387: ; preds = %370
%388 = load i32, i32* %15
%389 = mul nsw i32 %388, 10
store i32 %389, i32* %15
%390 = load i32, i32* %15
%391 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0), i32 %390)
br label %394
392: ; preds = %370
%393 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.13, i64 0, i64 0))
br label %394
394: ; preds = %392, %387, %382, %377, %372
%395 = load i32, i32* %1
ret i32 %395
}

LLVM IR (-O2):
@.str = [43 x i8] c"Quanti numeri vuoi giocare(min 3, Max 5): \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [27 x i8] c"Inserisci il %d\C2\B0 numero: \00"
@.str.3 = [32 x i8] c"Hai giocato i seguenti numeri: \00"
@.str.4 = [21 x i8] c"%d, %d, %d, %d, %d.\0A\00"
@.str.5 = [17 x i8] c"%d, %d, %d, %d.\0A\00"
@.str.6 = [13 x i8] c"%d, %d, %d.\0A\00"
@.str.7 = [22 x i8] c"Quanto vuoi puntare? \00"
@.str.8 = [60 x i8] c"Sono stati estratti i seguenti numeri: %d, %d, %d, %d, %d.\0A\00"
@.str.9 = [54 x i8] c"Congratulazioni, hai fatto cinquina. Hai vinto %d\E2\82\AC.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast i32* %1 to i8*
%9 = bitcast i32* %2 to i8*
%10 = bitcast i32* %3 to i8*
%11 = bitcast i32* %4 to i8*
%12 = bitcast i32* %5 to i8*
%13 = bitcast i32* %6 to i8*
%14 = bitcast i32* %7 to i8*
%15 = tail call i32 @time(i32* null)
%16 = tail call i32 @srand(i32 %15)
br label %17
17: ; preds = %17, %0
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%20 = load i32, i32* %6
%21 = add i32 %20, -6
%22 = icmp ult i32 %21, -3
br i1 %22, label %17, label %23
23: ; preds = %17
switch i32 %20, label %94 [
i32 5, label %24
i32 4, label %30
i32 3, label %43
]
24: ; preds = %23, %24
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 1)
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%27 = load i32, i32* %1
%28 = add i32 %27, -91
%29 = icmp ult i32 %28, -90
br i1 %29, label %24, label %30
30: ; preds = %24, %23
%31 = phi i32 [ 1, %23 ], [ 2, %24 ]
br label %32
32: ; preds = %32, %30
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %31)
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%35 = load i32, i32* %2
%36 = add i32 %35, -91
%37 = icmp ult i32 %36, -90
%38 = load i32, i32* %1
%39 = icmp eq i32 %38, %35
%40 = select i1 %37, i1 true, i1 %39
br i1 %40, label %32, label %41
41: ; preds = %32
%42 = add nuw nsw i32 %31, 1
br label %43
43: ; preds = %23, %41
%44 = phi i32 [ 1, %23 ], [ %42, %41 ]
br label %45
45: ; preds = %45, %43
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %44)
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%48 = load i32, i32* %3
%49 = add i32 %48, -91
%50 = icmp ult i32 %49, -90
%51 = load i32, i32* %2
%52 = icmp eq i32 %48, %51
%53 = select i1 %50, i1 true, i1 %52
%54 = load i32, i32* %1
%55 = icmp eq i32 %48, %54
%56 = select i1 %53, i1 true, i1 %55
br i1 %56, label %45, label %57
57: ; preds = %45
%58 = add nsw i32 %44, 1
br label %59
59: ; preds = %59, %57
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %58)
%61 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%62 = load i32, i32* %4
%63 = add i32 %62, -91
%64 = icmp ult i32 %63, -90
%65 = load i32, i32* %3
%66 = icmp eq i32 %62, %65
%67 = select i1 %64, i1 true, i1 %66
%68 = load i32, i32* %2
%69 = icmp eq i32 %62, %68
%70 = select i1 %67, i1 true, i1 %69
%71 = load i32, i32* %1
%72 = icmp eq i32 %62, %71
%73 = select i1 %70, i1 true, i1 %72
br i1 %73, label %59, label %74
74: ; preds = %59
%75 = add nsw i32 %44, 2
br label %76
76: ; preds = %76, %74
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %75)
%78 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%79 = load i32, i32* %5
%80 = add i32 %79, -91
%81 = icmp ult i32 %80, -90
%82 = load i32, i32* %4
%83 = icmp eq i32 %79, %82
%84 = select i1 %81, i1 true, i1 %83
%85 = load i32, i32* %3
%86 = icmp eq i32 %79, %85
%87 = select i1 %84, i1 true, i1 %86
%88 = load i32, i32* %2
%89 = icmp eq i32 %79, %88
%90 = select i1 %87, i1 true, i1 %89
%91 = load i32, i32* %1
%92 = icmp eq i32 %79, %91
%93 = select i1 %90, i1 true, i1 %92
br i1 %93, label %76, label %94
94: ; preds = %76, %23
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%96 = load i32, i32* %6
switch i32 %96, label %110 [
i32 5, label %97
i32 4, label %104
]
97: ; preds = %94
%98 = load i32, i32* %1
%99 = load i32, i32* %2
%100 = load i32, i32* %3
%101 = load i32, i32* %4
%102 = load i32, i32* %5
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %98, i32 %99, i32 %100, i32 %101, i32 %102)
br label %115
104: ; preds = %94
%105 = load i32, i32* %2
%106 = load i32, i32* %3
%107 = load i32, i32* %4
%108 = load i32, i32* %5
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %105, i32 %106, i32 %107, i32 %108)
br label %115
110: ; preds = %94
%111 = load i32, i32* %3
%112 = load i32, i32* %4
%113 = load i32, i32* %5
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %111, i32 %112, i32 %113)
br label %115
115: ; preds = %104, %110, %97
br label %116
116: ; preds = %115, %116
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%118 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%119 = load i32, i32* %7
%120 = icmp slt i32 %119, 1
br i1 %120, label %116, label %121
121: ; preds = %116
%122 = call i32 (...) @rand()
%123 = srem i32 %122, 90
br label %124
124: ; preds = %124, %121
%125 = call i32 (...) @rand()
%126 = srem i32 %125, 90
%127 = icmp eq i32 %126, %123
br i1 %127, label %124, label %128
128: ; preds = %124, %128
%129 = call i32 (...) @rand()
%130 = srem i32 %129, 90
%131 = icmp eq i32 %130, %123
%132 = icmp eq i32 %130, %126
%133 = select i1 %131, i1 true, i1 %132
br i1 %133, label %128, label %134
134: ; preds = %128, %134
%135 = call i32 (...) @rand()
%136 = srem i32 %135, 90
%137 = icmp eq i32 %136, %130
%138 = icmp eq i32 %136, %126
%139 = select i1 %137, i1 true, i1 %138
%140 = icmp eq i32 %136, %123
%141 = select i1 %139, i1 true, i1 %140
br i1 %141, label %134, label %142
142: ; preds = %134, %142
%143 = call i32 (...) @rand()
%144 = srem i32 %143, 90
%145 = icmp eq i32 %144, %136
%146 = icmp eq i32 %144, %130
%147 = select i1 %145, i1 true, i1 %146
%148 = icmp eq i32 %144, %126
%149 = select i1 %147, i1 true, i1 %148
%150 = icmp eq i32 %144, %123
%151 = select i1 %149, i1 true, i1 %150
br i1 %151, label %142, label %152
152: ; preds = %142
%153 = add nsw i32 %144, 1
%154 = add nsw i32 %136, 1
%155 = add nsw i32 %130, 1
%156 = add nsw i32 %126, 1
%157 = add nsw i32 %123, 1
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0), i32 %157, i32 %156, i32 %155, i32 %154, i32 %153)
%159 = load i32, i32* %7
%160 = mul nsw i32 %159, 1000000
store i32 %160, i32* %7
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0), i32 %160)
ret i32 0
}