#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*/ touni;
typedef int /*<<< orphan*/ str;
typedef int /*<<< orphan*/ fromuni;
typedef int /*<<< orphan*/ fromstat;

/* Variables and functions */
int /*<<< orphan*/ bzero(void *, int);
scalar_t__ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ print_short_array(unsigned short *, int);
int /*<<< orphan*/ printf(char *, ...);
int sscanf(char *, char *, unsigned int *, unsigned int *);
int /*<<< orphan*/ stdin;
int main(void) {
  char str[160];
  unsigned short touni[256];
  unsigned short fromuni[65536];
  unsigned short fromstat[256];
  int i;
  bzero((void *)touni, sizeof(touni));
  bzero((void *)fromuni, sizeof(fromuni));
  bzero((void *)fromstat, sizeof(fromstat));
  while (fgets(str, sizeof(str), stdin)) {
    unsigned int c, u;
    if ((str[0] == '#') || (2 != sscanf(str, "%x%x", &c, &u)))
      continue;
    if (c > 0xFF || u > 0xFFFF)
      continue;
    touni[c] = u;
    fromuni[u] = c;
  }
  printf("unsigned short cs_to_uni[256]=");
  print_short_array(touni, 4);
  for (i = 0; i <= 0xFF; i++) {
    fromstat[touni[i] >> 8]++;
  }
  for (i = 0; i <= 256; i++) {
    if (fromstat[i]) {
      printf("unsigned char pl%02X[256]=", i);
      print_short_array(fromuni + i * 256, 2);
    }
  }
  printf("unsigned short *uni_to_cs[256]={\n");
  for (i = 0; i <= 255; i++) {
    if (fromstat[i])
      printf("pl%02X", i);
    else
      printf("NULL");
    printf("%s%s", i < 255 ? "," : "", ((i + 1) % 8) ? "" : "\n");
  }
  printf("};\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x204c0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x2b0(%rbp),%rdi
mov    $0x200,%esi
call   1070 <bzero@plt>
lea    -0x202b0(%rbp),%rdi
mov    $0x20000,%esi
call   1070 <bzero@plt>
lea    -0x204b0(%rbp),%rdi
mov    $0x200,%esi
call   1070 <bzero@plt>
lea    -0xb0(%rbp),%rdi
mov    0x2e45(%rip),%rax
mov    (%rax),%edx
mov    $0xa0,%esi
call   1040 <fgets@plt>
cmp    $0x0,%rax
je     1256 <main+0x106>
movsbl -0xb0(%rbp),%eax
cmp    $0x23,%eax
je     11f9 <main+0xa9>
lea    -0xb0(%rbp),%rdi
lea    0xe29(%rip),%rsi
lea    -0x204b8(%rbp),%rdx
lea    -0x204bc(%rbp),%rcx
call   1050 <sscanf@plt>
mov    %eax,%ecx
mov    $0x2,%eax
cmp    %ecx,%eax
je     11fe <main+0xae>
jmp    1195 <main+0x45>
cmpl   $0xff,-0x204b8(%rbp)
ja     121e <main+0xce>
cmpl   $0xffff,-0x204bc(%rbp)
jbe    1223 <main+0xd3>
jmp    1195 <main+0x45>
mov    -0x204bc(%rbp),%eax
mov    %ax,%cx
mov    -0x204b8(%rbp),%eax
mov    %cx,-0x2b0(%rbp,%rax,2)
ff
mov    -0x204b8(%rbp),%eax
mov    %ax,%cx
mov    -0x204bc(%rbp),%eax
mov    %cx,-0x202b0(%rbp,%rax,2)
ff
jmp    1195 <main+0x45>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x2b0(%rbp),%rdi
mov    $0x4,%esi
call   1060 <print_short_array@plt>
movl   $0x0,-0x204b4(%rbp)
cmpl   $0xff,-0x204b4(%rbp)
jg     12cb <main+0x17b>
movslq -0x204b4(%rbp),%rax
movzwl -0x2b0(%rbp,%rax,2),%eax
ff
sar    $0x8,%eax
cltq
mov    -0x204b0(%rbp,%rax,2),%cx
ff
add    $0x1,%cx
mov    %cx,-0x204b0(%rbp,%rax,2)
ff
mov    -0x204b4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x204b4(%rbp)
jmp    127f <main+0x12f>
movl   $0x0,-0x204b4(%rbp)
cmpl   $0x100,-0x204b4(%rbp)
jg     134b <main+0x1fb>
movslq -0x204b4(%rbp),%rax
cmpw   $0x0,-0x204b0(%rbp,%rax,2)
je     1332 <main+0x1e2>
mov    -0x204b4(%rbp),%esi
lea    0xd1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x202b0(%rbp),%rdi
mov    -0x204b4(%rbp),%eax
shl    $0x8,%eax
cltq
shl    $0x1,%rax
add    %rax,%rdi
mov    $0x2,%esi
call   1060 <print_short_array@plt>
jmp    1337 <main+0x1e7>
mov    -0x204b4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x204b4(%rbp)
jmp    12d5 <main+0x185>
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x204b4(%rbp)
cmpl   $0xff,-0x204b4(%rbp)
jg     1418 <main+0x2c8>
movslq -0x204b4(%rbp),%rax
cmpw   $0x0,-0x204b0(%rbp,%rax,2)
je     13a2 <main+0x252>
mov    -0x204b4(%rbp),%esi
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13b0 <main+0x260>
lea    0xcbf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x204b4(%rbp),%ecx
lea    0xcba(%rip),%rsi
lea    0xcae(%rip),%rax
cmp    $0xff,%ecx
cmovl  %rax,%rsi
mov    -0x204b4(%rbp),%eax
add    $0x1,%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
lea    0xc8e(%rip),%rdx
lea    0xc88(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xc70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x204b4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x204b4(%rbp)
jmp    1363 <main+0x213>
lea    0xc55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x204c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x204b8,%rsp
lea    0x2b0(%rsp),%rdi
mov    $0x200,%esi
call   1080 <bzero@plt>
lea    0x4b0(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x20000,%esi
call   1080 <bzero@plt>
lea    0xb0(%rsp),%rdi
mov    $0x200,%esi
call   1080 <bzero@plt>
mov    0x2e37(%rip),%rbx
mov    (%rbx),%edx
lea    0x10(%rsp),%rdi
mov    $0xa0,%esi
call   1050 <fgets@plt>
test   %rax,%rax
je     123b <main+0xdb>
lea    0x10(%rsp),%r14
lea    0xe2d(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%r13
jmp    11f4 <main+0x94>
nop
mov    (%rbx),%edx
mov    %r14,%rdi
mov    $0xa0,%esi
call   1050 <fgets@plt>
test   %rax,%rax
je     123b <main+0xdb>
cmpb   $0x23,0x10(%rsp)
je     11e0 <main+0x80>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
call   1060 <sscanf@plt>
cmp    $0x2,%eax
jne    11e0 <main+0x80>
mov    0xc(%rsp),%eax
cmp    $0xff,%rax
ja     11e0 <main+0x80>
mov    0x8(%rsp),%ecx
cmp    $0xffff,%ecx
ja     11e0 <main+0x80>
mov    %cx,0x2b0(%rsp,%rax,2)
mov    %ax,0x4b0(%rsp,%rcx,2)
jmp    11e0 <main+0x80>
lea    0xdc3(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2b0(%rsp),%rdi
mov    $0x4,%esi
call   1070 <print_short_array@plt>
nopl   (%rax)
mov    0x2b0(%rsp,%rbx,2),%eax
movzbl %ah,%eax
addw   $0x1,0xb0(%rsp,%rax,2)
movzwl 0x2b2(%rsp,%rbx,2),%eax
movzbl %ah,%eax
addw   $0x1,0xb0(%rsp,%rax,2)
add    $0x2,%rbx
cmp    $0x100,%rbx
jne    1260 <main+0x100>
lea    0xd89(%rip),%r14
xor    %ebx,%ebx
jmp    12b4 <main+0x154>
nop
add    $0x1,%rbx
add    $0x200,%rbp
cmp    $0x101,%rbx
je     12da <main+0x17a>
cmpw   $0x0,0xb0(%rsp,%rbx,2)
je     12a0 <main+0x140>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    $0x2,%esi
call   1070 <print_short_array@plt>
jmp    12a0 <main+0x140>
lea    0xd73(%rip),%rdi
call   1030 <puts@plt>
lea    0xd63(%rip),%r13
lea    0xd5f(%rip),%rbp
lea    0xd57(%rip),%r14
lea    0xd49(%rip),%r12
lea    0xd36(%rip),%r15
xor    %ebx,%ebx
jmp    134d <main+0x1ed>
nopl   (%rax)
lea    0xd2f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xff,%rbx
mov    %rbp,%rsi
cmovb  %r13,%rsi
add    $0x1,%rbx
test   $0x7,%bl
mov    %rbp,%rdx
cmove  %r14,%rdx
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x100,%rbx
je     1366 <main+0x206>
cmpw   $0x0,0xb0(%rsp,%rbx,2)
je     1310 <main+0x1b0>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    131e <main+0x1be>
lea    0xd08(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x204b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [5 x i8] c"%x%x\00"
@.str.1 = [31 x i8] c"unsigned short cs_to_uni[256]=\00"
@.str.2 = [27 x i8] c"unsigned char pl%02X[256]=\00"
@.str.3 = [34 x i8] c"unsigned short *uni_to_cs[256]={\0A\00"
@.str.4 = [7 x i8] c"pl%02X\00"
@.str.5 = [5 x i8] c"NULL\00"
@.str.6 = [5 x i8] c"%s%s\00"
@.str.7 = [2 x i8] c",\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [4 x i8] c"};\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [160 x i8]
%3 = alloca [256 x i16]
%4 = alloca [65536 x i16]
%5 = alloca [256 x i16]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = getelementptr inbounds [256 x i16], [256 x i16]* %3, i64 0, i64 0
%10 = bitcast i16* %9 to i8*
%11 = call i32 @bzero(i8* %10, i32 512)
%12 = getelementptr inbounds [65536 x i16], [65536 x i16]* %4, i64 0, i64 0
%13 = bitcast i16* %12 to i8*
%14 = call i32 @bzero(i8* %13, i32 131072)
%15 = getelementptr inbounds [256 x i16], [256 x i16]* %5, i64 0, i64 0
%16 = bitcast i16* %15 to i8*
%17 = call i32 @bzero(i8* %16, i32 512)
br label %18
18: ; preds = %40, %39, %32, %0
%19 = getelementptr inbounds [160 x i8], [160 x i8]* %2, i64 0, i64 0
%20 = load i32, i32* @stdin
%21 = call i64 @fgets(i8* %19, i32 160, i32 %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %51
23: ; preds = %18
%24 = getelementptr inbounds [160 x i8], [160 x i8]* %2, i64 0, i64 0
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 35
br i1 %27, label %32, label %28
28: ; preds = %23
%29 = getelementptr inbounds [160 x i8], [160 x i8]* %2, i64 0, i64 0
%30 = call i32 @sscanf(i8* %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %7, i32* %8)
%31 = icmp ne i32 2, %30
br i1 %31, label %32, label %33
32: ; preds = %28, %23
br label %18
33: ; preds = %28
%34 = load i32, i32* %7
%35 = icmp ugt i32 %34, 255
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load i32, i32* %8
%38 = icmp ugt i32 %37, 65535
br i1 %38, label %39, label %40
39: ; preds = %36, %33
br label %18
40: ; preds = %36
%41 = load i32, i32* %8
%42 = trunc i32 %41 to i16
%43 = load i32, i32* %7
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds [256 x i16], [256 x i16]* %3, i64 0, i64 %44
store i16 %42, i16* %45
%46 = load i32, i32* %7
%47 = trunc i32 %46 to i16
%48 = load i32, i32* %8
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds [65536 x i16], [65536 x i16]* %4, i64 0, i64 %49
store i16 %47, i16* %50
br label %18
51: ; preds = %18
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%53 = getelementptr inbounds [256 x i16], [256 x i16]* %3, i64 0, i64 0
%54 = call i32 @print_short_array(i16* %53, i32 4)
store i32 0, i32* %6
br label %55
55: ; preds = %69, %51
%56 = load i32, i32* %6
%57 = icmp sle i32 %56, 255
br i1 %57, label %58, label %72
58: ; preds = %55
%59 = load i32, i32* %6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [256 x i16], [256 x i16]* %3, i64 0, i64 %60
%62 = load i16, i16* %61
%63 = zext i16 %62 to i32
%64 = ashr i32 %63, 8
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [256 x i16], [256 x i16]* %5, i64 0, i64 %65
%67 = load i16, i16* %66
%68 = add i16 %67, 1
store i16 %68, i16* %66
br label %69
69: ; preds = %58
%70 = load i32, i32* %6
%71 = add nsw i32 %70, 1
store i32 %71, i32* %6
br label %55
72: ; preds = %55
store i32 0, i32* %6
br label %73
73: ; preds = %92, %72
%74 = load i32, i32* %6
%75 = icmp sle i32 %74, 256
br i1 %75, label %76, label %95
76: ; preds = %73
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [256 x i16], [256 x i16]* %5, i64 0, i64 %78
%80 = load i16, i16* %79
%81 = icmp ne i16 %80, 0
br i1 %81, label %82, label %91
82: ; preds = %76
%83 = load i32, i32* %6
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %83)
%85 = getelementptr inbounds [65536 x i16], [65536 x i16]* %4, i64 0, i64 0
%86 = load i32, i32* %6
%87 = mul nsw i32 %86, 256
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i16, i16* %85, i64 %88
%90 = call i32 @print_short_array(i16* %89, i32 2)
br label %91
91: ; preds = %82, %76
br label %92
92: ; preds = %91
%93 = load i32, i32* %6
%94 = add nsw i32 %93, 1
store i32 %94, i32* %6
br label %73
95: ; preds = %73
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %6
br label %97
97: ; preds = %123, %95
%98 = load i32, i32* %6
%99 = icmp sle i32 %98, 255
br i1 %99, label %100, label %126
100: ; preds = %97
%101 = load i32, i32* %6
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [256 x i16], [256 x i16]* %5, i64 0, i64 %102
%104 = load i16, i16* %103
%105 = icmp ne i16 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %100
%107 = load i32, i32* %6
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %107)
br label %111
109: ; preds = %100
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %111
111: ; preds = %109, %106
%112 = load i32, i32* %6
%113 = icmp slt i32 %112, 255
%114 = zext i1 %113 to i64
%115 = select i1 %113, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0)
%116 = load i32, i32* %6
%117 = add nsw i32 %116, 1
%118 = srem i32 %117, 8
%119 = icmp ne i32 %118, 0
%120 = zext i1 %119 to i64
%121 = select i1 %119, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0)
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %115, i8* %121)
br label %123
123: ; preds = %111
%124 = load i32, i32* %6
%125 = add nsw i32 %124, 1
store i32 %125, i32* %6
br label %97
126: ; preds = %97
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [5 x i8] c"%x%x\00"
@.str.1 = [31 x i8] c"unsigned short cs_to_uni[256]=\00"
@.str.2 = [27 x i8] c"unsigned char pl%02X[256]=\00"
@.str.4 = [7 x i8] c"pl%02X\00"
@.str.5 = [5 x i8] c"NULL\00"
@.str.6 = [5 x i8] c"%s%s\00"
@.str.7 = [2 x i8] c",\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [2 x i8] c"\0A\00"
@str = [33 x i8] c"unsigned short *uni_to_cs[256]={\00"
@str.11 = [3 x i8] c"};\00"
define i32 @main() {
%1 = alloca [160 x i8]
%2 = alloca [256 x i16]
%3 = alloca [65536 x i16]
%4 = alloca [256 x i16]
%5 = alloca i32
%6 = alloca i32
%7 = getelementptr inbounds [160 x i8], [160 x i8]* %1, i64 0, i64 0
%8 = bitcast [256 x i16]* %2 to i8*
%9 = bitcast [65536 x i16]* %3 to i8*
%10 = bitcast [256 x i16]* %4 to i8*
%11 = getelementptr inbounds [256 x i16], [256 x i16]* %2, i64 0, i64 0
%12 = call i32 @bzero(i8* %8, i32 512)
%13 = call i32 @bzero(i8* %9, i32 131072)
%14 = call i32 @bzero(i8* %10, i32 512)
%15 = load i32, i32* @stdin
%16 = call i64 @fgets(i8* %7, i32 160, i32 %15)
%17 = icmp eq i64 %16, 0
br i1 %17, label %44, label %18
18: ; preds = %0
%19 = bitcast i32* %5 to i8*
%20 = bitcast i32* %6 to i8*
br label %21
21: ; preds = %18, %40
%22 = load i8, i8* %7
%23 = icmp eq i8 %22, 35
br i1 %23, label %40, label %24
24: ; preds = %21
%25 = call i32 @sscanf(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %5, i32* %6)
%26 = icmp eq i32 %25, 2
br i1 %26, label %27, label %40
27: ; preds = %24
%28 = load i32, i32* %5
%29 = icmp ugt i32 %28, 255
%30 = load i32, i32* %6
%31 = icmp ugt i32 %30, 65535
%32 = select i1 %29, i1 true, i1 %31
br i1 %32, label %40, label %33
33: ; preds = %27
%34 = trunc i32 %30 to i16
%35 = zext i32 %28 to i64
%36 = getelementptr inbounds [256 x i16], [256 x i16]* %2, i64 0, i64 %35
store i16 %34, i16* %36
%37 = trunc i32 %28 to i16
%38 = zext i32 %30 to i64
%39 = getelementptr inbounds [65536 x i16], [65536 x i16]* %3, i64 0, i64 %38
store i16 %37, i16* %39
br label %40
40: ; preds = %27, %21, %24, %33
%41 = load i32, i32* @stdin
%42 = call i64 @fgets(i8* %7, i32 160, i32 %41)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %21
44: ; preds = %40, %0
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%46 = call i32 @print_short_array(i16* %11, i32 4)
br label %47
47: ; preds = %47, %44
%48 = phi i64 [ 0, %44 ], [ %64, %47 ]
%49 = getelementptr inbounds [256 x i16], [256 x i16]* %2, i64 0, i64 %48
%50 = load i16, i16* %49
%51 = lshr i16 %50, 8
%52 = zext i16 %51 to i64
%53 = getelementptr inbounds [256 x i16], [256 x i16]* %4, i64 0, i64 %52
%54 = load i16, i16* %53
%55 = add i16 %54, 1
store i16 %55, i16* %53
%56 = or i64 %48, 1
%57 = getelementptr inbounds [256 x i16], [256 x i16]* %2, i64 0, i64 %56
%58 = load i16, i16* %57
%59 = lshr i16 %58, 8
%60 = zext i16 %59 to i64
%61 = getelementptr inbounds [256 x i16], [256 x i16]* %4, i64 0, i64 %60
%62 = load i16, i16* %61
%63 = add i16 %62, 1
store i16 %63, i16* %61
%64 = add nuw nsw i64 %48, 2
%65 = icmp eq i64 %64, 256
br i1 %65, label %66, label %47
66: ; preds = %47, %77
%67 = phi i64 [ %78, %77 ], [ 0, %47 ]
%68 = getelementptr inbounds [256 x i16], [256 x i16]* %4, i64 0, i64 %67
%69 = load i16, i16* %68
%70 = icmp eq i16 %69, 0
br i1 %70, label %77, label %71
71: ; preds = %66
%72 = trunc i64 %67 to i32
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %72)
%74 = shl nuw nsw i64 %67, 8
%75 = getelementptr inbounds [65536 x i16], [65536 x i16]* %3, i64 0, i64 %74
%76 = call i32 @print_short_array(i16* %75, i32 2)
br label %77
77: ; preds = %66, %71
%78 = add nuw nsw i64 %67, 1
%79 = icmp eq i64 %78, 257
br i1 %79, label %80, label %66
80: ; preds = %77
%81 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
br label %82
82: ; preds = %80, %92
%83 = phi i64 [ 0, %80 ], [ %95, %92 ]
%84 = getelementptr inbounds [256 x i16], [256 x i16]* %4, i64 0, i64 %83
%85 = load i16, i16* %84
%86 = icmp eq i16 %85, 0
br i1 %86, label %90, label %87
87: ; preds = %82
%88 = trunc i64 %83 to i32
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %88)
br label %92
90: ; preds = %82
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %92
92: ; preds = %90, %87
%93 = icmp ult i64 %83, 255
%94 = select i1 %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0)
%95 = add nuw nsw i64 %83, 1
%96 = and i64 %95, 7
%97 = icmp eq i64 %96, 0
%98 = select i1 %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0)
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %94, i8* %98)
%100 = icmp eq i64 %95, 256
br i1 %100, label %101, label %82
101: ; preds = %92
%102 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.11, i64 0, i64 0))
ret i32 0
}