#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*/ array_sort(char **, int, int *);
int /*<<< orphan*/ fail_test(int);
scalar_t__ str_cmp(char *, char *);
void test_sort() {
  char *empty_words[] = {};
  char *one_word[] = {"one"};
  char *three_words[] = {"just", "a", "test"};
  char *four_words[] = {"aa", "aaa", "", "a"};
  int map[4];
  array_sort(empty_words, 0, map);
  array_sort(one_word, 1, map);
  if (str_cmp(one_word[0], "one") != 0)
    fail_test(73);
  ;
  if (map[0] != 0)
    fail_test(75);
  ;
  array_sort(three_words, 3, map);
  if (str_cmp(three_words[0], "a") != 0)
    fail_test(79);
  ;
  if (str_cmp(three_words[1], "just") != 0)
    fail_test(81);
  ;
  if (str_cmp(three_words[2], "test") != 0)
    fail_test(83);
  ;
  if (map[0] != 1 || map[1] != 0 || map[2] != 2)
    fail_test(89);
  ;
  array_sort(four_words, 4, map);
  if (str_cmp(four_words[0], "") != 0)
    fail_test(93);
  ;
  if (str_cmp(four_words[1], "a") != 0)
    fail_test(95);
  ;
  if (str_cmp(four_words[2], "aa") != 0)
    fail_test(97);
  ;
  if (str_cmp(four_words[3], "aaa") != 0)
    fail_test(99);
  ;
  if (map[0] != 2 || map[1] != 3 || map[2] != 0 || map[3] != 1)
    fail_test(105);
  ;
}


x86 assembly (clang, -O0):
<test_sort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x2c91(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0x2c96(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x2c93(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x2c90(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2c95(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0x2c92(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0x2c8f(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0x2c8c(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0x60(%rbp),%rdx
xor    %esi,%esi
call   1050 <array_sort@plt>
lea    -0x10(%rbp),%rdi
lea    -0x60(%rbp),%rdx
mov    $0x1,%esi
call   1050 <array_sort@plt>
mov    -0x10(%rbp),%rdi
lea    0xe44(%rip),%rsi
call   1040 <str_cmp@plt>
cmp    $0x0,%rax
je     11d5 <test_sort+0xa5>
mov    $0x49,%edi
call   1030 <fail_test@plt>
cmpl   $0x0,-0x60(%rbp)
je     11e9 <test_sort+0xb9>
mov    $0x4b,%edi
call   1030 <fail_test@plt>
lea    -0x30(%rbp),%rdi
lea    -0x60(%rbp),%rdx
mov    $0x3,%esi
call   1050 <array_sort@plt>
mov    -0x30(%rbp),%rdi
lea    0xe0a(%rip),%rsi
call   1040 <str_cmp@plt>
cmp    $0x0,%rax
je     121f <test_sort+0xef>
mov    $0x4f,%edi
call   1030 <fail_test@plt>
mov    -0x28(%rbp),%rdi
lea    0xdda(%rip),%rsi
call   1040 <str_cmp@plt>
cmp    $0x0,%rax
je     1243 <test_sort+0x113>
mov    $0x51,%edi
call   1030 <fail_test@plt>
mov    -0x20(%rbp),%rdi
lea    0xdbb(%rip),%rsi
call   1040 <str_cmp@plt>
cmp    $0x0,%rax
je     1267 <test_sort+0x137>
mov    $0x53,%edi
call   1030 <fail_test@plt>
cmpl   $0x1,-0x60(%rbp)
jne    1285 <test_sort+0x155>
cmpl   $0x0,-0x5c(%rbp)
jne    1285 <test_sort+0x155>
cmpl   $0x2,-0x58(%rbp)
je     128f <test_sort+0x15f>
mov    $0x59,%edi
call   1030 <fail_test@plt>
lea    -0x50(%rbp),%rdi
lea    -0x60(%rbp),%rdx
mov    $0x4,%esi
call   1050 <array_sort@plt>
mov    -0x50(%rbp),%rdi
lea    0xd65(%rip),%rsi
call   1040 <str_cmp@plt>
cmp    $0x0,%rax
je     12c5 <test_sort+0x195>
mov    $0x5d,%edi
call   1030 <fail_test@plt>
mov    -0x48(%rbp),%rdi
lea    0xd40(%rip),%rsi
call   1040 <str_cmp@plt>
cmp    $0x0,%rax
je     12e9 <test_sort+0x1b9>
mov    $0x5f,%edi
call   1030 <fail_test@plt>
mov    -0x40(%rbp),%rdi
lea    0xd1b(%rip),%rsi
call   1040 <str_cmp@plt>
cmp    $0x0,%rax
je     130d <test_sort+0x1dd>
mov    $0x61,%edi
call   1030 <fail_test@plt>
mov    -0x38(%rbp),%rdi
lea    0xcf6(%rip),%rsi
call   1040 <str_cmp@plt>
cmp    $0x0,%rax
je     1331 <test_sort+0x201>
mov    $0x63,%edi
call   1030 <fail_test@plt>
cmpl   $0x2,-0x60(%rbp)
jne    1359 <test_sort+0x229>
cmpl   $0x3,-0x5c(%rbp)
jne    1359 <test_sort+0x229>
cmpl   $0x0,-0x58(%rbp)
jne    1359 <test_sort+0x229>
cmpl   $0x1,-0x54(%rbp)
je     1363 <test_sort+0x233>
mov    $0x69,%edi
call   1030 <fail_test@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_sort>:
push   %r14
push   %rbx
sub    $0x78,%rsp
lea    0xed2(%rip),%r14
mov    %r14,0x28(%rsp)
mov    0x2ca6(%rip),%rax
mov    %rax,0x40(%rsp)
movaps 0x2c8a(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2cae(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0x2c92(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rbx
xor    %esi,%esi
mov    %rbx,%rdx
call   1050 <array_sort@plt>
lea    0x28(%rsp),%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
call   1050 <array_sort@plt>
mov    0x28(%rsp),%rdi
mov    %r14,%rsi
call   1040 <str_cmp@plt>
test   %rax,%rax
je     11b5 <test_sort+0x85>
mov    $0x49,%edi
call   1030 <fail_test@plt>
cmpl   $0x0,0x10(%rsp)
je     11c6 <test_sort+0x96>
mov    $0x4b,%edi
call   1030 <fail_test@plt>
lea    0x30(%rsp),%rdi
lea    0x10(%rsp),%rdx
mov    $0x3,%esi
call   1050 <array_sort@plt>
mov    0x30(%rsp),%rdi
lea    0xe3a(%rip),%rsi
call   1040 <str_cmp@plt>
test   %rax,%rax
je     11fa <test_sort+0xca>
mov    $0x4f,%edi
call   1030 <fail_test@plt>
mov    0x38(%rsp),%rdi
lea    0xe0e(%rip),%rsi
call   1040 <str_cmp@plt>
test   %rax,%rax
je     121a <test_sort+0xea>
mov    $0x51,%edi
call   1030 <fail_test@plt>
mov    0x40(%rsp),%rdi
lea    0xdf3(%rip),%rsi
call   1040 <str_cmp@plt>
test   %rax,%rax
je     123a <test_sort+0x10a>
mov    $0x53,%edi
call   1030 <fail_test@plt>
cmpl   $0x1,0x10(%rsp)
jne    124f <test_sort+0x11f>
cmpl   $0x0,0x14(%rsp)
jne    124f <test_sort+0x11f>
cmpl   $0x2,0x18(%rsp)
je     1259 <test_sort+0x129>
mov    $0x59,%edi
call   1030 <fail_test@plt>
lea    0x50(%rsp),%rdi
lea    0x10(%rsp),%rdx
mov    $0x4,%esi
call   1050 <array_sort@plt>
mov    0x50(%rsp),%rdi
lea    0xda8(%rip),%rsi
call   1040 <str_cmp@plt>
test   %rax,%rax
je     128d <test_sort+0x15d>
mov    $0x5d,%edi
call   1030 <fail_test@plt>
mov    0x58(%rsp),%rdi
lea    0xd87(%rip),%rsi
call   1040 <str_cmp@plt>
test   %rax,%rax
je     12ad <test_sort+0x17d>
mov    $0x5f,%edi
call   1030 <fail_test@plt>
mov    0x60(%rsp),%rdi
lea    0xd66(%rip),%rsi
call   1040 <str_cmp@plt>
test   %rax,%rax
je     12cd <test_sort+0x19d>
mov    $0x61,%edi
call   1030 <fail_test@plt>
mov    0x68(%rsp),%rdi
lea    0xd45(%rip),%rsi
call   1040 <str_cmp@plt>
test   %rax,%rax
je     12ed <test_sort+0x1bd>
mov    $0x63,%edi
call   1030 <fail_test@plt>
movdqa 0x10(%rsp),%xmm0
pcmpeqd 0xd05(%rip),%xmm0
movmskps %xmm0,%eax
cmp    $0xf,%eax
je     130d <test_sort+0x1dd>
mov    $0x69,%edi
call   1030 <fail_test@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"one\00"
@__const.test_sort.one_word = [1 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0)]
@.str.1 = [5 x i8] c"just\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [5 x i8] c"test\00"
@__const.test_sort.three_words = [3 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [3 x i8] c"aa\00"
@.str.5 = [4 x i8] c"aaa\00"
@.str.6 = [1 x i8] zeroinitializer
@__const.test_sort.four_words = [4 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0)]
define void @test_sort() {
%1 = alloca [0 x i8*]
%2 = alloca [1 x i8*]
%3 = alloca [3 x i8*]
%4 = alloca [4 x i8*]
%5 = alloca [4 x i32]
%6 = bitcast [0 x i8*]* %1 to i8*
%7 = bitcast [1 x i8*]* %2 to i8*
%8 = bitcast [3 x i8*]* %3 to i8*
%9 = bitcast [4 x i8*]* %4 to i8*
%10 = getelementptr inbounds [0 x i8*], [0 x i8*]* %1, i64 0, i64 0
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%12 = call i32 @array_sort(i8** %10, i32 0, i32* %11)
%13 = getelementptr inbounds [1 x i8*], [1 x i8*]* %2, i64 0, i64 0
%14 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%15 = call i32 @array_sort(i8** %13, i32 1, i32* %14)
%16 = getelementptr inbounds [1 x i8*], [1 x i8*]* %2, i64 0, i64 0
%17 = load i8*, i8** %16
%18 = call i64 @str_cmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %0
%21 = call i32 @fail_test(i32 73)
br label %22
22: ; preds = %20, %0
%23 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%24 = load i32, i32* %23
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @fail_test(i32 75)
br label %28
28: ; preds = %26, %22
%29 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 0
%30 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%31 = call i32 @array_sort(i8** %29, i32 3, i32* %30)
%32 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 0
%33 = load i8*, i8** %32
%34 = call i64 @str_cmp(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %28
%37 = call i32 @fail_test(i32 79)
br label %38
38: ; preds = %36, %28
%39 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 1
%40 = load i8*, i8** %39
%41 = call i64 @str_cmp(i8* %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = call i32 @fail_test(i32 81)
br label %45
45: ; preds = %43, %38
%46 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 2
%47 = load i8*, i8** %46
%48 = call i64 @str_cmp(i8* %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = call i32 @fail_test(i32 83)
br label %52
52: ; preds = %50, %45
%53 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%54 = load i32, i32* %53
%55 = icmp ne i32 %54, 1
br i1 %55, label %64, label %56
56: ; preds = %52
%57 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 1
%58 = load i32, i32* %57
%59 = icmp ne i32 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %56
%61 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 2
%62 = load i32, i32* %61
%63 = icmp ne i32 %62, 2
br i1 %63, label %64, label %66
64: ; preds = %60, %56, %52
%65 = call i32 @fail_test(i32 89)
br label %66
66: ; preds = %64, %60
%67 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 0
%68 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%69 = call i32 @array_sort(i8** %67, i32 4, i32* %68)
%70 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 0
%71 = load i8*, i8** %70
%72 = call i64 @str_cmp(i8* %71, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%73 = icmp ne i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %66
%75 = call i32 @fail_test(i32 93)
br label %76
76: ; preds = %74, %66
%77 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 1
%78 = load i8*, i8** %77
%79 = call i64 @str_cmp(i8* %78, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %76
%82 = call i32 @fail_test(i32 95)
br label %83
83: ; preds = %81, %76
%84 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 2
%85 = load i8*, i8** %84
%86 = call i64 @str_cmp(i8* %85, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %83
%89 = call i32 @fail_test(i32 97)
br label %90
90: ; preds = %88, %83
%91 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 3
%92 = load i8*, i8** %91
%93 = call i64 @str_cmp(i8* %92, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%94 = icmp ne i64 %93, 0
br i1 %94, label %95, label %97
95: ; preds = %90
%96 = call i32 @fail_test(i32 99)
br label %97
97: ; preds = %95, %90
%98 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%99 = load i32, i32* %98
%100 = icmp ne i32 %99, 2
br i1 %100, label %113, label %101
101: ; preds = %97
%102 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 1
%103 = load i32, i32* %102
%104 = icmp ne i32 %103, 3
br i1 %104, label %113, label %105
105: ; preds = %101
%106 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 2
%107 = load i32, i32* %106
%108 = icmp ne i32 %107, 0
br i1 %108, label %113, label %109
109: ; preds = %105
%110 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 3
%111 = load i32, i32* %110
%112 = icmp ne i32 %111, 1
br i1 %112, label %113, label %115
113: ; preds = %109, %105, %101, %97
%114 = call i32 @fail_test(i32 105)
br label %115
115: ; preds = %113, %109
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"one\00"
@.str.1 = [5 x i8] c"just\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [5 x i8] c"test\00"
@__const.test_sort.three_words = [3 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [3 x i8] c"aa\00"
@.str.5 = [4 x i8] c"aaa\00"
@.str.6 = [1 x i8] zeroinitializer
@__const.test_sort.four_words = [4 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0)]
define void @test_sort() {
%1 = alloca [0 x i8*]
%2 = alloca [1 x i8*]
%3 = alloca [3 x i8*]
%4 = alloca [4 x i8*]
%5 = alloca <4 x i32>
%6 = bitcast [0 x i8*]* %1 to i8*
%7 = bitcast [1 x i8*]* %2 to i8*
%8 = bitcast [1 x i8*]* %2 to i64*
store i64 ptrtoint ([4 x i8]* @.str to i64), i64* %8
%9 = bitcast [3 x i8*]* %3 to i8*
%10 = bitcast [4 x i8*]* %4 to i8*
%11 = bitcast <4 x i32>* %5 to i8*
%12 = getelementptr inbounds [0 x i8*], [0 x i8*]* %1, i64 0, i64 0
%13 = getelementptr inbounds <4 x i32>, <4 x i32>* %5, i64 0, i64 0
%14 = call i32 @array_sort(i8** %12, i32 0, i32* %13)
%15 = getelementptr inbounds [1 x i8*], [1 x i8*]* %2, i64 0, i64 0
%16 = call i32 @array_sort(i8** %15, i32 1, i32* %13)
%17 = load i8*, i8** %15
%18 = call i64 @str_cmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %0
%21 = call i32 @fail_test(i32 73)
br label %22
22: ; preds = %20, %0
%23 = load i32, i32* %13
%24 = icmp eq i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = call i32 @fail_test(i32 75)
br label %27
27: ; preds = %25, %22
%28 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 0
%29 = call i32 @array_sort(i8** %28, i32 3, i32* %13)
%30 = load i8*, i8** %28
%31 = call i64 @str_cmp(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %27
%34 = call i32 @fail_test(i32 79)
br label %35
35: ; preds = %33, %27
%36 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 1
%37 = load i8*, i8** %36
%38 = call i64 @str_cmp(i8* %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %42, label %40
40: ; preds = %35
%41 = call i32 @fail_test(i32 81)
br label %42
42: ; preds = %40, %35
%43 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 2
%44 = load i8*, i8** %43
%45 = call i64 @str_cmp(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %42
%48 = call i32 @fail_test(i32 83)
br label %49
49: ; preds = %47, %42
%50 = load i32, i32* %13
%51 = icmp ne i32 %50, 1
%52 = getelementptr inbounds <4 x i32>, <4 x i32>* %5, i64 0, i64 1
%53 = load i32, i32* %52
%54 = icmp ne i32 %53, 0
%55 = select i1 %51, i1 true, i1 %54
%56 = getelementptr inbounds <4 x i32>, <4 x i32>* %5, i64 0, i64 2
%57 = load i32, i32* %56
%58 = icmp ne i32 %57, 2
%59 = select i1 %55, i1 true, i1 %58
br i1 %59, label %60, label %62
60: ; preds = %49
%61 = call i32 @fail_test(i32 89)
br label %62
62: ; preds = %49, %60
%63 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 0
%64 = call i32 @array_sort(i8** %63, i32 4, i32* %13)
%65 = load i8*, i8** %63
%66 = call i64 @str_cmp(i8* %65, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %70, label %68
68: ; preds = %62
%69 = call i32 @fail_test(i32 93)
br label %70
70: ; preds = %68, %62
%71 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 1
%72 = load i8*, i8** %71
%73 = call i64 @str_cmp(i8* %72, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %77, label %75
75: ; preds = %70
%76 = call i32 @fail_test(i32 95)
br label %77
77: ; preds = %75, %70
%78 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 2
%79 = load i8*, i8** %78
%80 = call i64 @str_cmp(i8* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %84, label %82
82: ; preds = %77
%83 = call i32 @fail_test(i32 97)
br label %84
84: ; preds = %82, %77
%85 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 3
%86 = load i8*, i8** %85
%87 = call i64 @str_cmp(i8* %86, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %91, label %89
89: ; preds = %84
%90 = call i32 @fail_test(i32 99)
br label %91
91: ; preds = %89, %84
%92 = load <4 x i32>, <4 x i32>* %5
%93 = freeze <4 x i32> %92
%94 = icmp ne <4 x i32> %93, <i32 2, i32 3, i32 0, i32 1>
%95 = bitcast <4 x i1> %94 to i4
%96 = icmp eq i4 %95, 0
br i1 %96, label %99, label %97
97: ; preds = %91
%98 = call i32 @fail_test(i32 105)
br label %99
99: ; preds = %91, %97
ret void
}