#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*/ fputs(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdout;
scalar_t__ strlen(char const *);
void HexDump(const char *data, int length, const char *title,
             int leadingSpaces) {
  unsigned char c;
  int i;
  int j;
  int s = 0;
  int outputWidth = 16;
  int currentLineWidth = 0;
  int originalLength = 0;
  char asciiString[400] = {0};
  ;
  originalLength = length;
  if (length > (1024)) {
    length = (1024);
  }
  for (i = 0; i < leadingSpaces; i++) {
    putchar(' ');
  }
  if (title != NULL && strlen(title) != 0) {
    fputs(title, stdout);
    printf(" (%d bytes @ %p):\n", originalLength, data);
  } else {
    printf("%d bytes @ %p:\n", originalLength, data);
  }
  for (i = 0; i < length; i++) {
    if (i % outputWidth == 0) {
      ;
      currentLineWidth = 0;
      if (i > 0) {
        asciiString[s] = 0;
        puts(asciiString);
        asciiString[0] = 0;
        s = 0;
      }
      for (j = 0; j < leadingSpaces; j++) {
        putchar(' ');
      }
      printf("%06d  ", i);
    }
    c = *data++;
    printf("%02x ", c);
    if (c >= ' ' && c <= '~') {
      asciiString[s++] = c;
    } else {
      asciiString[s++] = '.';
    }
    currentLineWidth++;
  }
  for (i = 0; i < outputWidth - currentLineWidth; i++) {
    fputs("   ", stdout);
  }
  asciiString[s] = 0;
  puts(asciiString);
  if (originalLength > length) {
    printf("       ...Dump of %d bytes has been truncated\n", originalLength);
  }
  return;
}


x86 assembly (clang, -O0):
<HexDump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1d0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x10,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
lea    -0x1d0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1080 <memset@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x400,-0xc(%rbp)
jle    11c2 <HexDump+0x62>
movl   $0x400,-0xc(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11ed <HexDump+0x8d>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11c9 <HexDump+0x69>
cmpq   $0x0,-0x18(%rbp)
je     1237 <HexDump+0xd7>
mov    -0x18(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%rax
je     1237 <HexDump+0xd7>
mov    -0x18(%rbp),%rdi
mov    0x2dca(%rip),%rax
mov    (%rax),%esi
call   1070 <fputs@plt>
mov    -0x38(%rbp),%esi
mov    -0x8(%rbp),%rdx
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    124c <HexDump+0xec>
mov    -0x38(%rbp),%esi
mov    -0x8(%rbp),%rdx
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    136a <HexDump+0x20a>
mov    -0x24(%rbp),%eax
cltd
idivl  -0x30(%rbp)
cmp    $0x0,%edx
jne    12e2 <HexDump+0x182>
movl   $0x0,-0x34(%rbp)
cmpl   $0x0,-0x24(%rbp)
jle    12a6 <HexDump+0x146>
movslq -0x2c(%rbp),%rax
movb   $0x0,-0x1d0(%rbp,%rax,1)
lea    -0x1d0(%rbp),%rdi
call   1040 <puts@plt>
movb   $0x0,-0x1d0(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12d1 <HexDump+0x171>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12ad <HexDump+0x14d>
mov    -0x24(%rbp),%esi
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%al
mov    %al,-0x1d(%rbp)
movzbl -0x1d(%rbp),%esi
lea    0xd29(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movzbl -0x1d(%rbp),%eax
cmp    $0x20,%eax
jl     133e <HexDump+0x1de>
movzbl -0x1d(%rbp),%eax
cmp    $0x7e,%eax
jg     133e <HexDump+0x1de>
mov    -0x1d(%rbp),%cl
mov    -0x2c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
cltq
mov    %cl,-0x1d0(%rbp,%rax,1)
jmp    1353 <HexDump+0x1f3>
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cltq
movb   $0x2e,-0x1d0(%rbp,%rax,1)
2e
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1253 <HexDump+0xf3>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x30(%rbp),%ecx
sub    -0x34(%rbp),%ecx
cmp    %ecx,%eax
jge    13a5 <HexDump+0x245>
mov    0x2c57(%rip),%rax
mov    (%rax),%esi
lea    0xc9e(%rip),%rdi
call   1070 <fputs@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1371 <HexDump+0x211>
movslq -0x2c(%rbp),%rax
movb   $0x0,-0x1d0(%rbp,%rax,1)
lea    -0x1d0(%rbp),%rdi
call   1040 <puts@plt>
mov    -0x38(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    13da <HexDump+0x27a>
mov    -0x38(%rbp),%esi
lea    0xc61(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
add    $0x1d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HexDump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
mov    %ecx,%ebp
mov    %rdx,%r14
mov    %esi,%r12d
mov    %rdi,%rbx
lea    0x10(%rsp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    %ebp,0x4(%rsp)
test   %ebp,%ebp
jle    119f <HexDump+0x4f>
mov    0x4(%rsp),%ebp
nopl   0x0(%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jne    1190 <HexDump+0x40>
lea    0xe6d(%rip),%rdi
test   %r14,%r14
je     11c9 <HexDump+0x79>
cmpb   $0x0,(%r14)
je     11c9 <HexDump+0x79>
mov    0x2e28(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1060 <fputs@plt>
lea    0xe37(%rip),%rdi
xor    %ebp,%ebp
mov    %r12d,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
test   %r12d,%r12d
jle    12c8 <HexDump+0x178>
cmp    $0x401,%r12d
mov    $0x400,%eax
mov    %r12d,0x8(%rsp)
cmovl  %r12d,%eax
mov    %eax,0xc(%rsp)
xor    %ebp,%ebp
xor    %r13d,%r13d
xor    %r12d,%r12d
jmp    1256 <HexDump+0x106>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebp,%r15d
movzbl (%rbx),%r14d
add    $0x1,%rbx
lea    0xe08(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    -0x20(%r14),%eax
cmp    $0x5f,%al
movslq %r13d,%r13
mov    $0x2e,%eax
cmovae %eax,%r14d
mov    %r14b,0x10(%rsp,%r13,1)
add    $0x1,%r13d
lea    0x1(%r15),%ebp
add    $0x1,%r12d
cmp    0xc(%rsp),%r12d
je     12b8 <HexDump+0x168>
test   $0xf,%r12b
jne    1210 <HexDump+0xc0>
test   %r12d,%r12d
je     127b <HexDump+0x12b>
movslq %r13d,%rax
movb   $0x0,0x10(%rsp,%rax,1)
lea    0x10(%rsp),%rdi
call   1040 <puts@plt>
movb   $0x0,0x10(%rsp)
xor    %r13d,%r13d
cmpl   $0x0,0x4(%rsp)
jle    129f <HexDump+0x14f>
mov    0x4(%rsp),%ebp
cs nopw 0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jne    1290 <HexDump+0x140>
xor    %r15d,%r15d
lea    0xd7a(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1213 <HexDump+0xc3>
movslq %r13d,%r14
cmp    $0xe,%r15d
mov    0x8(%rsp),%r12d
jle    12cb <HexDump+0x17b>
jmp    1300 <HexDump+0x1b0>
xor    %r14d,%r14d
mov    $0x10,%eax
sub    %ebp,%eax
cmp    $0x2,%eax
mov    $0x1,%ebp
cmovge %eax,%ebp
mov    0x2cfc(%rip),%r15
lea    0xd45(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    (%r15),%esi
mov    %rbx,%rdi
call   1060 <fputs@plt>
add    $0xffffffff,%ebp
jne    12f0 <HexDump+0x1a0>
movb   $0x0,0x10(%rsp,%r14,1)
lea    0x10(%rsp),%rdi
call   1040 <puts@plt>
cmp    $0x401,%r12d
jl     133b <HexDump+0x1eb>
lea    0xd14(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
add    $0x1a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [19 x i8] c" (%d bytes @ %p):\0A\00"
@.str.1 = [16 x i8] c"%d bytes @ %p:\0A\00"
@.str.2 = [7 x i8] c"%06d \00"
@.str.3 = [6 x i8] c"%02x \00"
@.str.4 = [4 x i8] c" \00"
@.str.5 = [47 x i8] c" ...Dump of %d bytes has been truncated\0A\00"
define void @HexDump(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca [400 x i8]
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
store i32 0, i32* %12
store i32 16, i32* %13
store i32 0, i32* %14
store i32 0, i32* %15
%17 = bitcast [400 x i8]* %16 to i8*
%18 = load i32, i32* %6
store i32 %18, i32* %15
%19 = load i32, i32* %6
%20 = icmp sgt i32 %19, 1024
br i1 %20, label %21, label %22
21: ; preds = %4
store i32 1024, i32* %6
br label %22
22: ; preds = %21, %4
store i32 0, i32* %10
br label %23
23: ; preds = %29, %22
%24 = load i32, i32* %10
%25 = load i32, i32* %8
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = call i32 @putchar(i8 signext 32)
br label %29
29: ; preds = %27
%30 = load i32, i32* %10
%31 = add nsw i32 %30, 1
store i32 %31, i32* %10
br label %23
32: ; preds = %23
%33 = load i8*, i8** %7
%34 = icmp ne i8* %33, null
br i1 %34, label %35, label %46
35: ; preds = %32
%36 = load i8*, i8** %7
%37 = call i64 @strlen(i8* %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %35
%40 = load i8*, i8** %7
%41 = load i32, i32* @stdout
%42 = call i32 @fputs(i8* %40, i32 %41)
%43 = load i32, i32* %15
%44 = load i8*, i8** %5
%45 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %43, i8* %44)
br label %50
46: ; preds = %35, %32
%47 = load i32, i32* %15
%48 = load i8*, i8** %5
%49 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %47, i8* %48)
br label %50
50: ; preds = %46, %39
store i32 0, i32* %10
br label %51
51: ; preds = %111, %50
%52 = load i32, i32* %10
%53 = load i32, i32* %6
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %114
55: ; preds = %51
%56 = load i32, i32* %10
%57 = load i32, i32* %13
%58 = srem i32 %56, %57
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %83
60: ; preds = %55
store i32 0, i32* %14
%61 = load i32, i32* %10
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %70
63: ; preds = %60
%64 = load i32, i32* %12
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 %65
store i8 0, i8* %66
%67 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%68 = call i32 @puts(i8* %67)
%69 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
store i8 0, i8* %69
store i32 0, i32* %12
br label %70
70: ; preds = %63, %60
store i32 0, i32* %11
br label %71
71: ; preds = %77, %70
%72 = load i32, i32* %11
%73 = load i32, i32* %8
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %80
75: ; preds = %71
%76 = call i32 @putchar(i8 signext 32)
br label %77
77: ; preds = %75
%78 = load i32, i32* %11
%79 = add nsw i32 %78, 1
store i32 %79, i32* %11
br label %71
80: ; preds = %71
%81 = load i32, i32* %10
%82 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %80, %55
%84 = load i8*, i8** %5
%85 = getelementptr inbounds i8, i8* %84, i32 1
store i8* %85, i8** %5
%86 = load i8, i8* %84
store i8 %86, i8* %9
%87 = load i8, i8* %9
%88 = zext i8 %87 to i32
%89 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %88)
%90 = load i8, i8* %9
%91 = zext i8 %90 to i32
%92 = icmp sge i32 %91, 32
br i1 %92, label %93, label %103
93: ; preds = %83
%94 = load i8, i8* %9
%95 = zext i8 %94 to i32
%96 = icmp sle i32 %95, 126
br i1 %96, label %97, label %103
97: ; preds = %93
%98 = load i8, i8* %9
%99 = load i32, i32* %12
%100 = add nsw i32 %99, 1
store i32 %100, i32* %12
%101 = sext i32 %99 to i64
%102 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 %101
store i8 %98, i8* %102
br label %108
103: ; preds = %93, %83
%104 = load i32, i32* %12
%105 = add nsw i32 %104, 1
store i32 %105, i32* %12
%106 = sext i32 %104 to i64
%107 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 %106
store i8 46, i8* %107
br label %108
108: ; preds = %103, %97
%109 = load i32, i32* %14
%110 = add nsw i32 %109, 1
store i32 %110, i32* %14
br label %111
111: ; preds = %108
%112 = load i32, i32* %10
%113 = add nsw i32 %112, 1
store i32 %113, i32* %10
br label %51
114: ; preds = %51
store i32 0, i32* %10
br label %115
115: ; preds = %124, %114
%116 = load i32, i32* %10
%117 = load i32, i32* %13
%118 = load i32, i32* %14
%119 = sub nsw i32 %117, %118
%120 = icmp slt i32 %116, %119
br i1 %120, label %121, label %127
121: ; preds = %115
%122 = load i32, i32* @stdout
%123 = call i32 @fputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %122)
br label %124
124: ; preds = %121
%125 = load i32, i32* %10
%126 = add nsw i32 %125, 1
store i32 %126, i32* %10
br label %115
127: ; preds = %115
%128 = load i32, i32* %12
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 %129
store i8 0, i8* %130
%131 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%132 = call i32 @puts(i8* %131)
%133 = load i32, i32* %15
%134 = load i32, i32* %6
%135 = icmp sgt i32 %133, %134
br i1 %135, label %136, label %139
136: ; preds = %127
%137 = load i32, i32* %15
%138 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0), i32 %137)
br label %139
139: ; preds = %136, %127
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [19 x i8] c" (%d bytes @ %p):\0A\00"
@.str.1 = [16 x i8] c"%d bytes @ %p:\0A\00"
@.str.2 = [7 x i8] c"%06d \00"
@.str.3 = [6 x i8] c"%02x \00"
@.str.4 = [4 x i8] c" \00"
@.str.5 = [47 x i8] c" ...Dump of %d bytes has been truncated\0A\00"
define void @HexDump(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca [400 x i8]
%6 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%7 = icmp sgt i32 %1, 1024
%8 = icmp sgt i32 %3, 0
br i1 %8, label %9, label %14
9: ; preds = %4, %9
%10 = phi i32 [ %12, %9 ], [ 0, %4 ]
%11 = tail call i32 @putchar(i8 signext 32)
%12 = add nuw nsw i32 %10, 1
%13 = icmp eq i32 %12, %3
br i1 %13, label %14, label %9
14: ; preds = %9, %4
%15 = icmp eq i8* %2, null
br i1 %15, label %22, label %16
16: ; preds = %14
%17 = load i8, i8* %2
%18 = icmp eq i8 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load i32, i32* @stdout
%21 = tail call i32 @fputs(i8* %2, i32 %20)
br label %22
22: ; preds = %14, %16, %19
%23 = phi i8* [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), %19 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), %16 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), %14 ]
%24 = tail call i32 (i8*, i32, ...) @printf(i8* %23, i32 %1, i8* %0)
%25 = icmp sgt i32 %1, 0
br i1 %25, label %26, label %31
26: ; preds = %22
%27 = select i1 %7, i32 1024, i32 %1
br label %36
28: ; preds = %58
%29 = sext i32 %70 to i64
%30 = icmp slt i32 %60, 15
br i1 %30, label %31, label %80
31: ; preds = %22, %28
%32 = phi i32 [ %71, %28 ], [ 0, %22 ]
%33 = phi i64 [ %29, %28 ], [ 0, %22 ]
%34 = sub i32 16, %32
%35 = call i32 @llvm.smax.i32(i32 %34, i32 1)
br label %74
36: ; preds = %26, %58
%37 = phi i32 [ 0, %26 ], [ %71, %58 ]
%38 = phi i8* [ %0, %26 ], [ %61, %58 ]
%39 = phi i32 [ 0, %26 ], [ %70, %58 ]
%40 = phi i32 [ 0, %26 ], [ %72, %58 ]
%41 = and i32 %40, 15
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %58
43: ; preds = %36
%44 = icmp eq i32 %40, 0
br i1 %44, label %49, label %45
45: ; preds = %43
%46 = sext i32 %39 to i64
%47 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 %46
store i8 0, i8* %47
%48 = call i32 @puts(i8* %6)
store i8 0, i8* %6
br label %49
49: ; preds = %45, %43
%50 = phi i32 [ 0, %45 ], [ %39, %43 ]
br i1 %8, label %51, label %56
51: ; preds = %49, %51
%52 = phi i32 [ %54, %51 ], [ 0, %49 ]
%53 = tail call i32 @putchar(i8 signext 32)
%54 = add nuw nsw i32 %52, 1
%55 = icmp eq i32 %54, %3
br i1 %55, label %56, label %51
56: ; preds = %51, %49
%57 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %40)
br label %58
58: ; preds = %56, %36
%59 = phi i32 [ %50, %56 ], [ %39, %36 ]
%60 = phi i32 [ 0, %56 ], [ %37, %36 ]
%61 = getelementptr inbounds i8, i8* %38, i64 1
%62 = load i8, i8* %38
%63 = zext i8 %62 to i32
%64 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %63)
%65 = add i8 %62, -32
%66 = icmp ult i8 %65, 95
%67 = sext i32 %59 to i64
%68 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 %67
%69 = select i1 %66, i8 %62, i8 46
store i8 %69, i8* %68
%70 = add nsw i32 %59, 1
%71 = add nsw i32 %60, 1
%72 = add nuw nsw i32 %40, 1
%73 = icmp eq i32 %72, %27
br i1 %73, label %28, label %36
74: ; preds = %31, %74
%75 = phi i32 [ %78, %74 ], [ 0, %31 ]
%76 = load i32, i32* @stdout
%77 = tail call i32 @fputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %76)
%78 = add nuw nsw i32 %75, 1
%79 = icmp eq i32 %78, %35
br i1 %79, label %80, label %74
80: ; preds = %74, %28
%81 = phi i64 [ %29, %28 ], [ %33, %74 ]
%82 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 %81
store i8 0, i8* %82
%83 = call i32 @puts(i8* %6)
br i1 %7, label %84, label %86
84: ; preds = %80
%85 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0), i32 %1)
br label %86
86: ; preds = %84, %80
ret void
}