#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*/ memset(int *, int /*<<< orphan*/, int);
int singleNumber(int *nums, int numsSize) {
  int bits[32];
  int i, j, res;
  memset(bits, 0, 32 * sizeof(int));
  for (i = 0; i < numsSize; i++)
    for (j = 0; j < 32; j++)
      bits[j] += (nums[i] >> j) & 1;
  res = 0;
  for (i = 0; i < 32; i++)
    res += (bits[i] % 3) << i;
  return res;
}


x86 assembly (clang, -O0):
<singleNumber>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1030 <memset@plt>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11c2 <singleNumber+0xb2>
movl   $0x0,-0x98(%rbp)
cmpl   $0x20,-0x98(%rbp)
jge    11a9 <singleNumber+0x99>
mov    -0x8(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x98(%rbp),%ecx
sar    %cl,%eax
mov    %eax,%ecx
and    $0x1,%ecx
movslq -0x98(%rbp),%rax
add    -0x90(%rbp,%rax,4),%ecx
mov    %ecx,-0x90(%rbp,%rax,4)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    1158 <singleNumber+0x48>
jmp    11ae <singleNumber+0x9e>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    113f <singleNumber+0x2f>
movl   $0x0,-0x9c(%rbp)
movl   $0x0,-0x94(%rbp)
cmpl   $0x20,-0x94(%rbp)
jge    1223 <singleNumber+0x113>
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    -0x94(%rbp),%ecx
shl    %cl,%eax
add    -0x9c(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    11d6 <singleNumber+0xc6>
mov    -0x9c(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<singleNumber>:
push   %rbp
push   %rbx
sub    $0x88,%rsp
mov    %esi,%ebp
mov    %rdi,%rbx
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1030 <memset@plt>
test   %ebp,%ebp
jle    1385 <singleNumber+0x275>
mov    %ebp,%eax
movdqa (%rsp),%xmm7
movdqa 0x10(%rsp),%xmm6
movdqa 0x20(%rsp),%xmm5
movdqa 0x30(%rsp),%xmm4
movdqa 0x40(%rsp),%xmm12
movdqa 0x50(%rsp),%xmm11
movdqa 0x60(%rsp),%xmm10
movdqa 0x70(%rsp),%xmm9
xor    %ecx,%ecx
movaps 0xe8c(%rip),%xmm8
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movd   (%rbx,%rcx,4),%xmm0
pshufd $0x0,%xmm0,%xmm1
movdqa %xmm1,%xmm0
psrld  $0x3,%xmm0
movdqa %xmm1,%xmm2
psrld  $0x2,%xmm2
punpckhqdq %xmm0,%xmm2
movdqa %xmm1,%xmm3
psrld  $0x1,%xmm3
movdqa %xmm1,%xmm0
punpcklqdq %xmm3,%xmm0
shufps $0xcc,%xmm2,%xmm0
andps  %xmm8,%xmm0
paddd  %xmm0,%xmm7
movdqa %xmm1,%xmm0
psrld  $0x7,%xmm0
movdqa %xmm1,%xmm2
psrld  $0x6,%xmm2
punpckhqdq %xmm0,%xmm2
movdqa %xmm1,%xmm0
psrld  $0x5,%xmm0
movdqa %xmm1,%xmm3
psrld  $0x4,%xmm3
punpcklqdq %xmm0,%xmm3
shufps $0xcc,%xmm2,%xmm3
andps  %xmm8,%xmm3
paddd  %xmm3,%xmm6
movdqa %xmm1,%xmm0
psrld  $0xb,%xmm0
movdqa %xmm1,%xmm2
psrld  $0xa,%xmm2
punpckhqdq %xmm0,%xmm2
movdqa %xmm1,%xmm0
psrld  $0x9,%xmm0
movdqa %xmm1,%xmm3
psrld  $0x8,%xmm3
punpcklqdq %xmm0,%xmm3
shufps $0xcc,%xmm2,%xmm3
andps  %xmm8,%xmm3
paddd  %xmm3,%xmm5
movdqa %xmm1,%xmm0
psrld  $0xf,%xmm0
movdqa %xmm1,%xmm2
psrld  $0xe,%xmm2
punpckhqdq %xmm0,%xmm2
movdqa %xmm1,%xmm0
psrld  $0xd,%xmm0
movdqa %xmm1,%xmm3
psrld  $0xc,%xmm3
punpcklqdq %xmm0,%xmm3
shufps $0xcc,%xmm2,%xmm3
andps  %xmm8,%xmm3
paddd  %xmm3,%xmm4
movdqa %xmm1,%xmm0
psrld  $0x13,%xmm0
movdqa %xmm1,%xmm2
psrld  $0x12,%xmm2
punpckhqdq %xmm0,%xmm2
movdqa %xmm1,%xmm0
psrld  $0x11,%xmm0
movdqa %xmm1,%xmm3
psrld  $0x10,%xmm3
punpcklqdq %xmm0,%xmm3
shufps $0xcc,%xmm2,%xmm3
andps  %xmm8,%xmm3
paddd  %xmm3,%xmm12
movdqa %xmm1,%xmm0
psrld  $0x17,%xmm0
movdqa %xmm1,%xmm2
psrld  $0x16,%xmm2
punpckhqdq %xmm0,%xmm2
movdqa %xmm1,%xmm0
psrld  $0x15,%xmm0
movdqa %xmm1,%xmm3
psrld  $0x14,%xmm3
punpcklqdq %xmm0,%xmm3
shufps $0xcc,%xmm2,%xmm3
andps  %xmm8,%xmm3
paddd  %xmm3,%xmm11
movdqa %xmm1,%xmm0
psrld  $0x1b,%xmm0
movdqa %xmm1,%xmm2
psrld  $0x1a,%xmm2
punpckhqdq %xmm0,%xmm2
movdqa %xmm1,%xmm0
psrld  $0x19,%xmm0
movdqa %xmm1,%xmm3
psrld  $0x18,%xmm3
punpcklqdq %xmm0,%xmm3
shufps $0xcc,%xmm2,%xmm3
andps  %xmm8,%xmm3
paddd  %xmm3,%xmm10
movdqa %xmm1,%xmm0
psrld  $0x1f,%xmm0
movdqa %xmm1,%xmm2
psrld  $0x1e,%xmm2
punpckhqdq %xmm0,%xmm2
movdqa %xmm1,%xmm0
psrld  $0x1d,%xmm0
psrld  $0x1c,%xmm1
punpcklqdq %xmm0,%xmm1
shufps $0xcc,%xmm2,%xmm1
andps  %xmm8,%xmm1
paddd  %xmm1,%xmm9
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1180 <singleNumber+0x70>
movdqa %xmm7,(%rsp)
movdqa %xmm6,0x10(%rsp)
movdqa %xmm5,0x20(%rsp)
movdqa %xmm4,0x30(%rsp)
movdqa %xmm12,0x40(%rsp)
movdqa %xmm11,0x50(%rsp)
movdqa %xmm10,0x60(%rsp)
movdqa %xmm9,0x70(%rsp)
movdqa (%rsp),%xmm5
movdqa 0x10(%rsp),%xmm4
movdqa 0x20(%rsp),%xmm3
movdqa 0x30(%rsp),%xmm2
movdqa 0xc6c(%rip),%xmm0
movdqa %xmm5,%xmm1
pmuludq %xmm0,%xmm1
pshufd $0xed,%xmm1,%xmm6
pshufd $0xf5,%xmm5,%xmm1
pmuludq %xmm0,%xmm1
pshufd $0xed,%xmm1,%xmm1
punpckldq %xmm1,%xmm6
pxor   %xmm1,%xmm1
pxor   %xmm7,%xmm7
pcmpgtd %xmm5,%xmm7
pand   %xmm0,%xmm7
psubd  %xmm7,%xmm6
movdqa %xmm6,%xmm7
psrld  $0x1f,%xmm7
paddd  %xmm6,%xmm7
movdqa %xmm7,%xmm6
paddd  %xmm7,%xmm6
paddd  %xmm7,%xmm6
psubd  %xmm6,%xmm5
pshufd $0xf5,%xmm5,%xmm6
pmuludq 0xc1f(%rip),%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq 0xc22(%rip),%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
movdqa %xmm4,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xed,%xmm6,%xmm6
pshufd $0xf5,%xmm4,%xmm7
pmuludq %xmm0,%xmm7
pshufd $0xed,%xmm7,%xmm7
punpckldq %xmm7,%xmm6
pxor   %xmm7,%xmm7
pcmpgtd %xmm4,%xmm7
pand   %xmm0,%xmm7
psubd  %xmm7,%xmm6
movdqa %xmm6,%xmm7
psrld  $0x1f,%xmm7
paddd  %xmm6,%xmm7
movdqa %xmm7,%xmm6
paddd  %xmm7,%xmm6
paddd  %xmm7,%xmm6
psubd  %xmm6,%xmm4
pshufd $0xf5,%xmm4,%xmm6
pmuludq 0xbd0(%rip),%xmm4
pmuludq 0xbd8(%rip),%xmm6
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm6,%xmm4
paddd  %xmm5,%xmm4
movdqa %xmm3,%xmm5
pmuludq %xmm0,%xmm5
pshufd $0xed,%xmm5,%xmm5
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
pxor   %xmm6,%xmm6
pcmpgtd %xmm3,%xmm6
pand   %xmm0,%xmm6
psubd  %xmm6,%xmm5
movdqa %xmm5,%xmm6
psrld  $0x1f,%xmm6
paddd  %xmm5,%xmm6
movdqa %xmm6,%xmm5
paddd  %xmm6,%xmm5
paddd  %xmm6,%xmm5
psubd  %xmm5,%xmm3
pshufd $0xf5,%xmm3,%xmm5
pmuludq 0xb7d(%rip),%xmm3
pmuludq 0xb85(%rip),%xmm5
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xe8,%xmm5,%xmm5
movdqa %xmm2,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xed,%xmm6,%xmm6
pshufd $0xf5,%xmm2,%xmm7
pmuludq %xmm0,%xmm7
pshufd $0xed,%xmm7,%xmm7
punpckldq %xmm7,%xmm6
pxor   %xmm7,%xmm7
pcmpgtd %xmm2,%xmm7
pand   %xmm0,%xmm7
psubd  %xmm7,%xmm6
movdqa %xmm6,%xmm7
psrld  $0x1f,%xmm7
paddd  %xmm6,%xmm7
movdqa %xmm7,%xmm6
paddd  %xmm7,%xmm6
paddd  %xmm7,%xmm6
psubd  %xmm6,%xmm2
pshufd $0xf5,%xmm2,%xmm6
pmuludq 0xb32(%rip),%xmm2
punpckldq %xmm5,%xmm3
pshufd $0xe8,%xmm2,%xmm2
pmuludq 0xb31(%rip),%xmm6
pshufd $0xe8,%xmm6,%xmm5
punpckldq %xmm5,%xmm2
paddd  %xmm3,%xmm2
paddd  %xmm4,%xmm2
movdqa 0x40(%rsp),%xmm3
movdqa %xmm3,%xmm4
pmuludq %xmm0,%xmm4
pshufd $0xed,%xmm4,%xmm4
pshufd $0xf5,%xmm3,%xmm5
pmuludq %xmm0,%xmm5
pshufd $0xed,%xmm5,%xmm5
punpckldq %xmm5,%xmm4
pxor   %xmm5,%xmm5
pcmpgtd %xmm3,%xmm5
pand   %xmm0,%xmm5
psubd  %xmm5,%xmm4
movdqa %xmm4,%xmm5
psrld  $0x1f,%xmm5
paddd  %xmm4,%xmm5
movdqa %xmm5,%xmm4
paddd  %xmm5,%xmm4
paddd  %xmm5,%xmm4
psubd  %xmm4,%xmm3
pshufd $0xf5,%xmm3,%xmm4
pmuludq 0xad1(%rip),%xmm3
pshufd $0xe8,%xmm3,%xmm3
pmuludq 0xad4(%rip),%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm4,%xmm3
movdqa 0x50(%rsp),%xmm4
movdqa %xmm4,%xmm5
pmuludq %xmm0,%xmm5
pshufd $0xed,%xmm5,%xmm5
pshufd $0xf5,%xmm4,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
pxor   %xmm6,%xmm6
pcmpgtd %xmm4,%xmm6
pand   %xmm0,%xmm6
psubd  %xmm6,%xmm5
movdqa %xmm5,%xmm6
psrld  $0x1f,%xmm6
paddd  %xmm5,%xmm6
movdqa %xmm6,%xmm5
paddd  %xmm6,%xmm5
paddd  %xmm6,%xmm5
psubd  %xmm5,%xmm4
pshufd $0xf5,%xmm4,%xmm5
pmuludq 0xa7c(%rip),%xmm4
pshufd $0xe8,%xmm4,%xmm4
pmuludq 0xa7f(%rip),%xmm5
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm5,%xmm4
paddd  %xmm3,%xmm4
movdqa 0x60(%rsp),%xmm3
movdqa %xmm3,%xmm5
pmuludq %xmm0,%xmm5
pshufd $0xed,%xmm5,%xmm5
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
pxor   %xmm6,%xmm6
pcmpgtd %xmm3,%xmm6
pand   %xmm0,%xmm6
psubd  %xmm6,%xmm5
movdqa %xmm5,%xmm6
psrld  $0x1f,%xmm6
paddd  %xmm5,%xmm6
movdqa %xmm6,%xmm5
paddd  %xmm6,%xmm5
paddd  %xmm6,%xmm5
psubd  %xmm5,%xmm3
pshufd $0xf5,%xmm3,%xmm5
pmuludq 0xa23(%rip),%xmm3
pshufd $0xe8,%xmm3,%xmm3
pmuludq 0xa26(%rip),%xmm5
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm5,%xmm3
paddd  %xmm4,%xmm3
movdqa 0x70(%rsp),%xmm4
movdqa %xmm4,%xmm5
pmuludq %xmm0,%xmm5
pshufd $0xed,%xmm5,%xmm5
pshufd $0xf5,%xmm4,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
pcmpgtd %xmm4,%xmm1
pand   %xmm0,%xmm1
psubd  %xmm1,%xmm5
movdqa %xmm5,%xmm0
psrld  $0x1f,%xmm0
paddd  %xmm5,%xmm0
movdqa %xmm0,%xmm1
paddd  %xmm0,%xmm1
paddd  %xmm0,%xmm1
psubd  %xmm1,%xmm4
pshufd $0xf5,%xmm4,%xmm0
pmuludq 0x9ce(%rip),%xmm4
paddd  %xmm2,%xmm3
pshufd $0xe8,%xmm4,%xmm1
pmuludq 0x9cd(%rip),%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm0,%xmm1
paddd  %xmm3,%xmm1
pshufd $0xee,%xmm1,%xmm0
paddd  %xmm1,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%eax
add    $0x88,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @singleNumber(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca [32 x i32]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%9 = getelementptr inbounds [32 x i32], [32 x i32]* %5, i64 0, i64 0
%10 = call i32 @memset(i32* %9, i32 0, i32 128)
store i32 0, i32* %6
br label %11
11: ; preds = %37, %2
%12 = load i32, i32* %6
%13 = load i32, i32* %4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %40
15: ; preds = %11
store i32 0, i32* %7
br label %16
16: ; preds = %33, %15
%17 = load i32, i32* %7
%18 = icmp slt i32 %17, 32
br i1 %18, label %19, label %36
19: ; preds = %16
%20 = load i32*, i32** %3
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, i32* %20, i64 %22
%24 = load i32, i32* %23
%25 = load i32, i32* %7
%26 = ashr i32 %24, %25
%27 = and i32 %26, 1
%28 = load i32, i32* %7
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [32 x i32], [32 x i32]* %5, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = add nsw i32 %31, %27
store i32 %32, i32* %30
br label %33
33: ; preds = %19
%34 = load i32, i32* %7
%35 = add nsw i32 %34, 1
store i32 %35, i32* %7
br label %16
36: ; preds = %16
br label %37
37: ; preds = %36
%38 = load i32, i32* %6
%39 = add nsw i32 %38, 1
store i32 %39, i32* %6
br label %11
40: ; preds = %11
store i32 0, i32* %8
store i32 0, i32* %6
br label %41
41: ; preds = %54, %40
%42 = load i32, i32* %6
%43 = icmp slt i32 %42, 32
br i1 %43, label %44, label %57
44: ; preds = %41
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [32 x i32], [32 x i32]* %5, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = srem i32 %48, 3
%50 = load i32, i32* %6
%51 = shl i32 %49, %50
%52 = load i32, i32* %8
%53 = add nsw i32 %52, %51
store i32 %53, i32* %8
br label %54
54: ; preds = %44
%55 = load i32, i32* %6
%56 = add nsw i32 %55, 1
store i32 %56, i32* %6
br label %41
57: ; preds = %41
%58 = load i32, i32* %8
ret i32 %58
}

LLVM IR (-O2):
define i32 @singleNumber(i32* nocapture %0, i32 %1) {
%3 = alloca [32 x i32]
%4 = bitcast [32 x i32]* %3 to i8*
%5 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 0
%6 = call i32 @memset(i32* %5, i32 0, i32 128)
%7 = icmp sgt i32 %1, 0
br i1 %7, label %8, label %74
8: ; preds = %2
%9 = zext i32 %1 to i64
%10 = bitcast [32 x i32]* %3 to <4 x i32>*
%11 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 4
%12 = bitcast i32* %11 to <4 x i32>*
%13 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 8
%14 = bitcast i32* %13 to <4 x i32>*
%15 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 12
%16 = bitcast i32* %15 to <4 x i32>*
%17 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 16
%18 = bitcast i32* %17 to <4 x i32>*
%19 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 20
%20 = bitcast i32* %19 to <4 x i32>*
%21 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 24
%22 = bitcast i32* %21 to <4 x i32>*
%23 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 28
%24 = bitcast i32* %23 to <4 x i32>*
%25 = load <4 x i32>, <4 x i32>* %10
%26 = load <4 x i32>, <4 x i32>* %12
%27 = load <4 x i32>, <4 x i32>* %14
%28 = load <4 x i32>, <4 x i32>* %16
%29 = load <4 x i32>, <4 x i32>* %18
%30 = load <4 x i32>, <4 x i32>* %20
%31 = load <4 x i32>, <4 x i32>* %22
%32 = load <4 x i32>, <4 x i32>* %24
br label %33
33: ; preds = %33, %8
%34 = phi <4 x i32> [ %32, %8 ], [ %70, %33 ]
%35 = phi <4 x i32> [ %31, %8 ], [ %67, %33 ]
%36 = phi <4 x i32> [ %30, %8 ], [ %64, %33 ]
%37 = phi <4 x i32> [ %29, %8 ], [ %61, %33 ]
%38 = phi <4 x i32> [ %28, %8 ], [ %58, %33 ]
%39 = phi <4 x i32> [ %27, %8 ], [ %55, %33 ]
%40 = phi <4 x i32> [ %26, %8 ], [ %52, %33 ]
%41 = phi <4 x i32> [ %25, %8 ], [ %49, %33 ]
%42 = phi i64 [ 0, %8 ], [ %71, %33 ]
%43 = getelementptr inbounds i32, i32* %0, i64 %42
%44 = load i32, i32* %43
%45 = insertelement <4 x i32> poison, i32 %44, i64 0
%46 = shufflevector <4 x i32> %45, <4 x i32> poison, <4 x i32> zeroinitializer
%47 = lshr <4 x i32> %46, <i32 0, i32 1, i32 2, i32 3>
%48 = and <4 x i32> %47, <i32 1, i32 1, i32 1, i32 1>
%49 = add nsw <4 x i32> %48, %41
%50 = lshr <4 x i32> %46, <i32 4, i32 5, i32 6, i32 7>
%51 = and <4 x i32> %50, <i32 1, i32 1, i32 1, i32 1>
%52 = add nsw <4 x i32> %51, %40
%53 = lshr <4 x i32> %46, <i32 8, i32 9, i32 10, i32 11>
%54 = and <4 x i32> %53, <i32 1, i32 1, i32 1, i32 1>
%55 = add nsw <4 x i32> %54, %39
%56 = lshr <4 x i32> %46, <i32 12, i32 13, i32 14, i32 15>
%57 = and <4 x i32> %56, <i32 1, i32 1, i32 1, i32 1>
%58 = add nsw <4 x i32> %57, %38
%59 = lshr <4 x i32> %46, <i32 16, i32 17, i32 18, i32 19>
%60 = and <4 x i32> %59, <i32 1, i32 1, i32 1, i32 1>
%61 = add nsw <4 x i32> %60, %37
%62 = lshr <4 x i32> %46, <i32 20, i32 21, i32 22, i32 23>
%63 = and <4 x i32> %62, <i32 1, i32 1, i32 1, i32 1>
%64 = add nsw <4 x i32> %63, %36
%65 = lshr <4 x i32> %46, <i32 24, i32 25, i32 26, i32 27>
%66 = and <4 x i32> %65, <i32 1, i32 1, i32 1, i32 1>
%67 = add nsw <4 x i32> %66, %35
%68 = lshr <4 x i32> %46, <i32 28, i32 29, i32 30, i32 31>
%69 = and <4 x i32> %68, <i32 1, i32 1, i32 1, i32 1>
%70 = add nsw <4 x i32> %69, %34
%71 = add nuw nsw i64 %42, 1
%72 = icmp eq i64 %71, %9
br i1 %72, label %73, label %33
73: ; preds = %33
store <4 x i32> %49, <4 x i32>* %10
store <4 x i32> %52, <4 x i32>* %12
store <4 x i32> %55, <4 x i32>* %14
store <4 x i32> %58, <4 x i32>* %16
store <4 x i32> %61, <4 x i32>* %18
store <4 x i32> %64, <4 x i32>* %20
store <4 x i32> %67, <4 x i32>* %22
store <4 x i32> %70, <4 x i32>* %24
br label %74
74: ; preds = %73, %2
%75 = bitcast [32 x i32]* %3 to <4 x i32>*
%76 = load <4 x i32>, <4 x i32>* %75
%77 = srem <4 x i32> %76, <i32 3, i32 3, i32 3, i32 3>
%78 = shl <4 x i32> %77, <i32 0, i32 1, i32 2, i32 3>
%79 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 4
%80 = bitcast i32* %79 to <4 x i32>*
%81 = load <4 x i32>, <4 x i32>* %80
%82 = srem <4 x i32> %81, <i32 3, i32 3, i32 3, i32 3>
%83 = shl <4 x i32> %82, <i32 4, i32 5, i32 6, i32 7>
%84 = add <4 x i32> %83, %78
%85 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 8
%86 = bitcast i32* %85 to <4 x i32>*
%87 = load <4 x i32>, <4 x i32>* %86
%88 = srem <4 x i32> %87, <i32 3, i32 3, i32 3, i32 3>
%89 = shl <4 x i32> %88, <i32 8, i32 9, i32 10, i32 11>
%90 = add <4 x i32> %89, %84
%91 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 12
%92 = bitcast i32* %91 to <4 x i32>*
%93 = load <4 x i32>, <4 x i32>* %92
%94 = srem <4 x i32> %93, <i32 3, i32 3, i32 3, i32 3>
%95 = shl <4 x i32> %94, <i32 12, i32 13, i32 14, i32 15>
%96 = add <4 x i32> %95, %90
%97 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 16
%98 = bitcast i32* %97 to <4 x i32>*
%99 = load <4 x i32>, <4 x i32>* %98
%100 = srem <4 x i32> %99, <i32 3, i32 3, i32 3, i32 3>
%101 = shl <4 x i32> %100, <i32 16, i32 17, i32 18, i32 19>
%102 = add <4 x i32> %101, %96
%103 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 20
%104 = bitcast i32* %103 to <4 x i32>*
%105 = load <4 x i32>, <4 x i32>* %104
%106 = srem <4 x i32> %105, <i32 3, i32 3, i32 3, i32 3>
%107 = shl <4 x i32> %106, <i32 20, i32 21, i32 22, i32 23>
%108 = add <4 x i32> %107, %102
%109 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 24
%110 = bitcast i32* %109 to <4 x i32>*
%111 = load <4 x i32>, <4 x i32>* %110
%112 = srem <4 x i32> %111, <i32 3, i32 3, i32 3, i32 3>
%113 = shl <4 x i32> %112, <i32 24, i32 25, i32 26, i32 27>
%114 = add <4 x i32> %113, %108
%115 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 28
%116 = bitcast i32* %115 to <4 x i32>*
%117 = load <4 x i32>, <4 x i32>* %116
%118 = srem <4 x i32> %117, <i32 3, i32 3, i32 3, i32 3>
%119 = shl <4 x i32> %118, <i32 28, i32 29, i32 30, i32 31>
%120 = add <4 x i32> %119, %114
%121 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %120)
ret i32 %121
}