#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 /*<<< orphan*/ scanf(char *, int *);
main() {
  int n1, n2, i;
  scanf("%d", &n1);
  scanf("%d", &n2);
  for (i = 0; i < n1; i++) {
    if (n2 == 1)
      printf("GOOD LUCK\n");
    else if (n2 == 2)
      printf("BUENA SUERTE\n");
    else if (n2 == 3)
      printf("BONNE CHANCE\n");
    else if (n2 == 4)
      printf("BUONA FORTUNA\n");
    else if (n2 == 5)
      printf("VIEL GLUECK\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeba(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    120b <main+0xeb>
cmpl   $0x1,-0xc(%rbp)
jne    117d <main+0x5d>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
jmp    11f8 <main+0xd8>
cmpl   $0x2,-0xc(%rbp)
jne    1198 <main+0x78>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
jmp    11f3 <main+0xd3>
cmpl   $0x3,-0xc(%rbp)
jne    11b3 <main+0x93>
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
jmp    11ee <main+0xce>
cmpl   $0x4,-0xc(%rbp)
jne    11ce <main+0xae>
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
jmp    11e9 <main+0xc9>
cmpl   $0x5,-0xc(%rbp)
jne    11e4 <main+0xc4>
lea    0xe5a(%rip),%rdi
call   1030 <printf@plt>
jmp    11e9 <main+0xc9>
jmp    11ee <main+0xce>
jmp    11f3 <main+0xd3>
jmp    11f8 <main+0xd8>
jmp    11fd <main+0xdd>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1156 <main+0x36>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
cmpl   $0x0,(%rsp)
jle    1184 <main+0x64>
xor    %ebx,%ebx
lea    0xef2(%rip),%r14
jmp    1168 <main+0x48>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%ebx
cmp    (%rsp),%ebx
jge    1184 <main+0x64>
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x4,%eax
ja     1160 <main+0x40>
cltq
movslq (%r14,%rax,4),%rdi
add    %r14,%rdi
call   1030 <puts@plt>
jmp    1160 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [11 x i8] c"GOOD LUCK\0A\00"
@.str.2 = [14 x i8] c"BUENA SUERTE\0A\00"
@.str.3 = [14 x i8] c"BONNE CHANCE\0A\00"
@.str.4 = [15 x i8] c"BUONA FORTUNA\0A\00"
@.str.5 = [13 x i8] c"VIEL GLUECK\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
store i32 0, i32* %4
br label %7
7: ; preds = %41, %0
%8 = load i32, i32* %4
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %44
11: ; preds = %7
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %40
16: ; preds = %11
%17 = load i32, i32* %3
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %39
21: ; preds = %16
%22 = load i32, i32* %3
%23 = icmp eq i32 %22, 3
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %38
26: ; preds = %21
%27 = load i32, i32* %3
%28 = icmp eq i32 %27, 4
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %37
31: ; preds = %26
%32 = load i32, i32* %3
%33 = icmp eq i32 %32, 5
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
br label %37
37: ; preds = %36, %29
br label %38
38: ; preds = %37, %24
br label %39
39: ; preds = %38, %19
br label %40
40: ; preds = %39, %14
br label %41
41: ; preds = %40
%42 = load i32, i32* %4
%43 = add nsw i32 %42, 1
store i32 %43, i32* %4
br label %7
44: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [12 x i8] c"VIEL GLUECK\00"
@str.6 = [14 x i8] c"BUONA FORTUNA\00"
@str.7 = [13 x i8] c"BONNE CHANCE\00"
@str.8 = [13 x i8] c"BUENA SUERTE\00"
@str.9 = [10 x i8] c"GOOD LUCK\00"
@reltable.main = [5 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str.9 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @str.8 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @str.7 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @str.6 to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @str to i64), i64 ptrtoint ([5 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %1
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %23
9: ; preds = %0, %19
%10 = phi i32 [ %20, %19 ], [ 0, %0 ]
%11 = load i32, i32* %2
%12 = add i32 %11, -1
%13 = icmp ult i32 %12, 5
br i1 %13, label %14, label %19
14: ; preds = %9
%15 = sext i32 %12 to i64
%16 = shl i64 %15, 2
%17 = call i8* @llvm.load.relative.i64(i8* bitcast ([5 x i32]* @reltable.main to i8*), i64 %16)
%18 = call i32 @puts(i8* dereferenceable(1) %17)
br label %19
19: ; preds = %9, %14
%20 = add nuw nsw i32 %10, 1
%21 = load i32, i32* %1
%22 = icmp slt i32 %20, %21
br i1 %22, label %9, label %23
23: ; preds = %19, %0
ret i32 0
}