#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 *);
scalar_t__ test_implementations_by_sending_five_elements();
scalar_t__ test_implementations_by_sending_ten_elements();
scalar_t__ test_implementations_by_sending_three_elements();
int main() {
  int number_of_test_cases;
  scanf("%d", &number_of_test_cases);
  while (number_of_test_cases--) {
    if (test_implementations_by_sending_three_elements())
      printf("Correct Answer\n");
    else
      printf("Wrong Answer\n");
    if (test_implementations_by_sending_five_elements())
      printf("Correct Answer\n");
    else
      printf("Wrong Answer\n");
    if (test_implementations_by_sending_ten_elements())
      printf("Correct Answer\n");
    else
      printf("Wrong Answer\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
je     1212 <main+0xc2>
mov    $0x0,%al
call   1050 <test_implementations_by_sending_three_elements@plt>
cmp    $0x0,%rax
je     11a5 <main+0x55>
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
jmp    11b1 <main+0x61>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <test_implementations_by_sending_five_elements@plt>
cmp    $0x0,%rax
je     11d3 <main+0x83>
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
jmp    11df <main+0x8f>
lea    0xe39(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <test_implementations_by_sending_ten_elements@plt>
cmp    $0x0,%rax
je     1201 <main+0xb1>
lea    0xe0c(%rip),%rdi
call   1030 <printf@plt>
jmp    120d <main+0xbd>
lea    0xe0b(%rip),%rdi
call   1030 <printf@plt>
jmp    116f <main+0x1f>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xea5(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
subl   $0x1,0x4(%rsp)
jb     11c9 <main+0x79>
lea    0xe90(%rip),%r14
lea    0xe96(%rip),%rbx
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <test_implementations_by_sending_three_elements@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <test_implementations_by_sending_five_elements@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <test_implementations_by_sending_ten_elements@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <puts@plt>
subl   $0x1,0x4(%rsp)
jae    1180 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [16 x i8] c"Correct Answer\0A\00"
@.str.2 = [14 x i8] c"Wrong Answer\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
br label %4
4: ; preds = %29, %0
%5 = load i32, i32* %2
%6 = add nsw i32 %5, -1
store i32 %6, i32* %2
%7 = icmp ne i32 %5, 0
br i1 %7, label %8, label %30
8: ; preds = %4
%9 = call i64 (...) @test_implementations_by_sending_three_elements()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %15
13: ; preds = %8
%14 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %13, %11
%16 = call i64 (...) @test_implementations_by_sending_five_elements()
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %22
20: ; preds = %15
%21 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
%23 = call i64 (...) @test_implementations_by_sending_ten_elements()
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %29
27: ; preds = %22
%28 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %29
29: ; preds = %27, %25
br label %4
30: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str.4 = [13 x i8] c"Wrong Answer\00"
@str.7 = [15 x i8] c"Correct Answer\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = add nsw i32 %4, -1
store i32 %5, i32* %1
%6 = icmp eq i32 %4, 0
br i1 %6, label %23, label %7
7: ; preds = %0, %7
%8 = call i64 (...) @test_implementations_by_sending_three_elements()
%9 = icmp eq i64 %8, 0
%10 = select i1 %9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @str.7, i64 0, i64 0)
%11 = call i32 @puts(i8* dereferenceable(1) %10)
%12 = call i64 (...) @test_implementations_by_sending_five_elements()
%13 = icmp eq i64 %12, 0
%14 = select i1 %13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @str.7, i64 0, i64 0)
%15 = call i32 @puts(i8* dereferenceable(1) %14)
%16 = call i64 (...) @test_implementations_by_sending_ten_elements()
%17 = icmp eq i64 %16, 0
%18 = select i1 %17, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @str.7, i64 0, i64 0)
%19 = call i32 @puts(i8* dereferenceable(1) %18)
%20 = load i32, i32* %1
%21 = add nsw i32 %20, -1
store i32 %21, i32* %1
%22 = icmp eq i32 %20, 0
br i1 %22, label %23, label %7
23: ; preds = %7, %0
ret i32 0
}