#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 getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
void search_he(char *path, FILE *fp, int window_size, int threshold, int bias,
               int flags) {
  unsigned char ring_buf[window_size];
  int byte_frequency[256];
  int distinct_bytes = 0;
  unsigned file_offset = 0;
  int ring_offset;
  int ch;
  int i;
  int high_entropy = 0;
  unsigned start;
  unsigned end;
  int last = 0;
  int direction = 0;
  int dir_buf[window_size];
  for (i = 0; i < 256; i++)
    byte_frequency[i] = 0;
  for (i = 0; i < window_size; i++)
    dir_buf[i] = 0;
  while ((ch = getc(fp)) != EOF) {
    ring_offset = file_offset % window_size;
    if (file_offset >= window_size)
      if (--byte_frequency[ring_buf[ring_offset]] == 0)
        distinct_bytes -= 1;
    ring_buf[ring_offset] = ch;
    if (byte_frequency[ch]++ == 0)
      distinct_bytes += 1;
    file_offset++;
    direction -= dir_buf[ring_offset];
    direction += dir_buf[ring_offset] = (ch < last ? -1 : ch == last ? 0 : +1);
    last = ch;
    if (file_offset < window_size)
      continue;
    if (distinct_bytes >= threshold && direction <= bias &&
        direction >= -bias) {
      if (flags & (1 << 0)) {
        printf("%s\t%u", path, file_offset - window_size);
        if (flags & (1 << 3))
          printf("\t%u\t%d", distinct_bytes,
                 direction < 0 ? -direction : direction);
        if (flags & (1 << 2)) {
          printf("\t");
          for (i = 0; i < window_size; i++)
            printf("%02x", ring_buf[(file_offset + i) % window_size]);
        }
        printf("\n");
        continue;
      }
      if ((flags & (1 << 1)) != 0) {
        printf("%s\n", path);
        break;
      }
      if (high_entropy == 0) {
        high_entropy = 1;
        start = file_offset - window_size;
        printf("%s\t%u\t", path, start);
        if (flags & (1 << 2))
          for (i = 0; i < window_size; i++)
            printf("%02x", ring_buf[(file_offset + i) % window_size]);
      } else if (flags & (1 << 2))
        printf("%02x", ch);
      end = file_offset;
    } else {
      if (flags & (1 << 0))
        continue;
      if (high_entropy != 0 && file_offset - window_size >= end) {
        high_entropy = 0;
        if (flags & (1 << 2))
          printf("\t");
        printf("%u\n", end - start);
      }
    }
  }
  if (high_entropy != 0) {
    if (flags & (1 << 2))
      printf("\t");
    printf("%u\n", file_offset - start);
  }
}


x86 assembly (clang, -O0):
<search_he>:
push   %rbp
mov    %rsp,%rbp
sub    $0x480,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x470(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x434(%rbp)
movl   $0x0,-0x438(%rbp)
movl   $0x0,-0x448(%rbp)
movl   $0x0,-0x454(%rbp)
movl   $0x0,-0x458(%rbp)
mov    -0x14(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x468(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x460(%rbp)
movl   $0x0,-0x444(%rbp)
cmpl   $0x100,-0x444(%rbp)
jge    1202 <search_he+0xe2>
movslq -0x444(%rbp),%rax
movl   $0x0,-0x430(%rbp,%rax,4)
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    11cc <search_he+0xac>
movl   $0x0,-0x444(%rbp)
mov    -0x444(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1244 <search_he+0x124>
mov    -0x468(%rbp),%rax
movslq -0x444(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    120c <search_he+0xec>
jmp    1249 <search_he+0x129>
mov    -0x10(%rbp),%rdi
call   1040 <getc@plt>
mov    %eax,-0x440(%rbp)
mov    0x2d89(%rip),%rcx
cmp    (%rcx),%eax
je     169f <search_he+0x57f>
mov    -0x438(%rbp),%eax
xor    %edx,%edx
divl   -0x14(%rbp)
mov    %edx,-0x43c(%rbp)
mov    -0x438(%rbp),%eax
cmp    -0x14(%rbp),%eax
jb     12c9 <search_he+0x1a9>
mov    -0x470(%rbp),%rax
movslq -0x43c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,%ecx
mov    -0x430(%rbp,%rcx,4),%eax
add    $0xffffffff,%eax
mov    %eax,-0x430(%rbp,%rcx,4)
cmp    $0x0,%eax
jne    12c4 <search_he+0x1a4>
mov    -0x434(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x434(%rbp)
jmp    12c9 <search_he+0x1a9>
mov    -0x470(%rbp),%rax
mov    -0x440(%rbp),%ecx
mov    %cl,%dl
movslq -0x43c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
movslq -0x440(%rbp),%rcx
mov    -0x430(%rbp,%rcx,4),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x430(%rbp,%rcx,4)
cmp    $0x0,%eax
jne    1314 <search_he+0x1f4>
mov    -0x434(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x434(%rbp)
mov    -0x468(%rbp),%rax
mov    -0x438(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x438(%rbp)
movslq -0x43c(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
mov    -0x458(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x458(%rbp)
mov    -0x440(%rbp),%eax
cmp    -0x454(%rbp),%eax
jge    1364 <search_he+0x244>
mov    $0xffffffff,%eax
mov    %eax,-0x474(%rbp)
jmp    1382 <search_he+0x262>
mov    -0x440(%rbp),%edx
mov    -0x454(%rbp),%esi
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    %esi,%edx
cmove  %ecx,%eax
mov    %eax,-0x474(%rbp)
mov    -0x468(%rbp),%rcx
mov    -0x474(%rbp),%eax
movslq -0x43c(%rbp),%rdx
mov    %eax,(%rcx,%rdx,4)
add    -0x458(%rbp),%eax
mov    %eax,-0x458(%rbp)
mov    -0x440(%rbp),%eax
mov    %eax,-0x454(%rbp)
mov    -0x438(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    13c5 <search_he+0x2a5>
jmp    1249 <search_he+0x129>
mov    -0x434(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     161e <search_he+0x4fe>
mov    -0x458(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     161e <search_he+0x4fe>
mov    -0x458(%rbp),%eax
xor    %ecx,%ecx
sub    -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jl     161e <search_he+0x4fe>
mov    -0x20(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     150f <search_he+0x3ef>
mov    -0x8(%rbp),%rsi
mov    -0x438(%rbp),%edx
sub    -0x14(%rbp),%edx
lea    0xbe7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1481 <search_he+0x361>
mov    -0x434(%rbp),%eax
mov    %eax,-0x478(%rbp)
cmpl   $0x0,-0x458(%rbp)
jge    145b <search_he+0x33b>
xor    %eax,%eax
sub    -0x458(%rbp),%eax
mov    %eax,-0x47c(%rbp)
jmp    1467 <search_he+0x347>
mov    -0x458(%rbp),%eax
mov    %eax,-0x47c(%rbp)
mov    -0x478(%rbp),%esi
mov    -0x47c(%rbp),%edx
lea    0xb8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     14fc <search_he+0x3dc>
lea    0xb84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x444(%rbp)
mov    -0x444(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14f7 <search_he+0x3d7>
mov    -0x438(%rbp),%eax
add    -0x444(%rbp),%eax
xor    %edx,%edx
divl   -0x14(%rbp)
mov    -0x470(%rbp),%rax
mov    %edx,%ecx
movzbl (%rax,%rcx,1),%esi
lea    0xb31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    14a8 <search_he+0x388>
jmp    14fc <search_he+0x3dc>
lea    0xb11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1249 <search_he+0x129>
mov    -0x20(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1535 <search_he+0x415>
mov    -0x8(%rbp),%rsi
lea    0xae9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    169f <search_he+0x57f>
cmpl   $0x0,-0x448(%rbp)
jne    15e5 <search_he+0x4c5>
movl   $0x1,-0x448(%rbp)
mov    -0x438(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0x44c(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x44c(%rbp),%edx
lea    0xaaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     15e0 <search_he+0x4c0>
movl   $0x0,-0x444(%rbp)
mov    -0x444(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15db <search_he+0x4bb>
mov    -0x438(%rbp),%eax
add    -0x444(%rbp),%eax
xor    %edx,%edx
divl   -0x14(%rbp)
mov    -0x470(%rbp),%rax
mov    %edx,%ecx
movzbl (%rax,%rcx,1),%esi
lea    0xa4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    158c <search_he+0x46c>
jmp    15e0 <search_he+0x4c0>
jmp    160d <search_he+0x4ed>
mov    -0x20(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1608 <search_he+0x4e8>
mov    -0x440(%rbp),%esi
lea    0xa0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    160d <search_he+0x4ed>
mov    -0x438(%rbp),%eax
mov    %eax,-0x450(%rbp)
jmp    169a <search_he+0x57a>
mov    -0x20(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1632 <search_he+0x512>
jmp    1249 <search_he+0x129>
cmpl   $0x0,-0x448(%rbp)
je     1695 <search_he+0x575>
mov    -0x438(%rbp),%eax
sub    -0x14(%rbp),%eax
cmp    -0x450(%rbp),%eax
jb     1695 <search_he+0x575>
movl   $0x0,-0x448(%rbp)
mov    -0x20(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     167b <search_he+0x55b>
lea    0x9a7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x450(%rbp),%esi
sub    -0x44c(%rbp),%esi
lea    0x98f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    169a <search_he+0x57a>
jmp    1249 <search_he+0x129>
cmpl   $0x0,-0x448(%rbp)
je     16e3 <search_he+0x5c3>
mov    -0x20(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     16c9 <search_he+0x5a9>
lea    0x959(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x438(%rbp),%esi
sub    -0x44c(%rbp),%esi
lea    0x941(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<search_he>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x468,%rsp
mov    %r9d,-0x38(%rbp)
mov    %r8d,-0x60(%rbp)
mov    %ecx,-0x78(%rbp)
mov    %edx,%r12d
mov    %rsi,%r15
mov    %rdi,-0x70(%rbp)
mov    %edx,%r14d
mov    %rsp,%rcx
lea    0xf(%r14),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rcx,%rsp
mov    %rsp,%rbx
lea    0xf(,%r14,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
lea    -0x490(%rbp),%rdi
mov    $0x400,%edx
xor    %esi,%esi
call   1060 <memset@plt>
test   %r12d,%r12d
jle    11cf <search_he+0x7f>
shl    $0x2,%r14
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1060 <memset@plt>
mov    %r15,%rdi
call   1070 <getc@plt>
mov    0x2e0a(%rip),%rcx
cmp    (%rcx),%eax
je     1590 <search_he+0x440>
mov    %rbx,-0x90(%rbp)
test   %r12d,%r12d
setle  %cl
mov    -0x60(%rbp),%esi
neg    %esi
mov    %esi,-0x74(%rbp)
testb  $0x4,-0x38(%rbp)
sete   %bl
or     %cl,%bl
mov    %bl,-0x31(%rbp)
mov    %r12d,%ebx
neg    %ebx
mov    $0xffffffff,%r13d
xor    %r14d,%r14d
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    %r15,-0x50(%rbp)
mov    %rbx,-0x80(%rbp)
mov    -0x40(%rbp),%ebx
jmp    126f <search_he+0x11f>
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xffffffff,%r13d
mov    -0x5c(%rbp),%r14d
mov    -0x40(%rbp),%ebx
mov    -0x50(%rbp),%rdi
call   1070 <getc@plt>
mov    0x2d81(%rip),%rcx
cmp    (%rcx),%eax
je     1558 <search_he+0x408>
mov    -0x30(%rbp),%ecx
mov    %ecx,%r9d
mov    -0x54(%rbp),%r8d
mov    %eax,%ecx
mov    %r9d,%eax
xor    %edx,%edx
div    %r12d
movslq %edx,%rax
cmp    %r12d,%r9d
jae    12a0 <search_he+0x150>
mov    -0x68(%rbp),%rdi
jmp    12b9 <search_he+0x169>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x68(%rbp),%rdi
movzbl (%rdi,%rax,1),%edx
xor    %esi,%esi
addl   $0xffffffff,-0x490(%rbp,%rdx,4)
ff
sete   %sil
sub    %esi,%r14d
mov    %cl,(%rdi,%rax,1)
mov    %ecx,-0x54(%rbp)
movslq %ecx,%rdx
mov    -0x490(%rbp,%rdx,4),%esi
lea    0x1(%rsi),%edi
cmp    $0x1,%esi
adc    $0x0,%r14d
mov    %edi,-0x490(%rbp,%rdx,4)
mov    %ebx,%esi
mov    -0x90(%rbp),%rdi
sub    (%rdi,%rax,4),%esi
xor    %ebx,%ebx
cmp    %r8d,%edx
setne  %bl
cmovl  %r13d,%ebx
lea    0x1(%r9),%r15d
mov    %ebx,(%rdi,%rax,4)
add    %esi,%ebx
mov    %r15d,-0x30(%rbp)
sub    %r12d,%r15d
jb     1257 <search_he+0x107>
cmp    -0x78(%rbp),%r14d
jl     13f0 <search_he+0x2a0>
cmp    -0x60(%rbp),%ebx
jg     13f0 <search_he+0x2a0>
cmp    -0x74(%rbp),%ebx
jl     13f0 <search_he+0x2a0>
mov    %ebx,-0x40(%rbp)
mov    -0x38(%rbp),%ebx
test   $0x1,%bl
mov    %r14d,-0x5c(%rbp)
mov    %r9,-0x88(%rbp)
je     141c <search_he+0x2cc>
lea    0xcbb(%rip),%rdi
mov    -0x70(%rbp),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x8,%bl
je     1373 <search_he+0x223>
mov    -0x40(%rbp),%eax
mov    %eax,%edx
neg    %edx
cmovs  %eax,%edx
lea    0xc9d(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x4,%bl
mov    -0x68(%rbp),%r13
mov    -0x80(%rbp),%r14
mov    -0x88(%rbp),%r15
je     1240 <search_he+0xf0>
mov    $0x9,%edi
call   1030 <putchar@plt>
test   %r12d,%r12d
jle    1240 <search_he+0xf0>
mov    %r13,%rcx
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
lea    (%r15,%rbx,1),%eax
xor    %edx,%edx
div    %r12d
movzbl (%rcx,%rdx,1),%esi
lea    0xc49(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rax
lea    (%r14,%rbx,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
mov    %r13,%rcx
cmp    $0x1,%eax
jne    13b0 <search_he+0x260>
jmp    1240 <search_he+0xf0>
nopl   0x0(%rax)
testb  $0x1,-0x38(%rbp)
jne    1257 <search_he+0x107>
cmpl   $0x0,-0x2c(%rbp)
mov    %ebx,-0x40(%rbp)
je     143a <search_he+0x2ea>
mov    -0x30(%rbp),%eax
sub    %r12d,%eax
mov    -0x3c(%rbp),%esi
cmp    %esi,%eax
jae    148b <search_he+0x33b>
movl   $0x1,-0x2c(%rbp)
jmp    14bb <search_he+0x36b>
test   $0x2,%bl
jne    154f <search_he+0x3ff>
cmpl   $0x0,-0x2c(%rbp)
je     1443 <search_he+0x2f3>
testb  $0x4,-0x38(%rbp)
jne    146b <search_he+0x31b>
movl   $0x1,-0x2c(%rbp)
jmp    1483 <search_he+0x333>
movl   $0x0,-0x2c(%rbp)
jmp    14bb <search_he+0x36b>
lea    0xbc8(%rip),%rdi
mov    -0x70(%rbp),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
cmpb   $0x0,-0x31(%rbp)
je     14db <search_he+0x38b>
movl   $0x1,-0x2c(%rbp)
mov    %r15d,-0x44(%rbp)
jmp    1483 <search_he+0x333>
movl   $0x1,-0x2c(%rbp)
lea    0xb94(%rip),%rdi
mov    -0x54(%rbp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x30(%rbp),%eax
mov    %eax,-0x3c(%rbp)
jmp    14bb <search_he+0x36b>
testb  $0x4,-0x38(%rbp)
mov    -0x44(%rbp),%eax
je     14a4 <search_he+0x354>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    -0x3c(%rbp),%esi
mov    -0x44(%rbp),%eax
sub    %eax,%esi
movl   $0x0,-0x2c(%rbp)
lea    0xb65(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x50(%rbp),%rdi
call   1070 <getc@plt>
mov    0x2b1d(%rip),%rcx
cmp    (%rcx),%eax
je     1558 <search_he+0x408>
mov    -0x40(%rbp),%ebx
jmp    126f <search_he+0x11f>
movl   $0x1,-0x2c(%rbp)
mov    $0x1,%ebx
mov    %r12d,-0x58(%rbp)
mov    -0x80(%rbp),%r12
lea    0xb17(%rip),%r14
mov    -0x88(%rbp),%r13
nopl   (%rax)
lea    (%rbx,%r13,1),%eax
xor    %edx,%edx
divl   -0x58(%rbp)
mov    -0x68(%rbp),%rax
movzbl (%rax,%rdx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%r12,%rbx,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
cmp    $0x1,%eax
jne    1500 <search_he+0x3b0>
mov    %r15d,-0x44(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%r12d
mov    $0xffffffff,%r13d
mov    -0x5c(%rbp),%r14d
jmp    14bf <search_he+0x36f>
mov    -0x70(%rbp),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
je     1590 <search_he+0x440>
testb  $0x4,-0x38(%rbp)
je     156e <search_he+0x41e>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    -0x30(%rbp),%esi
sub    -0x44(%rbp),%esi
lea    0xa9e(%rip),%rdi
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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