#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*/ puts(char *);
int /*<<< orphan*/ sortAlphabetize(char **, int);
int main(int argc, const char *argv[]) {
  char *a[] = {
      "hello", "world", "no", "all", "good", "b", "c", "d", "e", "f",
  };
  sortAlphabetize(a, 10);
  for (int i = 0; i < 10; i++) {
    puts(a[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x60(%rbp),%rdi
lea    0x2c7f(%rip),%rsi
mov    $0x50,%edx
call   1050 <memcpy@plt>
lea    -0x60(%rbp),%rdi
mov    $0xa,%esi
call   1040 <sortAlphabetize@plt>
movl   $0x0,-0x64(%rbp)
cmpl   $0xa,-0x64(%rbp)
jge    1196 <main+0x66>
movslq -0x64(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rdi
call   1030 <puts@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1170 <main+0x40>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x58,%rsp
movaps 0x2ce5(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0x2cc9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2cad(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2c91(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2c75(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0xa,%esi
call   1040 <sortAlphabetize@plt>
mov    (%rsp),%rdi
call   1030 <puts@plt>
mov    0x8(%rsp),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%rdi
call   1030 <puts@plt>
mov    0x18(%rsp),%rdi
call   1030 <puts@plt>
mov    0x20(%rsp),%rdi
call   1030 <puts@plt>
mov    0x28(%rsp),%rdi
call   1030 <puts@plt>
mov    0x30(%rsp),%rdi
call   1030 <puts@plt>
mov    0x38(%rsp),%rdi
call   1030 <puts@plt>
mov    0x40(%rsp),%rdi
call   1030 <puts@plt>
mov    0x48(%rsp),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x58,%rsp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"hello\00"
@.str.1 = [6 x i8] c"world\00"
@.str.2 = [3 x i8] c"no\00"
@.str.3 = [4 x i8] c"all\00"
@.str.4 = [5 x i8] c"good\00"
@.str.5 = [2 x i8] c"b\00"
@.str.6 = [2 x i8] c"c\00"
@.str.7 = [2 x i8] c"d\00"
@.str.8 = [2 x i8] c"e\00"
@.str.9 = [2 x i8] c"f\00"
@__const.main.a = [10 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0)]
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10 x i8*]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = bitcast [10 x i8*]* %6 to i8*
%9 = getelementptr inbounds [10 x i8*], [10 x i8*]* %6, i64 0, i64 0
%10 = call i32 @sortAlphabetize(i8** %9, i32 10)
store i32 0, i32* %7
br label %11
11: ; preds = %20, %2
%12 = load i32, i32* %7
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = load i32, i32* %7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i8*], [10 x i8*]* %6, i64 0, i64 %16
%18 = load i8*, i8** %17
%19 = call i32 @puts(i8* %18)
br label %20
20: ; preds = %14
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
store i32 %22, i32* %7
br label %11
23: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"hello\00"
@.str.1 = [6 x i8] c"world\00"
@.str.2 = [3 x i8] c"no\00"
@.str.3 = [4 x i8] c"all\00"
@.str.4 = [5 x i8] c"good\00"
@.str.5 = [2 x i8] c"b\00"
@.str.6 = [2 x i8] c"c\00"
@.str.7 = [2 x i8] c"d\00"
@.str.8 = [2 x i8] c"e\00"
@.str.9 = [2 x i8] c"f\00"
@__const.main.a = [10 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0)]
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10 x i8*]
%4 = bitcast [10 x i8*]* %3 to i8*
%5 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 0
%6 = call i32 @sortAlphabetize(i8** %5, i32 10)
%7 = load i8*, i8** %5
%8 = call i32 @puts(i8* dereferenceable(1) %7)
%9 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 1
%10 = load i8*, i8** %9
%11 = call i32 @puts(i8* dereferenceable(1) %10)
%12 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 2
%13 = load i8*, i8** %12
%14 = call i32 @puts(i8* dereferenceable(1) %13)
%15 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 3
%16 = load i8*, i8** %15
%17 = call i32 @puts(i8* dereferenceable(1) %16)
%18 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 4
%19 = load i8*, i8** %18
%20 = call i32 @puts(i8* dereferenceable(1) %19)
%21 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 5
%22 = load i8*, i8** %21
%23 = call i32 @puts(i8* dereferenceable(1) %22)
%24 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 6
%25 = load i8*, i8** %24
%26 = call i32 @puts(i8* dereferenceable(1) %25)
%27 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 7
%28 = load i8*, i8** %27
%29 = call i32 @puts(i8* dereferenceable(1) %28)
%30 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 8
%31 = load i8*, i8** %30
%32 = call i32 @puts(i8* dereferenceable(1) %31)
%33 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 9
%34 = load i8*, i8** %33
%35 = call i32 @puts(i8* dereferenceable(1) %34)
ret i32 0
}