#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*/ val;
typedef int uint8_t;
typedef int uint32_t;
typedef int /*<<< orphan*/ testp;
typedef int /*<<< orphan*/ point;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ fread(int *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void print_block(FILE *file, uint32_t start, uint32_t end, uint32_t bstart,
                 uint32_t bend) {
  uint32_t blocks[50001];
  blocks[0] = start;
  int bi = 1;
  int i = 0;
  do {
    i++;
    fseek(file, start + i, SEEK_SET);
    uint32_t testp;
    fread(&testp, sizeof(testp), 1, file);
    if ((testp >= start) && (testp < end)) {
      blocks[bi++] = testp;
    }
  } while ((bi < 50000) && (i < (end - start - 3)));
  if (bi < 50000) {
    blocks[bi++] = end;
    int z = 0;
    for (i = 0; i < bi; i++) {
      int j;
      for (j = i + 1; j < bi; j++) {
        if (blocks[i] > blocks[j]) {
          uint32_t tmp = blocks[i];
          blocks[i] = blocks[j];
          blocks[j] = tmp;
        }
        if (blocks[i] == blocks[j] && (blocks[i] != 0xffffffff)) {
          blocks[j] = 0xffffffff;
          z++;
        }
      }
    }
    bi -= z;
    for (i = 0; i < (bi - 1); i++) {
      printf("0x%X B%02d %06d\n\t", blocks[i], i, blocks[i + 1] - blocks[i]);
      uint32_t j;
      int p = 0;
      for (j = blocks[i]; j < blocks[i + 1]; j++) {
        fseek(file, j, SEEK_SET);
        uint8_t val;
        fread(&val, sizeof(val), 1, file);
        printf("%02X ", val);
        if (p == 7) {
          printf(" ");
        }
        if (p++ == 15) {
          p = 0;
          printf("\n\t");
        }
      }
      printf("\n\t\t");
      int coun = 0;
      uint32_t last = 0;
      int k = 0;
      for (j = blocks[i]; j < blocks[i + 1]; j++) {
        fseek(file, j, SEEK_SET);
        uint32_t point;
        fread(&point, sizeof(point), 1, file);
        if ((point >= bstart) && (point < bend)) {
          j += 3;
          if (last < point) {
            coun++;
            last = point;
          } else {
            printf("LB%02d I%02d L%02d \n\t\t", i, k++, coun);
            coun = 1;
            last = 0;
          }
        } else {
          if (coun > 0) {
            printf("LB%02d I%02d L%02d \n\t\t", i, k++, coun);
            coun = 0;
            last = 0;
          }
        }
      }
      if (coun > 0) {
        printf("LB%02d I%02d L%02d \n\t\t", i, k++, coun);
        coun = 0;
        last = 0;
      }
      printf("\n");
    }
  }
  printf("EndSub\n");
}


x86 assembly (clang, -O0):
<print_block>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30da0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x30d60(%rbp)
movl   $0x1,-0x30d64(%rbp)
movl   $0x0,-0x30d68(%rbp)
mov    -0x30d68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d68(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    -0x30d68(%rbp),%esi
mov    0x2e54(%rip),%rax
mov    (%rax),%edx
call   1050 <fseek@plt>
mov    -0x8(%rbp),%rcx
lea    -0x30d6c(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
mov    -0x30d6c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     11eb <print_block+0xbb>
mov    -0x30d6c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11eb <print_block+0xbb>
mov    -0x30d6c(%rbp),%ecx
mov    -0x30d64(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x30d64(%rbp)
cltq
mov    %ecx,-0x30d60(%rbp,%rax,4)
jmp    11f0 <print_block+0xc0>
xor    %eax,%eax
cmpl   $0xc350,-0x30d64(%rbp)
mov    %al,-0x30d95(%rbp)
jge    1222 <print_block+0xf2>
mov    -0x30d68(%rbp),%eax
mov    -0x10(%rbp),%ecx
sub    -0xc(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
setl   %al
mov    %al,-0x30d95(%rbp)
mov    -0x30d95(%rbp),%al
test   $0x1,%al
jne    1169 <print_block+0x39>
cmpl   $0xc350,-0x30d64(%rbp)
jge    1705 <print_block+0x5d5>
mov    -0x10(%rbp),%ecx
mov    -0x30d64(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x30d64(%rbp)
cltq
mov    %ecx,-0x30d60(%rbp,%rax,4)
movl   $0x0,-0x30d70(%rbp)
movl   $0x0,-0x30d68(%rbp)
mov    -0x30d68(%rbp),%eax
cmp    -0x30d64(%rbp),%eax
jge    1394 <print_block+0x264>
mov    -0x30d68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d74(%rbp)
mov    -0x30d74(%rbp),%eax
cmp    -0x30d64(%rbp),%eax
jge    137b <print_block+0x24b>
movslq -0x30d68(%rbp),%rax
mov    -0x30d60(%rbp,%rax,4),%eax
movslq -0x30d74(%rbp),%rcx
cmp    -0x30d60(%rbp,%rcx,4),%eax
jle    130a <print_block+0x1da>
movslq -0x30d68(%rbp),%rax
mov    -0x30d60(%rbp,%rax,4),%eax
mov    %eax,-0x30d78(%rbp)
movslq -0x30d74(%rbp),%rax
mov    -0x30d60(%rbp,%rax,4),%ecx
movslq -0x30d68(%rbp),%rax
mov    %ecx,-0x30d60(%rbp,%rax,4)
mov    -0x30d78(%rbp),%ecx
movslq -0x30d74(%rbp),%rax
mov    %ecx,-0x30d60(%rbp,%rax,4)
movslq -0x30d68(%rbp),%rax
mov    -0x30d60(%rbp,%rax,4),%eax
movslq -0x30d74(%rbp),%rcx
cmp    -0x30d60(%rbp,%rcx,4),%eax
jne    1362 <print_block+0x232>
movslq -0x30d68(%rbp),%rax
cmpl   $0xffffffff,-0x30d60(%rbp,%rax,4)
ff
je     1362 <print_block+0x232>
movslq -0x30d74(%rbp),%rax
movl   $0xffffffff,-0x30d60(%rbp,%rax,4)
ff ff ff ff
mov    -0x30d70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d70(%rbp)
jmp    1367 <print_block+0x237>
mov    -0x30d74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d74(%rbp)
jmp    1292 <print_block+0x162>
jmp    1380 <print_block+0x250>
mov    -0x30d68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d68(%rbp)
jmp    1271 <print_block+0x141>
mov    -0x30d70(%rbp),%ecx
mov    -0x30d64(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x30d64(%rbp)
movl   $0x0,-0x30d68(%rbp)
mov    -0x30d68(%rbp),%eax
mov    -0x30d64(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1700 <print_block+0x5d0>
movslq -0x30d68(%rbp),%rax
mov    -0x30d60(%rbp,%rax,4),%esi
mov    -0x30d68(%rbp),%edx
mov    -0x30d68(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x30d60(%rbp,%rax,4),%ecx
movslq -0x30d68(%rbp),%rax
sub    -0x30d60(%rbp,%rax,4),%ecx
lea    0xbfc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x30d80(%rbp)
movslq -0x30d68(%rbp),%rax
mov    -0x30d60(%rbp,%rax,4),%eax
mov    %eax,-0x30d7c(%rbp)
mov    -0x30d7c(%rbp),%eax
mov    -0x30d68(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x30d60(%rbp,%rcx,4),%eax
jge    14f4 <print_block+0x3c4>
mov    -0x8(%rbp),%rdi
mov    -0x30d7c(%rbp),%esi
mov    0x2b87(%rip),%rax
mov    (%rax),%edx
call   1050 <fseek@plt>
mov    -0x8(%rbp),%rcx
lea    -0x30d84(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
mov    -0x30d84(%rbp),%esi
lea    0xb8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x7,-0x30d80(%rbp)
jne    14a9 <print_block+0x379>
lea    0xb74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30d80(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x30d80(%rbp)
cmp    $0xf,%eax
jne    14db <print_block+0x3ab>
movl   $0x0,-0x30d80(%rbp)
lea    0xb3b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14e0 <print_block+0x3b0>
mov    -0x30d7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d7c(%rbp)
jmp    1429 <print_block+0x2f9>
lea    0xb30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x30d88(%rbp)
movl   $0x0,-0x30d8c(%rbp)
movl   $0x0,-0x30d90(%rbp)
movslq -0x30d68(%rbp),%rax
mov    -0x30d60(%rbp,%rax,4),%eax
mov    %eax,-0x30d7c(%rbp)
mov    -0x30d7c(%rbp),%eax
mov    -0x30d68(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x30d60(%rbp,%rcx,4),%eax
jge    1692 <print_block+0x562>
mov    -0x8(%rbp),%rdi
mov    -0x30d7c(%rbp),%esi
mov    0x2a7c(%rip),%rax
mov    (%rax),%edx
call   1050 <fseek@plt>
mov    -0x8(%rbp),%rcx
lea    -0x30d94(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
mov    -0x30d94(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     1628 <print_block+0x4f8>
mov    -0x30d94(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1628 <print_block+0x4f8>
mov    -0x30d7c(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x30d7c(%rbp)
mov    -0x30d8c(%rbp),%eax
cmp    -0x30d94(%rbp),%eax
jge    15e4 <print_block+0x4b4>
mov    -0x30d88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d88(%rbp)
mov    -0x30d94(%rbp),%eax
mov    %eax,-0x30d8c(%rbp)
jmp    1623 <print_block+0x4f3>
mov    -0x30d68(%rbp),%esi
mov    -0x30d90(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x30d90(%rbp)
mov    -0x30d88(%rbp),%ecx
lea    0xa10(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x30d88(%rbp)
movl   $0x0,-0x30d8c(%rbp)
jmp    1679 <print_block+0x549>
cmpl   $0x0,-0x30d88(%rbp)
jle    1674 <print_block+0x544>
mov    -0x30d68(%rbp),%esi
mov    -0x30d90(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x30d90(%rbp)
mov    -0x30d88(%rbp),%ecx
lea    0x9bf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x30d88(%rbp)
movl   $0x0,-0x30d8c(%rbp)
jmp    1679 <print_block+0x549>
jmp    167e <print_block+0x54e>
mov    -0x30d7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d7c(%rbp)
jmp    1534 <print_block+0x404>
cmpl   $0x0,-0x30d88(%rbp)
jle    16de <print_block+0x5ae>
mov    -0x30d68(%rbp),%esi
mov    -0x30d90(%rbp),%edx
mov    %edx,%eax
add    $0x1,%eax
mov    %eax,-0x30d90(%rbp)
mov    -0x30d88(%rbp),%ecx
lea    0x955(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x30d88(%rbp)
movl   $0x0,-0x30d8c(%rbp)
lea    0x950(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30d68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d68(%rbp)
jmp    13b2 <print_block+0x282>
jmp    1705 <print_block+0x5d5>
lea    0x923(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x30da0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_block>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x30d78,%rsp
mov    %r8d,0x18(%rsp)
mov    %ecx,0x1c(%rsp)
mov    %edx,%r14d
mov    %esi,%ebp
mov    %rdi,%r13
mov    %esi,0x30(%rsp)
mov    %edx,%ebx
sub    %esi,%ebx
add    $0xfffffffd,%ebx
cmp    $0x2,%ebx
mov    $0x1,%r15d
cmovl  %r15d,%ebx
neg    %ebx
mov    $0x1,%r12d
jmp    11b5 <print_block+0x65>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    (%rbx,%r15,1),%eax
add    $0x1,%eax
mov    %r15d,%ecx
add    $0x1,%ecx
mov    %ecx,%r15d
cmp    $0x1,%eax
je     1208 <print_block+0xb8>
lea    (%r15,%rbp,1),%esi
mov    0x2e20(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
call   1070 <fseek@plt>
lea    0x4(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   1050 <fread@plt>
mov    0x4(%rsp),%eax
cmp    %ebp,%eax
jl     11a0 <print_block+0x50>
cmp    %r14d,%eax
jge    11a0 <print_block+0x50>
movslq %r12d,%rcx
mov    %eax,0x30(%rsp,%rcx,4)
cmp    $0xc34e,%r12d
jg     14be <print_block+0x36e>
add    $0x1,%r12d
jmp    11a0 <print_block+0x50>
movslq %r12d,%r9
mov    %r14d,0x30(%rsp,%r9,4)
test   %r9d,%r9d
js     1285 <print_block+0x135>
lea    0x1(%r12),%r8d
lea    0x34(%rsp),%rdx
mov    %r12d,%esi
xor    %r10d,%r10d
xor    %edi,%edi
jmp    123d <print_block+0xed>
nopl   0x0(%rax)
add    $0x4,%rdx
add    $0xffffffffffffffff,%rsi
cmp    %r8,%r10
je     1287 <print_block+0x137>
mov    %r10,%rbp
add    $0x1,%r10
cmp    %r9,%rbp
jge    1230 <print_block+0xe0>
xor    %ecx,%ecx
jmp    1258 <print_block+0x108>
nopl   (%rax)
add    $0x1,%rcx
cmp    %ecx,%esi
je     1230 <print_block+0xe0>
mov    0x30(%rsp,%rbp,4),%eax
mov    (%rdx,%rcx,4),%ebx
cmp    %ebx,%eax
jle    1270 <print_block+0x120>
mov    %ebx,0x30(%rsp,%rbp,4)
mov    %eax,(%rdx,%rcx,4)
mov    %eax,%ebx
mov    0x30(%rsp,%rbp,4),%eax
cmp    $0xffffffff,%eax
je     1250 <print_block+0x100>
cmp    %ebx,%eax
jne    1250 <print_block+0x100>
movl   $0xffffffff,(%rdx,%rcx,4)
add    $0x1,%edi
jmp    1250 <print_block+0x100>
xor    %edi,%edi
sub    %edi,%r12d
test   %r12d,%r12d
jle    14be <print_block+0x36e>
mov    %r12d,%eax
mov    %rax,0x28(%rsp)
mov    0x30(%rsp),%r15d
xor    %ebx,%ebx
jmp    12d3 <print_block+0x183>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xd74(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    0x28(%rsp),%rbx
je     14be <print_block+0x36e>
mov    %rbx,%rdx
mov    %r15d,%r14d
add    $0x1,%rbx
mov    0x34(%rsp,%rdx,4),%r15d
mov    %r15d,%ecx
sub    %r14d,%ecx
lea    0xd11(%rip),%rdi
mov    %r14d,%esi
mov    %rdx,0x10(%rsp)
xor    %eax,%eax
call   1060 <printf@plt>
cmp    %r14d,%r15d
jle    12b0 <print_block+0x160>
mov    %rbx,0x20(%rsp)
xor    %ebx,%ebx
mov    %r14d,%ebp
mov    0x2ccc(%rip),%r12
jmp    1337 <print_block+0x1e7>
cs nopw 0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x8,%ebx
add    $0x1,%ebp
cmp    %ebp,%r15d
je     13a0 <print_block+0x250>
mov    (%r12),%edx
mov    %r13,%rdi
mov    %ebp,%esi
call   1070 <fseek@plt>
lea    0x4(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   1050 <fread@plt>
mov    0x4(%rsp),%esi
lea    0xcab(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x7,%ebx
je     1320 <print_block+0x1d0>
cmp    $0xf,%ebx
je     1380 <print_block+0x230>
add    $0x1,%ebx
jmp    132f <print_block+0x1df>
nopl   (%rax)
xor    %ebx,%ebx
lea    0xc86(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    132f <print_block+0x1df>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xc84(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    %r14d,%r15d
mov    0x20(%rsp),%rbx
jle    12be <print_block+0x16e>
xor    %eax,%eax
mov    %rax,0x8(%rsp)
xor    %ebx,%ebx
xor    %r12d,%r12d
jmp    13e3 <print_block+0x293>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r12d
add    $0x1,%r14d
mov    %ebp,%ebx
cmp    %r15d,%r14d
jge    1490 <print_block+0x340>
mov    0x2bf6(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
mov    %r14d,%esi
call   1070 <fseek@plt>
lea    0x4(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   1050 <fread@plt>
mov    0x4(%rsp),%ebp
cmp    0x1c(%rsp),%ebp
jl     1450 <print_block+0x300>
cmp    0x18(%rsp),%ebp
jge    1450 <print_block+0x300>
add    $0x3,%r14d
cmp    %ebp,%ebx
jl     13d0 <print_block+0x280>
mov    0x8(%rsp),%rdx
lea    0x1(%rdx),%ebx
xor    %ebp,%ebp
lea    0xbe1(%rip),%rdi
mov    0x10(%rsp),%rsi
mov    %r12d,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%r12d
jmp    147f <print_block+0x32f>
xchg   %ax,%ax
test   %r12d,%r12d
jg     145c <print_block+0x30c>
mov    %ebx,%ebp
jmp    13d4 <print_block+0x284>
mov    0x8(%rsp),%rdx
lea    0x1(%rdx),%ebx
xor    %ebp,%ebp
lea    0xbab(%rip),%rdi
mov    0x10(%rsp),%rsi
mov    %r12d,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
xor    %r12d,%r12d
mov    %ebx,%eax
mov    %rax,0x8(%rsp)
jmp    13d4 <print_block+0x284>
nopl   0x0(%rax,%rax,1)
test   %r12d,%r12d
mov    0x20(%rsp),%rbx
jle    12be <print_block+0x16e>
lea    0xb73(%rip),%rdi
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdx
mov    %r12d,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    12be <print_block+0x16e>
lea    0xb6a(%rip),%rdi
add    $0x30d78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>

LLVM IR (-O0):
@SEEK_SET = global i32 0
@.str = [18 x i8] c"0x%X B%02d %06d\0A\09\00"
@.str.1 = [6 x i8] c"%02X \00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [3 x i8] c"\0A\09\00"
@.str.4 = [4 x i8] c"\0A\09\09\00"
@.str.5 = [23 x i8] c"LB%02d I%02d L%02d \0A\09\09\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [8 x i8] c"EndSub\0A\00"
define void @print_block(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [50001 x i32]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
store i32* %0, i32** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%25 = load i32, i32* %7
%26 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 0
store i32 %25, i32* %26
store i32 1, i32* %12
store i32 0, i32* %13
br label %27
27: ; preds = %62, %5
%28 = load i32, i32* %13
%29 = add nsw i32 %28, 1
store i32 %29, i32* %13
%30 = load i32*, i32** %6
%31 = load i32, i32* %7
%32 = load i32, i32* %13
%33 = add nsw i32 %31, %32
%34 = load i32, i32* @SEEK_SET
%35 = call i32 @fseek(i32* %30, i32 %33, i32 %34)
%36 = load i32*, i32** %6
%37 = call i32 @fread(i32* %14, i32 4, i32 1, i32* %36)
%38 = load i32, i32* %14
%39 = load i32, i32* %7
%40 = icmp sge i32 %38, %39
br i1 %40, label %41, label %51
41: ; preds = %27
%42 = load i32, i32* %14
%43 = load i32, i32* %8
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %51
45: ; preds = %41
%46 = load i32, i32* %14
%47 = load i32, i32* %12
%48 = add nsw i32 %47, 1
store i32 %48, i32* %12
%49 = sext i32 %47 to i64
%50 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %49
store i32 %46, i32* %50
br label %51
51: ; preds = %45, %41, %27
br label %52
52: ; preds = %51
%53 = load i32, i32* %12
%54 = icmp slt i32 %53, 50000
br i1 %54, label %55, label %62
55: ; preds = %52
%56 = load i32, i32* %13
%57 = load i32, i32* %8
%58 = load i32, i32* %7
%59 = sub nsw i32 %57, %58
%60 = sub nsw i32 %59, 3
%61 = icmp slt i32 %56, %60
br label %62
62: ; preds = %55, %52
%63 = phi i1 [ false, %52 ], [ %61, %55 ]
br i1 %63, label %27, label %64
64: ; preds = %62
%65 = load i32, i32* %12
%66 = icmp slt i32 %65, 50000
br i1 %66, label %67, label %275
67: ; preds = %64
%68 = load i32, i32* %8
%69 = load i32, i32* %12
%70 = add nsw i32 %69, 1
store i32 %70, i32* %12
%71 = sext i32 %69 to i64
%72 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %71
store i32 %68, i32* %72
store i32 0, i32* %15
store i32 0, i32* %13
br label %73
73: ; preds = %137, %67
%74 = load i32, i32* %13
%75 = load i32, i32* %12
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %140
77: ; preds = %73
%78 = load i32, i32* %13
%79 = add nsw i32 %78, 1
store i32 %79, i32* %16
br label %80
80: ; preds = %133, %77
%81 = load i32, i32* %16
%82 = load i32, i32* %12
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %136
84: ; preds = %80
%85 = load i32, i32* %13
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %86
%88 = load i32, i32* %87
%89 = load i32, i32* %16
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = icmp sgt i32 %88, %92
br i1 %93, label %94, label %110
94: ; preds = %84
%95 = load i32, i32* %13
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %96
%98 = load i32, i32* %97
store i32 %98, i32* %17
%99 = load i32, i32* %16
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %100
%102 = load i32, i32* %101
%103 = load i32, i32* %13
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %104
store i32 %102, i32* %105
%106 = load i32, i32* %17
%107 = load i32, i32* %16
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %108
store i32 %106, i32* %109
br label %110
110: ; preds = %94, %84
%111 = load i32, i32* %13
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %112
%114 = load i32, i32* %113
%115 = load i32, i32* %16
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %116
%118 = load i32, i32* %117
%119 = icmp eq i32 %114, %118
br i1 %119, label %120, label %132
120: ; preds = %110
%121 = load i32, i32* %13
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %122
%124 = load i32, i32* %123
%125 = icmp ne i32 %124, -1
br i1 %125, label %126, label %132
126: ; preds = %120
%127 = load i32, i32* %16
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %128
store i32 -1, i32* %129
%130 = load i32, i32* %15
%131 = add nsw i32 %130, 1
store i32 %131, i32* %15
br label %132
132: ; preds = %126, %120, %110
br label %133
133: ; preds = %132
%134 = load i32, i32* %16
%135 = add nsw i32 %134, 1
store i32 %135, i32* %16
br label %80
136: ; preds = %80
br label %137
137: ; preds = %136
%138 = load i32, i32* %13
%139 = add nsw i32 %138, 1
store i32 %139, i32* %13
br label %73
140: ; preds = %73
%141 = load i32, i32* %15
%142 = load i32, i32* %12
%143 = sub nsw i32 %142, %141
store i32 %143, i32* %12
store i32 0, i32* %13
br label %144
144: ; preds = %271, %140
%145 = load i32, i32* %13
%146 = load i32, i32* %12
%147 = sub nsw i32 %146, 1
%148 = icmp slt i32 %145, %147
br i1 %148, label %149, label %274
149: ; preds = %144
%150 = load i32, i32* %13
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %151
%153 = load i32, i32* %152
%154 = load i32, i32* %13
%155 = load i32, i32* %13
%156 = add nsw i32 %155, 1
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %157
%159 = load i32, i32* %158
%160 = load i32, i32* %13
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %161
%163 = load i32, i32* %162
%164 = sub nsw i32 %159, %163
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %153, i32 %154, i32 %164)
store i32 0, i32* %19
%166 = load i32, i32* %13
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %167
%169 = load i32, i32* %168
store i32 %169, i32* %18
br label %170
170: ; preds = %198, %149
%171 = load i32, i32* %18
%172 = load i32, i32* %13
%173 = add nsw i32 %172, 1
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %174
%176 = load i32, i32* %175
%177 = icmp slt i32 %171, %176
br i1 %177, label %178, label %201
178: ; preds = %170
%179 = load i32*, i32** %6
%180 = load i32, i32* %18
%181 = load i32, i32* @SEEK_SET
%182 = call i32 @fseek(i32* %179, i32 %180, i32 %181)
%183 = load i32*, i32** %6
%184 = call i32 @fread(i32* %20, i32 4, i32 1, i32* %183)
%185 = load i32, i32* %20
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %185)
%187 = load i32, i32* %19
%188 = icmp eq i32 %187, 7
br i1 %188, label %189, label %191
189: ; preds = %178
%190 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %191
191: ; preds = %189, %178
%192 = load i32, i32* %19
%193 = add nsw i32 %192, 1
store i32 %193, i32* %19
%194 = icmp eq i32 %192, 15
br i1 %194, label %195, label %197
195: ; preds = %191
store i32 0, i32* %19
%196 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %197
197: ; preds = %195, %191
br label %198
198: ; preds = %197
%199 = load i32, i32* %18
%200 = add nsw i32 %199, 1
store i32 %200, i32* %18
br label %170
201: ; preds = %170
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %21
store i32 0, i32* %22
store i32 0, i32* %23
%203 = load i32, i32* %13
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %204
%206 = load i32, i32* %205
store i32 %206, i32* %18
br label %207
207: ; preds = %257, %201
%208 = load i32, i32* %18
%209 = load i32, i32* %13
%210 = add nsw i32 %209, 1
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds [50001 x i32], [50001 x i32]* %11, i64 0, i64 %211
%213 = load i32, i32* %212
%214 = icmp slt i32 %208, %213
br i1 %214, label %215, label %260
215: ; preds = %207
%216 = load i32*, i32** %6
%217 = load i32, i32* %18
%218 = load i32, i32* @SEEK_SET
%219 = call i32 @fseek(i32* %216, i32 %217, i32 %218)
%220 = load i32*, i32** %6
%221 = call i32 @fread(i32* %24, i32 4, i32 1, i32* %220)
%222 = load i32, i32* %24
%223 = load i32, i32* %9
%224 = icmp sge i32 %222, %223
br i1 %224, label %225, label %246
225: ; preds = %215
%226 = load i32, i32* %24
%227 = load i32, i32* %10
%228 = icmp slt i32 %226, %227
br i1 %228, label %229, label %246
229: ; preds = %225
%230 = load i32, i32* %18
%231 = add nsw i32 %230, 3
store i32 %231, i32* %18
%232 = load i32, i32* %22
%233 = load i32, i32* %24
%234 = icmp slt i32 %232, %233
br i1 %234, label %235, label %239
235: ; preds = %229
%236 = load i32, i32* %21
%237 = add nsw i32 %236, 1
store i32 %237, i32* %21
%238 = load i32, i32* %24
store i32 %238, i32* %22
br label %245
239: ; preds = %229
%240 = load i32, i32* %13
%241 = load i32, i32* %23
%242 = add nsw i32 %241, 1
store i32 %242, i32* %23
%243 = load i32, i32* %21
%244 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %240, i32 %241, i32 %243)
store i32 1, i32* %21
store i32 0, i32* %22
br label %245
245: ; preds = %239, %235
br label %256
246: ; preds = %225, %215
%247 = load i32, i32* %21
%248 = icmp sgt i32 %247, 0
br i1 %248, label %249, label %255
249: ; preds = %246
%250 = load i32, i32* %13
%251 = load i32, i32* %23
%252 = add nsw i32 %251, 1
store i32 %252, i32* %23
%253 = load i32, i32* %21
%254 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %250, i32 %251, i32 %253)
store i32 0, i32* %21
store i32 0, i32* %22
br label %255
255: ; preds = %249, %246
br label %256
256: ; preds = %255, %245
br label %257
257: ; preds = %256
%258 = load i32, i32* %18
%259 = add nsw i32 %258, 1
store i32 %259, i32* %18
br label %207
260: ; preds = %207
%261 = load i32, i32* %21
%262 = icmp sgt i32 %261, 0
br i1 %262, label %263, label %269
263: ; preds = %260
%264 = load i32, i32* %13
%265 = load i32, i32* %23
%266 = add nsw i32 %265, 1
store i32 %266, i32* %23
%267 = load i32, i32* %21
%268 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %264, i32 %265, i32 %267)
store i32 0, i32* %21
store i32 0, i32* %22
br label %269
269: ; preds = %263, %260
%270 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %271
271: ; preds = %269
%272 = load i32, i32* %13
%273 = add nsw i32 %272, 1
store i32 %273, i32* %13
br label %144
274: ; preds = %144
br label %275
275: ; preds = %274, %64
%276 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@SEEK_SET = global i32 0
@.str = [18 x i8] c"0x%X B%02d %06d\0A\09\00"
@.str.1 = [6 x i8] c"%02X \00"
@.str.3 = [3 x i8] c"\0A\09\00"
@.str.4 = [4 x i8] c"\0A\09\09\00"
@.str.5 = [23 x i8] c"LB%02d I%02d L%02d \0A\09\09\00"
@str = [7 x i8] c"EndSub\00"
define void @print_block(i32* nocapture %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca [50001 x i32]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = bitcast [50001 x i32]* %6 to i8*
%11 = getelementptr inbounds [50001 x i32], [50001 x i32]* %6, i64 0, i64 0
store i32 %1, i32* %11
%12 = bitcast i32* %7 to i8*
%13 = sub i32 -3, %1
%14 = add i32 %13, %2
%15 = call i32 @llvm.smax.i32(i32 %14, i32 1)
br label %16
16: ; preds = %34, %5
%17 = phi i32 [ 0, %5 ], [ %19, %34 ]
%18 = phi i32 [ 1, %5 ], [ %35, %34 ]
%19 = add nuw nsw i32 %17, 1
%20 = add nsw i32 %19, %1
%21 = load i32, i32* @SEEK_SET
%22 = tail call i32 @fseek(i32* %0, i32 %20, i32 %21)
%23 = call i32 @fread(i32* %7, i32 4, i32 1, i32* %0)
%24 = load i32, i32* %7
%25 = icmp sge i32 %24, %1
%26 = icmp slt i32 %24, %2
%27 = and i1 %25, %26
br i1 %27, label %29, label %28
28: ; preds = %16
br label %34
29: ; preds = %16
%30 = add nsw i32 %18, 1
%31 = sext i32 %18 to i64
%32 = getelementptr inbounds [50001 x i32], [50001 x i32]* %6, i64 0, i64 %31
store i32 %24, i32* %32
%33 = icmp slt i32 %18, 49999
br i1 %33, label %34, label %160
34: ; preds = %28, %29
%35 = phi i32 [ %18, %28 ], [ %30, %29 ]
%36 = icmp eq i32 %19, %15
br i1 %36, label %37, label %16
37: ; preds = %34
%38 = sext i32 %35 to i64
%39 = getelementptr inbounds [50001 x i32], [50001 x i32]* %6, i64 0, i64 %38
store i32 %2, i32* %39
%40 = icmp slt i32 %35, 0
br i1 %40, label %48, label %41
41: ; preds = %37
%42 = add nuw i32 %35, 1
%43 = zext i32 %42 to i64
br label %57
44: ; preds = %82, %57
%45 = phi i32 [ %60, %57 ], [ %83, %82 ]
%46 = add nuw nsw i64 %59, 1
%47 = icmp eq i64 %61, %43
br i1 %47, label %48, label %57
48: ; preds = %44, %37
%49 = phi i32 [ 0, %37 ], [ %45, %44 ]
%50 = sub i32 %35, %49
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %160
52: ; preds = %48
%53 = bitcast i32* %8 to i8*
%54 = bitcast i32* %9 to i8*
%55 = zext i32 %50 to i64
%56 = load i32, i32* %11
br label %87
57: ; preds = %41, %44
%58 = phi i64 [ 0, %41 ], [ %61, %44 ]
%59 = phi i64 [ 1, %41 ], [ %46, %44 ]
%60 = phi i32 [ 0, %41 ], [ %45, %44 ]
%61 = add nuw nsw i64 %58, 1
%62 = icmp slt i64 %58, %38
br i1 %62, label %63, label %44
63: ; preds = %57
%64 = getelementptr inbounds [50001 x i32], [50001 x i32]* %6, i64 0, i64 %58
br label %65
65: ; preds = %63, %82
%66 = phi i64 [ %59, %63 ], [ %84, %82 ]
%67 = phi i32 [ %60, %63 ], [ %83, %82 ]
%68 = load i32, i32* %64
%69 = getelementptr inbounds [50001 x i32], [50001 x i32]* %6, i64 0, i64 %66
%70 = load i32, i32* %69
%71 = icmp sgt i32 %68, %70
br i1 %71, label %72, label %74
72: ; preds = %65
store i32 %70, i32* %64
store i32 %68, i32* %69
%73 = load i32, i32* %64
br label %74
74: ; preds = %72, %65
%75 = phi i32 [ %68, %72 ], [ %70, %65 ]
%76 = phi i32 [ %73, %72 ], [ %68, %65 ]
%77 = icmp ne i32 %76, %75
%78 = icmp eq i32 %76, -1
%79 = or i1 %78, %77
br i1 %79, label %82, label %80
80: ; preds = %74
store i32 -1, i32* %69
%81 = add nsw i32 %67, 1
br label %82
82: ; preds = %74, %80
%83 = phi i32 [ %81, %80 ], [ %67, %74 ]
%84 = add nuw nsw i64 %66, 1
%85 = trunc i64 %84 to i32
%86 = icmp eq i32 %42, %85
br i1 %86, label %44, label %65
87: ; preds = %52, %157
%88 = phi i32 [ %56, %52 ], [ %92, %157 ]
%89 = phi i64 [ 0, %52 ], [ %90, %157 ]
%90 = add nuw nsw i64 %89, 1
%91 = getelementptr inbounds [50001 x i32], [50001 x i32]* %6, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = sub nsw i32 %92, %88
%94 = trunc i64 %89 to i32
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %88, i32 %94, i32 %93)
%96 = icmp sgt i32 %92, %88
br i1 %96, label %99, label %97
97: ; preds = %87
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %157
99: ; preds = %87, %115
%100 = phi i32 [ %116, %115 ], [ 0, %87 ]
%101 = phi i32 [ %117, %115 ], [ %88, %87 ]
%102 = load i32, i32* @SEEK_SET
%103 = tail call i32 @fseek(i32* %0, i32 %101, i32 %102)
%104 = call i32 @fread(i32* %8, i32 4, i32 1, i32* %0)
%105 = load i32, i32* %8
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %105)
%107 = icmp eq i32 %100, 7
br i1 %107, label %108, label %110
108: ; preds = %99
%109 = tail call i32 @putchar(i32 32)
br label %115
110: ; preds = %99
%111 = add nsw i32 %100, 1
%112 = icmp eq i32 %100, 15
br i1 %112, label %113, label %115
113: ; preds = %110
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %115
115: ; preds = %108, %113, %110
%116 = phi i32 [ 0, %113 ], [ %111, %110 ], [ 8, %108 ]
%117 = add i32 %101, 1
%118 = icmp eq i32 %117, %92
br i1 %118, label %119, label %99
119: ; preds = %115
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br i1 %96, label %121, label %157
121: ; preds = %119, %146
%122 = phi i32 [ %150, %146 ], [ 0, %119 ]
%123 = phi i32 [ %149, %146 ], [ 0, %119 ]
%124 = phi i32 [ %148, %146 ], [ 0, %119 ]
%125 = phi i32 [ %151, %146 ], [ %88, %119 ]
%126 = load i32, i32* @SEEK_SET
%127 = tail call i32 @fseek(i32* %0, i32 %125, i32 %126)
%128 = call i32 @fread(i32* %9, i32 4, i32 1, i32* %0)
%129 = load i32, i32* %9
%130 = icmp sge i32 %129, %3
%131 = icmp slt i32 %129, %4
%132 = and i1 %130, %131
br i1 %132, label %133, label %141
133: ; preds = %121
%134 = add nsw i32 %125, 3
%135 = icmp slt i32 %123, %129
br i1 %135, label %136, label %138
136: ; preds = %133
%137 = add nsw i32 %124, 1
br label %146
138: ; preds = %133
%139 = add nsw i32 %122, 1
%140 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %94, i32 %122, i32 %124)
br label %146
141: ; preds = %121
%142 = icmp sgt i32 %124, 0
br i1 %142, label %143, label %146
143: ; preds = %141
%144 = add nsw i32 %122, 1
%145 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %94, i32 %122, i32 %124)
br label %146
146: ; preds = %141, %143, %136, %138
%147 = phi i32 [ %134, %136 ], [ %134, %138 ], [ %125, %143 ], [ %125, %141 ]
%148 = phi i32 [ %137, %136 ], [ 1, %138 ], [ 0, %143 ], [ %124, %141 ]
%149 = phi i32 [ %129, %136 ], [ 0, %138 ], [ 0, %143 ], [ %123, %141 ]
%150 = phi i32 [ %122, %136 ], [ %139, %138 ], [ %144, %143 ], [ %122, %141 ]
%151 = add nsw i32 %147, 1
%152 = icmp slt i32 %151, %92
br i1 %152, label %121, label %153
153: ; preds = %146
%154 = icmp sgt i32 %148, 0
br i1 %154, label %155, label %157
155: ; preds = %153
%156 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %94, i32 %150, i32 %148)
br label %157
157: ; preds = %97, %119, %155, %153
%158 = tail call i32 @putchar(i32 10)
%159 = icmp eq i64 %90, %55
br i1 %159, label %160, label %87
160: ; preds = %29, %157, %48
%161 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
ret void
}