#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 convertTobinary(char);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, ...);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, char *, char *);
int /*<<< orphan*/ stdin;
int strlen(char *);
void writeTofile(FILE *file) {
  int account;
  char user[30];
  char password[30];
  int counter;
  if ((file = fopen("users.dat", "w")) == NULL) {
    printf("File could not be opened\n");
  } else {
    printf("Enter the account, user, and password.\n");
    printf("Enter EOF(ctrl-d) to end input.\n");
    printf("? ");
    scanf("%d%s%s", &account, user, password);
    while (!feof(stdin)) {
      fprintf(file, "%u", convertTobinary(account));
      for (counter = 0; counter < strlen(user); counter++) {
        fprintf(file, "%u ", convertTobinary(user[counter]));
      }
      for (counter = 0; counter < strlen(password); counter++) {
        fprintf(file, "%u ", convertTobinary(password[counter]));
      }
      printf("? ");
      scanf("%d%s%s", &account, user, password);
    }
    fclose(file);
    printf("PLEASE TYPE IN THE SAME INFO AGAIN.\n");
    if ((file = fopen("usersr.txt", "w")) == NULL) {
      printf("File could not be opened\n");
    } else {
      printf("Enter the account, user, and password.\n");
      printf("Enter EOF to end input.\n");
      printf("? ");
      scanf("%d%s%s", &account, user, password);
      while (!feof(stdin)) {
        fprintf(file, "%d %s %s\n", account, user, password);
        printf("? ");
        scanf("%d%s%s", &account, user, password);
      }
      fclose(file);
    }
  }
}


x86 assembly (clang, -O0):
<writeTofile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xe6a(%rip),%rdi
lea    0xe6d(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x8(%rbp)
cmp    $0x0,%rax
jne    11c1 <writeTofile+0x41>
lea    0xe55(%rip),%rdi
call   1050 <printf@plt>
jmp    1420 <writeTofile+0x2a0>
lea    0xe5e(%rip),%rdi
call   1050 <printf@plt>
lea    0xe7a(%rip),%rdi
call   1050 <printf@plt>
lea    0xe8f(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    0xe7e(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1090 <scanf@plt>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
call   1080 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1220 <writeTofile+0xa0>
jmp    1326 <writeTofile+0x1a6>
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1070 <convertTobinary@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%edx
lea    0xe39(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x64(%rbp)
lea    -0x30(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x64(%rbp),%eax
cmp    %ecx,%eax
jge    12a2 <writeTofile+0x122>
mov    -0x8(%rbp),%rax
mov    %rax,-0x70(%rbp)
movslq -0x54(%rbp),%rax
movsbl -0x30(%rbp,%rax,1),%edi
call   1070 <convertTobinary@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%edx
lea    0xdef(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    124e <writeTofile+0xce>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x74(%rbp)
lea    -0x50(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x74(%rbp),%eax
cmp    %ecx,%eax
jge    12fd <writeTofile+0x17d>
mov    -0x8(%rbp),%rax
mov    %rax,-0x80(%rbp)
movslq -0x54(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%edi
call   1070 <convertTobinary@plt>
mov    -0x80(%rbp),%rdi
mov    %eax,%edx
lea    0xd94(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    12a9 <writeTofile+0x129>
lea    0xd6b(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    0xd5a(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1090 <scanf@plt>
jmp    11fd <writeTofile+0x7d>
mov    -0x8(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xd4a(%rip),%rdi
call   1050 <printf@plt>
lea    0xd63(%rip),%rdi
lea    0xcc1(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x8(%rbp)
cmp    $0x0,%rax
jne    136d <writeTofile+0x1ed>
lea    0xca9(%rip),%rdi
call   1050 <printf@plt>
jmp    141b <writeTofile+0x29b>
lea    0xcb2(%rip),%rdi
call   1050 <printf@plt>
lea    0xd30(%rip),%rdi
call   1050 <printf@plt>
lea    0xce3(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    0xcd2(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1090 <scanf@plt>
mov    0x2c38(%rip),%rax
mov    (%rax),%edi
call   1080 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    13cc <writeTofile+0x24c>
jmp    1412 <writeTofile+0x292>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    -0x30(%rbp),%rcx
lea    -0x50(%rbp),%r8
lea    0xce7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
lea    0xc7f(%rip),%rdi
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    0xc6e(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1090 <scanf@plt>
jmp    13a9 <writeTofile+0x229>
mov    -0x8(%rbp),%rdi
call   1030 <fclose@plt>
jmp    1420 <writeTofile+0x2a0>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeTofile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0xe5b(%rip),%rdi
lea    0xe5e(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     1302 <writeTofile+0x172>
mov    %rax,%rbx
lea    0xeb2(%rip),%rdi
call   1030 <puts@plt>
lea    0xe62(%rip),%rdi
call   1030 <puts@plt>
lea    0xe30(%rip),%rdi
call   1060 <printf@plt>
lea    0xe27(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x30(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   10a0 <scanf@plt>
mov    0x2de5(%rip),%rbp
mov    0x0(%rbp),%edi
call   1090 <feof@plt>
test   %eax,%eax
je     131c <writeTofile+0x18c>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0xe30(%rip),%rdi
call   1030 <puts@plt>
lea    0xdef(%rip),%rdi
lea    0xdd5(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     1411 <writeTofile+0x281>
mov    %rax,%r15
lea    0xe29(%rip),%rdi
call   1030 <puts@plt>
lea    0xe44(%rip),%rdi
call   1030 <puts@plt>
lea    0xda7(%rip),%rdi
call   1060 <printf@plt>
lea    0xd9e(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x30(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   10a0 <scanf@plt>
mov    0x0(%rbp),%edi
call   1090 <feof@plt>
test   %eax,%eax
jne    12f5 <writeTofile+0x165>
mov    %rbp,%r12
lea    0x30(%rsp),%rbp
lea    0x10(%rsp),%rbx
lea    0xd6a(%rip),%r13
lea    0xc(%rsp),%r14
nopw   0x0(%rax,%rax,1)
mov    0xc(%rsp),%edx
mov    %r15,%rdi
lea    0xd6a(%rip),%rsi
mov    %rbp,%rcx
mov    %rbx,%r8
xor    %eax,%eax
call   1070 <fprintf@plt>
lea    0xd3a(%rip),%rdi
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
call   10a0 <scanf@plt>
mov    (%r12),%edi
call   1090 <feof@plt>
test   %eax,%eax
je     12b0 <writeTofile+0x120>
mov    %r15,%rdi
call   1040 <fclose@plt>
jmp    141d <writeTofile+0x28d>
lea    0xdac(%rip),%rdi
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>
lea    0x30(%rsp),%r15
lea    0xcf1(%rip),%r12
lea    0x10(%rsp),%r13
jmp    136a <writeTofile+0x1da>
nop
lea    0xcd5(%rip),%rdi
call   1060 <printf@plt>
lea    0xccc(%rip),%rdi
lea    0xc(%rsp),%rsi
mov    %r15,%rdx
mov    %r13,%rcx
call   10a0 <scanf@plt>
mov    0x2c8e(%rip),%rbp
mov    0x0(%rbp),%edi
call   1090 <feof@plt>
test   %eax,%eax
jne    1213 <writeTofile+0x83>
movsbl 0xc(%rsp),%edi
call   1080 <convertTobinary@plt>
mov    %rbx,%rdi
lea    0xc98(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %r15,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    13cd <writeTofile+0x23d>
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
movsbl 0x30(%rsp,%r14,1),%edi
call   1080 <convertTobinary@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x1,%r14
mov    %r15,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%r14
jl     13a0 <writeTofile+0x210>
mov    %r13,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    1330 <writeTofile+0x1a0>
xor    %ebp,%ebp
nop
movsbl 0x10(%rsp,%rbp,1),%edi
call   1080 <convertTobinary@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x1,%rbp
mov    %r13,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%rbp
jl     13e0 <writeTofile+0x250>
jmp    1330 <writeTofile+0x1a0>
lea    0xc9d(%rip),%rdi
call   1030 <puts@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"users.dat\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [26 x i8] c"File could not be opened\0A\00"
@.str.3 = [40 x i8] c"Enter the account, user, and password.\0A\00"
@.str.4 = [33 x i8] c"Enter EOF(ctrl-d) to end input.\0A\00"
@.str.5 = [3 x i8] c"? \00"
@.str.6 = [7 x i8] c"%d%s%s\00"
@stdin = global i32 0
@.str.7 = [3 x i8] c"%u\00"
@.str.8 = [4 x i8] c"%u \00"
@.str.9 = [37 x i8] c"PLEASE TYPE IN THE SAME INFO AGAIN.\0A\00"
@.str.10 = [11 x i8] c"usersr.txt\00"
@.str.11 = [25 x i8] c"Enter EOF to end input.\0A\00"
@.str.12 = [10 x i8] c"%d %s %s\0A\00"
define void @writeTofile(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca [30 x i8]
%5 = alloca [30 x i8]
%6 = alloca i32
store i32* %0, i32** %2
%7 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %7, i32** %2
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
br label %101
11: ; preds = %1
%12 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%15 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%16 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%17 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32* %3, i8* %15, i8* %16)
br label %18
18: ; preds = %62, %11
%19 = load i32, i32* @stdin
%20 = call i32 @feof(i32 %19)
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
br i1 %22, label %23, label %67
23: ; preds = %18
%24 = load i32*, i32** %2
%25 = load i32, i32* %3
%26 = trunc i32 %25 to i8
%27 = call i32 @convertTobinary(i8 signext %26)
%28 = call i32 (i32*, i8*, i32, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %27)
store i32 0, i32* %6
br label %29
29: ; preds = %42, %23
%30 = load i32, i32* %6
%31 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%32 = call i32 @strlen(i8* %31)
%33 = icmp slt i32 %30, %32
br i1 %33, label %34, label %45
34: ; preds = %29
%35 = load i32*, i32** %2
%36 = load i32, i32* %6
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = call i32 @convertTobinary(i8 signext %39)
%41 = call i32 (i32*, i8*, i32, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %34
%43 = load i32, i32* %6
%44 = add nsw i32 %43, 1
store i32 %44, i32* %6
br label %29
45: ; preds = %29
store i32 0, i32* %6
br label %46
46: ; preds = %59, %45
%47 = load i32, i32* %6
%48 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%49 = call i32 @strlen(i8* %48)
%50 = icmp slt i32 %47, %49
br i1 %50, label %51, label %62
51: ; preds = %46
%52 = load i32*, i32** %2
%53 = load i32, i32* %6
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 %54
%56 = load i8, i8* %55
%57 = call i32 @convertTobinary(i8 signext %56)
%58 = call i32 (i32*, i8*, i32, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %57)
br label %59
59: ; preds = %51
%60 = load i32, i32* %6
%61 = add nsw i32 %60, 1
store i32 %61, i32* %6
br label %46
62: ; preds = %46
%63 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%64 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%65 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%66 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32* %3, i8* %64, i8* %65)
br label %18
67: ; preds = %18
%68 = load i32*, i32** %2
%69 = call i32 @fclose(i32* %68)
%70 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%71 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %71, i32** %2
%72 = icmp eq i32* %71, null
br i1 %72, label %73, label %75
73: ; preds = %67
%74 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
br label %100
75: ; preds = %67
%76 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%77 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%78 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%79 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%80 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%81 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32* %3, i8* %79, i8* %80)
br label %82
82: ; preds = %87, %75
%83 = load i32, i32* @stdin
%84 = call i32 @feof(i32 %83)
%85 = icmp ne i32 %84, 0
%86 = xor i1 %85, true
br i1 %86, label %87, label %97
87: ; preds = %82
%88 = load i32*, i32** %2
%89 = load i32, i32* %3
%90 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%91 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%92 = call i32 (i32*, i8*, i32, ...) @fprintf(i32* %88, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %89, i8* %90, i8* %91)
%93 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%94 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%95 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%96 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32* %3, i8* %94, i8* %95)
br label %82
97: ; preds = %82
%98 = load i32*, i32** %2
%99 = call i32 @fclose(i32* %98)
br label %100
100: ; preds = %97, %73
br label %101
101: ; preds = %100, %9
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"users.dat\00"
@.str.1 = [2 x i8] c"w\00"
@.str.5 = [3 x i8] c"? \00"
@.str.6 = [7 x i8] c"%d%s%s\00"
@stdin = global i32 0
@.str.7 = [3 x i8] c"%u\00"
@.str.8 = [4 x i8] c"%u \00"
@.str.10 = [11 x i8] c"usersr.txt\00"
@.str.12 = [10 x i8] c"%d %s %s\0A\00"
@str.13 = [32 x i8] c"Enter EOF(ctrl-d) to end input.\00"
@str.14 = [36 x i8] c"PLEASE TYPE IN THE SAME INFO AGAIN.\00"
@str.15 = [39 x i8] c"Enter the account, user, and password.\00"
@str.16 = [24 x i8] c"Enter EOF to end input.\00"
@str.18 = [25 x i8] c"File could not be opened\00"
define void @writeTofile(i32* nocapture readnone %0) {
%2 = alloca i32
%3 = alloca [30 x i8]
%4 = alloca [30 x i8]
%5 = bitcast i32* %2 to i8*
%6 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%8 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.18, i64 0, i64 0))
br label %81
12: ; preds = %1
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.15, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.13, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32* %2, i8* %6, i8* %7)
%17 = load i32, i32* @stdin
%18 = call i32 @feof(i32 %17)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %56
20: ; preds = %12, %50
%21 = load i32, i32* %2
%22 = trunc i32 %21 to i8
%23 = call i32 @convertTobinary(i8 signext %22)
%24 = call i32 (i32*, i8*, i32, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %23)
%25 = call i32 @strlen(i8* %6)
%26 = icmp sgt i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %30, %20
%28 = call i32 @strlen(i8* %7)
%29 = icmp sgt i32 %28, 0
br i1 %29, label %40, label %50
30: ; preds = %20, %30
%31 = phi i64 [ %36, %30 ], [ 0, %20 ]
%32 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = call i32 @convertTobinary(i8 signext %33)
%35 = call i32 (i32*, i8*, i32, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %34)
%36 = add nuw nsw i64 %31, 1
%37 = call i32 @strlen(i8* %6)
%38 = sext i32 %37 to i64
%39 = icmp slt i64 %36, %38
br i1 %39, label %30, label %27
40: ; preds = %27, %40
%41 = phi i64 [ %46, %40 ], [ 0, %27 ]
%42 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = call i32 @convertTobinary(i8 signext %43)
%45 = call i32 (i32*, i8*, i32, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %44)
%46 = add nuw nsw i64 %41, 1
%47 = call i32 @strlen(i8* %7)
%48 = sext i32 %47 to i64
%49 = icmp slt i64 %46, %48
br i1 %49, label %40, label %50
50: ; preds = %40, %27
%51 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%52 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32* %2, i8* %6, i8* %7)
%53 = load i32, i32* @stdin
%54 = call i32 @feof(i32 %53)
%55 = icmp eq i32 %54, 0
br i1 %55, label %20, label %56
56: ; preds = %50, %12
%57 = call i32 @fclose(i32* %8)
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.14, i64 0, i64 0))
%59 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%60 = icmp eq i32* %59, null
br i1 %60, label %61, label %63
61: ; preds = %56
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.18, i64 0, i64 0))
br label %81
63: ; preds = %56
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.15, i64 0, i64 0))
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.16, i64 0, i64 0))
%66 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%67 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32* %2, i8* %6, i8* %7)
%68 = load i32, i32* @stdin
%69 = call i32 @feof(i32 %68)
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %79
71: ; preds = %63, %71
%72 = load i32, i32* %2
%73 = call i32 (i32*, i8*, i32, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %72, i8* %6, i8* %7)
%74 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%75 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32* %2, i8* %6, i8* %7)
%76 = load i32, i32* @stdin
%77 = call i32 @feof(i32 %76)
%78 = icmp eq i32 %77, 0
br i1 %78, label %71, label %79
79: ; preds = %71, %63
%80 = call i32 @fclose(i32* %59)
br label %81
81: ; preds = %61, %79, %10
ret void
}