#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 */
typedef int /*<<< orphan*/ vowels;
typedef int /*<<< orphan*/ input;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
char **shuffle(char **, int);
int main(int argc, char *argv[]) {
  char *input[] = {"apple",      "blackberry", "cherry",   "dragonfruit",
                   "grapefruit", "kumquat",    "mango",    "nectarine",
                   "persimmon",  "raspberry",  "raspberry"};
  int i, length = sizeof(input) / sizeof(*input);
  char **output = shuffle(input, length);
  for (i = 0; i < length; i++) {
    printf("%s ", output[i]);
  }
  printf("\n");
  char *vowels[] = {"a", "e", "i", "o", "u"};
  length = sizeof(vowels) / sizeof(*vowels);
  char **vowels_out = shuffle(vowels, length);
  for (i = 0; i < length; i++) {
    printf("%s ", vowels_out[i]);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x70(%rbp),%rdi
lea    0x2c5c(%rip),%rsi
mov    $0x58,%edx
call   1060 <memcpy@plt>
movl   $0xb,-0x78(%rbp)
lea    -0x70(%rbp),%rdi
mov    -0x78(%rbp),%esi
call   1030 <shuffle@plt>
mov    %rax,-0x80(%rbp)
movl   $0x0,-0x74(%rbp)
mov    -0x74(%rbp),%eax
cmp    -0x78(%rbp),%eax
jge    11c0 <main+0x80>
mov    -0x80(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    118c <main+0x4c>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1050 <memset@plt>
lea    0xe79(%rip),%rax
mov    %rax,-0xb0(%rbp)
lea    0xe0e(%rip),%rax
mov    %rax,-0xa8(%rbp)
lea    0xe5f(%rip),%rax
mov    %rax,-0xa0(%rbp)
lea    0xe29(%rip),%rax
mov    %rax,-0x98(%rbp)
lea    0xe45(%rip),%rax
mov    %rax,-0x90(%rbp)
movl   $0x5,-0x78(%rbp)
lea    -0xb0(%rbp),%rdi
mov    -0x78(%rbp),%esi
call   1030 <shuffle@plt>
mov    %rax,-0xb8(%rbp)
movl   $0x0,-0x74(%rbp)
mov    -0x74(%rbp),%eax
cmp    -0x78(%rbp),%eax
jge    1282 <main+0x142>
mov    -0xb8(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    124b <main+0x10b>
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x88,%rsp
mov    0x2ccf(%rip),%rax
mov    %rax,0x80(%rsp)
movaps 0x2cb0(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0x2c94(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0x2c78(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0x2c5c(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0x2c40(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
lea    0x30(%rsp),%rdi
mov    $0xb,%esi
call   1040 <shuffle@plt>
mov    %rax,%rbx
mov    (%rax),%rsi
lea    0xeba(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x38(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe17(%rip),%rax
mov    %rax,(%rsp)
lea    0xdb1(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xe02(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xdd0(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xdec(%rip),%rax
mov    %rax,0x20(%rsp)
mov    %rsp,%rdi
mov    $0x5,%esi
call   1040 <shuffle@plt>
mov    %rax,%rbx
mov    (%rax),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rbx),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c"apple\00"
@.str.1 = [11 x i8] c"blackberry\00"
@.str.2 = [7 x i8] c"cherry\00"
@.str.3 = [12 x i8] c"dragonfruit\00"
@.str.4 = [11 x i8] c"grapefruit\00"
@.str.5 = [8 x i8] c"kumquat\00"
@.str.6 = [6 x i8] c"mango\00"
@.str.7 = [10 x i8] c"nectarine\00"
@.str.8 = [10 x i8] c"persimmon\00"
@.str.9 = [10 x i8] c"raspberry\00"
@__const.main.input = [11 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i32 0, i32 0)]
@.str.10 = [4 x i8] c"%s \00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [2 x i8] c"a\00"
@.str.13 = [2 x i8] c"e\00"
@.str.14 = [2 x i8] c"i\00"
@.str.15 = [2 x i8] c"o\00"
@.str.16 = [2 x i8] c"u\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [11 x i8*]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8**
%10 = alloca [5 x i8*]
%11 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = bitcast [11 x i8*]* %6 to i8*
store i32 11, i32* %8
%13 = getelementptr inbounds [11 x i8*], [11 x i8*]* %6, i64 0, i64 0
%14 = load i32, i32* %8
%15 = call i8** @shuffle(i8** %13, i32 %14)
store i8** %15, i8*** %9
store i32 0, i32* %7
br label %16
16: ; preds = %27, %2
%17 = load i32, i32* %7
%18 = load i32, i32* %8
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %30
20: ; preds = %16
%21 = load i8**, i8*** %9
%22 = load i32, i32* %7
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
%25 = load i8*, i8** %24
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %25)
br label %27
27: ; preds = %20
%28 = load i32, i32* %7
%29 = add nsw i32 %28, 1
store i32 %29, i32* %7
br label %16
30: ; preds = %16
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%32 = bitcast [5 x i8*]* %10 to i8*
%33 = bitcast i8* %32 to [5 x i8*]*
%34 = getelementptr inbounds [5 x i8*], [5 x i8*]* %33, i32 0, i32 0
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8** %34
%35 = getelementptr inbounds [5 x i8*], [5 x i8*]* %33, i32 0, i32 1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i32 0, i32 0), i8** %35
%36 = getelementptr inbounds [5 x i8*], [5 x i8*]* %33, i32 0, i32 2
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0), i8** %36
%37 = getelementptr inbounds [5 x i8*], [5 x i8*]* %33, i32 0, i32 3
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8** %37
%38 = getelementptr inbounds [5 x i8*], [5 x i8*]* %33, i32 0, i32 4
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i32 0, i32 0), i8** %38
store i32 5, i32* %8
%39 = getelementptr inbounds [5 x i8*], [5 x i8*]* %10, i64 0, i64 0
%40 = load i32, i32* %8
%41 = call i8** @shuffle(i8** %39, i32 %40)
store i8** %41, i8*** %11
store i32 0, i32* %7
br label %42
42: ; preds = %53, %30
%43 = load i32, i32* %7
%44 = load i32, i32* %8
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %56
46: ; preds = %42
%47 = load i8**, i8*** %11
%48 = load i32, i32* %7
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8*, i8** %47, i64 %49
%51 = load i8*, i8** %50
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %51)
br label %53
53: ; preds = %46
%54 = load i32, i32* %7
%55 = add nsw i32 %54, 1
store i32 %55, i32* %7
br label %42
56: ; preds = %42
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"apple\00"
@.str.1 = [11 x i8] c"blackberry\00"
@.str.2 = [7 x i8] c"cherry\00"
@.str.3 = [12 x i8] c"dragonfruit\00"
@.str.4 = [11 x i8] c"grapefruit\00"
@.str.5 = [8 x i8] c"kumquat\00"
@.str.6 = [6 x i8] c"mango\00"
@.str.7 = [10 x i8] c"nectarine\00"
@.str.8 = [10 x i8] c"persimmon\00"
@.str.9 = [10 x i8] c"raspberry\00"
@__const.main.input = [11 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i32 0, i32 0)]
@.str.10 = [4 x i8] c"%s \00"
@.str.12 = [2 x i8] c"a\00"
@.str.13 = [2 x i8] c"e\00"
@.str.14 = [2 x i8] c"i\00"
@.str.15 = [2 x i8] c"o\00"
@.str.16 = [2 x i8] c"u\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [11 x i8*]
%4 = alloca [5 x i8*]
%5 = bitcast [11 x i8*]* %3 to i8*
%6 = getelementptr inbounds [11 x i8*], [11 x i8*]* %3, i64 0, i64 0
%7 = call i8** @shuffle(i8** %6, i32 11)
%8 = load i8*, i8** %7
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds i8*, i8** %7, i64 1
%11 = load i8*, i8** %10
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %11)
%13 = getelementptr inbounds i8*, i8** %7, i64 2
%14 = load i8*, i8** %13
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %14)
%16 = getelementptr inbounds i8*, i8** %7, i64 3
%17 = load i8*, i8** %16
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %17)
%19 = getelementptr inbounds i8*, i8** %7, i64 4
%20 = load i8*, i8** %19
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds i8*, i8** %7, i64 5
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %23)
%25 = getelementptr inbounds i8*, i8** %7, i64 6
%26 = load i8*, i8** %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %26)
%28 = getelementptr inbounds i8*, i8** %7, i64 7
%29 = load i8*, i8** %28
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %29)
%31 = getelementptr inbounds i8*, i8** %7, i64 8
%32 = load i8*, i8** %31
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %32)
%34 = getelementptr inbounds i8*, i8** %7, i64 9
%35 = load i8*, i8** %34
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %35)
%37 = getelementptr inbounds i8*, i8** %7, i64 10
%38 = load i8*, i8** %37
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %38)
%40 = call i32 @putchar(i32 10)
%41 = bitcast [5 x i8*]* %4 to i8*
%42 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 0
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8** %42
%43 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8** %43
%44 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 2
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), i8** %44
%45 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 3
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8** %45
%46 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 4
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0), i8** %46
%47 = call i8** @shuffle(i8** %42, i32 5)
%48 = load i8*, i8** %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %48)
%50 = getelementptr inbounds i8*, i8** %47, i64 1
%51 = load i8*, i8** %50
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %51)
%53 = getelementptr inbounds i8*, i8** %47, i64 2
%54 = load i8*, i8** %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %54)
%56 = getelementptr inbounds i8*, i8** %47, i64 3
%57 = load i8*, i8** %56
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %57)
%59 = getelementptr inbounds i8*, i8** %47, i64 4
%60 = load i8*, i8** %59
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %60)
%62 = call i32 @putchar(i32 10)
ret i32 0
}