#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*/ lineInsert;
typedef int /*<<< orphan*/ line;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ decrypt(char *);
int /*<<< orphan*/ encrypt(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ remove(char *);
int /*<<< orphan*/ rename(char *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *, char *);
int /*<<< orphan*/ sscanf(char *, char *, char *, char *, char *);
scalar_t__ strcmp(char *, char *);
void edit(int argc, char *argv[]) {
  if (argc < 5) {
    printf("Error. The %s switch requires at least 3 parameters: username "
           "password and type. Please use the following syntax.\n $./passweb "
           "%s <username> <password> <type>\n",
           argv[1], argv[1]);
    return;
  }
  FILE *file = fopen("password.csv", "r");
  FILE *temp = fopen("temp.csv", "w+");
  if (file == NULL) {
    printf("Error. No password.csv present. Need add users first in order to "
           "edit entries.");
    fclose(file);
    return;
  }
  fseek(file, 0, SEEK_SET);
  fseek(temp, 0, SEEK_SET);
  char line[50];
  char userTemp[50];
  char passTemp[50];
  char typeTemp[50];
  int detected = 0;
  while (fgets(line, sizeof(line), file)) {
    decrypt(line);
    sscanf(line, "%[^, ], %[^, ], %[^\n]\n", userTemp, passTemp, typeTemp);
    if (strcmp(userTemp, argv[2]) == 0) {
      char lineInsert[50];
      snprintf(lineInsert, sizeof(lineInsert), "%s, %s, %s\n", argv[2], argv[3],
               argv[4]);
      encrypt(lineInsert);
      fprintf(temp, "%s", lineInsert);
      printf("The user %s has been edited with the new information.\n",
             argv[2]);
      detected = 1;
    } else {
      encrypt(line);
      fprintf(temp, "%s", line);
    }
  }
  fclose(file);
  fclose(temp);
  if (detected == 0) {
    printf("Error. The username %s doesn't exist in the database. Nothing to "
           "edit.\n",
           argv[2]);
    remove("temp.csv");
    return;
  }
  remove("password.csv");
  rename("temp.csv", "password.csv");
}


x86 assembly (clang, -O0):
<edit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x5,-0x4(%rbp)
jge    120f <edit+0x3f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13fd <edit+0x22d>
lea    0xe89(%rip),%rdi
lea    0xe8f(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xe81(%rip),%rdi
lea    0xe83(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1264 <edit+0x94>
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
jmp    13fd <edit+0x22d>
mov    -0x18(%rbp),%rdi
mov    0x2d71(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    -0x20(%rbp),%rdi
mov    0x2d5d(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
movl   $0x0,-0x124(%rbp)
lea    -0x60(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x32,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
je     1398 <edit+0x1c8>
lea    -0x60(%rbp),%rdi
call   1030 <decrypt@plt>
lea    -0x60(%rbp),%rdi
lea    -0xa0(%rbp),%rdx
lea    -0xe0(%rbp),%rcx
lea    -0x120(%rbp),%r8
lea    0xe2e(%rip),%rsi
call   10c0 <sscanf@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1376 <edit+0x1a6>
lea    -0x160(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%r8
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%r9
mov    $0x32,%esi
lea    0xdf7(%rip),%rdx
call   1080 <snprintf@plt>
lea    -0x160(%rbp),%rdi
call   1070 <encrypt@plt>
mov    -0x20(%rbp),%rdi
lea    -0x160(%rbp),%rdx
lea    0xde0(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x124(%rbp)
jmp    1393 <edit+0x1c3>
lea    -0x60(%rbp),%rdi
call   1070 <encrypt@plt>
mov    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rdx
lea    0xd9e(%rip),%rsi
call   10b0 <fprintf@plt>
jmp    1296 <edit+0xc6>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
cmpl   $0x0,-0x124(%rbp)
jne    13de <edit+0x20e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcda(%rip),%rdi
call   1040 <remove@plt>
jmp    13fd <edit+0x22d>
lea    0xcba(%rip),%rdi
call   1040 <remove@plt>
lea    0xcbd(%rip),%rdi
lea    0xca7(%rip),%rsi
call   10f0 <rename@plt>
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<edit>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148,%rsp
mov    %rsi,%r12
cmp    $0x4,%edi
jg     1210 <edit+0x40>
mov    0x8(%r12),%rdx
lea    0xe0b(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <printf@plt>
lea    0xe88(%rip),%rdi
lea    0xe8e(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,%r14
lea    0xe81(%rip),%rdi
lea    0xe83(%rip),%rsi
call   10e0 <fopen@plt>
test   %r14,%r14
je     13a5 <edit+0x1d5>
mov    %rax,%r15
mov    0x2d94(%rip),%rbx
mov    (%rbx),%edx
movl   $0x0,0xc(%rsp)
mov    %r14,%rdi
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    (%rbx),%edx
mov    %r15,%rdi
xor    %esi,%esi
call   10d0 <fseek@plt>
lea    0x10(%rsp),%rdi
mov    $0x32,%esi
mov    %r14,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     136e <edit+0x19e>
lea    0x10(%rsp),%rbx
lea    0x110(%rsp),%rbp
lea    0x50(%rsp),%r13
movl   $0x0,0xc(%rsp)
jmp    12dc <edit+0x10c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
call   1070 <encrypt@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1090 <fputs@plt>
mov    %rbx,%rdi
mov    $0x32,%esi
mov    %r14,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     136e <edit+0x19e>
mov    %rbx,%rdi
call   1030 <decrypt@plt>
mov    %rbx,%rdi
lea    0xe1b(%rip),%rsi
mov    %rbp,%rdx
lea    0xd0(%rsp),%rcx
lea    0x90(%rsp),%r8
call   10c0 <sscanf@plt>
mov    0x10(%r12),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
jne    12b0 <edit+0xe0>
mov    0x10(%r12),%rcx
mov    0x18(%r12),%r8
mov    0x20(%r12),%r9
mov    %r13,%rdi
mov    $0x32,%esi
lea    0xdea(%rip),%rdx
call   1080 <snprintf@plt>
mov    %r13,%rdi
call   1070 <encrypt@plt>
mov    %r13,%rdi
mov    %r15,%rsi
call   1090 <fputs@plt>
mov    0x10(%r12),%rsi
lea    0xdd2(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movl   $0x1,0xc(%rsp)
jmp    12c3 <edit+0xf3>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    %r15,%rdi
call   1050 <fclose@plt>
cmpl   $0x0,0xc(%rsp)
je     13cb <edit+0x1fb>
lea    0xd13(%rip),%rbx
mov    %rbx,%rdi
call   1040 <remove@plt>
lea    0xd13(%rip),%rdi
mov    %rbx,%rsi
call   10f0 <rename@plt>
jmp    13ea <edit+0x21a>
lea    0xd0e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fclose@plt>
mov    0x10(%r12),%rsi
lea    0xd8c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xcc9(%rip),%rdi
call   1040 <remove@plt>
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [159 x i8] c"Error. The %s switch requires at least 3 parameters: username password and type. Please use the following syntax.\0A $./passweb %s <username> <password> <type>\0A\00"
@.str.1 = [13 x i8] c"password.csv\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [9 x i8] c"temp.csv\00"
@.str.4 = [3 x i8] c"w+\00"
@.str.5 = [79 x i8] c"Error. No password.csv present. Need add users first in order to edit entries.\00"
@SEEK_SET = global i32 0
@.str.6 = [23 x i8] c"%[^, ], %[^, ], %[^\0A]\0A\00"
@.str.7 = [12 x i8] c"%s, %s, %s\0A\00"
@.str.8 = [3 x i8] c"%s\00"
@.str.9 = [55 x i8] c"The user %s has been edited with the new information.\0A\00"
@.str.10 = [72 x i8] c"Error. The username %s doesn't exist in the database. Nothing to edit.\0A\00"
define void @edit(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca [50 x i8]
%8 = alloca [50 x i8]
%9 = alloca [50 x i8]
%10 = alloca [50 x i8]
%11 = alloca i32
%12 = alloca [50 x i8]
store i32 %0, i32* %3
store i8** %1, i8*** %4
%13 = load i32, i32* %3
%14 = icmp slt i32 %13, 5
br i1 %14, label %15, label %23
15: ; preds = %2
%16 = load i8**, i8*** %4
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = load i8**, i8*** %4
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str, i64 0, i64 0), i8* %18, i8* %21)
br label %102
23: ; preds = %2
%24 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %24, i32** %5
%25 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %25, i32** %6
%26 = load i32*, i32** %5
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %32
28: ; preds = %23
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0))
%30 = load i32*, i32** %5
%31 = call i32 @fclose(i32* %30)
br label %102
32: ; preds = %23
%33 = load i32*, i32** %5
%34 = load i32, i32* @SEEK_SET
%35 = call i32 @fseek(i32* %33, i32 0, i32 %34)
%36 = load i32*, i32** %6
%37 = load i32, i32* @SEEK_SET
%38 = call i32 @fseek(i32* %36, i32 0, i32 %37)
store i32 0, i32* %11
br label %39
39: ; preds = %85, %32
%40 = getelementptr inbounds [50 x i8], [50 x i8]* %7, i64 0, i64 0
%41 = load i32*, i32** %5
%42 = call i64 @fgets(i8* %40, i32 50, i32* %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %86
44: ; preds = %39
%45 = getelementptr inbounds [50 x i8], [50 x i8]* %7, i64 0, i64 0
%46 = call i32 @decrypt(i8* %45)
%47 = getelementptr inbounds [50 x i8], [50 x i8]* %7, i64 0, i64 0
%48 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%49 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%50 = getelementptr inbounds [50 x i8], [50 x i8]* %10, i64 0, i64 0
%51 = call i32 @sscanf(i8* %47, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %48, i8* %49, i8* %50)
%52 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%53 = load i8**, i8*** %4
%54 = getelementptr inbounds i8*, i8** %53, i64 2
%55 = load i8*, i8** %54
%56 = call i64 @strcmp(i8* %52, i8* %55)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %79
58: ; preds = %44
%59 = getelementptr inbounds [50 x i8], [50 x i8]* %12, i64 0, i64 0
%60 = load i8**, i8*** %4
%61 = getelementptr inbounds i8*, i8** %60, i64 2
%62 = load i8*, i8** %61
%63 = load i8**, i8*** %4
%64 = getelementptr inbounds i8*, i8** %63, i64 3
%65 = load i8*, i8** %64
%66 = load i8**, i8*** %4
%67 = getelementptr inbounds i8*, i8** %66, i64 4
%68 = load i8*, i8** %67
%69 = call i32 @snprintf(i8* %59, i32 50, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %62, i8* %65, i8* %68)
%70 = getelementptr inbounds [50 x i8], [50 x i8]* %12, i64 0, i64 0
%71 = call i32 @encrypt(i8* %70)
%72 = load i32*, i32** %6
%73 = getelementptr inbounds [50 x i8], [50 x i8]* %12, i64 0, i64 0
%74 = call i32 @fprintf(i32* %72, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %73)
%75 = load i8**, i8*** %4
%76 = getelementptr inbounds i8*, i8** %75, i64 2
%77 = load i8*, i8** %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0), i8* %77)
store i32 1, i32* %11
br label %85
79: ; preds = %44
%80 = getelementptr inbounds [50 x i8], [50 x i8]* %7, i64 0, i64 0
%81 = call i32 @encrypt(i8* %80)
%82 = load i32*, i32** %6
%83 = getelementptr inbounds [50 x i8], [50 x i8]* %7, i64 0, i64 0
%84 = call i32 @fprintf(i32* %82, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %83)
br label %85
85: ; preds = %79, %58
br label %39
86: ; preds = %39
%87 = load i32*, i32** %5
%88 = call i32 @fclose(i32* %87)
%89 = load i32*, i32** %6
%90 = call i32 @fclose(i32* %89)
%91 = load i32, i32* %11
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %99
93: ; preds = %86
%94 = load i8**, i8*** %4
%95 = getelementptr inbounds i8*, i8** %94, i64 2
%96 = load i8*, i8** %95
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.10, i64 0, i64 0), i8* %96)
%98 = call i32 @remove(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %102
99: ; preds = %86
%100 = call i32 @remove(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%101 = call i32 @rename(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %102
102: ; preds = %99, %93, %28, %15
ret void
}

LLVM IR (-O2):
@.str = [159 x i8] c"Error. The %s switch requires at least 3 parameters: username password and type. Please use the following syntax.\0A $./passweb %s <username> <password> <type>\0A\00"
@.str.1 = [13 x i8] c"password.csv\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [9 x i8] c"temp.csv\00"
@.str.4 = [3 x i8] c"w+\00"
@.str.5 = [79 x i8] c"Error. No password.csv present. Need add users first in order to edit entries.\00"
@SEEK_SET = global i32 0
@.str.6 = [23 x i8] c"%[^, ], %[^, ], %[^\0A]\0A\00"
@.str.7 = [12 x i8] c"%s, %s, %s\0A\00"
@.str.9 = [55 x i8] c"The user %s has been edited with the new information.\0A\00"
@.str.10 = [72 x i8] c"Error. The username %s doesn't exist in the database. Nothing to edit.\0A\00"
define void @edit(i32 %0, i8** nocapture %1) {
%3 = alloca [50 x i8]
%4 = alloca [50 x i8]
%5 = alloca [50 x i8]
%6 = alloca [50 x i8]
%7 = alloca [50 x i8]
%8 = icmp slt i32 %0, 5
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([159 x i8], [159 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %11)
br label %73
13: ; preds = %2
%14 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%15 = tail call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp eq i32* %14, null
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0))
%19 = tail call i32 @fclose(i32* null)
br label %73
20: ; preds = %13
%21 = load i32, i32* @SEEK_SET
%22 = tail call i32 @fseek(i32* %14, i32 0, i32 %21)
%23 = load i32, i32* @SEEK_SET
%24 = tail call i32 @fseek(i32* %15, i32 0, i32 %23)
%25 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%26 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 0
%27 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%28 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%29 = call i64 @fgets(i8* %25, i32 50, i32* %14)
%30 = icmp eq i64 %29, 0
br i1 %30, label %59, label %31
31: ; preds = %20
%32 = getelementptr inbounds i8*, i8** %1, i64 2
%33 = getelementptr inbounds [50 x i8], [50 x i8]* %7, i64 0, i64 0
%34 = getelementptr inbounds i8*, i8** %1, i64 3
%35 = getelementptr inbounds i8*, i8** %1, i64 4
br label %36
36: ; preds = %31, %55
%37 = phi i32 [ 0, %31 ], [ %56, %55 ]
%38 = call i32 @decrypt(i8* %25)
%39 = call i32 @sscanf(i8* %25, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %26, i8* %27, i8* %28)
%40 = load i8*, i8** %32
%41 = call i64 @strcmp(i8* %26, i8* %40)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %36
%44 = load i8*, i8** %32
%45 = load i8*, i8** %34
%46 = load i8*, i8** %35
%47 = call i32 @snprintf(i8* %33, i32 50, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %44, i8* %45, i8* %46)
%48 = call i32 @encrypt(i8* %33)
%49 = call i32 @fputs(i8* %33, i32* %15)
%50 = load i8*, i8** %32
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0), i8* %50)
br label %55
52: ; preds = %36
%53 = call i32 @encrypt(i8* %25)
%54 = call i32 @fputs(i8* %25, i32* %15)
br label %55
55: ; preds = %52, %43
%56 = phi i32 [ 1, %43 ], [ %37, %52 ]
%57 = call i64 @fgets(i8* %25, i32 50, i32* %14)
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %36
59: ; preds = %55, %20
%60 = phi i32 [ 0, %20 ], [ %56, %55 ]
%61 = call i32 @fclose(i32* %14)
%62 = call i32 @fclose(i32* %15)
%63 = icmp eq i32 %60, 0
br i1 %63, label %64, label %69
64: ; preds = %59
%65 = getelementptr inbounds i8*, i8** %1, i64 2
%66 = load i8*, i8** %65
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.10, i64 0, i64 0), i8* %66)
%68 = call i32 @remove(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %72
69: ; preds = %59
%70 = call i32 @remove(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%71 = call i32 @rename(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %72
72: ; preds = %69, %64
br label %73
73: ; preds = %17, %72, %9
ret void
}