#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 */
char EOF;
int /*<<< orphan*/ SEEK_SET;
int asciiLog2(int);
int asciiToBinary(int);
int /*<<< orphan*/ formatHashValue(int, char *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/, int /*<<< orphan*/);
char getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, int);
FILE *type0Totype1Converter(FILE *type0, FILE *type1) {
  int type = 0, minHashValue = 0, maxHashValue = 0, currentHashValue = 0,
      globalOffset = 0, bitsPerPosition = 0;
  char currentHashValueFormatted[64];
  char ch, tempchar;
  while (((ch = getc(type0)) != EOF) && (ch != ',')) {
    type = type * 10 + (ch - '0');
  }
  if (type != 0) {
    printf("Incorrect input file type %d", type);
    return type1;
  }
  while (((ch = getc(type0)) != EOF) && (ch != ',')) {
    if ((ch >= '0') && (ch <= '9')) {
      minHashValue = minHashValue * 10 + (ch - '0');
    }
  }
  while (((ch = getc(type0)) != EOF) && (ch != ',') && (ch != '\n') &&
         (ch != '\r')) {
    if ((ch >= '0') && (ch <= '9')) {
      maxHashValue = maxHashValue * 10 + (ch - '0');
    }
  }
  while (((ch = getc(type0)) != EOF) && (ch != '\n') && (ch != '\r')) {
  }
  fprintf(type1, "1,%d,%d,", minHashValue, maxHashValue);
  ch = getc(type0);
  currentHashValue = 0;
  while ((ch != EOF) && (ch >= '0') && (ch <= '9')) {
    currentHashValue = 10 * currentHashValue + (ch - '0');
    ch = getc(type0);
  }
  globalOffset = currentHashValue;
  while (ch != EOF) {
    if (ch >= '0' && ch <= '9') {
      currentHashValue = currentHashValue * 10 + (ch - '0');
    } else {
      currentHashValue = 0;
    }
    ch = getc(type0);
    if (ch == EOF) {
      bitsPerPosition = asciiLog2(currentHashValue);
    }
  }
  fprintf(type1, "%d,%d\n", bitsPerPosition, globalOffset);
  if (fseek(type0, 0, SEEK_SET) == 0) {
    ch = getc(type0);
    while (ch != EOF && ch != '\n' && ch != '\r') {
      ch = getc(type0);
    }
    ch = getc(type0);
    while (ch != EOF) {
      if (ch >= '0' && ch <= '9') {
        currentHashValue = currentHashValue * 10 + (ch - '0');
      } else if (ch == ' ') {
        currentHashValue = asciiToBinary(currentHashValue - globalOffset);
        formatHashValue(currentHashValue, currentHashValueFormatted,
                        bitsPerPosition);
        fprintf(type1, "%s", currentHashValueFormatted);
        currentHashValue = 0;
      } else {
        currentHashValue = 0;
      }
      ch = getc(type0);
    }
    if (currentHashValue != 0) {
      currentHashValue = asciiToBinary(currentHashValue - globalOffset);
      formatHashValue(currentHashValue, currentHashValueFormatted,
                      bitsPerPosition);
      fprintf(type1, "%s", currentHashValueFormatted);
      currentHashValue = 0;
    }
  }
  return type1;
}


x86 assembly (clang, -O0):
<type0Totype1Converter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
movsbl %al,%ecx
mov    0x2e25(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x73(%rbp)
je     11e0 <type0Totype1Converter+0x70>
movsbl -0x71(%rbp),%eax
cmp    $0x2c,%eax
setne  %al
mov    %al,-0x73(%rbp)
mov    -0x73(%rbp),%al
test   $0x1,%al
jne    11f0 <type0Totype1Converter+0x80>
jmp    1205 <type0Totype1Converter+0x95>
imul   $0xa,-0x1c(%rbp),%eax
movsbl -0x71(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ad <type0Totype1Converter+0x3d>
cmpl   $0x0,-0x1c(%rbp)
je     122b <type0Totype1Converter+0xbb>
mov    -0x1c(%rbp),%esi
lea    0xde7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    165e <type0Totype1Converter+0x4ee>
jmp    1230 <type0Totype1Converter+0xc0>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
movsbl %al,%ecx
mov    0x2da2(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x74(%rbp)
je     1263 <type0Totype1Converter+0xf3>
movsbl -0x71(%rbp),%eax
cmp    $0x2c,%eax
setne  %al
mov    %al,-0x74(%rbp)
mov    -0x74(%rbp),%al
test   $0x1,%al
jne    1273 <type0Totype1Converter+0x103>
jmp    12a2 <type0Totype1Converter+0x132>
movsbl -0x71(%rbp),%eax
cmp    $0x30,%eax
jl     129d <type0Totype1Converter+0x12d>
movsbl -0x71(%rbp),%eax
cmp    $0x39,%eax
jg     129d <type0Totype1Converter+0x12d>
imul   $0xa,-0x20(%rbp),%eax
movsbl -0x71(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x20(%rbp)
jmp    1230 <type0Totype1Converter+0xc0>
jmp    12a7 <type0Totype1Converter+0x137>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
movsbl %al,%ecx
mov    0x2d2b(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x75(%rbp)
je     12fe <type0Totype1Converter+0x18e>
movsbl -0x71(%rbp),%ecx
xor    %eax,%eax
cmp    $0x2c,%ecx
mov    %al,-0x75(%rbp)
je     12fe <type0Totype1Converter+0x18e>
movsbl -0x71(%rbp),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x75(%rbp)
je     12fe <type0Totype1Converter+0x18e>
movsbl -0x71(%rbp),%eax
cmp    $0xd,%eax
setne  %al
mov    %al,-0x75(%rbp)
mov    -0x75(%rbp),%al
test   $0x1,%al
jne    130e <type0Totype1Converter+0x19e>
jmp    133d <type0Totype1Converter+0x1cd>
movsbl -0x71(%rbp),%eax
cmp    $0x30,%eax
jl     1338 <type0Totype1Converter+0x1c8>
movsbl -0x71(%rbp),%eax
cmp    $0x39,%eax
jg     1338 <type0Totype1Converter+0x1c8>
imul   $0xa,-0x24(%rbp),%eax
movsbl -0x71(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x24(%rbp)
jmp    12a7 <type0Totype1Converter+0x137>
jmp    1342 <type0Totype1Converter+0x1d2>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
movsbl %al,%ecx
mov    0x2c90(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x76(%rbp)
je     1387 <type0Totype1Converter+0x217>
movsbl -0x71(%rbp),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x76(%rbp)
je     1387 <type0Totype1Converter+0x217>
movsbl -0x71(%rbp),%eax
cmp    $0xd,%eax
setne  %al
mov    %al,-0x76(%rbp)
mov    -0x76(%rbp),%al
test   $0x1,%al
jne    1397 <type0Totype1Converter+0x227>
jmp    139c <type0Totype1Converter+0x22c>
jmp    1342 <type0Totype1Converter+0x1d2>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
lea    0xc70(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
movl   $0x0,-0x28(%rbp)
movsbl -0x71(%rbp),%ecx
mov    0x2c16(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x77(%rbp)
je     1401 <type0Totype1Converter+0x291>
movsbl -0x71(%rbp),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x77(%rbp)
jl     1401 <type0Totype1Converter+0x291>
movsbl -0x71(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x77(%rbp)
mov    -0x77(%rbp),%al
test   $0x1,%al
jne    1411 <type0Totype1Converter+0x2a1>
jmp    1432 <type0Totype1Converter+0x2c2>
imul   $0xa,-0x28(%rbp),%eax
movsbl -0x71(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
jmp    13c7 <type0Totype1Converter+0x257>
mov    -0x28(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movsbl -0x71(%rbp),%eax
mov    0x2ba5(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     14b6 <type0Totype1Converter+0x346>
movsbl -0x71(%rbp),%eax
cmp    $0x30,%eax
jl     147d <type0Totype1Converter+0x30d>
movsbl -0x71(%rbp),%eax
cmp    $0x39,%eax
jg     147d <type0Totype1Converter+0x30d>
imul   $0xa,-0x28(%rbp),%eax
movsbl -0x71(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x28(%rbp)
jmp    1484 <type0Totype1Converter+0x314>
movl   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
movsbl -0x71(%rbp),%eax
mov    0x2b4d(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    14b1 <type0Totype1Converter+0x341>
mov    -0x28(%rbp),%edi
call   1050 <asciiLog2@plt>
mov    %eax,-0x30(%rbp)
jmp    1438 <type0Totype1Converter+0x2c8>
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%edx
mov    -0x2c(%rbp),%ecx
lea    0xb5f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2aff(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1070 <fseek@plt>
cmp    $0x0,%rax
jne    1656 <type0Totype1Converter+0x4e6>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
movsbl -0x71(%rbp),%ecx
mov    0x2ae5(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x78(%rbp)
je     1532 <type0Totype1Converter+0x3c2>
movsbl -0x71(%rbp),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x78(%rbp)
je     1532 <type0Totype1Converter+0x3c2>
movsbl -0x71(%rbp),%eax
cmp    $0xd,%eax
setne  %al
mov    %al,-0x78(%rbp)
mov    -0x78(%rbp),%al
test   $0x1,%al
jne    1542 <type0Totype1Converter+0x3d2>
jmp    1553 <type0Totype1Converter+0x3e3>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
jmp    14f8 <type0Totype1Converter+0x388>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
movsbl -0x71(%rbp),%eax
mov    0x2a7e(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     160d <type0Totype1Converter+0x49d>
movsbl -0x71(%rbp),%eax
cmp    $0x30,%eax
jl     15a4 <type0Totype1Converter+0x434>
movsbl -0x71(%rbp),%eax
cmp    $0x39,%eax
jg     15a4 <type0Totype1Converter+0x434>
imul   $0xa,-0x28(%rbp),%eax
movsbl -0x71(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x28(%rbp)
jmp    15fc <type0Totype1Converter+0x48c>
movsbl -0x71(%rbp),%eax
cmp    $0x20,%eax
jne    15f0 <type0Totype1Converter+0x480>
mov    -0x28(%rbp),%edi
sub    -0x2c(%rbp),%edi
call   1040 <asciiToBinary@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%edi
lea    -0x70(%rbp),%rsi
mov    -0x30(%rbp),%edx
call   1080 <formatHashValue@plt>
mov    -0x18(%rbp),%rdi
lea    -0x70(%rbp),%rdx
lea    0xa50(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x28(%rbp)
jmp    15f7 <type0Totype1Converter+0x487>
movl   $0x0,-0x28(%rbp)
jmp    15fc <type0Totype1Converter+0x48c>
mov    -0x10(%rbp),%rdi
call   1090 <getc@plt>
mov    %al,-0x71(%rbp)
jmp    155f <type0Totype1Converter+0x3ef>
cmpl   $0x0,-0x28(%rbp)
je     1651 <type0Totype1Converter+0x4e1>
mov    -0x28(%rbp),%edi
sub    -0x2c(%rbp),%edi
call   1040 <asciiToBinary@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%edi
lea    -0x70(%rbp),%rsi
mov    -0x30(%rbp),%edx
call   1080 <formatHashValue@plt>
mov    -0x18(%rbp),%rdi
lea    -0x70(%rbp),%rdx
lea    0x9ea(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x28(%rbp)
jmp    1656 <type0Totype1Converter+0x4e6>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<type0Totype1Converter>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%r13
mov    %rdi,%r12
call   10a0 <getc@plt>
mov    0x2e48(%rip),%r15
cmp    $0x2c,%al
je     11e7 <type0Totype1Converter+0x67>
cmp    (%r15),%al
je     11e7 <type0Totype1Converter+0x67>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movsbl %al,%eax
lea    (%rbx,%rbx,4),%ecx
lea    (%rax,%rcx,2),%ebx
add    $0xffffffd0,%ebx
mov    %r12,%rdi
call   10a0 <getc@plt>
cmp    $0x2c,%al
je     11cd <type0Totype1Converter+0x4d>
cmp    (%r15),%al
jne    11b0 <type0Totype1Converter+0x30>
test   %ebx,%ebx
je     11e7 <type0Totype1Converter+0x67>
lea    0xe28(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    %r13,%rbx
jmp    13bc <type0Totype1Converter+0x23c>
mov    %r12,%rdi
call   10a0 <getc@plt>
xor    %ebp,%ebp
mov    $0x0,%ebx
cmp    $0x2c,%al
je     1236 <type0Totype1Converter+0xb6>
mov    $0x0,%ebx
cmp    (%r15),%al
je     1236 <type0Totype1Converter+0xb6>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%ecx
movsbl %al,%eax
lea    -0x30(%rax),%edx
cmp    $0xa,%dl
lea    (%rcx,%rcx,4),%edx
lea    -0x30(%rax,%rdx,2),%ebx
cmovae %ecx,%ebx
mov    %r12,%rdi
call   10a0 <getc@plt>
cmp    $0x2c,%al
je     1236 <type0Totype1Converter+0xb6>
cmp    (%r15),%al
jne    1210 <type0Totype1Converter+0x90>
mov    %r12,%rdi
call   10a0 <getc@plt>
cmp    (%r15),%al
je     1290 <type0Totype1Converter+0x110>
xor    %ecx,%ecx
movabs $0x100000002400,%r14
jmp    1280 <type0Totype1Converter+0x100>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl %al,%edx
add    $0xd0,%al
cmp    $0xa,%al
lea    (%rcx,%rcx,4),%eax
lea    -0x30(%rdx,%rax,2),%ebp
cmovae %ecx,%ebp
mov    %r12,%rdi
call   10a0 <getc@plt>
mov    %ebp,%ecx
cmp    (%r15),%al
je     1290 <type0Totype1Converter+0x110>
cmp    $0x2c,%al
ja     1260 <type0Totype1Converter+0xe0>
movzbl %al,%edx
bt     %rdx,%r14
jae    1260 <type0Totype1Converter+0xe0>
mov    %ecx,%ebp
nop
mov    %r12,%rdi
call   10a0 <getc@plt>
cmp    (%r15),%al
je     12a5 <type0Totype1Converter+0x125>
cmp    $0xd,%al
je     12a5 <type0Totype1Converter+0x125>
cmp    $0xa,%al
jne    1290 <type0Totype1Converter+0x110>
lea    0xd71(%rip),%rsi
movl   $0x0,0x4(%rsp)
mov    %r13,%rdi
mov    %ebx,%edx
mov    %ebp,%ecx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %r12,%rdi
call   10a0 <getc@plt>
mov    %eax,%ebx
mov    (%r15),%al
lea    -0x30(%rbx),%ecx
cmp    $0x9,%cl
mov    %r13,0x8(%rsp)
ja     130c <type0Totype1Converter+0x18c>
xor    %r13d,%r13d
nop
cmp    %al,%bl
je     130f <type0Totype1Converter+0x18f>
movzbl %bl,%eax
lea    0x0(%r13,%r13,4),%ecx
lea    (%rax,%rcx,2),%r13d
add    $0xffffffd0,%r13d
mov    %r12,%rdi
call   10a0 <getc@plt>
mov    %eax,%ebx
movzbl (%r15),%eax
lea    -0x30(%rbx),%ecx
cmp    $0x9,%cl
jbe    12e0 <type0Totype1Converter+0x160>
jmp    130f <type0Totype1Converter+0x18f>
xor    %r13d,%r13d
mov    %r13d,%ebp
cmp    %al,%bl
jne    13ce <type0Totype1Converter+0x24e>
lea    0xd05(%rip),%rsi
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    0x4(%rsp),%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2c9a(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
xor    %esi,%esi
call   1080 <fseek@plt>
test   %rax,%rax
jne    13bc <type0Totype1Converter+0x23c>
jmp    1368 <type0Totype1Converter+0x1e8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0xa,%al
je     1375 <type0Totype1Converter+0x1f5>
cmp    $0xd,%al
je     1375 <type0Totype1Converter+0x1f5>
mov    %r12,%rdi
call   10a0 <getc@plt>
cmp    (%r15),%al
jne    1360 <type0Totype1Converter+0x1e0>
mov    %r12,%rdi
call   10a0 <getc@plt>
cmp    (%r15),%al
jne    1420 <type0Totype1Converter+0x2a0>
mov    %ebp,%r14d
test   %r14d,%r14d
mov    0x8(%rsp),%rbx
je     13bc <type0Totype1Converter+0x23c>
sub    %r13d,%r14d
mov    %r14d,%edi
call   1050 <asciiToBinary@plt>
lea    0x10(%rsp),%rbp
mov    %eax,%edi
mov    %rbp,%rsi
mov    0x4(%rsp),%edx
call   1090 <formatHashValue@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1040 <fputs@plt>
mov    %rbx,%rax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r14d,%r14d
movl   $0x0,0x4(%rsp)
mov    %r13d,%ebp
jmp    13e8 <type0Totype1Converter+0x268>
xchg   %ax,%ax
cmp    %al,%bl
je     131a <type0Totype1Converter+0x19a>
movsbl %bl,%eax
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
lea    0x0(%rbp,%rbp,4),%ecx
lea    -0x30(%rax,%rcx,2),%ebp
cmovae %r14d,%ebp
mov    %r12,%rdi
call   10a0 <getc@plt>
mov    %eax,%ebx
movzbl (%r15),%eax
cmp    %al,%bl
jne    13e0 <type0Totype1Converter+0x260>
mov    %ebp,%edi
call   1060 <asciiLog2@plt>
mov    %eax,0x4(%rsp)
movzbl (%r15),%eax
jmp    13e0 <type0Totype1Converter+0x260>
lea    0x10(%rsp),%rbx
jmp    1453 <type0Totype1Converter+0x2d3>
nopw   0x0(%rax,%rax,1)
movzbl %al,%eax
lea    0x0(%rbp,%rbp,4),%ecx
lea    (%rax,%rcx,2),%r14d
add    $0xffffffd0,%r14d
mov    %r12,%rdi
call   10a0 <getc@plt>
mov    %r14d,%ebp
cmp    (%r15),%al
je     1389 <type0Totype1Converter+0x209>
lea    -0x30(%rax),%ecx
cmp    $0x9,%cl
jbe    1430 <type0Totype1Converter+0x2b0>
xor    %r14d,%r14d
cmp    $0x20,%al
jne    143f <type0Totype1Converter+0x2bf>
sub    %r13d,%ebp
mov    %ebp,%edi
call   1050 <asciiToBinary@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    0x4(%rsp),%edx
call   1090 <formatHashValue@plt>
mov    %rbx,%rdi
mov    0x8(%rsp),%rsi
call   1040 <fputs@plt>
jmp    143f <type0Totype1Converter+0x2bf>

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

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