#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 /*<<< orphan*/ SEEK_SET;
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int fread(unsigned char *, int, int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(unsigned char *);
scalar_t__ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
scalar_t__ isgraph(unsigned char);
unsigned char *malloc(int);
int /*<<< orphan*/ min(int, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  FILE *fp;
  int i, start, end, width, left, count;
  unsigned char *buf;
  if (argc != 5) {
    fprintf(stderr, "Usage: %s <source> <start> <end> <width>\n", argv[0]);
    exit(2);
  }
  if ((fp = fopen(argv[1], "r")) == NULL) {
    perror("fopen");
    exit(2);
  }
  start = atoi(argv[2]);
  end = atoi(argv[3]);
  width = atoi(argv[4]);
  left = end - start;
  if ((buf = malloc(width)) == NULL) {
    fprintf(stderr, "No memory?!?\n");
    exit(2);
  }
  if (fseek(fp, start, SEEK_SET)) {
    perror("fseek");
    exit(2);
  }
  while (left > 0 && (count = fread(buf, 1, min(left, width), fp))) {
    for (i = 0; i < count; i++)
      printf("%02X ", buf[i]);
    for (i = 0; i < width - count; i++)
      printf("   ");
    printf(": ");
    for (i = 0; i < count; i++)
      printf("%c", isgraph(buf[i]) ? buf[i] : '.');
    printf("\n");
    left -= count;
  }
  free(buf);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x5,-0x8(%rbp)
je     1208 <main+0x48>
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe09(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe13(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1240 <main+0x80>
lea    0xdfb(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%eax
sub    -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
call   1080 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    12b0 <main+0xf0>
mov    0x2d4a(%rip),%rax
mov    (%rax),%edi
lea    0xd93(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    0x2d1a(%rip),%rax
mov    (%rax),%edx
call   1090 <fseek@plt>
cmp    $0x0,%rax
je     12e5 <main+0x125>
lea    0xd6a(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
jmp    12ea <main+0x12a>
xor    %eax,%eax
cmpl   $0x0,-0x2c(%rbp)
mov    %al,-0x39(%rbp)
jle    132c <main+0x16c>
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%esi
call   1060 <min@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%edx
mov    -0x18(%rbp),%rcx
mov    $0x1,%esi
call   1040 <fread@plt>
mov    %eax,-0x30(%rbp)
cmp    $0x0,%eax
setne  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    133c <main+0x17c>
jmp    1445 <main+0x285>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    1377 <main+0x1b7>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xce4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1343 <main+0x183>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x28(%rbp),%ecx
sub    -0x30(%rbp),%ecx
cmp    %ecx,%eax
jge    13ab <main+0x1eb>
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    137e <main+0x1be>
lea    0xc9e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    1427 <main+0x267>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%edi
call   10e0 <isgraph@plt>
cmp    $0x0,%rax
je     13fb <main+0x23b>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x4c(%rbp)
jmp    1408 <main+0x248>
mov    $0x2e,%eax
mov    %eax,-0x4c(%rbp)
jmp    1408 <main+0x248>
mov    -0x4c(%rbp),%esi
lea    0xc41(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13c0 <main+0x200>
lea    0xbfa(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%ecx
mov    -0x2c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x2c(%rbp)
jmp    12ea <main+0x12a>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
cmp    $0x5,%edi
jne    1393 <main+0x1c3>
mov    0x8(%rbx),%rdi
lea    0xe35(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
je     13b7 <main+0x1e7>
mov    0x10(%rbx),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r14d
mov    0x18(%rbx),%rdi
call   10d0 <atoi@plt>
mov    %eax,%ebp
mov    0x20(%rbx),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r15d
mov    %eax,%edi
call   1090 <malloc@plt>
test   %rax,%rax
je     13c0 <main+0x1f0>
mov    %rax,%r12
mov    0x2d93(%rip),%rax
mov    (%rax),%edx
mov    0x10(%rsp),%rdi
mov    %r14d,%esi
call   10a0 <fseek@plt>
test   %rax,%rax
jne    13e1 <main+0x211>
sub    %r14d,%ebp
test   %ebp,%ebp
jle    137a <main+0x1aa>
lea    0xdd7(%rip),%rbx
lea    0xdd6(%rip),%r13
mov    %r15d,0x8(%rsp)
jmp    12a4 <main+0xd4>
nopl   (%rax)
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0xc(%rsp),%ebp
sub    0x4(%rsp),%ebp
mov    0x8(%rsp),%r15d
lea    0xdae(%rip),%r13
jle    137a <main+0x1aa>
mov    %ebp,%edi
mov    %r15d,%esi
call   1070 <min@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    0x10(%rsp),%rcx
call   1050 <fread@plt>
test   %eax,%eax
je     137a <main+0x1aa>
mov    %ebp,0xc(%rsp)
mov    %eax,0x4(%rsp)
mov    %eax,%r14d
jle    12f8 <main+0x128>
xor    %ebp,%ebp
nopl   0x0(%rax)
movzbl (%r12,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    12e0 <main+0x110>
sub    0x4(%rsp),%r15d
test   %r15d,%r15d
jle    1320 <main+0x150>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r13,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0xffffffff,%r15d
jne    1310 <main+0x140>
lea    0xd29(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmpl   $0x0,0x4(%rsp)
mov    $0x2e,%ebp
jle    1280 <main+0xb0>
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movzbl (%r12,%r13,1),%r15d
mov    %r15d,%edi
call   10f0 <isgraph@plt>
test   %rax,%rax
cmove  %ebp,%r15d
mov    %r15d,%edi
call   1040 <putchar@plt>
add    $0x1,%r13
cmp    %r13,%r14
jne    1350 <main+0x180>
jmp    1280 <main+0xb0>
mov    %r12,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c46(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xc5a(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>
lea    0xc6e(%rip),%rdi
jmp    13e8 <main+0x218>
mov    0x2c19(%rip),%rax
mov    (%rax),%edi
lea    0xc62(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>
lea    0xc58(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [42 x i8] c"Usage: %s <source> <start> <end> <width>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [14 x i8] c"No memory?!?\0A\00"
@SEEK_SET = global i32 0
@.str.4 = [6 x i8] c"fseek\00"
@.str.5 = [6 x i8] c"%02X \00"
@.str.6 = [4 x i8] c" \00"
@.str.7 = [3 x i8] c": \00"
@.str.8 = [3 x i8] c"%c\00"
@.str.9 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 5
br i1 %15, label %16, label %23
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 0
%20 = load i8*, i8** %19
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = call i32 @exit(i32 2)
unreachable
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %27, i32** %6
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%31 = call i32 @exit(i32 2)
unreachable
32: ; preds = %23
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 2
%35 = load i8*, i8** %34
%36 = call i32 @atoi(i8* %35)
store i32 %36, i32* %8
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 3
%39 = load i8*, i8** %38
%40 = call i32 @atoi(i8* %39)
store i32 %40, i32* %9
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 4
%43 = load i8*, i8** %42
%44 = call i32 @atoi(i8* %43)
store i32 %44, i32* %10
%45 = load i32, i32* %9
%46 = load i32, i32* %8
%47 = sub nsw i32 %45, %46
store i32 %47, i32* %11
%48 = load i32, i32* %10
%49 = call i8* @malloc(i32 %48)
store i8* %49, i8** %13
%50 = icmp eq i8* %49, null
br i1 %50, label %51, label %55
51: ; preds = %32
%52 = load i32, i32* @stderr
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 @exit(i32 2)
unreachable
55: ; preds = %32
%56 = load i32*, i32** %6
%57 = load i32, i32* %8
%58 = load i32, i32* @SEEK_SET
%59 = call i64 @fseek(i32* %56, i32 %57, i32 %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %55
%62 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%63 = call i32 @exit(i32 2)
unreachable
64: ; preds = %55
br label %65
65: ; preds = %134, %64
%66 = load i32, i32* %11
%67 = icmp sgt i32 %66, 0
br i1 %67, label %68, label %76
68: ; preds = %65
%69 = load i8*, i8** %13
%70 = load i32, i32* %11
%71 = load i32, i32* %10
%72 = call i32 @min(i32 %70, i32 %71)
%73 = load i32*, i32** %6
%74 = call i32 @fread(i8* %69, i32 1, i32 %72, i32* %73)
store i32 %74, i32* %12
%75 = icmp ne i32 %74, 0
br label %76
76: ; preds = %68, %65
%77 = phi i1 [ false, %65 ], [ %75, %68 ]
br i1 %77, label %78, label %139
78: ; preds = %76
store i32 0, i32* %7
br label %79
79: ; preds = %91, %78
%80 = load i32, i32* %7
%81 = load i32, i32* %12
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %94
83: ; preds = %79
%84 = load i8*, i8** %13
%85 = load i32, i32* %7
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, i8* %84, i64 %86
%88 = load i8, i8* %87
%89 = zext i8 %88 to i32
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %89)
br label %91
91: ; preds = %83
%92 = load i32, i32* %7
%93 = add nsw i32 %92, 1
store i32 %93, i32* %7
br label %79
94: ; preds = %79
store i32 0, i32* %7
br label %95
95: ; preds = %103, %94
%96 = load i32, i32* %7
%97 = load i32, i32* %10
%98 = load i32, i32* %12
%99 = sub nsw i32 %97, %98
%100 = icmp slt i32 %96, %99
br i1 %100, label %101, label %106
101: ; preds = %95
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %103
103: ; preds = %101
%104 = load i32, i32* %7
%105 = add nsw i32 %104, 1
store i32 %105, i32* %7
br label %95
106: ; preds = %95
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %7
br label %108
108: ; preds = %131, %106
%109 = load i32, i32* %7
%110 = load i32, i32* %12
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %134
112: ; preds = %108
%113 = load i8*, i8** %13
%114 = load i32, i32* %7
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, i8* %113, i64 %115
%117 = load i8, i8* %116
%118 = call i64 @isgraph(i8 zeroext %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %127
120: ; preds = %112
%121 = load i8*, i8** %13
%122 = load i32, i32* %7
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, i8* %121, i64 %123
%125 = load i8, i8* %124
%126 = zext i8 %125 to i32
br label %128
127: ; preds = %112
br label %128
128: ; preds = %127, %120
%129 = phi i32 [ %126, %120 ], [ 46, %127 ]
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %129)
br label %131
131: ; preds = %128
%132 = load i32, i32* %7
%133 = add nsw i32 %132, 1
store i32 %133, i32* %7
br label %108
134: ; preds = %108
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%136 = load i32, i32* %12
%137 = load i32, i32* %11
%138 = sub nsw i32 %137, %136
store i32 %138, i32* %11
br label %65
139: ; preds = %76
%140 = load i8*, i8** %13
%141 = call i32 @free(i8* %140)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [42 x i8] c"Usage: %s <source> <start> <end> <width>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [14 x i8] c"No memory?!?\0A\00"
@SEEK_SET = global i32 0
@.str.4 = [6 x i8] c"fseek\00"
@.str.5 = [6 x i8] c"%02X \00"
@.str.6 = [4 x i8] c" \00"
@.str.7 = [3 x i8] c": \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 5
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = tail call i32 @exit(i32 2)
unreachable
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 @exit(i32 2)
unreachable
17: ; preds = %9
%18 = getelementptr inbounds i8*, i8** %1, i64 2
%19 = load i8*, i8** %18
%20 = tail call i32 @atoi(i8* %19)
%21 = getelementptr inbounds i8*, i8** %1, i64 3
%22 = load i8*, i8** %21
%23 = tail call i32 @atoi(i8* %22)
%24 = getelementptr inbounds i8*, i8** %1, i64 4
%25 = load i8*, i8** %24
%26 = tail call i32 @atoi(i8* %25)
%27 = tail call i8* @malloc(i32 %26)
%28 = icmp eq i8* %27, null
br i1 %28, label %29, label %33
29: ; preds = %17
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%32 = tail call i32 @exit(i32 2)
unreachable
33: ; preds = %17
%34 = sub nsw i32 %23, %20
%35 = load i32, i32* @SEEK_SET
%36 = tail call i64 @fseek(i32* %12, i32 %20, i32 %35)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = icmp sgt i32 %34, 0
br i1 %39, label %43, label %87
40: ; preds = %33
%41 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%42 = tail call i32 @exit(i32 2)
unreachable
43: ; preds = %38, %83
%44 = phi i32 [ %85, %83 ], [ %34, %38 ]
%45 = tail call i32 @min(i32 %44, i32 %26)
%46 = tail call i32 @fread(i8* %27, i32 1, i32 %45, i32* %12)
%47 = icmp eq i32 %46, 0
br i1 %47, label %87, label %48
48: ; preds = %43
%49 = icmp sgt i32 %46, 0
br i1 %49, label %50, label %52
50: ; preds = %48
%51 = zext i32 %46 to i64
br label %55
52: ; preds = %55, %48
%53 = sub i32 %26, %46
%54 = icmp sgt i32 %53, 0
br i1 %54, label %63, label %68
55: ; preds = %50, %55
%56 = phi i64 [ 0, %50 ], [ %61, %55 ]
%57 = getelementptr inbounds i8, i8* %27, i64 %56
%58 = load i8, i8* %57
%59 = zext i8 %58 to i32
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %59)
%61 = add nuw nsw i64 %56, 1
%62 = icmp eq i64 %61, %51
br i1 %62, label %52, label %55
63: ; preds = %52, %63
%64 = phi i32 [ %66, %63 ], [ 0, %52 ]
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%66 = add nuw nsw i32 %64, 1
%67 = icmp eq i32 %66, %53
br i1 %67, label %68, label %63
68: ; preds = %63, %52
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br i1 %49, label %70, label %83
70: ; preds = %68
%71 = zext i32 %46 to i64
br label %72
72: ; preds = %70, %72
%73 = phi i64 [ 0, %70 ], [ %81, %72 ]
%74 = getelementptr inbounds i8, i8* %27, i64 %73
%75 = load i8, i8* %74
%76 = tail call i64 @isgraph(i8 zeroext %75)
%77 = icmp eq i64 %76, 0
%78 = zext i8 %75 to i32
%79 = select i1 %77, i32 46, i32 %78
%80 = tail call i32 @putchar(i32 %79)
%81 = add nuw nsw i64 %73, 1
%82 = icmp eq i64 %81, %71
br i1 %82, label %83, label %72
83: ; preds = %72, %68
%84 = tail call i32 @putchar(i32 10)
%85 = sub nsw i32 %44, %46
%86 = icmp sgt i32 %85, 0
br i1 %86, label %43, label %87
87: ; preds = %43, %83, %38
%88 = tail call i32 @free(i8* %27)
ret i32 0
}