#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);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int s, a[13], i, j;
  scanf("%d", &s);
  for (i = 1; i <= s; i++) {
    int t = 0;
    for (j = 0; j < 13; j++) {
      scanf("%d", &a[j]);
      if (a[j] == 0)
        t = 1;
    }
    if (t == 1)
      printf("Set #%d: No\n", i);
    else
      printf("Set #%d: Yes\n", i);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11ee <main+0xce>
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x48(%rbp)
cmpl   $0xd,-0x48(%rbp)
jge    11ae <main+0x8e>
movslq -0x48(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe80(%rip),%rdi
call   1040 <scanf@plt>
movslq -0x48(%rbp),%rax
cmpl   $0x0,-0x40(%rbp,%rax,4)
jne    119b <main+0x7b>
movl   $0x1,-0x4c(%rbp)
jmp    11a0 <main+0x80>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1160 <main+0x40>
cmpl   $0x1,-0x4c(%rbp)
jne    11cc <main+0xac>
mov    -0x44(%rbp),%esi
lea    0xe41(%rip),%rdi
call   1030 <printf@plt>
jmp    11db <main+0xbb>
mov    -0x44(%rbp),%esi
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
jmp    11e0 <main+0xc0>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1146 <main+0x26>
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    $0x88,%rsp
lea    0xec8(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    12f8 <main+0x1d8>
mov    $0x1,%r14d
lea    0xea6(%rip),%r15
lea    0x10(%rsp),%r12
lea    0xe9d(%rip),%rbx
lea    0xea3(%rip),%rbp
nopl   (%rax)
mov    %r15,%rdi
mov    %r12,%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0x10(%rsp)
mov    %rbp,%r13
cmove  %rbx,%r13
mov    %r15,%rdi
lea    0x14(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0x14(%rsp)
cmove  %rbx,%r13
mov    %r15,%rdi
lea    0x18(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0x18(%rsp)
cmove  %rbx,%r13
mov    %r15,%rdi
lea    0x1c(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0x1c(%rsp)
cmove  %rbx,%r13
mov    %r15,%rdi
lea    0x20(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0x20(%rsp)
cmove  %rbx,%r13
mov    %r15,%rdi
lea    0x24(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x24(%rsp),%xmm0
movaps %xmm0,0x60(%rsp)
mov    %r15,%rdi
lea    0x28(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x28(%rsp),%xmm0
unpcklps 0x60(%rsp),%xmm0
movaps %xmm0,0x60(%rsp)
mov    %r15,%rdi
lea    0x2c(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x2c(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
mov    %r15,%rdi
lea    0x30(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x30(%rsp),%xmm0
unpcklps 0x50(%rsp),%xmm0
unpcklpd 0x60(%rsp),%xmm0
movaps %xmm0,0x60(%rsp)
mov    %r15,%rdi
lea    0x34(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x34(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
mov    %r15,%rdi
lea    0x38(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x38(%rsp),%xmm0
unpcklps 0x50(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
mov    %r15,%rdi
lea    0x3c(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x3c(%rsp),%xmm0
movaps %xmm0,0x70(%rsp)
mov    %r15,%rdi
lea    0x40(%rsp),%rsi
call   1040 <scanf@plt>
movd   0x40(%rsp),%xmm0
punpckldq 0x70(%rsp),%xmm0
punpcklqdq 0x50(%rsp),%xmm0
pxor   %xmm1,%xmm1
movdqa 0x60(%rsp),%xmm2
pcmpeqd %xmm1,%xmm2
pcmpeqd %xmm1,%xmm0
packssdw %xmm2,%xmm0
pmovmskb %xmm0,%eax
test   %eax,%eax
cmovne %rbx,%r13
mov    %r13,%rdi
mov    %r14d,%esi
call   1030 <printf@plt>
lea    0x1(%r14),%eax
cmp    0xc(%rsp),%r14d
mov    %eax,%r14d
jl     1170 <main+0x50>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [13 x i8] c"Set #%d: No\0A\00"
@.str.2 = [14 x i8] c"Set #%d: Yes\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [13 x i32]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [13 x 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 = load i32, i32* %1
%7 = icmp slt i32 %6, 1
br i1 %7, label %77, label %8
8: ; preds = %0
%9 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 0
%10 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 1
%11 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 2
%12 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 3
%13 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 4
%14 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 5
%15 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 6
%16 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 7
%17 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 8
%18 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 9
%19 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 10
%20 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 11
%21 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 12
br label %22
22: ; preds = %8, %22
%23 = phi i32 [ %74, %22 ], [ 1, %8 ]
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%25 = load i32, i32* %9
%26 = icmp eq i32 %25, 0
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %10)
%28 = load i32, i32* %10
%29 = icmp eq i32 %28, 0
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %11)
%31 = load i32, i32* %11
%32 = icmp eq i32 %31, 0
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %12)
%34 = load i32, i32* %12
%35 = icmp eq i32 %34, 0
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %13)
%37 = load i32, i32* %13
%38 = icmp eq i32 %37, 0
%39 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %14)
%40 = load i32, i32* %14
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %15)
%42 = load i32, i32* %15
%43 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %16)
%44 = load i32, i32* %16
%45 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %17)
%46 = load i32, i32* %17
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %18)
%48 = load i32, i32* %18
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %19)
%50 = load i32, i32* %19
%51 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %20)
%52 = load i32, i32* %20
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %21)
%54 = load i32, i32* %21
%55 = insertelement <8 x i32> poison, i32 %54, i64 0
%56 = insertelement <8 x i32> %55, i32 %52, i64 1
%57 = insertelement <8 x i32> %56, i32 %50, i64 2
%58 = insertelement <8 x i32> %57, i32 %48, i64 3
%59 = insertelement <8 x i32> %58, i32 %46, i64 4
%60 = insertelement <8 x i32> %59, i32 %44, i64 5
%61 = insertelement <8 x i32> %60, i32 %42, i64 6
%62 = insertelement <8 x i32> %61, i32 %40, i64 7
%63 = freeze <8 x i32> %62
%64 = icmp eq <8 x i32> %63, zeroinitializer
%65 = bitcast <8 x i1> %64 to i8
%66 = icmp ne i8 %65, 0
%67 = select i1 %66, i1 true, i1 %38
%68 = select i1 %67, i1 true, i1 %35
%69 = select i1 %68, i1 true, i1 %32
%70 = select i1 %69, i1 true, i1 %29
%71 = select i1 %70, i1 true, i1 %26
%72 = select i1 %71, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0)
%73 = call i32 @printf(i8* %72, i32 %23)
%74 = add nuw nsw i32 %23, 1
%75 = load i32, i32* %1
%76 = icmp slt i32 %23, %75
br i1 %76, label %22, label %77
77: ; preds = %22, %0
ret i32 0
}