void sortStrings(char **pointers[], int wordCount) {
  int indexU = wordCount, indexC = 1, compareValue = 0, i = 0,
      unSorted = wordCount * wordCount;
  char *tempPointer;
  printf("\nSorting Strings..");
  tempPointer = (char *)malloc(64 * sizeof(char));
  while (unSorted > 0) {
    for (indexC = 1; indexC < indexU; indexC++) {
      printf(".");
      i = indexC - 1;
      compareValue = strcmp(&*pointers[indexC], &*pointers[i]);
      if (compareValue < 0) {
        tempPointer = pointers[indexC];
        pointers[indexC] = pointers[i];
        pointers[i] = tempPointer;
      } else {
        unSorted--;
      }
    }
  }
  printf("Strings Sorted!\n\n");
}


x86 assembly (clang, -O0):
<sortStrings>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x40,%edi
call   1050 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpl   $0x0,-0x20(%rbp)
jle    123c <sortStrings+0x10c>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1237 <sortStrings+0x107>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    121b <sortStrings+0xeb>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x28(%rbp),%rdx
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    1224 <sortStrings+0xf4>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    1229 <sortStrings+0xf9>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1191 <sortStrings+0x61>
jmp    1180 <sortStrings+0x50>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sortStrings>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r15
mov    %esi,0x4(%rsp)
mov    %esi,%r12d
imul   %esi,%r12d
lea    0xea0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r12d,%r12d
je     11da <sortStrings+0x9a>
mov    0x4(%rsp),%r13d
jmp    1185 <sortStrings+0x45>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
test   %r12d,%r12d
jle    11da <sortStrings+0x9a>
cmpl   $0x2,0x4(%rsp)
jl     1180 <sortStrings+0x40>
mov    $0x1,%r14d
jmp    11ad <sortStrings+0x6d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0xffffffff,%r12d
add    $0x1,%r14
cmp    %r14,%r13
je     1180 <sortStrings+0x40>
mov    $0x2e,%edi
call   1030 <putchar@plt>
mov    -0x8(%r15,%r14,8),%rbx
mov    (%r15,%r14,8),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
jns    11a0 <sortStrings+0x60>
mov    %rbx,(%r15,%r14,8)
mov    %rbp,-0x8(%r15,%r14,8)
jmp    11a4 <sortStrings+0x64>
lea    0xe32(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"\0ASorting Strings..\00"
@.str.1 = [2 x i8] c".\00"
@.str.2 = [18 x i8] c"Strings Sorted!\0A\0A\00"
define void @sortStrings(i8*** %0, i32 %1) {
%3 = alloca i8***
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
store i8*** %0, i8**** %3
store i32 %1, i32* %4
%11 = load i32, i32* %4
store i32 %11, i32* %5
store i32 1, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%12 = load i32, i32* %4
%13 = load i32, i32* %4
%14 = mul nsw i32 %12, %13
store i32 %14, i32* %9
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%16 = call i8* @malloc(i64 64)
store i8* %16, i8** %10
br label %17
17: ; preds = %73, %2
%18 = load i32, i32* %9
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %74
20: ; preds = %17
store i32 1, i32* %6
br label %21
21: ; preds = %70, %20
%22 = load i32, i32* %6
%23 = load i32, i32* %5
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %73
25: ; preds = %21
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%27 = load i32, i32* %6
%28 = sub nsw i32 %27, 1
store i32 %28, i32* %8
%29 = load i8***, i8**** %3
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8**, i8*** %29, i64 %31
%33 = load i8**, i8*** %32
%34 = bitcast i8** %33 to i8*
%35 = load i8***, i8**** %3
%36 = load i32, i32* %8
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8**, i8*** %35, i64 %37
%39 = load i8**, i8*** %38
%40 = bitcast i8** %39 to i8*
%41 = call i32 @strcmp(i8* %34, i8* %40)
store i32 %41, i32* %7
%42 = load i32, i32* %7
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %66
44: ; preds = %25
%45 = load i8***, i8**** %3
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8**, i8*** %45, i64 %47
%49 = load i8**, i8*** %48
%50 = bitcast i8** %49 to i8*
store i8* %50, i8** %10
%51 = load i8***, i8**** %3
%52 = load i32, i32* %8
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8**, i8*** %51, i64 %53
%55 = load i8**, i8*** %54
%56 = load i8***, i8**** %3
%57 = load i32, i32* %6
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8**, i8*** %56, i64 %58
store i8** %55, i8*** %59
%60 = load i8*, i8** %10
%61 = bitcast i8* %60 to i8**
%62 = load i8***, i8**** %3
%63 = load i32, i32* %8
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8**, i8*** %62, i64 %64
store i8** %61, i8*** %65
br label %69
66: ; preds = %25
%67 = load i32, i32* %9
%68 = add nsw i32 %67, -1
store i32 %68, i32* %9
br label %69
69: ; preds = %66, %44
br label %70
70: ; preds = %69
%71 = load i32, i32* %6
%72 = add nsw i32 %71, 1
store i32 %72, i32* %6
br label %21
73: ; preds = %21
br label %17
74: ; preds = %17
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"\0ASorting Strings..\00"
@str = [17 x i8] c"Strings Sorted!\0A\00"
define void @sortStrings(i8*** nocapture %0, i32 %1) {
%3 = mul nsw i32 %1, %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32 %3, 0
br i1 %5, label %34, label %6
6: ; preds = %2
%7 = icmp sgt i32 %1, 1
%8 = zext i32 %1 to i64
br label %12
9: ; preds = %30, %12
%10 = phi i32 [ %13, %12 ], [ %31, %30 ]
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %34
12: ; preds = %6, %9
%13 = phi i32 [ %3, %6 ], [ %10, %9 ]
br i1 %7, label %14, label %9
14: ; preds = %12, %30
%15 = phi i64 [ %32, %30 ], [ 1, %12 ]
%16 = phi i32 [ %31, %30 ], [ %13, %12 ]
%17 = tail call i32 @putchar(i32 46)
%18 = add nsw i64 %15, -1
%19 = getelementptr inbounds i8**, i8*** %0, i64 %15
%20 = load i8**, i8*** %19
%21 = bitcast i8** %20 to i8*
%22 = getelementptr inbounds i8**, i8*** %0, i64 %18
%23 = load i8**, i8*** %22
%24 = bitcast i8** %23 to i8*
%25 = tail call i32 @strcmp(i8* dereferenceable(1) %21, i8* dereferenceable(1) %24)
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %14
store i8** %23, i8*** %19
store i8** %20, i8*** %22
br label %30
28: ; preds = %14
%29 = add nsw i32 %16, -1
br label %30
30: ; preds = %27, %28
%31 = phi i32 [ %16, %27 ], [ %29, %28 ]
%32 = add nuw nsw i64 %15, 1
%33 = icmp eq i64 %32, %8
br i1 %33, label %9, label %14
34: ; preds = %9, %2
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
ret void
}