int singleNumber(int *nums, int numsSize) {
  int count[32] = {0};
  int i = 0;
  int j = 0;
  int ret;
  for (i = 0; i < numsSize; i++) {
    for (j = 0; j < 32; j++) {
      count[j] += (nums[i] & (1 << j)) ? 1 : 0;
    }
  }
  for (i = 0; i < 32; i++) {
    count[i] = count[i] % 3;
    ret += ((count[i]) << i);
  }
  return ret;
}


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)
movl   $0x0,-0x98(%rbp)
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11e5 <singleNumber+0xd5>
movl   $0x0,-0x98(%rbp)
cmpl   $0x20,-0x98(%rbp)
jge    11cc <singleNumber+0xbc>
mov    -0x8(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x98(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
and    %eax,%edx
xor    %ecx,%ecx
mov    $0x1,%eax
cmp    $0x0,%edx
cmovne %eax,%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    116c <singleNumber+0x5c>
jmp    11d1 <singleNumber+0xc1>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1153 <singleNumber+0x43>
movl   $0x0,-0x94(%rbp)
cmpl   $0x20,-0x94(%rbp)
jge    1256 <singleNumber+0x146>
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
movslq -0x94(%rbp),%rax
mov    %edx,-0x90(%rbp,%rax,4)
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%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    11ef <singleNumber+0xdf>
mov    -0x9c(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<singleNumber>:
push   %rax
pxor   %xmm8,%xmm8
movdqa %xmm8,-0x10(%rsp)
movdqa %xmm8,-0x20(%rsp)
movdqa %xmm8,-0x30(%rsp)
movdqa %xmm8,-0x40(%rsp)
movdqa %xmm8,-0x50(%rsp)
movdqa %xmm8,-0x60(%rsp)
movdqa %xmm8,-0x70(%rsp)
movdqa %xmm8,-0x80(%rsp)
test   %esi,%esi
jle    1396 <singleNumber+0x296>
mov    %esi,%eax
movdqa -0x80(%rsp),%xmm10
movdqa -0x70(%rsp),%xmm7
movdqa -0x60(%rsp),%xmm6
movdqa -0x50(%rsp),%xmm5
movdqa -0x40(%rsp),%xmm4
movdqa -0x30(%rsp),%xmm13
movdqa -0x20(%rsp),%xmm12
movdqa -0x10(%rsp),%xmm11
xor    %ecx,%ecx
movaps 0xe7a(%rip),%xmm9
cs nopw 0x0(%rax,%rax,1)
movd   (%rdi,%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  %xmm9,%xmm0
paddd  %xmm0,%xmm10
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  %xmm9,%xmm3
paddd  %xmm3,%xmm7
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  %xmm9,%xmm3
paddd  %xmm3,%xmm6
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  %xmm9,%xmm3
paddd  %xmm3,%xmm5
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  %xmm9,%xmm3
paddd  %xmm3,%xmm4
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  %xmm9,%xmm3
paddd  %xmm3,%xmm13
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  %xmm9,%xmm3
paddd  %xmm3,%xmm12
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  %xmm9,%xmm1
paddd  %xmm1,%xmm11
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1190 <singleNumber+0x90>
movdqa %xmm10,-0x80(%rsp)
movdqa %xmm7,-0x70(%rsp)
movdqa %xmm6,-0x60(%rsp)
movdqa %xmm5,-0x50(%rsp)
movdqa %xmm4,-0x40(%rsp)
movdqa %xmm13,-0x30(%rsp)
movdqa %xmm12,-0x20(%rsp)
movdqa %xmm11,-0x10(%rsp)
movdqa -0x80(%rsp),%xmm4
movdqa -0x70(%rsp),%xmm3
movdqa -0x60(%rsp),%xmm2
movdqa -0x50(%rsp),%xmm0
movdqa 0xc5a(%rip),%xmm1
movdqa %xmm4,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xed,%xmm5,%xmm5
pshufd $0xf5,%xmm4,%xmm6
pmuludq %xmm1,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
pxor   %xmm6,%xmm6
pcmpgtd %xmm4,%xmm6
pand   %xmm1,%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 0xc11(%rip),%xmm4
pshufd $0xe8,%xmm4,%xmm4
pmuludq 0xc14(%rip),%xmm5
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm5,%xmm4
movdqa %xmm3,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xed,%xmm5,%xmm5
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm1,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
pxor   %xmm6,%xmm6
pcmpgtd %xmm3,%xmm6
pand   %xmm1,%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 0xbc2(%rip),%xmm3
pmuludq 0xbca(%rip),%xmm5
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm5,%xmm3
paddd  %xmm4,%xmm3
movdqa %xmm2,%xmm4
pmuludq %xmm1,%xmm4
pshufd $0xed,%xmm4,%xmm4
pshufd $0xf5,%xmm2,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xed,%xmm5,%xmm5
punpckldq %xmm5,%xmm4
pxor   %xmm5,%xmm5
pcmpgtd %xmm2,%xmm5
pand   %xmm1,%xmm5
psubd  %xmm5,%xmm4
movdqa %xmm4,%xmm5
psrld  $0x1f,%xmm5
paddd  %xmm4,%xmm5
movdqa %xmm5,%xmm4
paddd  %xmm5,%xmm4
paddd  %xmm5,%xmm4
psubd  %xmm4,%xmm2
pshufd $0xf5,%xmm2,%xmm4
pmuludq 0xb6f(%rip),%xmm2
pmuludq 0xb77(%rip),%xmm4
pshufd $0xe8,%xmm2,%xmm2
pshufd $0xe8,%xmm4,%xmm4
movdqa %xmm0,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xed,%xmm5,%xmm5
pshufd $0xf5,%xmm0,%xmm6
pmuludq %xmm1,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
pxor   %xmm6,%xmm6
pcmpgtd %xmm0,%xmm6
pand   %xmm1,%xmm6
psubd  %xmm6,%xmm5
movdqa %xmm5,%xmm6
psrld  $0x1f,%xmm6
paddd  %xmm5,%xmm6
movdqa %xmm6,%xmm5
paddd  %xmm6,%xmm5
paddd  %xmm6,%xmm5
psubd  %xmm5,%xmm0
pshufd $0xf5,%xmm0,%xmm5
pmuludq 0xb24(%rip),%xmm0
punpckldq %xmm4,%xmm2
pshufd $0xe8,%xmm0,%xmm0
pmuludq 0xb23(%rip),%xmm5
pshufd $0xe8,%xmm5,%xmm4
punpckldq %xmm4,%xmm0
paddd  %xmm2,%xmm0
paddd  %xmm3,%xmm0
movdqa -0x40(%rsp),%xmm2
movdqa %xmm2,%xmm3
pmuludq %xmm1,%xmm3
pshufd $0xed,%xmm3,%xmm3
pshufd $0xf5,%xmm2,%xmm4
pmuludq %xmm1,%xmm4
pshufd $0xed,%xmm4,%xmm4
punpckldq %xmm4,%xmm3
pxor   %xmm4,%xmm4
pcmpgtd %xmm2,%xmm4
pand   %xmm1,%xmm4
psubd  %xmm4,%xmm3
movdqa %xmm3,%xmm4
psrld  $0x1f,%xmm4
paddd  %xmm3,%xmm4
movdqa %xmm4,%xmm3
paddd  %xmm4,%xmm3
paddd  %xmm4,%xmm3
psubd  %xmm3,%xmm2
pshufd $0xf5,%xmm2,%xmm3
pmuludq 0xac3(%rip),%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq 0xac6(%rip),%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
movdqa -0x30(%rsp),%xmm3
movdqa %xmm3,%xmm4
pmuludq %xmm1,%xmm4
pshufd $0xed,%xmm4,%xmm4
pshufd $0xf5,%xmm3,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xed,%xmm5,%xmm5
punpckldq %xmm5,%xmm4
pxor   %xmm5,%xmm5
pcmpgtd %xmm3,%xmm5
pand   %xmm1,%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 0xa6e(%rip),%xmm3
pshufd $0xe8,%xmm3,%xmm3
pmuludq 0xa71(%rip),%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm4,%xmm3
paddd  %xmm2,%xmm3
movdqa -0x20(%rsp),%xmm2
movdqa %xmm2,%xmm4
pmuludq %xmm1,%xmm4
pshufd $0xed,%xmm4,%xmm4
pshufd $0xf5,%xmm2,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xed,%xmm5,%xmm5
punpckldq %xmm5,%xmm4
pxor   %xmm5,%xmm5
pcmpgtd %xmm2,%xmm5
pand   %xmm1,%xmm5
psubd  %xmm5,%xmm4
movdqa %xmm4,%xmm5
psrld  $0x1f,%xmm5
paddd  %xmm4,%xmm5
movdqa %xmm5,%xmm4
paddd  %xmm5,%xmm4
paddd  %xmm5,%xmm4
psubd  %xmm4,%xmm2
pshufd $0xf5,%xmm2,%xmm4
pmuludq 0xa15(%rip),%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq 0xa18(%rip),%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm4,%xmm2
paddd  %xmm3,%xmm2
movdqa -0x10(%rsp),%xmm3
movdqa %xmm3,%xmm4
pmuludq %xmm1,%xmm4
pshufd $0xed,%xmm4,%xmm4
pshufd $0xf5,%xmm3,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xed,%xmm5,%xmm5
punpckldq %xmm5,%xmm4
pcmpgtd %xmm3,%xmm8
pand   %xmm1,%xmm8
psubd  %xmm8,%xmm4
movdqa %xmm4,%xmm1
psrld  $0x1f,%xmm1
paddd  %xmm4,%xmm1
movdqa %xmm1,%xmm4
paddd  %xmm1,%xmm4
paddd  %xmm1,%xmm4
psubd  %xmm4,%xmm3
pshufd $0xf5,%xmm3,%xmm1
pmuludq 0x9bd(%rip),%xmm3
paddd  %xmm0,%xmm2
pshufd $0xe8,%xmm3,%xmm0
pmuludq 0x9bc(%rip),%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm1,%xmm0
paddd  %xmm2,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
pop    %rcx
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 = bitcast [32 x i32]* %5 to i8*
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %6
br label %10
10: ; preds = %39, %2
%11 = load i32, i32* %6
%12 = load i32, i32* %4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %42
14: ; preds = %10
store i32 0, i32* %7
br label %15
15: ; preds = %35, %14
%16 = load i32, i32* %7
%17 = icmp slt i32 %16, 32
br i1 %17, label %18, label %38
18: ; preds = %15
%19 = load i32*, i32** %3
%20 = load i32, i32* %6
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, i32* %19, i64 %21
%23 = load i32, i32* %22
%24 = load i32, i32* %7
%25 = shl i32 1, %24
%26 = and i32 %23, %25
%27 = icmp ne i32 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i32 1, i32 0
%30 = load i32, i32* %7
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [32 x i32], [32 x i32]* %5, i64 0, i64 %31
%33 = load i32, i32* %32
%34 = add nsw i32 %33, %29
store i32 %34, i32* %32
br label %35
35: ; preds = %18
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
store i32 %37, i32* %7
br label %15
38: ; preds = %15
br label %39
39: ; preds = %38
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 1
store i32 %41, i32* %6
br label %10
42: ; preds = %10
store i32 0, i32* %6
br label %43
43: ; preds = %63, %42
%44 = load i32, i32* %6
%45 = icmp slt i32 %44, 32
br i1 %45, label %46, label %66
46: ; preds = %43
%47 = load i32, i32* %6
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [32 x i32], [32 x i32]* %5, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = srem i32 %50, 3
%52 = load i32, i32* %6
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [32 x i32], [32 x i32]* %5, i64 0, i64 %53
store i32 %51, i32* %54
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [32 x i32], [32 x i32]* %5, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = load i32, i32* %6
%60 = shl i32 %58, %59
%61 = load i32, i32* %8
%62 = add nsw i32 %61, %60
store i32 %62, i32* %8
br label %63
63: ; preds = %46
%64 = load i32, i32* %6
%65 = add nsw i32 %64, 1
store i32 %65, i32* %6
br label %43
66: ; preds = %43
%67 = load i32, i32* %8
ret i32 %67
}

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