#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(int *);
scalar_t__ malloc(int);
int /*<<< orphan*/ print(int *, int);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ shuffle(int *, int);
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/);
int main() {
  int i, j, r, size, odd;
  int *group, *temp;
  srand((unsigned int)time(0));
  group = (int *)malloc(40 * sizeof(int));
  for (i = 0; i < 40; i++) {
    group[i] = i + 1;
  }
  printf("Initial group: ");
  print(group, 40);
  shuffle(group, 40);
  printf("\nShuffled: ");
  print(group, 40);
  r = rand();
  if (r % 2 == 0) {
    odd = 0;
  } else {
    odd = 1;
  }
  temp = (int *)malloc(40 * sizeof(int));
  for (i = 0, size = 0; i < 40; i++) {
    if (group[i] % 2 == odd) {
      temp[size] = group[i];
      size += 1;
    }
  }
  free(group);
  group = temp;
  printf("\nSelected: ");
  print(group, size);
  shuffle(group, size);
  printf("\nShuffled: ");
  print(group, size);
  r = rand();
  if (r % 2 == 0) {
    odd = 0;
  } else {
    odd = 1;
  }
  temp = (int *)malloc(40 * sizeof(int));
  for (i = 0, j = 0; i < size; i++) {
    if (i % 2 == odd) {
      temp[j] = group[i];
      j += 1;
    }
  }
  size = j;
  free(group);
  group = temp;
  printf("\nSelected: ");
  print(group, size);
  shuffle(group, size);
  printf("\nShuffled: ");
  print(group, size);
  r = rand() % size;
  printf("\nWinner: %d", group[r]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
mov    $0xa0,%edi
call   1090 <malloc@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x28,-0x8(%rbp)
jge    11db <main+0x5b>
mov    -0x8(%rbp),%edx
add    $0x1,%edx
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11b2 <main+0x32>
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    $0x28,%esi
call   1060 <print@plt>
mov    -0x20(%rbp),%rdi
mov    $0x28,%esi
call   1040 <shuffle@plt>
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    $0x28,%esi
call   1060 <print@plt>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    124b <main+0xcb>
movl   $0x0,-0x18(%rbp)
jmp    1252 <main+0xd2>
movl   $0x1,-0x18(%rbp)
mov    $0xa0,%edi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x28,-0x8(%rbp)
jge    12c6 <main+0x146>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    -0x18(%rbp),%edx
jne    12b3 <main+0x133>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12b8 <main+0x138>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    126e <main+0xee>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1060 <print@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <shuffle@plt>
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1060 <print@plt>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1341 <main+0x1c1>
movl   $0x0,-0x18(%rbp)
jmp    1348 <main+0x1c8>
movl   $0x1,-0x18(%rbp)
mov    $0xa0,%edi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13b6 <main+0x236>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    -0x18(%rbp),%edx
jne    13a3 <main+0x223>
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x28(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13a8 <main+0x228>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1364 <main+0x1e4>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    0xc48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1060 <print@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <shuffle@plt>
lea    0xc16(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1060 <print@plt>
mov    $0x0,%al
call   10a0 <rand@plt>
cltd
idivl  -0x14(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xbfb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
xor    %ebx,%ebx
xor    %edi,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
mov    $0xa0,%edi
call   1090 <malloc@plt>
mov    %rax,%r15
movaps 0xe54(%rip),%xmm0
movups %xmm0,(%rax)
movaps 0xe5a(%rip),%xmm0
movups %xmm0,0x10(%rax)
movaps 0xe5f(%rip),%xmm0
movups %xmm0,0x20(%rax)
movaps 0xe64(%rip),%xmm0
movups %xmm0,0x30(%rax)
movaps 0xe69(%rip),%xmm0
movups %xmm0,0x40(%rax)
movaps 0xe6e(%rip),%xmm0
movups %xmm0,0x50(%rax)
movaps 0xe73(%rip),%xmm0
movups %xmm0,0x60(%rax)
movaps 0xe78(%rip),%xmm0
movups %xmm0,0x70(%rax)
movaps 0xe7d(%rip),%xmm0
movups %xmm0,0x80(%rax)
movaps 0xe7f(%rip),%xmm0
movups %xmm0,0x90(%rax)
lea    0xe81(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x28,%esi
call   1060 <print@plt>
mov    %r15,%rdi
mov    $0x28,%esi
call   1040 <shuffle@plt>
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    $0x28,%esi
call   1060 <print@plt>
xor    %eax,%eax
call   10a0 <rand@plt>
mov    %eax,%ebp
and    $0x1,%ebp
mov    $0xa0,%edi
call   1090 <malloc@plt>
mov    %rax,%r14
mov    $0x1,%eax
jmp    128a <main+0x10a>
nopl   0x0(%rax,%rax,1)
add    $0x2,%rax
cmp    $0x29,%rax
je     12cd <main+0x14d>
mov    -0x4(%r15,%rax,4),%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
and    $0xfffffffe,%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    %ebp,%esi
jne    12ab <main+0x12b>
movslq %ebx,%rbx
mov    %ecx,(%r14,%rbx,4)
add    $0x1,%ebx
mov    (%r15,%rax,4),%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
add    %ecx,%edx
and    $0xfffffffe,%edx
mov    %ecx,%esi
sub    %edx,%esi
cmp    %ebp,%esi
jne    1280 <main+0x100>
movslq %ebx,%rbx
mov    %ecx,(%r14,%rbx,4)
add    $0x1,%ebx
jmp    1280 <main+0x100>
mov    %r15,%rdi
call   1030 <free@plt>
lea    0xde0(%rip),%rdi
xor    %r15d,%r15d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
call   1060 <print@plt>
mov    %r14,%rdi
mov    %ebx,%esi
call   1040 <shuffle@plt>
lea    0xdaf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
call   1060 <print@plt>
xor    %eax,%eax
call   10a0 <rand@plt>
mov    %eax,%ebp
mov    $0xa0,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
test   %ebx,%ebx
jle    1358 <main+0x1d8>
mov    %ebx,%ecx
cmp    $0x1,%ebx
jne    13c8 <main+0x248>
xor    %eax,%eax
xor    %r15d,%r15d
test   $0x1,%cl
je     1358 <main+0x1d8>
xor    %eax,%ebp
test   $0x1,%bpl
jne    1358 <main+0x1d8>
mov    (%r14,%rax,4),%eax
movslq %r15d,%r15
mov    %eax,(%r12,%r15,4)
add    $0x1,%r15d
mov    %r14,%rdi
call   1030 <free@plt>
lea    0xd55(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r15d,%esi
call   1060 <print@plt>
mov    %r12,%rdi
mov    %r15d,%esi
call   1040 <shuffle@plt>
lea    0xd25(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r15d,%esi
call   1060 <print@plt>
xor    %eax,%eax
call   10a0 <rand@plt>
cltd
idiv   %r15d
movslq %edx,%rax
mov    (%r12,%rax,4),%esi
lea    0xd12(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %ecx,%edx
and    $0xfffffffe,%edx
xor    %eax,%eax
xor    %r15d,%r15d
jmp    13ed <main+0x26d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x2,%rax
cmp    %rax,%rdx
je     133c <main+0x1bc>
test   $0x1,%bpl
jne    1402 <main+0x282>
mov    (%r14,%rax,4),%esi
movslq %r15d,%r15
mov    %esi,(%r12,%r15,4)
add    $0x1,%r15d
test   $0x1,%bpl
je     13e0 <main+0x260>
mov    0x4(%r14,%rax,4),%esi
movslq %r15d,%r15
mov    %esi,(%r12,%r15,4)
add    $0x1,%r15d
jmp    13e0 <main+0x260>

LLVM IR (-O0):
@.str = [16 x i8] c"Initial group: \00"
@.str.1 = [12 x i8] c"\0AShuffled: \00"
@.str.2 = [12 x i8] c"\0ASelected: \00"
@.str.3 = [12 x i8] c"\0AWinner: %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
store i32 0, i32* %1
%9 = call i64 @time(i32 0)
%10 = trunc i64 %9 to i32
%11 = call i32 @srand(i32 %10)
%12 = call i64 @malloc(i32 160)
%13 = inttoptr i64 %12 to i32*
store i32* %13, i32** %7
store i32 0, i32* %2
br label %14
14: ; preds = %24, %0
%15 = load i32, i32* %2
%16 = icmp slt i32 %15, 40
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
%20 = load i32*, i32** %7
%21 = load i32, i32* %2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, i32* %20, i64 %22
store i32 %19, i32* %23
br label %24
24: ; preds = %17
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %14
27: ; preds = %14
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%29 = load i32*, i32** %7
%30 = call i32 @print(i32* %29, i32 40)
%31 = load i32*, i32** %7
%32 = call i32 @shuffle(i32* %31, i32 40)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%34 = load i32*, i32** %7
%35 = call i32 @print(i32* %34, i32 40)
%36 = call i32 (...) @rand()
store i32 %36, i32* %4
%37 = load i32, i32* %4
%38 = srem i32 %37, 2
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %27
store i32 0, i32* %6
br label %42
41: ; preds = %27
store i32 1, i32* %6
br label %42
42: ; preds = %41, %40
%43 = call i64 @malloc(i32 160)
%44 = inttoptr i64 %43 to i32*
store i32* %44, i32** %8
store i32 0, i32* %2
store i32 0, i32* %5
br label %45
45: ; preds = %70, %42
%46 = load i32, i32* %2
%47 = icmp slt i32 %46, 40
br i1 %47, label %48, label %73
48: ; preds = %45
%49 = load i32*, i32** %7
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, i32* %49, i64 %51
%53 = load i32, i32* %52
%54 = srem i32 %53, 2
%55 = load i32, i32* %6
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %69
57: ; preds = %48
%58 = load i32*, i32** %7
%59 = load i32, i32* %2
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, i32* %58, i64 %60
%62 = load i32, i32* %61
%63 = load i32*, i32** %8
%64 = load i32, i32* %5
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, i32* %63, i64 %65
store i32 %62, i32* %66
%67 = load i32, i32* %5
%68 = add nsw i32 %67, 1
store i32 %68, i32* %5
br label %69
69: ; preds = %57, %48
br label %70
70: ; preds = %69
%71 = load i32, i32* %2
%72 = add nsw i32 %71, 1
store i32 %72, i32* %2
br label %45
73: ; preds = %45
%74 = load i32*, i32** %7
%75 = call i32 @free(i32* %74)
%76 = load i32*, i32** %8
store i32* %76, i32** %7
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%78 = load i32*, i32** %7
%79 = load i32, i32* %5
%80 = call i32 @print(i32* %78, i32 %79)
%81 = load i32*, i32** %7
%82 = load i32, i32* %5
%83 = call i32 @shuffle(i32* %81, i32 %82)
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%85 = load i32*, i32** %7
%86 = load i32, i32* %5
%87 = call i32 @print(i32* %85, i32 %86)
%88 = call i32 (...) @rand()
store i32 %88, i32* %4
%89 = load i32, i32* %4
%90 = srem i32 %89, 2
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %73
store i32 0, i32* %6
br label %94
93: ; preds = %73
store i32 1, i32* %6
br label %94
94: ; preds = %93, %92
%95 = call i64 @malloc(i32 160)
%96 = inttoptr i64 %95 to i32*
store i32* %96, i32** %8
store i32 0, i32* %2
store i32 0, i32* %3
br label %97
97: ; preds = %119, %94
%98 = load i32, i32* %2
%99 = load i32, i32* %5
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %122
101: ; preds = %97
%102 = load i32, i32* %2
%103 = srem i32 %102, 2
%104 = load i32, i32* %6
%105 = icmp eq i32 %103, %104
br i1 %105, label %106, label %118
106: ; preds = %101
%107 = load i32*, i32** %7
%108 = load i32, i32* %2
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, i32* %107, i64 %109
%111 = load i32, i32* %110
%112 = load i32*, i32** %8
%113 = load i32, i32* %3
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, i32* %112, i64 %114
store i32 %111, i32* %115
%116 = load i32, i32* %3
%117 = add nsw i32 %116, 1
store i32 %117, i32* %3
br label %118
118: ; preds = %106, %101
br label %119
119: ; preds = %118
%120 = load i32, i32* %2
%121 = add nsw i32 %120, 1
store i32 %121, i32* %2
br label %97
122: ; preds = %97
%123 = load i32, i32* %3
store i32 %123, i32* %5
%124 = load i32*, i32** %7
%125 = call i32 @free(i32* %124)
%126 = load i32*, i32** %8
store i32* %126, i32** %7
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%128 = load i32*, i32** %7
%129 = load i32, i32* %5
%130 = call i32 @print(i32* %128, i32 %129)
%131 = load i32*, i32** %7
%132 = load i32, i32* %5
%133 = call i32 @shuffle(i32* %131, i32 %132)
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%135 = load i32*, i32** %7
%136 = load i32, i32* %5
%137 = call i32 @print(i32* %135, i32 %136)
%138 = call i32 (...) @rand()
%139 = load i32, i32* %5
%140 = srem i32 %138, %139
store i32 %140, i32* %4
%141 = load i32*, i32** %7
%142 = load i32, i32* %4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i32, i32* %141, i64 %143
%145 = load i32, i32* %144
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %145)
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"Initial group: \00"
@.str.1 = [12 x i8] c"\0AShuffled: \00"
@.str.2 = [12 x i8] c"\0ASelected: \00"
@.str.3 = [12 x i8] c"\0AWinner: %d\00"
define i32 @main() {
%1 = tail call i64 @time(i32 0)
%2 = trunc i64 %1 to i32
%3 = tail call i32 @srand(i32 %2)
%4 = tail call i64 @malloc(i32 160)
%5 = inttoptr i64 %4 to i32*
%6 = inttoptr i64 %4 to <4 x i32>*
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, <4 x i32>* %6
%7 = getelementptr inbounds i32, i32* %5, i64 4
%8 = bitcast i32* %7 to <4 x i32>*
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, <4 x i32>* %8
%9 = getelementptr inbounds i32, i32* %5, i64 8
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 9, i32 10, i32 11, i32 12>, <4 x i32>* %10
%11 = getelementptr inbounds i32, i32* %5, i64 12
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 13, i32 14, i32 15, i32 16>, <4 x i32>* %12
%13 = getelementptr inbounds i32, i32* %5, i64 16
%14 = bitcast i32* %13 to <4 x i32>*
store <4 x i32> <i32 17, i32 18, i32 19, i32 20>, <4 x i32>* %14
%15 = getelementptr inbounds i32, i32* %5, i64 20
%16 = bitcast i32* %15 to <4 x i32>*
store <4 x i32> <i32 21, i32 22, i32 23, i32 24>, <4 x i32>* %16
%17 = getelementptr inbounds i32, i32* %5, i64 24
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 25, i32 26, i32 27, i32 28>, <4 x i32>* %18
%19 = getelementptr inbounds i32, i32* %5, i64 28
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> <i32 29, i32 30, i32 31, i32 32>, <4 x i32>* %20
%21 = getelementptr inbounds i32, i32* %5, i64 32
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> <i32 33, i32 34, i32 35, i32 36>, <4 x i32>* %22
%23 = getelementptr inbounds i32, i32* %5, i64 36
%24 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> <i32 37, i32 38, i32 39, i32 40>, <4 x i32>* %24
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%26 = tail call i32 @print(i32* %5, i32 40)
%27 = tail call i32 @shuffle(i32* %5, i32 40)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%29 = tail call i32 @print(i32* %5, i32 40)
%30 = tail call i32 (...) @rand()
%31 = and i32 %30, 1
%32 = tail call i64 @malloc(i32 160)
%33 = inttoptr i64 %32 to i32*
br label %34
34: ; preds = %56, %0
%35 = phi i64 [ 0, %0 ], [ %58, %56 ]
%36 = phi i32 [ 0, %0 ], [ %57, %56 ]
%37 = getelementptr inbounds i32, i32* %5, i64 %35
%38 = load i32, i32* %37
%39 = srem i32 %38, 2
%40 = icmp eq i32 %39, %31
br i1 %40, label %41, label %45
41: ; preds = %34
%42 = sext i32 %36 to i64
%43 = getelementptr inbounds i32, i32* %33, i64 %42
store i32 %38, i32* %43
%44 = add nsw i32 %36, 1
br label %45
45: ; preds = %34, %41
%46 = phi i32 [ %44, %41 ], [ %36, %34 ]
%47 = or i64 %35, 1
%48 = getelementptr inbounds i32, i32* %5, i64 %47
%49 = load i32, i32* %48
%50 = srem i32 %49, 2
%51 = icmp eq i32 %50, %31
br i1 %51, label %52, label %56
52: ; preds = %45
%53 = sext i32 %46 to i64
%54 = getelementptr inbounds i32, i32* %33, i64 %53
store i32 %49, i32* %54
%55 = add nsw i32 %46, 1
br label %56
56: ; preds = %52, %45
%57 = phi i32 [ %55, %52 ], [ %46, %45 ]
%58 = add nuw nsw i64 %35, 2
%59 = icmp eq i64 %58, 40
br i1 %59, label %60, label %34
60: ; preds = %56
%61 = tail call i32 @free(i32* %5)
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%63 = tail call i32 @print(i32* %33, i32 %57)
%64 = tail call i32 @shuffle(i32* %33, i32 %57)
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%66 = tail call i32 @print(i32* %33, i32 %57)
%67 = tail call i32 (...) @rand()
%68 = tail call i64 @malloc(i32 160)
%69 = inttoptr i64 %68 to i32*
%70 = icmp sgt i32 %57, 0
br i1 %70, label %71, label %121
71: ; preds = %60
%72 = zext i32 %57 to i64
%73 = and i64 %72, 1
%74 = icmp eq i32 %57, 1
br i1 %74, label %105, label %75
75: ; preds = %71
%76 = and i64 %72, 4294967294
%77 = and i32 %67, 1
%78 = icmp eq i32 %77, 0
%79 = and i32 %67, 1
%80 = icmp eq i32 %79, 0
br label %81
81: ; preds = %100, %75
%82 = phi i64 [ 0, %75 ], [ %102, %100 ]
%83 = phi i32 [ 0, %75 ], [ %101, %100 ]
%84 = phi i64 [ 0, %75 ], [ %103, %100 ]
br i1 %78, label %85, label %91
85: ; preds = %81
%86 = getelementptr inbounds i32, i32* %33, i64 %82
%87 = load i32, i32* %86
%88 = sext i32 %83 to i64
%89 = getelementptr inbounds i32, i32* %69, i64 %88
store i32 %87, i32* %89
%90 = add nsw i32 %83, 1
br label %91
91: ; preds = %81, %85
%92 = phi i32 [ %90, %85 ], [ %83, %81 ]
br i1 %80, label %100, label %93
93: ; preds = %91
%94 = or i64 %82, 1
%95 = getelementptr inbounds i32, i32* %33, i64 %94
%96 = load i32, i32* %95
%97 = sext i32 %92 to i64
%98 = getelementptr inbounds i32, i32* %69, i64 %97
store i32 %96, i32* %98
%99 = add nsw i32 %92, 1
br label %100
100: ; preds = %93, %91
%101 = phi i32 [ %99, %93 ], [ %92, %91 ]
%102 = add nuw nsw i64 %82, 2
%103 = add i64 %84, 2
%104 = icmp eq i64 %103, %76
br i1 %104, label %105, label %81
105: ; preds = %100, %71
%106 = phi i32 [ undef, %71 ], [ %101, %100 ]
%107 = phi i64 [ 0, %71 ], [ %102, %100 ]
%108 = phi i32 [ 0, %71 ], [ %101, %100 ]
%109 = icmp eq i64 %73, 0
br i1 %109, label %121, label %110
110: ; preds = %105
%111 = trunc i64 %107 to i32
%112 = xor i32 %67, %111
%113 = and i32 %112, 1
%114 = icmp eq i32 %113, 0
br i1 %114, label %115, label %121
115: ; preds = %110
%116 = getelementptr inbounds i32, i32* %33, i64 %107
%117 = load i32, i32* %116
%118 = sext i32 %108 to i64
%119 = getelementptr inbounds i32, i32* %69, i64 %118
store i32 %117, i32* %119
%120 = add nsw i32 %108, 1
br label %121
121: ; preds = %105, %115, %110, %60
%122 = phi i32 [ 0, %60 ], [ %106, %105 ], [ %120, %115 ], [ %108, %110 ]
%123 = tail call i32 @free(i32* %33)
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%125 = tail call i32 @print(i32* %69, i32 %122)
%126 = tail call i32 @shuffle(i32* %69, i32 %122)
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%128 = tail call i32 @print(i32* %69, i32 %122)
%129 = tail call i32 (...) @rand()
%130 = srem i32 %129, %122
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32, i32* %69, i64 %131
%133 = load i32, i32* %132
%134 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %133)
ret i32 0
}