#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*/ second;
typedef int /*<<< orphan*/ orig;
typedef int /*<<< orphan*/ first;

/* Variables and functions */
int /*<<< orphan*/ dump_short_array(char *, short *, int);
int /*<<< orphan*/ endswap_short_array(short *, int);
int /*<<< orphan*/ endswap_short_copy(short *, short *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
scalar_t__ memcmp(short *, short *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdout;
void test_endswap_short(void) {
  short orig[4], first[4], second[4];
  int k;
  printf("    %-40s : ", "test_endswap_short");
  fflush(stdout);
  for (k = 0; k < ((int)(sizeof(orig) / sizeof((orig)[0]))); k++)
    orig[k] = 0x3210 + k;
  endswap_short_copy(first, orig, ((int)(sizeof(first) / sizeof((first)[0]))));
  endswap_short_copy(second, first,
                     ((int)(sizeof(second) / sizeof((second)[0]))));
  if (memcmp(orig, first, sizeof(orig)) == 0) {
    printf("\n\nLine %d : test 1 : these two array should not be the same:\n\n",
           70);
    dump_short_array("orig", orig, ((int)(sizeof(orig) / sizeof((orig)[0]))));
    dump_short_array("first", first,
                     ((int)(sizeof(first) / sizeof((first)[0]))));
    exit(1);
  };
  if (memcmp(orig, second, sizeof(orig)) != 0) {
    printf("\n\nLine %d : test 2 : these two array should be the same:\n\n",
           77);
    dump_short_array("orig", orig, ((int)(sizeof(orig) / sizeof((orig)[0]))));
    dump_short_array("second", second,
                     ((int)(sizeof(second) / sizeof((second)[0]))));
    exit(1);
  };
  endswap_short_array(first, ((int)(sizeof(first) / sizeof((first)[0]))));
  if (memcmp(orig, first, sizeof(orig)) != 0) {
    printf("\n\nLine %d : test 3 : these two array should be the same:\n\n",
           86);
    dump_short_array("orig", orig, ((int)(sizeof(orig) / sizeof((orig)[0]))));
    dump_short_array("first", first,
                     ((int)(sizeof(first) / sizeof((first)[0]))));
    exit(1);
  };
  endswap_short_copy(first, orig, ((int)(sizeof(first) / sizeof((first)[0]))));
  endswap_short_copy(first, first, ((int)(sizeof(first) / sizeof((first)[0]))));
  if (memcmp(orig, first, sizeof(orig)) != 0) {
    printf("\n\nLine %d : test 4 : these two array should be the same:\n\n",
           96);
    dump_short_array("orig", orig, ((int)(sizeof(orig) / sizeof((orig)[0]))));
    dump_short_array("first", first,
                     ((int)(sizeof(first) / sizeof((first)[0]))));
    exit(1);
  };
  puts("ok");
}


x86 assembly (clang, -O0):
<test_endswap_short>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xe71(%rip),%rdi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
call   1080 <fflush@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    11de <test_endswap_short+0x5e>
mov    -0x1c(%rbp),%eax
add    $0x3210,%eax
mov    %ax,%cx
movslq -0x1c(%rbp),%rax
mov    %cx,-0x8(%rbp,%rax,2)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11b2 <test_endswap_short+0x32>
lea    -0x10(%rbp),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1050 <endswap_short_copy@plt>
lea    -0x18(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1050 <endswap_short_copy@plt>
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
jne    1265 <test_endswap_short+0xe5>
lea    0xdfb(%rip),%rdi
mov    $0x46,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x8(%rbp),%rsi
lea    0xe23(%rip),%rdi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
lea    -0x10(%rbp),%rsi
lea    0xe13(%rip),%rdi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     12c8 <test_endswap_short+0x148>
lea    0xde2(%rip),%rdi
mov    $0x4d,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x8(%rbp),%rsi
lea    0xdc0(%rip),%rdi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
lea    -0x18(%rbp),%rsi
lea    0xdf1(%rip),%rdi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    -0x10(%rbp),%rdi
mov    $0x4,%esi
call   1040 <endswap_short_array@plt>
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     1339 <test_endswap_short+0x1b9>
lea    0xdb3(%rip),%rdi
mov    $0x56,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x8(%rbp),%rsi
lea    0xd4f(%rip),%rdi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
lea    -0x10(%rbp),%rsi
lea    0xd3f(%rip),%rdi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    -0x10(%rbp),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1050 <endswap_short_copy@plt>
lea    -0x10(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1050 <endswap_short_copy@plt>
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
cmp    $0x0,%rax
je     13c0 <test_endswap_short+0x240>
lea    0xd67(%rip),%rdi
mov    $0x60,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x8(%rbp),%rsi
lea    0xcc8(%rip),%rdi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
lea    -0x10(%rbp),%rsi
lea    0xcb8(%rip),%rdi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xd5b(%rip),%rdi
call   1030 <puts@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_endswap_short>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xe72(%rip),%rdi
lea    0xe78(%rip),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
call   1080 <fflush@plt>
movabs $0x3213321232113210,%rax
32 13 32
mov    %rax,(%rsp)
lea    0x8(%rsp),%rbx
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1050 <endswap_short_copy@plt>
lea    0x10(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x4,%edx
call   1050 <endswap_short_copy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
je     1292 <test_endswap_short+0x112>
mov    %rsp,%rdi
lea    0x10(%rsp),%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
jne    12a0 <test_endswap_short+0x120>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <endswap_short_array@plt>
mov    %rsp,%rdi
mov    %rbx,%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
jne    12d5 <test_endswap_short+0x155>
lea    0x8(%rsp),%rbx
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1050 <endswap_short_copy@plt>
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    $0x4,%edx
call   1050 <endswap_short_copy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x8,%edx
call   1070 <memcmp@plt>
test   %rax,%rax
jne    12e3 <test_endswap_short+0x163>
lea    0xe9d(%rip),%rdi
call   1030 <puts@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret
lea    0xd87(%rip),%rdi
mov    $0x46,%esi
jmp    12ef <test_endswap_short+0x16f>
lea    0xdc3(%rip),%rdi
mov    $0x4d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xda5(%rip),%rdi
mov    %rsp,%rsi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
lea    0xdd7(%rip),%rdi
lea    0x10(%rsp),%rsi
jmp    1316 <test_endswap_short+0x196>
lea    0xdd0(%rip),%rdi
mov    $0x56,%esi
jmp    12ef <test_endswap_short+0x16f>
lea    0xdfd(%rip),%rdi
mov    $0x60,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd62(%rip),%rdi
mov    %rsp,%rsi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
lea    0xd53(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    $0x4,%edx
call   1090 <dump_short_array@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c" %-40s : \00"
@.str.1 = [19 x i8] c"test_endswap_short\00"
@stdout = global i32 0
@.str.2 = [63 x i8] c"\0A\0ALine %d : test 1 : these two array should not be the same:\0A\0A\00"
@.str.3 = [5 x i8] c"orig\00"
@.str.4 = [6 x i8] c"first\00"
@.str.5 = [59 x i8] c"\0A\0ALine %d : test 2 : these two array should be the same:\0A\0A\00"
@.str.6 = [7 x i8] c"second\00"
@.str.7 = [59 x i8] c"\0A\0ALine %d : test 3 : these two array should be the same:\0A\0A\00"
@.str.8 = [59 x i8] c"\0A\0ALine %d : test 4 : these two array should be the same:\0A\0A\00"
@.str.9 = [3 x i8] c"ok\00"
define void @test_endswap_short() {
%1 = alloca [4 x i16]
%2 = alloca [4 x i16]
%3 = alloca [4 x i16]
%4 = alloca i32
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = call i32 @fflush(i32 %6)
store i32 0, i32* %4
br label %8
8: ; preds = %18, %0
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 4
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load i32, i32* %4
%13 = add nsw i32 12816, %12
%14 = trunc i32 %13 to i16
%15 = load i32, i32* %4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 %16
store i16 %14, i16* %17
br label %18
18: ; preds = %11
%19 = load i32, i32* %4
%20 = add nsw i32 %19, 1
store i32 %20, i32* %4
br label %8
21: ; preds = %8
%22 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%23 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%24 = call i32 @endswap_short_copy(i16* %22, i16* %23, i32 4)
%25 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 0
%26 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%27 = call i32 @endswap_short_copy(i16* %25, i16* %26, i32 4)
%28 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%29 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%30 = call i64 @memcmp(i16* %28, i16* %29, i32 8)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %21
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), i32 70)
%34 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%35 = call i32 @dump_short_array(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i16* %34, i32 4)
%36 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%37 = call i32 @dump_short_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i16* %36, i32 4)
%38 = call i32 @exit(i32 1)
unreachable
39: ; preds = %21
%40 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%41 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 0
%42 = call i64 @memcmp(i16* %40, i16* %41, i32 8)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %39
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i32 77)
%46 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%47 = call i32 @dump_short_array(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i16* %46, i32 4)
%48 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 0
%49 = call i32 @dump_short_array(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i16* %48, i32 4)
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %39
%52 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%53 = call i32 @endswap_short_array(i16* %52, i32 4)
%54 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%55 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%56 = call i64 @memcmp(i16* %54, i16* %55, i32 8)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %51
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i32 86)
%60 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%61 = call i32 @dump_short_array(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i16* %60, i32 4)
%62 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%63 = call i32 @dump_short_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i16* %62, i32 4)
%64 = call i32 @exit(i32 1)
unreachable
65: ; preds = %51
%66 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%67 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%68 = call i32 @endswap_short_copy(i16* %66, i16* %67, i32 4)
%69 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%70 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%71 = call i32 @endswap_short_copy(i16* %69, i16* %70, i32 4)
%72 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%73 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%74 = call i64 @memcmp(i16* %72, i16* %73, i32 8)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %83
76: ; preds = %65
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0), i32 96)
%78 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
%79 = call i32 @dump_short_array(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i16* %78, i32 4)
%80 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%81 = call i32 @dump_short_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i16* %80, i32 4)
%82 = call i32 @exit(i32 1)
unreachable
83: ; preds = %65
%84 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c" %-40s : \00"
@.str.1 = [19 x i8] c"test_endswap_short\00"
@stdout = global i32 0
@.str.2 = [63 x i8] c"\0A\0ALine %d : test 1 : these two array should not be the same:\0A\0A\00"
@.str.3 = [5 x i8] c"orig\00"
@.str.4 = [6 x i8] c"first\00"
@.str.5 = [59 x i8] c"\0A\0ALine %d : test 2 : these two array should be the same:\0A\0A\00"
@.str.6 = [7 x i8] c"second\00"
@.str.7 = [59 x i8] c"\0A\0ALine %d : test 3 : these two array should be the same:\0A\0A\00"
@.str.8 = [59 x i8] c"\0A\0ALine %d : test 4 : these two array should be the same:\0A\0A\00"
@.str.9 = [3 x i8] c"ok\00"
define void @test_endswap_short() {
%1 = alloca [4 x i16]
%2 = alloca [4 x i16]
%3 = alloca [4 x i16]
%4 = bitcast [4 x i16]* %1 to i8*
%5 = bitcast [4 x i16]* %2 to i8*
%6 = bitcast [4 x i16]* %3 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stdout
%9 = tail call i32 @fflush(i32 %8)
%10 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 0
store i16 12816, i16* %10
%11 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 1
store i16 12817, i16* %11
%12 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 2
store i16 12818, i16* %12
%13 = getelementptr inbounds [4 x i16], [4 x i16]* %1, i64 0, i64 3
store i16 12819, i16* %13
%14 = getelementptr inbounds [4 x i16], [4 x i16]* %2, i64 0, i64 0
%15 = call i32 @endswap_short_copy(i16* %14, i16* %10, i32 4)
%16 = getelementptr inbounds [4 x i16], [4 x i16]* %3, i64 0, i64 0
%17 = call i32 @endswap_short_copy(i16* %16, i16* %14, i32 4)
%18 = call i64 @memcmp(i16* %10, i16* %14, i32 8)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %0
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), i32 70)
%22 = call i32 @dump_short_array(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i16* %10, i32 4)
%23 = call i32 @dump_short_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i16* %14, i32 4)
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %0
%26 = call i64 @memcmp(i16* %10, i16* %16, i32 8)
%27 = icmp eq i64 %26, 0
br i1 %27, label %33, label %28
28: ; preds = %25
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i32 77)
%30 = call i32 @dump_short_array(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i16* %10, i32 4)
%31 = call i32 @dump_short_array(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i16* %16, i32 4)
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %25
%34 = call i32 @endswap_short_array(i16* %14, i32 4)
%35 = call i64 @memcmp(i16* %10, i16* %14, i32 8)
%36 = icmp eq i64 %35, 0
br i1 %36, label %42, label %37
37: ; preds = %33
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i32 86)
%39 = call i32 @dump_short_array(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i16* %10, i32 4)
%40 = call i32 @dump_short_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i16* %14, i32 4)
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %33
%43 = call i32 @endswap_short_copy(i16* %14, i16* %10, i32 4)
%44 = call i32 @endswap_short_copy(i16* %14, i16* %14, i32 4)
%45 = call i64 @memcmp(i16* %10, i16* %14, i32 8)
%46 = icmp eq i64 %45, 0
br i1 %46, label %52, label %47
47: ; preds = %42
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0), i32 96)
%49 = call i32 @dump_short_array(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i16* %10, i32 4)
%50 = call i32 @dump_short_array(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i16* %14, i32 4)
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %42
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
ret void
}