#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 atoi(char *);
char *dencriptarchave(char *, int *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char);
char getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ system(char *);
int main(int argc, char *argv[]) {
  if (argc < 4) {
    printf("quantidades de arquivos insulficiente\n");
    system("pause");
    return -1;
  }
  FILE *cripto;
  FILE *textoclaro;
  FILE *chave;
  cripto = fopen("temp.txt", "w");
  textoclaro = fopen(argv[1], "r");
  chave = fopen(argv[2], "r");
  int i = 0;
  int textochave[8];
  char letrasclaro[8];
  char letra = '1';
  letra = getc(chave);
  while (letra != EOF) {
    textochave[i] = atoi(&letra);
    letra = getc(chave);
    i++;
  }
  letra = getc(textoclaro);
  while (letra != EOF) {
    for (i = 0; i < 8; i++) {
      letrasclaro[i] = letra;
      letra = getc(textoclaro);
    }
    printf("\n%s", letrasclaro);
    printf("\n%s\n", dencriptarchave(letrasclaro, textochave));
    for (i = 0; i < 8; i++) {
      fprintf(cripto, "%c", letrasclaro[i]);
    }
  }
  fclose(cripto);
  fclose(textoclaro);
  fclose(chave);
  printf("aqui\n");
  char comando[800] = "";
  strcat(comando, "\"decifradorsubstituicao .exe\" temp.txt ");
  strcat(comando, argv[3]);
  printf("%s", comando);
  system(comando);
  system("pause");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x380,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    11e9 <main+0x49>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe4f(%rip),%rdi
call   1050 <system@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13e6 <main+0x246>
lea    0xe3d(%rip),%rdi
lea    0xe3f(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe29(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe11(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movb   $0x31,-0x59(%rbp)
mov    -0x28(%rbp),%rdi
call   10c0 <getc@plt>
mov    %al,-0x59(%rbp)
movsbl -0x59(%rbp),%eax
mov    0x2d96(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     128a <main+0xea>
lea    -0x59(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,%ecx
movslq -0x2c(%rbp),%rax
mov    %ecx,-0x50(%rbp,%rax,4)
mov    -0x28(%rbp),%rdi
call   10c0 <getc@plt>
mov    %al,-0x59(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1247 <main+0xa7>
mov    -0x20(%rbp),%rdi
call   10c0 <getc@plt>
mov    %al,-0x59(%rbp)
movsbl -0x59(%rbp),%eax
mov    0x2d47(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     134f <main+0x1af>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x8,-0x2c(%rbp)
jge    12e2 <main+0x142>
mov    -0x59(%rbp),%cl
movslq -0x2c(%rbp),%rax
mov    %cl,-0x58(%rbp,%rax,1)
mov    -0x20(%rbp),%rdi
call   10c0 <getc@plt>
mov    %al,-0x59(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12b3 <main+0x113>
lea    -0x58(%rbp),%rsi
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x58(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <dencriptarchave@plt>
mov    %rax,%rsi
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x8,-0x2c(%rbp)
jge    134a <main+0x1aa>
mov    -0x18(%rbp),%rdi
movslq -0x2c(%rbp),%rax
lea    0xd11(%rip),%rsi
movsbl -0x58(%rbp,%rax,1),%edx
call   1080 <fprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1319 <main+0x179>
jmp    1296 <main+0xf6>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
lea    0xcd5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x380(%rbp),%rdi
xor    %esi,%esi
mov    $0x320,%edx
call   1070 <memset@plt>
lea    -0x380(%rbp),%rdi
lea    0xcb3(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x380(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
call   10b0 <strcat@plt>
lea    -0x380(%rbp),%rsi
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x380(%rbp),%rdi
call   1050 <system@plt>
lea    0xc4d(%rip),%rdi
call   1050 <system@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x380,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x368,%rsp
cmp    $0x3,%edi
jg     11e8 <main+0x38>
lea    0xe7c(%rip),%rdi
call   1030 <puts@plt>
lea    0xe27(%rip),%rdi
call   1060 <system@plt>
mov    $0xffffffff,%ebx
jmp    1414 <main+0x264>
mov    %rsi,%rbp
lea    0xe14(%rip),%rdi
lea    0xe16(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r15
mov    0x8(%rbp),%rdi
lea    0xe05(%rip),%r14
mov    %r14,%rsi
call   10a0 <fopen@plt>
mov    %rax,%rbx
mov    %rbp,0x18(%rsp)
mov    0x10(%rbp),%rdi
mov    %r14,%rsi
call   10a0 <fopen@plt>
mov    %rax,%r12
mov    %rax,%rdi
call   10d0 <getc@plt>
mov    %al,0xf(%rsp)
mov    0x2daa(%rip),%r13
cmp    0x0(%r13),%al
je     1271 <main+0xc1>
lea    0x20(%rsp),%rbp
lea    0xf(%rsp),%r14
xchg   %ax,%ax
mov    %r14,%rdi
call   10b0 <atoi@plt>
mov    %eax,0x0(%rbp)
mov    %r12,%rdi
call   10d0 <getc@plt>
mov    %al,0xf(%rsp)
add    $0x4,%rbp
cmp    0x0(%r13),%al
jne    1250 <main+0xa0>
mov    %rbx,%rdi
call   10d0 <getc@plt>
cmp    0x0(%r13),%al
je     1395 <main+0x1e5>
mov    %eax,%r14d
lea    0x10(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
mov    %r14b,0x10(%rsp)
mov    %rbx,%rdi
call   10d0 <getc@plt>
mov    %al,0x11(%rsp)
mov    %rbx,%rdi
call   10d0 <getc@plt>
mov    %al,0x12(%rsp)
mov    %rbx,%rdi
call   10d0 <getc@plt>
mov    %al,0x13(%rsp)
mov    %rbx,%rdi
call   10d0 <getc@plt>
mov    %al,0x14(%rsp)
mov    %rbx,%rdi
call   10d0 <getc@plt>
mov    %al,0x15(%rsp)
mov    %rbx,%rdi
call   10d0 <getc@plt>
mov    %al,0x16(%rsp)
mov    %rbx,%rdi
call   10d0 <getc@plt>
mov    %al,0x17(%rsp)
mov    %rbx,%rdi
call   10d0 <getc@plt>
mov    %eax,%r14d
lea    0xd18(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbp,%rdi
lea    0x20(%rsp),%rsi
call   1040 <dencriptarchave@plt>
lea    0xcfe(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x10(%rsp),%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
movsbl 0x11(%rsp),%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
movsbl 0x12(%rsp),%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
movsbl 0x13(%rsp),%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
movsbl 0x14(%rsp),%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
movsbl 0x15(%rsp),%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
movsbl 0x16(%rsp),%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
movsbl 0x17(%rsp),%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
cmp    0x0(%r13),%r14b
jne    1290 <main+0xe0>
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    %r12,%rdi
call   1050 <fclose@plt>
lea    0xc90(%rip),%rdi
call   1030 <puts@plt>
lea    0x40(%rsp),%rbp
xor    %ebx,%ebx
mov    $0x320,%edx
mov    %rbp,%rdi
xor    %esi,%esi
call   1080 <memset@plt>
lea    0xc46(%rip),%rsi
mov    %rbp,%rdi
call   10c0 <strcat@plt>
mov    0x18(%rsp),%rax
mov    0x18(%rax),%rsi
mov    %rbp,%rdi
call   10c0 <strcat@plt>
lea    0xc1e(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbp,%rdi
call   1060 <system@plt>
lea    0xbf1(%rip),%rdi
call   1060 <system@plt>
mov    %ebx,%eax
add    $0x368,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [39 x i8] c"quantidades de arquivos insulficiente\0A\00"
@.str.1 = [6 x i8] c"pause\00"
@.str.2 = [9 x i8] c"temp.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [2 x i8] c"r\00"
@EOF = global i8 0
@.str.5 = [4 x i8] c"\0A%s\00"
@.str.6 = [5 x i8] c"\0A%s\0A\00"
@.str.7 = [3 x i8] c"%c\00"
@.str.8 = [6 x i8] c"aqui\0A\00"
@.str.9 = [40 x i8] c"\22decifradorsubstituicao .exe\22 temp.txt \00"
@.str.10 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca [8 x i32]
%11 = alloca [8 x i8]
%12 = alloca i8
%13 = alloca [800 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 4
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
br label %111
19: ; preds = %2
%20 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %20, i32** %6
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %24, i32** %7
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = load i8*, i8** %26
%28 = call i32* @fopen(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %28, i32** %8
store i32 0, i32* %9
store i8 49, i8* %12
%29 = load i32*, i32** %8
%30 = call signext i8 @getc(i32* %29)
store i8 %30, i8* %12
br label %31
31: ; preds = %37, %19
%32 = load i8, i8* %12
%33 = sext i8 %32 to i32
%34 = load i8, i8* @EOF
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %33, %35
br i1 %36, label %37, label %46
37: ; preds = %31
%38 = call i32 @atoi(i8* %12)
%39 = load i32, i32* %9
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [8 x i32], [8 x i32]* %10, i64 0, i64 %40
store i32 %38, i32* %41
%42 = load i32*, i32** %8
%43 = call signext i8 @getc(i32* %42)
store i8 %43, i8* %12
%44 = load i32, i32* %9
%45 = add nsw i32 %44, 1
store i32 %45, i32* %9
br label %31
46: ; preds = %31
%47 = load i32*, i32** %7
%48 = call signext i8 @getc(i32* %47)
store i8 %48, i8* %12
br label %49
49: ; preds = %89, %46
%50 = load i8, i8* %12
%51 = sext i8 %50 to i32
%52 = load i8, i8* @EOF
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %51, %53
br i1 %54, label %55, label %90
55: ; preds = %49
store i32 0, i32* %9
br label %56
56: ; preds = %66, %55
%57 = load i32, i32* %9
%58 = icmp slt i32 %57, 8
br i1 %58, label %59, label %69
59: ; preds = %56
%60 = load i8, i8* %12
%61 = load i32, i32* %9
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [8 x i8], [8 x i8]* %11, i64 0, i64 %62
store i8 %60, i8* %63
%64 = load i32*, i32** %7
%65 = call signext i8 @getc(i32* %64)
store i8 %65, i8* %12
br label %66
66: ; preds = %59
%67 = load i32, i32* %9
%68 = add nsw i32 %67, 1
store i32 %68, i32* %9
br label %56
69: ; preds = %56
%70 = getelementptr inbounds [8 x i8], [8 x i8]* %11, i64 0, i64 0
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %70)
%72 = getelementptr inbounds [8 x i8], [8 x i8]* %11, i64 0, i64 0
%73 = getelementptr inbounds [8 x i32], [8 x i32]* %10, i64 0, i64 0
%74 = call i8* @dencriptarchave(i8* %72, i32* %73)
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %74)
store i32 0, i32* %9
br label %76
76: ; preds = %86, %69
%77 = load i32, i32* %9
%78 = icmp slt i32 %77, 8
br i1 %78, label %79, label %89
79: ; preds = %76
%80 = load i32*, i32** %6
%81 = load i32, i32* %9
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [8 x i8], [8 x i8]* %11, i64 0, i64 %82
%84 = load i8, i8* %83
%85 = call i32 @fprintf(i32* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8 signext %84)
br label %86
86: ; preds = %79
%87 = load i32, i32* %9
%88 = add nsw i32 %87, 1
store i32 %88, i32* %9
br label %76
89: ; preds = %76
br label %49
90: ; preds = %49
%91 = load i32*, i32** %6
%92 = call i32 @fclose(i32* %91)
%93 = load i32*, i32** %7
%94 = call i32 @fclose(i32* %93)
%95 = load i32*, i32** %8
%96 = call i32 @fclose(i32* %95)
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%98 = bitcast [800 x i8]* %13 to i8*
%99 = getelementptr inbounds [800 x i8], [800 x i8]* %13, i64 0, i64 0
%100 = call i32 @strcat(i8* %99, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0))
%101 = getelementptr inbounds [800 x i8], [800 x i8]* %13, i64 0, i64 0
%102 = load i8**, i8*** %5
%103 = getelementptr inbounds i8*, i8** %102, i64 3
%104 = load i8*, i8** %103
%105 = call i32 @strcat(i8* %101, i8* %104)
%106 = getelementptr inbounds [800 x i8], [800 x i8]* %13, i64 0, i64 0
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %106)
%108 = getelementptr inbounds [800 x i8], [800 x i8]* %13, i64 0, i64 0
%109 = call i32 @system(i8* %108)
%110 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %111
111: ; preds = %90, %16
%112 = load i32, i32* %3
ret i32 %112
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"pause\00"
@.str.2 = [9 x i8] c"temp.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [2 x i8] c"r\00"
@EOF = global i8 0
@.str.5 = [4 x i8] c"\0A%s\00"
@.str.6 = [5 x i8] c"\0A%s\0A\00"
@.str.9 = [40 x i8] c"\22decifradorsubstituicao .exe\22 temp.txt \00"
@.str.10 = [3 x i8] c"%s\00"
@str = [5 x i8] c"aqui\00"
@str.11 = [38 x i8] c"quantidades de arquivos insulficiente\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [8 x i32]
%4 = alloca [8 x i8]
%5 = alloca i8
%6 = alloca [800 x i8]
%7 = icmp slt i32 %0, 4
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.11, i64 0, i64 0))
%10 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %97
11: ; preds = %2
%12 = tail call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
%18 = tail call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%19 = bitcast [8 x i32]* %3 to i8*
%20 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%21 = tail call signext i8 @getc(i32* %18)
store i8 %21, i8* %5
%22 = load i8, i8* @EOF
%23 = icmp eq i8 %21, %22
br i1 %23, label %32, label %24
24: ; preds = %11, %24
%25 = phi i64 [ %29, %24 ], [ 0, %11 ]
%26 = call i32 @atoi(i8* %5)
%27 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 %25
store i32 %26, i32* %27
%28 = tail call signext i8 @getc(i32* %18)
store i8 %28, i8* %5
%29 = add nuw i64 %25, 1
%30 = load i8, i8* @EOF
%31 = icmp eq i8 %28, %30
br i1 %31, label %32, label %24
32: ; preds = %24, %11
%33 = tail call signext i8 @getc(i32* %15)
%34 = load i8, i8* @EOF
%35 = icmp eq i8 %33, %34
br i1 %35, label %84, label %36
36: ; preds = %32
%37 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%38 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 1
%39 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 2
%40 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 3
%41 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 4
%42 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 5
%43 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 6
%44 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 7
br label %45
45: ; preds = %36, %45
%46 = phi i8 [ %33, %36 ], [ %54, %45 ]
store i8 %46, i8* %20
%47 = call signext i8 @getc(i32* %15)
store i8 %47, i8* %38
%48 = call signext i8 @getc(i32* %15)
store i8 %48, i8* %39
%49 = call signext i8 @getc(i32* %15)
store i8 %49, i8* %40
%50 = call signext i8 @getc(i32* %15)
store i8 %50, i8* %41
%51 = call signext i8 @getc(i32* %15)
store i8 %51, i8* %42
%52 = call signext i8 @getc(i32* %15)
store i8 %52, i8* %43
%53 = call signext i8 @getc(i32* %15)
store i8 %53, i8* %44
%54 = call signext i8 @getc(i32* %15)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %20)
%56 = call i8* @dencriptarchave(i8* %20, i32* %37)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %56)
%58 = load i8, i8* %20
%59 = sext i8 %58 to i32
%60 = call i32 @fputc(i32 %59, i32* %12)
%61 = load i8, i8* %38
%62 = sext i8 %61 to i32
%63 = call i32 @fputc(i32 %62, i32* %12)
%64 = load i8, i8* %39
%65 = sext i8 %64 to i32
%66 = call i32 @fputc(i32 %65, i32* %12)
%67 = load i8, i8* %40
%68 = sext i8 %67 to i32
%69 = call i32 @fputc(i32 %68, i32* %12)
%70 = load i8, i8* %41
%71 = sext i8 %70 to i32
%72 = call i32 @fputc(i32 %71, i32* %12)
%73 = load i8, i8* %42
%74 = sext i8 %73 to i32
%75 = call i32 @fputc(i32 %74, i32* %12)
%76 = load i8, i8* %43
%77 = sext i8 %76 to i32
%78 = call i32 @fputc(i32 %77, i32* %12)
%79 = load i8, i8* %44
%80 = sext i8 %79 to i32
%81 = call i32 @fputc(i32 %80, i32* %12)
%82 = load i8, i8* @EOF
%83 = icmp eq i8 %54, %82
br i1 %83, label %84, label %45
84: ; preds = %45, %32
%85 = call i32 @fclose(i32* %12)
%86 = call i32 @fclose(i32* %15)
%87 = call i32 @fclose(i32* %18)
%88 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%89 = getelementptr inbounds [800 x i8], [800 x i8]* %6, i64 0, i64 0
%90 = call i32 @strcat(i8* %89, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0))
%91 = getelementptr inbounds i8*, i8** %1, i64 3
%92 = load i8*, i8** %91
%93 = call i32 @strcat(i8* %89, i8* %92)
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %89)
%95 = call i32 @system(i8* %89)
%96 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %97
97: ; preds = %84, %8
%98 = phi i32 [ -1, %8 ], [ 0, %84 ]
ret i32 %98
}