#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main(int argc, char **argv) {
  float primero, segundo, tercero, cuarto, quinto;
  int premio1, premio2, premio3, premio4, premio5;
  int valor, menu;
  primero = 4000000;
  segundo = 1250000;
  tercero = 500000;
  cuarto = 200000;
  quinto = 60000;
  premio1 = 46646;
  premio2 = 40475;
  premio3 = 82541;
  premio4 = 10258 & 247;
  premio5 = 29874 == 6541 == 78963 == 47266 == 1 == 257 == 33333 == 100000;
  do {
    printf("LOTERIA DE NAVIDAD\n\n");
    printf("1. Muestra los premios\n");
    printf("2. Consulta el nº premiado\n");
    printf("3. Salir del programa\n\n");
    scanf("%d", &menu);
    switch (menu) {
    case 1:
      printf("LISTADO DE PREMIOS\n\n");
      printf("Premio  Nº Premiado\n");
      printf("1ro     46646\n");
      printf("2nd     40475\n");
      printf("3ro     82541\n");
      printf("4rts    10258 y 247\n");
      printf("5nts    29874, 6541, 78963, 47266, 1, 257, 33333 y 100000\n\n");
      break;
    case 2:
      while (1 < 100.000) {
        printf("Introduzca el número que desea comprovar:");
        scanf("%d", &valor);
        if (valor == premio1) {
          printf("Enhorabuena!! Te ha tocado el 1er premio y has ganado: %f "
                 "euros\n\n",
                 primero / 10);
          scanf("%f", &primero);
        }
        if (valor == premio2) {
          printf("Enhorabuena!! Te ha tocado el 2nd premio y has ganado: %f "
                 "euros\n\n",
                 segundo / 10);
          scanf("%f", &segundo);
        }
        if (valor == premio3) {
          printf(
              "Enhorabuena!! Te ha tocado el 3er premio y has ganado: %f \n\n",
              tercero / 10);
          scanf("%f", &tercero);
        }
        if (valor == premio4) {
          printf(
              "Enhorabuena!! Te ha tocado el 4to premio y has ganado: %f \n\n",
              cuarto / 10);
          scanf("%f", &cuarto);
        }
        if (valor == premio5) {
          printf(
              "Enhorabuena!! Te ha tocado el 5to premio y has ganado: %f \n\n",
              quinto / 10);
          scanf("%f", &quinto);
        } else
          printf("Lo siento, tu número no ha sido premido\n\n");
      }
      break;
    case 3:
      printf("Fin del programa");
      break;
    }
  } while (menu != 3);
  return (EXIT_SUCCESS);
}


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)
movss  0xed2(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xec1(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xeb0(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  0xe9f(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xe8e(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
movl   $0xb636,-0x28(%rbp)
movl   $0x9e1b,-0x2c(%rbp)
movl   $0x1426d,-0x30(%rbp)
movl   $0x12,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
lea    0xe77(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x45(%rbp)
call   1030 <printf@plt>
mov    -0x45(%rbp),%al
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
mov    -0x45(%rbp),%al
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
mov    -0x45(%rbp),%al
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x45(%rbp),%al
lea    0xe98(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x40(%rbp),%eax
mov    %eax,-0x44(%rbp)
sub    $0x1,%eax
je     1221 <main+0x101>
jmp    11ff <main+0xdf>
mov    -0x44(%rbp),%eax
sub    $0x2,%eax
je     1288 <main+0x168>
jmp    1210 <main+0xf0>
mov    -0x44(%rbp),%eax
sub    $0x3,%eax
je     140a <main+0x2ea>
jmp    1418 <main+0x2f8>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1418 <main+0x2f8>
jmp    128d <main+0x16d>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdd8(%rip),%rdi
lea    -0x3c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x3c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jne    12ee <main+0x1ce>
movss  -0x14(%rbp),%xmm0
movss  0xd4e(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe7c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x3c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    132f <main+0x20f>
movss  -0x18(%rbp),%xmm0
movss  0xd0d(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe80(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe6f(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x3c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jne    1370 <main+0x250>
movss  -0x1c(%rbp),%xmm0
movss  0xccc(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe81(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe2e(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x3c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jne    13b1 <main+0x291>
movss  -0x20(%rbp),%xmm0
movss  0xc8b(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe7d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xded(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jne    13f7 <main+0x2d7>
movss  -0x24(%rbp),%xmm0
movss  0xc4a(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe79(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xdac(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1405 <main+0x2e5>
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    128d <main+0x16d>
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    141d <main+0x2fd>
cmpl   $0x3,-0x40(%rbp)
jne    119a <main+0x7a>
mov    0x2bb2(%rip),%rax
mov    (%rax),%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    $0x28,%rsp
movl   $0x4a742400,0x24(%rsp)
4a
movl   $0x49989680,0x20(%rsp)
49
movl   $0x48f42400,0x1c(%rsp)
48
movl   $0x48435000,0x18(%rsp)
48
movl   $0x476a6000,0x14(%rsp)
47
lea    0x1014(%rip),%r14
lea    0x1021(%rip),%r15
lea    0x1031(%rip),%r12
lea    0x1046(%rip),%r13
lea    0xe7b(%rip),%rbx
lea    0x10(%rsp),%rbp
jmp    11ab <main+0x7b>
lea    0xfd9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%eax
cmp    $0x3,%eax
je     1249 <main+0x119>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%eax
cmp    $0x1,%eax
je     11f0 <main+0xc0>
cmp    $0x3,%eax
je     1190 <main+0x60>
cmp    $0x2,%eax
jne    11a2 <main+0x72>
jmp    1261 <main+0x131>
nopl   (%rax)
lea    0x1012(%rip),%rdi
call   1030 <puts@plt>
lea    0x101a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1023(%rip),%rdi
call   1030 <puts@plt>
lea    0x1025(%rip),%rdi
call   1030 <puts@plt>
lea    0x1027(%rip),%rdi
call   1030 <puts@plt>
lea    0x1029(%rip),%rdi
call   1030 <puts@plt>
lea    0x1031(%rip),%rdi
call   1030 <puts@plt>
jmp    119e <main+0x6e>
mov    0x2d90(%rip),%rax
mov    (%rax),%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd9f(%rip),%r14
lea    0xd95(%rip),%r15
lea    0xc(%rsp),%r13
lea    0xdf9(%rip),%rbx
lea    0x18(%rsp),%rbp
lea    0xf58(%rip),%r12
jmp    12a0 <main+0x170>
nopl   0x0(%rax)
test   %eax,%eax
je     13c0 <main+0x290>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0xb636,%eax
jne    12f5 <main+0x1c5>
movss  0x24(%rsp),%xmm0
divss  0xd30(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd57(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x24(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x9e1b,%eax
je     1310 <main+0x1e0>
cmp    $0x1426d,%eax
je     134a <main+0x21a>
cmp    $0x12,%eax
jne    1290 <main+0x160>
jmp    1386 <main+0x256>
nopw   0x0(%rax,%rax,1)
movss  0x20(%rsp),%xmm0
divss  0xce2(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd4e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x1426d,%eax
jne    1303 <main+0x1d3>
movss  0x1c(%rsp),%xmm0
divss  0xca8(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd56(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x1c(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x12,%eax
jne    1290 <main+0x160>
movss  0x18(%rsp),%xmm0
divss  0xc6c(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd57(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
jmp    1290 <main+0x160>
nopl   0x0(%rax)
movss  0x14(%rsp),%xmm0
divss  0xc32(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd5a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
jmp    12a0 <main+0x170>

LLVM IR (-O0):
@.str = [21 x i8] c"LOTERIA DE NAVIDAD\0A\0A\00"
@.str.1 = [24 x i8] c"1. Muestra los premios\0A\00"
@.str.2 = [29 x i8] c"2. Consulta el n\C2\BA premiado\0A\00"
@.str.3 = [24 x i8] c"3. Salir del programa\0A\0A\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [21 x i8] c"LISTADO DE PREMIOS\0A\0A\00"
@.str.6 = [22 x i8] c"Premio N\C2\BA Premiado\0A\00"
@.str.7 = [15 x i8] c"1ro 46646\0A\00"
@.str.8 = [15 x i8] c"2nd 40475\0A\00"
@.str.9 = [15 x i8] c"3ro 82541\0A\00"
@.str.10 = [21 x i8] c"4rts 10258 y 247\0A\00"
@.str.11 = [60 x i8] c"5nts 29874, 6541, 78963, 47266, 1, 257, 33333 y 100000\0A\0A\00"
@.str.12 = [43 x i8] c"Introduzca el n\C3\BAmero que desea comprovar:\00"
@.str.13 = [66 x i8] c"Enhorabuena!! Te ha tocado el 1er premio y has ganado: %f euros\0A\0A\00"
@.str.14 = [3 x i8] c"%f\00"
@.str.15 = [66 x i8] c"Enhorabuena!! Te ha tocado el 2nd premio y has ganado: %f euros\0A\0A\00"
@.str.16 = [61 x i8] c"Enhorabuena!! Te ha tocado el 3er premio y has ganado: %f \0A\0A\00"
@.str.17 = [61 x i8] c"Enhorabuena!! Te ha tocado el 4to premio y has ganado: %f \0A\0A\00"
@.str.18 = [61 x i8] c"Enhorabuena!! Te ha tocado el 5to premio y has ganado: %f \0A\0A\00"
@.str.19 = [43 x i8] c"Lo siento, tu n\C3\BAmero no ha sido premido\0A\0A\00"
@.str.20 = [17 x i8] c"Fin del programa\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 4.000000e+06, float* %6
store float 1.250000e+06, float* %7
store float 5.000000e+05, float* %8
store float 2.000000e+05, float* %9
store float 6.000000e+04, float* %10
store i32 46646, i32* %11
store i32 40475, i32* %12
store i32 82541, i32* %13
store i32 18, i32* %14
store i32 0, i32* %15
br label %18
18: ; preds = %92, %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %17)
%24 = load i32, i32* %17
switch i32 %24, label %91 [
i32 1, label %25
i32 2, label %33
i32 3, label %89
]
25: ; preds = %18
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.11, i64 0, i64 0))
br label %91
33: ; preds = %18
br label %34
34: ; preds = %33, %88
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %16)
%37 = load i32, i32* %16
%38 = load i32, i32* %11
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %46
40: ; preds = %34
%41 = load float, float* %6
%42 = fdiv float %41, 1.000000e+01
%43 = fpext float %42 to double
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.13, i64 0, i64 0), double %43)
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %6)
br label %46
46: ; preds = %40, %34
%47 = load i32, i32* %16
%48 = load i32, i32* %12
%49 = icmp eq i32 %47, %48
br i1 %49, label %50, label %56
50: ; preds = %46
%51 = load float, float* %7
%52 = fdiv float %51, 1.000000e+01
%53 = fpext float %52 to double
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.15, i64 0, i64 0), double %53)
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %7)
br label %56
56: ; preds = %50, %46
%57 = load i32, i32* %16
%58 = load i32, i32* %13
%59 = icmp eq i32 %57, %58
br i1 %59, label %60, label %66
60: ; preds = %56
%61 = load float, float* %8
%62 = fdiv float %61, 1.000000e+01
%63 = fpext float %62 to double
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.16, i64 0, i64 0), double %63)
%65 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %8)
br label %66
66: ; preds = %60, %56
%67 = load i32, i32* %16
%68 = load i32, i32* %14
%69 = icmp eq i32 %67, %68
br i1 %69, label %70, label %76
70: ; preds = %66
%71 = load float, float* %9
%72 = fdiv float %71, 1.000000e+01
%73 = fpext float %72 to double
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.17, i64 0, i64 0), double %73)
%75 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %9)
br label %76
76: ; preds = %70, %66
%77 = load i32, i32* %16
%78 = load i32, i32* %15
%79 = icmp eq i32 %77, %78
br i1 %79, label %80, label %86
80: ; preds = %76
%81 = load float, float* %10
%82 = fdiv float %81, 1.000000e+01
%83 = fpext float %82 to double
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.18, i64 0, i64 0), double %83)
%85 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %10)
br label %88
86: ; preds = %76
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.19, i64 0, i64 0))
br label %88
88: ; preds = %86, %80
br label %34
89: ; preds = %18
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0))
br label %91
91: ; preds = %18, %89, %25
br label %92
92: ; preds = %91
%93 = load i32, i32* %17
%94 = icmp ne i32 %93, 3
br i1 %94, label %18, label %95
95: ; preds = %92
%96 = load i32, i32* @EXIT_SUCCESS
ret i32 %96
}

LLVM IR (-O2):
@.str.4 = [3 x i8] c"%d\00"
@.str.12 = [43 x i8] c"Introduzca el n\C3\BAmero que desea comprovar:\00"
@.str.13 = [66 x i8] c"Enhorabuena!! Te ha tocado el 1er premio y has ganado: %f euros\0A\0A\00"
@.str.14 = [3 x i8] c"%f\00"
@.str.15 = [66 x i8] c"Enhorabuena!! Te ha tocado el 2nd premio y has ganado: %f euros\0A\0A\00"
@.str.16 = [61 x i8] c"Enhorabuena!! Te ha tocado el 3er premio y has ganado: %f \0A\0A\00"
@.str.17 = [61 x i8] c"Enhorabuena!! Te ha tocado el 4to premio y has ganado: %f \0A\0A\00"
@.str.18 = [61 x i8] c"Enhorabuena!! Te ha tocado el 5to premio y has ganado: %f \0A\0A\00"
@.str.20 = [17 x i8] c"Fin del programa\00"
@EXIT_SUCCESS = global i32 0
@str = [20 x i8] c"LOTERIA DE NAVIDAD\0A\00"
@str.21 = [23 x i8] c"1. Muestra los premios\00"
@str.22 = [28 x i8] c"2. Consulta el n\C2\BA premiado\00"
@str.23 = [23 x i8] c"3. Salir del programa\0A\00"
@str.24 = [42 x i8] c"Lo siento, tu n\C3\BAmero no ha sido premido\0A\00"
@str.25 = [20 x i8] c"LISTADO DE PREMIOS\0A\00"
@str.26 = [21 x i8] c"Premio N\C2\BA Premiado\00"
@str.27 = [14 x i8] c"1ro 46646\00"
@str.28 = [14 x i8] c"2nd 40475\00"
@str.29 = [14 x i8] c"3ro 82541\00"
@str.30 = [20 x i8] c"4rts 10258 y 247\00"
@str.31 = [59 x i8] c"5nts 29874, 6541, 78963, 47266, 1, 257, 33333 y 100000\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca i32
%9 = alloca i32
%10 = bitcast float* %3 to i8*
%11 = bitcast float* %4 to i8*
%12 = bitcast float* %5 to i8*
%13 = bitcast float* %6 to i8*
%14 = bitcast float* %7 to i8*
%15 = bitcast i32* %8 to i8*
%16 = bitcast i32* %9 to i8*
store float 4.000000e+06, float* %3
store float 1.250000e+06, float* %4
store float 5.000000e+05, float* %5
store float 2.000000e+05, float* %6
store float 6.000000e+04, float* %7
br label %17
17: ; preds = %90, %2
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.21, i64 0, i64 0))
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.22, i64 0, i64 0))
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.23, i64 0, i64 0))
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %9)
%23 = load i32, i32* %9
switch i32 %23, label %90 [
i32 1, label %24
i32 2, label %32
i32 3, label %86
]
24: ; preds = %17
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.25, i64 0, i64 0))
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.26, i64 0, i64 0))
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.27, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.28, i64 0, i64 0))
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.29, i64 0, i64 0))
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.30, i64 0, i64 0))
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.31, i64 0, i64 0))
br label %88
32: ; preds = %17, %85
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %8)
%35 = load i32, i32* %8
%36 = icmp eq i32 %35, 46646
br i1 %36, label %37, label %44
37: ; preds = %32
%38 = load float, float* %3
%39 = fdiv float %38, 1.000000e+01
%40 = fpext float %39 to double
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.13, i64 0, i64 0), double %40)
%42 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %3)
%43 = load i32, i32* %8
br label %44
44: ; preds = %37, %32
%45 = phi i32 [ %43, %37 ], [ %35, %32 ]
%46 = icmp eq i32 %45, 40475
br i1 %46, label %47, label %54
47: ; preds = %44
%48 = load float, float* %4
%49 = fdiv float %48, 1.000000e+01
%50 = fpext float %49 to double
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.15, i64 0, i64 0), double %50)
%52 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %4)
%53 = load i32, i32* %8
br label %54
54: ; preds = %47, %44
%55 = phi i32 [ %53, %47 ], [ %45, %44 ]
%56 = icmp eq i32 %55, 82541
br i1 %56, label %57, label %64
57: ; preds = %54
%58 = load float, float* %5
%59 = fdiv float %58, 1.000000e+01
%60 = fpext float %59 to double
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.16, i64 0, i64 0), double %60)
%62 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %5)
%63 = load i32, i32* %8
br label %64
64: ; preds = %57, %54
%65 = phi i32 [ %63, %57 ], [ %55, %54 ]
%66 = icmp eq i32 %65, 18
br i1 %66, label %67, label %74
67: ; preds = %64
%68 = load float, float* %6
%69 = fdiv float %68, 1.000000e+01
%70 = fpext float %69 to double
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.17, i64 0, i64 0), double %70)
%72 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %6)
%73 = load i32, i32* %8
br label %74
74: ; preds = %67, %64
%75 = phi i32 [ %73, %67 ], [ %65, %64 ]
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %83
77: ; preds = %74
%78 = load float, float* %7
%79 = fdiv float %78, 1.000000e+01
%80 = fpext float %79 to double
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.18, i64 0, i64 0), double %80)
%82 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), float* %7)
br label %85
83: ; preds = %74
%84 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.24, i64 0, i64 0))
br label %85
85: ; preds = %83, %77
br label %32
86: ; preds = %17
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0))
br label %88
88: ; preds = %86, %24
%89 = load i32, i32* %9
br label %90
90: ; preds = %88, %17
%91 = phi i32 [ %89, %88 ], [ %23, %17 ]
%92 = icmp eq i32 %91, 3
br i1 %92, label %93, label %17
93: ; preds = %90
%94 = load i32, i32* @EXIT_SUCCESS
ret i32 %94
}