#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*/ free(unsigned int *);
unsigned int *malloc(int);
int /*<<< orphan*/ printf(char *, unsigned int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  unsigned int s[1024];
  int cnt = 1;
  s[0] = 0;
  while (cnt <= 512) {
    for (size_t i = 0; i < cnt; i++) {
      s[cnt + i] = 1 - s[i];
    }
    cnt *= 2;
  }
  int q;
  scanf("%d", &q);
  unsigned int *output = malloc(sizeof(unsigned int) * q);
  for (int a0 = 0; a0 < q; a0++) {
    int x;
    scanf("%d", &x);
    output[a0] = s[x];
  }
  for (int a0 = 0; a0 < q; a0++) {
    printf("%u\n", output[a0]);
  }
  free(output);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1040,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x1014(%rbp)
movl   $0x0,-0x1010(%rbp)
cmpl   $0x200,-0x1014(%rbp)
jg     11eb <main+0xab>
movq   $0x0,-0x1020(%rbp)
mov    -0x1020(%rbp),%rax
movslq -0x1014(%rbp),%rcx
cmp    %rcx,%rax
jae    11d7 <main+0x97>
mov    -0x1020(%rbp),%rax
mov    $0x1,%ecx
sub    -0x1010(%rbp,%rax,4),%ecx
movslq -0x1014(%rbp),%rax
add    -0x1020(%rbp),%rax
mov    %ecx,-0x1010(%rbp,%rax,4)
mov    -0x1020(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x1020(%rbp)
jmp    1181 <main+0x41>
mov    -0x1014(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x1014(%rbp)
jmp    1166 <main+0x26>
lea    0xe0e(%rip),%rdi
lea    -0x1024(%rbp),%rsi
call   1060 <scanf@plt>
movslq -0x1024(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x1030(%rbp)
movl   $0x0,-0x1034(%rbp)
mov    -0x1034(%rbp),%eax
cmp    -0x1024(%rbp),%eax
jge    1279 <main+0x139>
lea    0xdc6(%rip),%rdi
lea    -0x1038(%rbp),%rsi
call   1060 <scanf@plt>
movslq -0x1038(%rbp),%rax
mov    -0x1010(%rbp,%rax,4),%edx
mov    -0x1030(%rbp),%rax
movslq -0x1034(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1034(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1034(%rbp)
jmp    1221 <main+0xe1>
movl   $0x0,-0x103c(%rbp)
mov    -0x103c(%rbp),%eax
cmp    -0x1024(%rbp),%eax
jge    12c6 <main+0x186>
mov    -0x1030(%rbp),%rax
movslq -0x103c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd56(%rip),%rdi
call   1040 <printf@plt>
mov    -0x103c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x103c(%rbp)
jmp    1283 <main+0x143>
mov    -0x1030(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x1040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1018,%rsp
movaps 0xeab(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeaf(%rip),%xmm1
movaps %xmm1,0x20(%rsp)
movaps %xmm1,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm1,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm1,0x80(%rsp)
movl   $0x1,0x90(%rsp)
movdqu 0x14(%rsp),%xmm1
movdqa 0xe80(%rip),%xmm0
movdqa %xmm0,%xmm2
psubd  %xmm1,%xmm2
movdqu %xmm2,0x94(%rsp)
movdqu 0x24(%rsp),%xmm1
movdqa %xmm0,%xmm2
psubd  %xmm1,%xmm2
movdqu %xmm2,0xa4(%rsp)
movdqu 0x34(%rsp),%xmm1
movdqa %xmm0,%xmm2
psubd  %xmm1,%xmm2
movdqu %xmm2,0xb4(%rsp)
movdqu 0x44(%rsp),%xmm1
movdqa %xmm0,%xmm2
psubd  %xmm1,%xmm2
movdqu %xmm2,0xc4(%rsp)
movdqu 0x54(%rsp),%xmm1
movdqa %xmm0,%xmm2
psubd  %xmm1,%xmm2
movdqu %xmm2,0xd4(%rsp)
movdqu 0x64(%rsp),%xmm1
movdqa %xmm0,%xmm2
psubd  %xmm1,%xmm2
movdqu %xmm2,0xe4(%rsp)
movdqu 0x74(%rsp),%xmm1
movdqa %xmm0,%xmm2
psubd  %xmm1,%xmm2
movdqu %xmm2,0xf4(%rsp)
mov    $0x1,%eax
sub    0x84(%rsp),%eax
mov    %eax,0x104(%rsp)
mov    $0x1,%eax
sub    0x88(%rsp),%eax
mov    $0x1,%ecx
mov    %eax,0x108(%rsp)
sub    0x8c(%rsp),%ecx
mov    %ecx,0x10c(%rsp)
movdqa %xmm0,%xmm1
psubd  0x10(%rsp),%xmm1
movdqa %xmm1,0x110(%rsp)
movdqa %xmm0,%xmm1
psubd  0x20(%rsp),%xmm1
movdqa %xmm1,0x120(%rsp)
movdqa %xmm0,%xmm1
psubd  0x30(%rsp),%xmm1
movdqa %xmm1,0x130(%rsp)
movdqa %xmm0,%xmm1
psubd  0x40(%rsp),%xmm1
movdqa %xmm1,0x140(%rsp)
movdqa %xmm0,%xmm1
psubd  0x50(%rsp),%xmm1
movdqa %xmm1,0x150(%rsp)
movdqa %xmm0,%xmm1
psubd  0x60(%rsp),%xmm1
movdqa %xmm1,0x160(%rsp)
movdqa %xmm0,%xmm1
psubd  0x70(%rsp),%xmm1
movdqa %xmm1,0x170(%rsp)
movdqa %xmm0,%xmm1
psubd  0x80(%rsp),%xmm1
movdqa %xmm1,0x180(%rsp)
movdqa %xmm0,%xmm1
psubd  0x90(%rsp),%xmm1
movdqa %xmm1,0x190(%rsp)
movdqa %xmm0,%xmm1
psubd  0xa0(%rsp),%xmm1
movdqa %xmm1,0x1a0(%rsp)
movdqa %xmm0,%xmm1
psubd  0xb0(%rsp),%xmm1
movdqa %xmm1,0x1b0(%rsp)
movdqa %xmm0,%xmm1
psubd  0xc0(%rsp),%xmm1
movdqa %xmm1,0x1c0(%rsp)
movdqa %xmm0,%xmm1
psubd  0xd0(%rsp),%xmm1
movdqa %xmm1,0x1d0(%rsp)
movdqa %xmm0,%xmm1
psubd  0xe0(%rsp),%xmm1
movdqa %xmm1,0x1e0(%rsp)
movdqa %xmm0,%xmm1
psubd  0xf0(%rsp),%xmm1
movdqa %xmm1,0x1f0(%rsp)
movdqa %xmm0,%xmm1
psubd  0x100(%rsp),%xmm1
movdqa %xmm1,0x200(%rsp)
mov    $0xffffffffffffff80,%rax
cs nopw 0x0(%rax,%rax,1)
movdqa %xmm0,%xmm1
psubd  0x210(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x410(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x220(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x420(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x230(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x430(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x240(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x440(%rsp,%rax,4)
add    $0x10,%rax
jne    13d0 <main+0x290>
mov    $0xffffffffffffff00,%rax
cs nopw 0x0(%rax,%rax,1)
nop
movdqa %xmm0,%xmm1
psubd  0x410(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x810(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x420(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x820(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x430(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x830(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x440(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x840(%rsp,%rax,4)
add    $0x10,%rax
jne    1440 <main+0x300>
mov    $0xfffffffffffffe00,%rax
cs nopw 0x0(%rax,%rax,1)
nop
movdqa %xmm0,%xmm1
psubd  0x810(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x1010(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x820(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x1020(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x830(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x1030(%rsp,%rax,4)
movdqa %xmm0,%xmm1
psubd  0x840(%rsp,%rax,4),%xmm1
movdqa %xmm1,0x1040(%rsp,%rax,4)
add    $0x10,%rax
jne    14b0 <main+0x370>
lea    0xb1b(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x8(%rsp),%ebx
lea    0x0(,%rbx,4),%edi
call   1050 <malloc@plt>
mov    %rax,%r12
test   %ebx,%ebx
jle    15aa <main+0x46a>
xor    %ebx,%ebx
lea    0xaf1(%rip),%r14
lea    0xc(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <scanf@plt>
movslq 0xc(%rsp),%rax
mov    0x10(%rsp,%rax,4),%eax
mov    %eax,(%r12,%rbx,4)
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     1550 <main+0x410>
test   %eax,%eax
jle    15aa <main+0x46a>
xor    %ebx,%ebx
lea    0xab0(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%r12,%rbx,4),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     1590 <main+0x450>
mov    %r12,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x1018,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1024 x i32]
%3 = alloca i32
%4 = alloca i64
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %3
%10 = getelementptr inbounds [1024 x i32], [1024 x i32]* %2, i64 0, i64 0
store i32 0, i32* %10
br label %11
11: ; preds = %33, %0
%12 = load i32, i32* %3
%13 = icmp sle i32 %12, 512
br i1 %13, label %14, label %36
14: ; preds = %11
store i64 0, i64* %4
br label %15
15: ; preds = %30, %14
%16 = load i64, i64* %4
%17 = load i32, i32* %3
%18 = sext i32 %17 to i64
%19 = icmp ult i64 %16, %18
br i1 %19, label %20, label %33
20: ; preds = %15
%21 = load i64, i64* %4
%22 = getelementptr inbounds [1024 x i32], [1024 x i32]* %2, i64 0, i64 %21
%23 = load i32, i32* %22
%24 = sub i32 1, %23
%25 = load i32, i32* %3
%26 = sext i32 %25 to i64
%27 = load i64, i64* %4
%28 = add i64 %26, %27
%29 = getelementptr inbounds [1024 x i32], [1024 x i32]* %2, i64 0, i64 %28
store i32 %24, i32* %29
br label %30
30: ; preds = %20
%31 = load i64, i64* %4
%32 = add i64 %31, 1
store i64 %32, i64* %4
br label %15
33: ; preds = %15
%34 = load i32, i32* %3
%35 = mul nsw i32 %34, 2
store i32 %35, i32* %3
br label %11
36: ; preds = %11
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%38 = load i32, i32* %5
%39 = sext i32 %38 to i64
%40 = mul i64 4, %39
%41 = trunc i64 %40 to i32
%42 = call i32* @malloc(i32 %41)
store i32* %42, i32** %6
store i32 0, i32* %7
br label %43
43: ; preds = %57, %36
%44 = load i32, i32* %7
%45 = load i32, i32* %5
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %60
47: ; preds = %43
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %8)
%49 = load i32, i32* %8
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [1024 x i32], [1024 x i32]* %2, i64 0, i64 %50
%52 = load i32, i32* %51
%53 = load i32*, i32** %6
%54 = load i32, i32* %7
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, i32* %53, i64 %55
store i32 %52, i32* %56
br label %57
57: ; preds = %47
%58 = load i32, i32* %7
%59 = add nsw i32 %58, 1
store i32 %59, i32* %7
br label %43
60: ; preds = %43
store i32 0, i32* %9
br label %61
61: ; preds = %72, %60
%62 = load i32, i32* %9
%63 = load i32, i32* %5
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %75
65: ; preds = %61
%66 = load i32*, i32** %6
%67 = load i32, i32* %9
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, i32* %66, i64 %68
%70 = load i32, i32* %69
%71 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %70)
br label %72
72: ; preds = %65
%73 = load i32, i32* %9
%74 = add nsw i32 %73, 1
store i32 %74, i32* %9
br label %61
75: ; preds = %61
%76 = load i32*, i32** %6
%77 = call i32 @free(i32* %76)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%u\0A\00"
define i32 @main() {
%1 = alloca [1024 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = bitcast [1024 x i32]* %1 to i8*
%5 = bitcast [1024 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 1, i32 0>, <4 x i32>* %5
%6 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 4
%7 = bitcast i32* %6 to <4 x i32>*
store <4 x i32> <i32 1, i32 0, i32 0, i32 1>, <4 x i32>* %7
%8 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 8
%9 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> <i32 1, i32 0, i32 0, i32 1>, <4 x i32>* %9
%10 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 12
%11 = bitcast i32* %10 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 1, i32 0>, <4 x i32>* %11
%12 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 16
%13 = bitcast i32* %12 to <4 x i32>*
store <4 x i32> <i32 1, i32 0, i32 0, i32 1>, <4 x i32>* %13
%14 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 20
%15 = bitcast i32* %14 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 1, i32 0>, <4 x i32>* %15
%16 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 24
%17 = bitcast i32* %16 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 1, i32 0>, <4 x i32>* %17
%18 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 28
%19 = bitcast i32* %18 to <4 x i32>*
store <4 x i32> <i32 1, i32 0, i32 0, i32 1>, <4 x i32>* %19
%20 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 32
store i32 1, i32* %20
%21 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 1
%22 = bitcast i32* %21 to <4 x i32>*
%23 = load <4 x i32>, <4 x i32>* %22
%24 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %23
%25 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 33
%26 = bitcast i32* %25 to <4 x i32>*
store <4 x i32> %24, <4 x i32>* %26
%27 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 5
%28 = bitcast i32* %27 to <4 x i32>*
%29 = load <4 x i32>, <4 x i32>* %28
%30 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %29
%31 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 37
%32 = bitcast i32* %31 to <4 x i32>*
store <4 x i32> %30, <4 x i32>* %32
%33 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 9
%34 = bitcast i32* %33 to <4 x i32>*
%35 = load <4 x i32>, <4 x i32>* %34
%36 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %35
%37 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 41
%38 = bitcast i32* %37 to <4 x i32>*
store <4 x i32> %36, <4 x i32>* %38
%39 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 13
%40 = bitcast i32* %39 to <4 x i32>*
%41 = load <4 x i32>, <4 x i32>* %40
%42 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %41
%43 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 45
%44 = bitcast i32* %43 to <4 x i32>*
store <4 x i32> %42, <4 x i32>* %44
%45 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 17
%46 = bitcast i32* %45 to <4 x i32>*
%47 = load <4 x i32>, <4 x i32>* %46
%48 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %47
%49 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 49
%50 = bitcast i32* %49 to <4 x i32>*
store <4 x i32> %48, <4 x i32>* %50
%51 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 21
%52 = bitcast i32* %51 to <4 x i32>*
%53 = load <4 x i32>, <4 x i32>* %52
%54 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %53
%55 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 53
%56 = bitcast i32* %55 to <4 x i32>*
store <4 x i32> %54, <4 x i32>* %56
%57 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 25
%58 = bitcast i32* %57 to <4 x i32>*
%59 = load <4 x i32>, <4 x i32>* %58
%60 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %59
%61 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 57
%62 = bitcast i32* %61 to <4 x i32>*
store <4 x i32> %60, <4 x i32>* %62
%63 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 29
%64 = load i32, i32* %63
%65 = sub i32 1, %64
%66 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 61
store i32 %65, i32* %66
%67 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 30
%68 = load i32, i32* %67
%69 = sub i32 1, %68
%70 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 62
store i32 %69, i32* %70
%71 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 31
%72 = load i32, i32* %71
%73 = sub i32 1, %72
%74 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 63
store i32 %73, i32* %74
%75 = bitcast [1024 x i32]* %1 to <4 x i32>*
%76 = load <4 x i32>, <4 x i32>* %75
%77 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %76
%78 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 64
%79 = bitcast i32* %78 to <4 x i32>*
store <4 x i32> %77, <4 x i32>* %79
%80 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 4
%81 = bitcast i32* %80 to <4 x i32>*
%82 = load <4 x i32>, <4 x i32>* %81
%83 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %82
%84 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 68
%85 = bitcast i32* %84 to <4 x i32>*
store <4 x i32> %83, <4 x i32>* %85
%86 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 8
%87 = bitcast i32* %86 to <4 x i32>*
%88 = load <4 x i32>, <4 x i32>* %87
%89 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %88
%90 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 72
%91 = bitcast i32* %90 to <4 x i32>*
store <4 x i32> %89, <4 x i32>* %91
%92 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 12
%93 = bitcast i32* %92 to <4 x i32>*
%94 = load <4 x i32>, <4 x i32>* %93
%95 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %94
%96 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 76
%97 = bitcast i32* %96 to <4 x i32>*
store <4 x i32> %95, <4 x i32>* %97
%98 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 16
%99 = bitcast i32* %98 to <4 x i32>*
%100 = load <4 x i32>, <4 x i32>* %99
%101 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %100
%102 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 80
%103 = bitcast i32* %102 to <4 x i32>*
store <4 x i32> %101, <4 x i32>* %103
%104 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 20
%105 = bitcast i32* %104 to <4 x i32>*
%106 = load <4 x i32>, <4 x i32>* %105
%107 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %106
%108 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 84
%109 = bitcast i32* %108 to <4 x i32>*
store <4 x i32> %107, <4 x i32>* %109
%110 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 24
%111 = bitcast i32* %110 to <4 x i32>*
%112 = load <4 x i32>, <4 x i32>* %111
%113 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %112
%114 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 88
%115 = bitcast i32* %114 to <4 x i32>*
store <4 x i32> %113, <4 x i32>* %115
%116 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 28
%117 = bitcast i32* %116 to <4 x i32>*
%118 = load <4 x i32>, <4 x i32>* %117
%119 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %118
%120 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 92
%121 = bitcast i32* %120 to <4 x i32>*
store <4 x i32> %119, <4 x i32>* %121
%122 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 32
%123 = bitcast i32* %122 to <4 x i32>*
%124 = load <4 x i32>, <4 x i32>* %123
%125 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %124
%126 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 96
%127 = bitcast i32* %126 to <4 x i32>*
store <4 x i32> %125, <4 x i32>* %127
%128 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 36
%129 = bitcast i32* %128 to <4 x i32>*
%130 = load <4 x i32>, <4 x i32>* %129
%131 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %130
%132 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 100
%133 = bitcast i32* %132 to <4 x i32>*
store <4 x i32> %131, <4 x i32>* %133
%134 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 40
%135 = bitcast i32* %134 to <4 x i32>*
%136 = load <4 x i32>, <4 x i32>* %135
%137 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %136
%138 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 104
%139 = bitcast i32* %138 to <4 x i32>*
store <4 x i32> %137, <4 x i32>* %139
%140 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 44
%141 = bitcast i32* %140 to <4 x i32>*
%142 = load <4 x i32>, <4 x i32>* %141
%143 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %142
%144 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 108
%145 = bitcast i32* %144 to <4 x i32>*
store <4 x i32> %143, <4 x i32>* %145
%146 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 48
%147 = bitcast i32* %146 to <4 x i32>*
%148 = load <4 x i32>, <4 x i32>* %147
%149 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %148
%150 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 112
%151 = bitcast i32* %150 to <4 x i32>*
store <4 x i32> %149, <4 x i32>* %151
%152 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 52
%153 = bitcast i32* %152 to <4 x i32>*
%154 = load <4 x i32>, <4 x i32>* %153
%155 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %154
%156 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 116
%157 = bitcast i32* %156 to <4 x i32>*
store <4 x i32> %155, <4 x i32>* %157
%158 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 56
%159 = bitcast i32* %158 to <4 x i32>*
%160 = load <4 x i32>, <4 x i32>* %159
%161 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %160
%162 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 120
%163 = bitcast i32* %162 to <4 x i32>*
store <4 x i32> %161, <4 x i32>* %163
%164 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 60
%165 = bitcast i32* %164 to <4 x i32>*
%166 = load <4 x i32>, <4 x i32>* %165
%167 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %166
%168 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 124
%169 = bitcast i32* %168 to <4 x i32>*
store <4 x i32> %167, <4 x i32>* %169
br label %170
170: ; preds = %170, %0
%171 = phi i64 [ 0, %0 ], [ %203, %170 ]
%172 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %171
%173 = bitcast i32* %172 to <4 x i32>*
%174 = load <4 x i32>, <4 x i32>* %173
%175 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %174
%176 = add nuw nsw i64 %171, 128
%177 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %176
%178 = bitcast i32* %177 to <4 x i32>*
store <4 x i32> %175, <4 x i32>* %178
%179 = or i64 %171, 4
%180 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %179
%181 = bitcast i32* %180 to <4 x i32>*
%182 = load <4 x i32>, <4 x i32>* %181
%183 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %182
%184 = add nuw nsw i64 %171, 132
%185 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %184
%186 = bitcast i32* %185 to <4 x i32>*
store <4 x i32> %183, <4 x i32>* %186
%187 = or i64 %171, 8
%188 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %187
%189 = bitcast i32* %188 to <4 x i32>*
%190 = load <4 x i32>, <4 x i32>* %189
%191 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %190
%192 = add nuw nsw i64 %171, 136
%193 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %192
%194 = bitcast i32* %193 to <4 x i32>*
store <4 x i32> %191, <4 x i32>* %194
%195 = or i64 %171, 12
%196 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %195
%197 = bitcast i32* %196 to <4 x i32>*
%198 = load <4 x i32>, <4 x i32>* %197
%199 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %198
%200 = add nuw nsw i64 %171, 140
%201 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %200
%202 = bitcast i32* %201 to <4 x i32>*
store <4 x i32> %199, <4 x i32>* %202
%203 = add nuw nsw i64 %171, 16
%204 = icmp eq i64 %203, 128
br i1 %204, label %205, label %170
205: ; preds = %170, %205
%206 = phi i64 [ %238, %205 ], [ 0, %170 ]
%207 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %206
%208 = bitcast i32* %207 to <4 x i32>*
%209 = load <4 x i32>, <4 x i32>* %208
%210 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %209
%211 = add nuw nsw i64 %206, 256
%212 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %211
%213 = bitcast i32* %212 to <4 x i32>*
store <4 x i32> %210, <4 x i32>* %213
%214 = or i64 %206, 4
%215 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %214
%216 = bitcast i32* %215 to <4 x i32>*
%217 = load <4 x i32>, <4 x i32>* %216
%218 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %217
%219 = add nuw nsw i64 %206, 260
%220 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %219
%221 = bitcast i32* %220 to <4 x i32>*
store <4 x i32> %218, <4 x i32>* %221
%222 = or i64 %206, 8
%223 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %222
%224 = bitcast i32* %223 to <4 x i32>*
%225 = load <4 x i32>, <4 x i32>* %224
%226 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %225
%227 = add nuw nsw i64 %206, 264
%228 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %227
%229 = bitcast i32* %228 to <4 x i32>*
store <4 x i32> %226, <4 x i32>* %229
%230 = or i64 %206, 12
%231 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %230
%232 = bitcast i32* %231 to <4 x i32>*
%233 = load <4 x i32>, <4 x i32>* %232
%234 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %233
%235 = add nuw nsw i64 %206, 268
%236 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %235
%237 = bitcast i32* %236 to <4 x i32>*
store <4 x i32> %234, <4 x i32>* %237
%238 = add nuw nsw i64 %206, 16
%239 = icmp eq i64 %238, 256
br i1 %239, label %240, label %205
240: ; preds = %205, %240
%241 = phi i64 [ %273, %240 ], [ 0, %205 ]
%242 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %241
%243 = bitcast i32* %242 to <4 x i32>*
%244 = load <4 x i32>, <4 x i32>* %243
%245 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %244
%246 = add nuw nsw i64 %241, 512
%247 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %246
%248 = bitcast i32* %247 to <4 x i32>*
store <4 x i32> %245, <4 x i32>* %248
%249 = or i64 %241, 4
%250 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %249
%251 = bitcast i32* %250 to <4 x i32>*
%252 = load <4 x i32>, <4 x i32>* %251
%253 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %252
%254 = add nuw nsw i64 %241, 516
%255 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %254
%256 = bitcast i32* %255 to <4 x i32>*
store <4 x i32> %253, <4 x i32>* %256
%257 = or i64 %241, 8
%258 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %257
%259 = bitcast i32* %258 to <4 x i32>*
%260 = load <4 x i32>, <4 x i32>* %259
%261 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %260
%262 = add nuw nsw i64 %241, 520
%263 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %262
%264 = bitcast i32* %263 to <4 x i32>*
store <4 x i32> %261, <4 x i32>* %264
%265 = or i64 %241, 12
%266 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %265
%267 = bitcast i32* %266 to <4 x i32>*
%268 = load <4 x i32>, <4 x i32>* %267
%269 = sub <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %268
%270 = add nuw nsw i64 %241, 524
%271 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %270
%272 = bitcast i32* %271 to <4 x i32>*
store <4 x i32> %269, <4 x i32>* %272
%273 = add nuw nsw i64 %241, 16
%274 = icmp eq i64 %273, 512
br i1 %274, label %275, label %240
275: ; preds = %240
%276 = bitcast i32* %2 to i8*
%277 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%278 = load i32, i32* %2
%279 = shl i32 %278, 2
%280 = call i32* @malloc(i32 %279)
%281 = icmp sgt i32 %278, 0
br i1 %281, label %282, label %298
282: ; preds = %275
%283 = bitcast i32* %3 to i8*
br label %286
284: ; preds = %286
%285 = icmp sgt i32 %295, 0
br i1 %285, label %300, label %298
286: ; preds = %282, %286
%287 = phi i64 [ 0, %282 ], [ %294, %286 ]
%288 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%289 = load i32, i32* %3
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds [1024 x i32], [1024 x i32]* %1, i64 0, i64 %290
%292 = load i32, i32* %291
%293 = getelementptr inbounds i32, i32* %280, i64 %287
store i32 %292, i32* %293
%294 = add nuw nsw i64 %287, 1
%295 = load i32, i32* %2
%296 = sext i32 %295 to i64
%297 = icmp slt i64 %294, %296
br i1 %297, label %286, label %284
298: ; preds = %300, %275, %284
%299 = call i32 @free(i32* %280)
ret i32 0
300: ; preds = %284, %300
%301 = phi i64 [ %305, %300 ], [ 0, %284 ]
%302 = getelementptr inbounds i32, i32* %280, i64 %301
%303 = load i32, i32* %302
%304 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %303)
%305 = add nuw nsw i64 %301, 1
%306 = load i32, i32* %2
%307 = sext i32 %306 to i64
%308 = icmp slt i64 %305, %307
br i1 %308, label %300, label %298
}