#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*/ FILE;

/* Variables and functions */
int EOF;
int errno;
int fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
size_t fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(unsigned long long *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
char *strerror(int);
int hist(char *filepath) {
  int rc;
  unsigned long long int counts[256];
  memset(counts, 0, sizeof counts);
  FILE *f = fopen(filepath, "rb");
  if (f == NULL) {
    fprintf(stderr, "fopen() error %s\n", strerror(errno));
    return errno;
  }
  unsigned char chunk[65536];
  size_t bytes_read;
  while (!feof(f)) {
    bytes_read = fread(chunk, 1, 65536, f);
    for (size_t i = 0; i < bytes_read; i++) {
      counts[chunk[i]]++;
    }
  }
  rc = fclose(f);
  if (rc == EOF) {
    fprintf(stderr, "fclose() error %s\n", strerror(errno));
    return errno;
  }
  printf("[");
  bool first = true;
  for (size_t i = 0; i < 256; i++) {
    unsigned long long int count = counts[i];
    if (count) {
      if (!first) {
        printf(",");
      }
      first = false;
      unsigned char c = i;
      if (c == '"' || c < ' ' || c > '~') {
        printf("(\"\\x%02x\",%llu)", c, count);
      } else {
        printf("(\"%c\",%llu)", c, count);
      }
    }
  }
  printf("]\n");
  return 0;
}


x86 assembly (clang, -O0):
<hist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10870,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x820(%rbp),%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1060 <memset@plt>
mov    -0x10(%rbp),%rdi
lea    0xe53(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x828(%rbp)
cmpq   $0x0,-0x828(%rbp)
jne    120a <hist+0x8a>
mov    0x2e0a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10860(%rbp)
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0x10860(%rbp),%edi
mov    %rax,%rdx
lea    0xe0f(%rip),%rsi
call   1070 <fprintf@plt>
mov    0x2dd0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1443 <hist+0x2c3>
jmp    120f <hist+0x8f>
mov    -0x828(%rbp),%rdi
call   1080 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1230 <hist+0xb0>
jmp    12b2 <hist+0x132>
lea    -0x10830(%rbp),%rdi
mov    -0x828(%rbp),%rcx
mov    $0x1,%esi
mov    $0x10000,%edx
call   1030 <fread@plt>
mov    %rax,-0x10838(%rbp)
movq   $0x0,-0x10840(%rbp)
mov    -0x10840(%rbp),%rax
cmp    -0x10838(%rbp),%rax
jae    12ad <hist+0x12d>
mov    -0x10840(%rbp),%rax
movzbl -0x10830(%rbp,%rax,1),%eax
ff
mov    -0x820(%rbp,%rax,8),%rcx
ff
add    $0x1,%rcx
mov    %rcx,-0x820(%rbp,%rax,8)
ff
mov    -0x10840(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10840(%rbp)
jmp    125f <hist+0xdf>
jmp    120f <hist+0x8f>
mov    -0x828(%rbp),%rdi
call   1040 <fclose@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2d1d(%rip),%rcx
cmp    (%rcx),%eax
jne    1316 <hist+0x196>
mov    0x2cfe(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10864(%rbp)
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0x10864(%rbp),%edi
mov    %rax,%rdx
lea    0xd15(%rip),%rsi
call   1070 <fprintf@plt>
mov    0x2cc4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1443 <hist+0x2c3>
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x10844(%rbp)
movq   $0x0,-0x10850(%rbp)
cmpq   $0x100,-0x10850(%rbp)
jae    142e <hist+0x2ae>
mov    -0x10850(%rbp),%rax
mov    -0x820(%rbp,%rax,8),%rax
ff
mov    %rax,-0x10858(%rbp)
cmpq   $0x0,-0x10858(%rbp)
je     1412 <hist+0x292>
cmpl   $0x0,-0x10844(%rbp)
jne    1389 <hist+0x209>
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x10844(%rbp)
mov    -0x10850(%rbp),%rax
mov    %al,-0x10859(%rbp)
movzbl -0x10859(%rbp),%eax
cmp    $0x22,%eax
je     13d0 <hist+0x250>
movzbl -0x10859(%rbp),%eax
cmp    $0x20,%eax
jl     13d0 <hist+0x250>
movzbl -0x10859(%rbp),%eax
cmp    $0x7e,%eax
jle    13f1 <hist+0x271>
movzbl -0x10859(%rbp),%esi
mov    -0x10858(%rbp),%rdx
lea    0xc47(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    140d <hist+0x28d>
movzbl -0x10859(%rbp),%esi
mov    -0x10858(%rbp),%rdx
lea    0xc36(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1412 <hist+0x292>
jmp    1417 <hist+0x297>
mov    -0x10850(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10850(%rbp)
jmp    1339 <hist+0x1b9>
lea    0xc13(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10870,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hist>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10800,%rsp
mov    %rdi,%rbx
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1080 <memset@plt>
lea    0xe38(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     121c <hist+0x7c>
mov    %rax,%rbx
mov    %rax,%rdi
call   10a0 <feof@plt>
test   %eax,%eax
je     12d6 <hist+0x136>
mov    %rbx,%rdi
call   1060 <fclose@plt>
mov    0x2df1(%rip),%rcx
cmp    (%rcx),%eax
jne    124d <hist+0xad>
mov    0x2dd6(%rip),%rax
mov    (%rax),%ebx
mov    0x2dc5(%rip),%rbp
mov    0x0(%rbp),%edi
call   10c0 <strerror@plt>
lea    0xdfb(%rip),%rsi
jmp    123b <hist+0x9b>
mov    0x2db5(%rip),%rax
mov    (%rax),%ebx
mov    0x2da4(%rip),%rbp
mov    0x0(%rbp),%edi
call   10c0 <strerror@plt>
lea    0xdc8(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1090 <fprintf@plt>
mov    0x0(%rbp),%eax
jmp    12c6 <hist+0x126>
mov    $0x5b,%edi
call   1030 <putchar@plt>
mov    $0x1,%ebp
xor    %ebx,%ebx
lea    0xdc3(%rip),%r15
lea    0xdcc(%rip),%r12
jmp    129f <hist+0xff>
xchg   %ax,%ax
lea    -0x7f(%rbx),%eax
cmp    $0xffffffa1,%eax
mov    %r12,%rdi
cmovb  %r15,%rdi
cmp    $0x22,%ebx
cmove  %r15,%rdi
xor    %ebp,%ebp
mov    %ebx,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbx
cmp    $0x100,%rbx
je     12b8 <hist+0x118>
mov    (%rsp,%rbx,8),%r14
test   %r14,%r14
je     1292 <hist+0xf2>
test   %ebp,%ebp
jne    1270 <hist+0xd0>
mov    $0x2c,%edi
call   1030 <putchar@plt>
jmp    1270 <hist+0xd0>
lea    0xd85(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x10800,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x800(%rsp),%r14
jmp    12f0 <hist+0x150>
mov    %rbx,%rdi
call   10a0 <feof@plt>
test   %eax,%eax
jne    11e8 <hist+0x48>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x10000,%edx
mov    %rbx,%rcx
call   1050 <fread@plt>
test   %rax,%rax
je     12e0 <hist+0x140>
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x3,%ecx
cmp    $0x3,%rdx
jae    1320 <hist+0x180>
xor    %edx,%edx
jmp    136d <hist+0x1cd>
nopl   (%rax)
and    $0xfffffffffffffffc,%rax
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
movzbl 0x800(%rsp,%rdx,1),%esi
addq   $0x1,(%rsp,%rsi,8)
movzbl 0x801(%rsp,%rdx,1),%esi
addq   $0x1,(%rsp,%rsi,8)
movzbl 0x802(%rsp,%rdx,1),%esi
addq   $0x1,(%rsp,%rsi,8)
movzbl 0x803(%rsp,%rdx,1),%esi
addq   $0x1,(%rsp,%rsi,8)
add    $0x4,%rdx
cmp    %rdx,%rax
jne    1330 <hist+0x190>
test   %rcx,%rcx
je     12e0 <hist+0x140>
lea    (%rsp,%rdx,1),%rax
add    $0x800,%rax
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%rax,%rdx,1),%esi
addq   $0x1,(%rsp,%rsi,8)
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1390 <hist+0x1f0>
jmp    12e0 <hist+0x140>

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@stderr = global i32 0
@.str.1 = [18 x i8] c"fopen() error %s\0A\00"
@errno = global i32 0
@EOF = global i32 0
@.str.2 = [19 x i8] c"fclose() error %s\0A\00"
@.str.3 = [2 x i8] c"[\00"
@.str.4 = [2 x i8] c",\00"
@.str.5 = [16 x i8] c"(\22\\x%02x\22,%llu)\00"
@.str.6 = [12 x i8] c"(\22%c\22,%llu)\00"
@.str.7 = [3 x i8] c"]\0A\00"
define i32 @hist(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [256 x i64]
%6 = alloca i32*
%7 = alloca [65536 x i8]
%8 = alloca i64
%9 = alloca i64
%10 = alloca i32
%11 = alloca i64
%12 = alloca i64
%13 = alloca i8
store i8* %0, i8** %3
%14 = getelementptr inbounds [256 x i64], [256 x i64]* %5, i64 0, i64 0
%15 = call i32 @memset(i64* %14, i32 0, i32 2048)
%16 = load i8*, i8** %3
%17 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %17, i32** %6
%18 = load i32*, i32** %6
%19 = icmp eq i32* %18, null
br i1 %19, label %20, label %26
20: ; preds = %1
%21 = load i32, i32* @stderr
%22 = load i32, i32* @errno
%23 = call i8* @strerror(i32 %22)
%24 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%25 = load i32, i32* @errno
store i32 %25, i32* %2
br label %111
26: ; preds = %1
br label %27
27: ; preds = %51, %26
%28 = load i32*, i32** %6
%29 = call i32 @feof(i32* %28)
%30 = icmp ne i32 %29, 0
%31 = xor i1 %30, true
br i1 %31, label %32, label %52
32: ; preds = %27
%33 = getelementptr inbounds [65536 x i8], [65536 x i8]* %7, i64 0, i64 0
%34 = load i32*, i32** %6
%35 = call i64 @fread(i8* %33, i32 1, i32 65536, i32* %34)
store i64 %35, i64* %8
store i64 0, i64* %9
br label %36
36: ; preds = %48, %32
%37 = load i64, i64* %9
%38 = load i64, i64* %8
%39 = icmp ult i64 %37, %38
br i1 %39, label %40, label %51
40: ; preds = %36
%41 = load i64, i64* %9
%42 = getelementptr inbounds [65536 x i8], [65536 x i8]* %7, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = zext i8 %43 to i64
%45 = getelementptr inbounds [256 x i64], [256 x i64]* %5, i64 0, i64 %44
%46 = load i64, i64* %45
%47 = add i64 %46, 1
store i64 %47, i64* %45
br label %48
48: ; preds = %40
%49 = load i64, i64* %9
%50 = add i64 %49, 1
store i64 %50, i64* %9
br label %36
51: ; preds = %36
br label %27
52: ; preds = %27
%53 = load i32*, i32** %6
%54 = call i32 @fclose(i32* %53)
store i32 %54, i32* %4
%55 = load i32, i32* %4
%56 = load i32, i32* @EOF
%57 = icmp eq i32 %55, %56
br i1 %57, label %58, label %64
58: ; preds = %52
%59 = load i32, i32* @stderr
%60 = load i32, i32* @errno
%61 = call i8* @strerror(i32 %60)
%62 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* %61)
%63 = load i32, i32* @errno
store i32 %63, i32* %2
br label %111
64: ; preds = %52
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %10
store i64 0, i64* %11
br label %66
66: ; preds = %106, %64
%67 = load i64, i64* %11
%68 = icmp ult i64 %67, 256
br i1 %68, label %69, label %109
69: ; preds = %66
%70 = load i64, i64* %11
%71 = getelementptr inbounds [256 x i64], [256 x i64]* %5, i64 0, i64 %70
%72 = load i64, i64* %71
store i64 %72, i64* %12
%73 = load i64, i64* %12
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %105
75: ; preds = %69
%76 = load i32, i32* %10
%77 = icmp ne i32 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %80
80: ; preds = %78, %75
store i32 0, i32* %10
%81 = load i64, i64* %11
%82 = trunc i64 %81 to i8
store i8 %82, i8* %13
%83 = load i8, i8* %13
%84 = zext i8 %83 to i32
%85 = icmp eq i32 %84, 34
br i1 %85, label %94, label %86
86: ; preds = %80
%87 = load i8, i8* %13
%88 = zext i8 %87 to i32
%89 = icmp slt i32 %88, 32
br i1 %89, label %94, label %90
90: ; preds = %86
%91 = load i8, i8* %13
%92 = zext i8 %91 to i32
%93 = icmp sgt i32 %92, 126
br i1 %93, label %94, label %99
94: ; preds = %90, %86, %80
%95 = load i8, i8* %13
%96 = zext i8 %95 to i32
%97 = load i64, i64* %12
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %96, i64 %97)
br label %104
99: ; preds = %90
%100 = load i8, i8* %13
%101 = zext i8 %100 to i32
%102 = load i64, i64* %12
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %101, i64 %102)
br label %104
104: ; preds = %99, %94
br label %105
105: ; preds = %104, %69
br label %106
106: ; preds = %105
%107 = load i64, i64* %11
%108 = add i64 %107, 1
store i64 %108, i64* %11
br label %66
109: ; preds = %66
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %111
111: ; preds = %109, %58, %20
%112 = load i32, i32* %2
ret i32 %112
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@stderr = global i32 0
@.str.1 = [18 x i8] c"fopen() error %s\0A\00"
@errno = global i32 0
@EOF = global i32 0
@.str.2 = [19 x i8] c"fclose() error %s\0A\00"
@.str.5 = [16 x i8] c"(\22\\x%02x\22,%llu)\00"
@.str.6 = [12 x i8] c"(\22%c\22,%llu)\00"
@str = [2 x i8] c"]\00"
define i32 @hist(i8* nocapture %0) {
%2 = alloca [256 x i64]
%3 = alloca [65536 x i8]
%4 = bitcast [256 x i64]* %2 to i8*
%5 = getelementptr inbounds [256 x i64], [256 x i64]* %2, i64 0, i64 0
%6 = call i32 @memset(i64* %5, i32 0, i32 2048)
%7 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %15
9: ; preds = %1
%10 = load i32, i32* @stderr
%11 = load i32, i32* @errno
%12 = call i8* @strerror(i32 %11)
%13 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = load i32, i32* @errno
br label %117
15: ; preds = %1
%16 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%17 = call i32 @feof(i32* %7)
%18 = icmp eq i32 %17, 0
br i1 %18, label %37, label %79
19: ; preds = %46, %40
%20 = phi i64 [ 0, %40 ], [ %76, %46 ]
%21 = icmp eq i64 %42, 0
br i1 %21, label %34, label %22
22: ; preds = %19, %22
%23 = phi i64 [ %31, %22 ], [ %20, %19 ]
%24 = phi i64 [ %32, %22 ], [ 0, %19 ]
%25 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 %23
%26 = load i8, i8* %25
%27 = zext i8 %26 to i64
%28 = getelementptr inbounds [256 x i64], [256 x i64]* %2, i64 0, i64 %27
%29 = load i64, i64* %28
%30 = add i64 %29, 1
store i64 %30, i64* %28
%31 = add nuw i64 %23, 1
%32 = add i64 %24, 1
%33 = icmp eq i64 %32, %42
br i1 %33, label %34, label %22
34: ; preds = %19, %22, %37
%35 = call i32 @feof(i32* %7)
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %79
37: ; preds = %15, %34
%38 = call i64 @fread(i8* %16, i32 1, i32 65536, i32* %7)
%39 = icmp eq i64 %38, 0
br i1 %39, label %34, label %40
40: ; preds = %37
%41 = add i64 %38, -1
%42 = and i64 %38, 3
%43 = icmp ult i64 %41, 3
br i1 %43, label %19, label %44
44: ; preds = %40
%45 = and i64 %38, -4
br label %46
46: ; preds = %46, %44
%47 = phi i64 [ 0, %44 ], [ %76, %46 ]
%48 = phi i64 [ 0, %44 ], [ %77, %46 ]
%49 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 %47
%50 = load i8, i8* %49
%51 = zext i8 %50 to i64
%52 = getelementptr inbounds [256 x i64], [256 x i64]* %2, i64 0, i64 %51
%53 = load i64, i64* %52
%54 = add i64 %53, 1
store i64 %54, i64* %52
%55 = or i64 %47, 1
%56 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 %55
%57 = load i8, i8* %56
%58 = zext i8 %57 to i64
%59 = getelementptr inbounds [256 x i64], [256 x i64]* %2, i64 0, i64 %58
%60 = load i64, i64* %59
%61 = add i64 %60, 1
store i64 %61, i64* %59
%62 = or i64 %47, 2
%63 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 %62
%64 = load i8, i8* %63
%65 = zext i8 %64 to i64
%66 = getelementptr inbounds [256 x i64], [256 x i64]* %2, i64 0, i64 %65
%67 = load i64, i64* %66
%68 = add i64 %67, 1
store i64 %68, i64* %66
%69 = or i64 %47, 3
%70 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 %69
%71 = load i8, i8* %70
%72 = zext i8 %71 to i64
%73 = getelementptr inbounds [256 x i64], [256 x i64]* %2, i64 0, i64 %72
%74 = load i64, i64* %73
%75 = add i64 %74, 1
store i64 %75, i64* %73
%76 = add nuw i64 %47, 4
%77 = add i64 %48, 4
%78 = icmp eq i64 %77, %45
br i1 %78, label %19, label %46
79: ; preds = %34, %15
%80 = call i32 @fclose(i32* %7)
%81 = load i32, i32* @EOF
%82 = icmp eq i32 %80, %81
br i1 %82, label %83, label %89
83: ; preds = %79
%84 = load i32, i32* @stderr
%85 = load i32, i32* @errno
%86 = call i8* @strerror(i32 %85)
%87 = call i32 @fprintf(i32 %84, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* %86)
%88 = load i32, i32* @errno
br label %115
89: ; preds = %79
%90 = call i32 @putchar(i32 91)
br label %93
91: ; preds = %111
%92 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %115
93: ; preds = %89, %111
%94 = phi i64 [ 0, %89 ], [ %113, %111 ]
%95 = phi i32 [ 1, %89 ], [ %112, %111 ]
%96 = getelementptr inbounds [256 x i64], [256 x i64]* %2, i64 0, i64 %94
%97 = load i64, i64* %96
%98 = icmp eq i64 %97, 0
br i1 %98, label %111, label %99
99: ; preds = %93
%100 = icmp eq i32 %95, 0
br i1 %100, label %101, label %103
101: ; preds = %99
%102 = call i32 @putchar(i32 44)
br label %103
103: ; preds = %101, %99
%104 = trunc i64 %94 to i32
%105 = icmp eq i32 %104, 34
%106 = add nsw i32 %104, -127
%107 = icmp ult i32 %106, -95
%108 = or i1 %105, %107
%109 = select i1 %108, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0)
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %109, i32 %104, i64 %97)
br label %111
111: ; preds = %103, %93
%112 = phi i32 [ %95, %93 ], [ 0, %103 ]
%113 = add nuw nsw i64 %94, 1
%114 = icmp eq i64 %113, 256
br i1 %114, label %91, label %93
115: ; preds = %91, %83
%116 = phi i32 [ %88, %83 ], [ 0, %91 ]
br label %117
117: ; preds = %115, %9
%118 = phi i32 [ %14, %9 ], [ %116, %115 ]
ret i32 %118
}