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

/* Variables and functions */
char EOF;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ mpz_clear(int /*<<< orphan*/);
int /*<<< orphan*/ mpz_init2(int /*<<< orphan*/, int);
int /*<<< orphan*/ mpz_inp_str(int /*<<< orphan*/, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ mpz_mul(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpz_out_str(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
int /*<<< orphan*/ mpz_powm(int /*<<< orphan*/, int /*<<< orphan*/,
                            int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpz_set_str(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ printf(char *);
int decipherRSA() {
  printf("         File Decryption\n");
  printf("--------------------------------------\n");
  FILE *privateFile = fopen("out/prive.rsa", "r");
  FILE *cipheredFile = fopen("out/cipherFile.txt", "r");
  FILE *decipheredFile = fopen("out/decipheredFile.txt", "w");
  if (privateFile == NULL || cipheredFile == NULL || decipheredFile == NULL) {
    printf("Error while opening one of the 3 files required in decipherRSA\n");
    return -1;
  }
  mpz_t n;
  mpz_t p;
  mpz_t q;
  mpz_t d;
  mpz_t c;
  mpz_t m;
  int i = 0;
  char buffer[500];
  char caract;
  mpz_init2(n, 2048);
  mpz_init2(p, 2048);
  mpz_init2(q, 2048);
  mpz_init2(d, 2048);
  mpz_init2(c, 2048);
  mpz_init2(m, 2048);
  mpz_inp_str(p, privateFile, 16);
  mpz_inp_str(q, privateFile, 16);
  mpz_inp_str(d, privateFile, 16);
  printf("-> (p,q,d) has been imported from prive.rsa\n\n");
  mpz_mul(n, p, q);
  do {
    caract = fgetc(cipheredFile);
    if (caract != '\n') {
      buffer[i] = caract;
      i++;
    } else {
      buffer[i] = '\0';
      mpz_set_str(c, buffer, 62);
      mpz_powm(m, c, d, n);
      mpz_out_str(decipheredFile, 62, m);
      i = 0;
    }
  } while (caract != EOF);
  printf("-> End of decryption. Message has been decrypted in "
         "decipheredFile.txt\n");
  printf("--------------------------------------\n");
  mpz_clear(p);
  mpz_clear(q);
  mpz_clear(d);
  mpz_clear(c);
  mpz_clear(m);
  fclose(privateFile);
  fclose(cipheredFile);
  fclose(decipheredFile);
  return 0;
}


x86 assembly (clang, -O0):
<decipherRSA>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
lea    0xe3e(%rip),%rdi
call   1050 <printf@plt>
lea    0xe4c(%rip),%rdi
call   1050 <printf@plt>
lea    0xe68(%rip),%rdi
lea    0xe6f(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe61(%rip),%rdi
lea    0xe58(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xe5d(%rip),%rdi
lea    0xe6d(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1239 <decipherRSA+0x89>
cmpq   $0x0,-0x18(%rbp)
je     1239 <decipherRSA+0x89>
cmpq   $0x0,-0x20(%rbp)
jne    1251 <decipherRSA+0xa1>
lea    0xe3e(%rip),%rdi
call   1050 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13fa <decipherRSA+0x24a>
movl   $0x0,-0x3c(%rbp)
mov    -0x24(%rbp),%edi
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    -0x28(%rbp),%edi
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    -0x2c(%rbp),%edi
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    -0x30(%rbp),%edi
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    -0x34(%rbp),%edi
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    -0x38(%rbp),%edi
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    -0x28(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x10,%edx
call   10a0 <mpz_inp_str@plt>
mov    -0x2c(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x10,%edx
call   10a0 <mpz_inp_str@plt>
mov    -0x30(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x10,%edx
call   10a0 <mpz_inp_str@plt>
lea    0xdde(%rip),%rdi
call   1050 <printf@plt>
mov    -0x24(%rbp),%edi
mov    -0x28(%rbp),%esi
mov    -0x2c(%rbp),%edx
call   1070 <mpz_mul@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x231(%rbp)
movsbl -0x231(%rbp),%eax
cmp    $0xa,%eax
je     1331 <decipherRSA+0x181>
mov    -0x231(%rbp),%cl
movslq -0x3c(%rbp),%rax
mov    %cl,-0x230(%rbp,%rax,1)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    137a <decipherRSA+0x1ca>
movslq -0x3c(%rbp),%rax
movb   $0x0,-0x230(%rbp,%rax,1)
mov    -0x34(%rbp),%edi
lea    -0x230(%rbp),%rsi
mov    $0x3e,%edx
call   1090 <mpz_set_str@plt>
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    -0x30(%rbp),%edx
mov    -0x24(%rbp),%ecx
call   1030 <mpz_powm@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%edx
mov    $0x3e,%esi
call   1080 <mpz_out_str@plt>
movl   $0x0,-0x3c(%rbp)
jmp    137f <decipherRSA+0x1cf>
movsbl -0x231(%rbp),%eax
mov    0x2c5b(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    12f3 <decipherRSA+0x143>
lea    0xd4d(%rip),%rdi
call   1050 <printf@plt>
lea    0xc6f(%rip),%rdi
call   1050 <printf@plt>
mov    -0x28(%rbp),%edi
call   10b0 <mpz_clear@plt>
mov    -0x2c(%rbp),%edi
call   10b0 <mpz_clear@plt>
mov    -0x30(%rbp),%edi
call   10b0 <mpz_clear@plt>
mov    -0x34(%rbp),%edi
call   10b0 <mpz_clear@plt>
mov    -0x38(%rbp),%edi
call   10b0 <mpz_clear@plt>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decipherRSA>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
lea    0xe74(%rip),%rdi
call   1040 <puts@plt>
lea    0xef5(%rip),%rdi
call   1040 <puts@plt>
lea    0xe20(%rip),%rdi
lea    0xe27(%rip),%rbx
mov    %rbx,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbp
lea    0xe17(%rip),%rdi
mov    %rbx,%rsi
call   10c0 <fopen@plt>
mov    %rax,%r13
lea    0xe18(%rip),%rdi
lea    0xe28(%rip),%rsi
call   10c0 <fopen@plt>
test   %rbp,%rbp
je     135b <decipherRSA+0x1ab>
test   %r13,%r13
je     135b <decipherRSA+0x1ab>
mov    %rax,%r15
test   %rax,%rax
je     135b <decipherRSA+0x1ab>
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    $0x800,%esi
call   10d0 <mpz_init2@plt>
mov    %rbp,%rsi
mov    $0x10,%edx
call   10a0 <mpz_inp_str@plt>
mov    %rbp,%rsi
mov    $0x10,%edx
call   10a0 <mpz_inp_str@plt>
mov    %rbp,0x8(%rsp)
mov    %rbp,%rsi
mov    $0x10,%edx
call   10a0 <mpz_inp_str@plt>
lea    0xdb1(%rip),%rdi
call   1040 <puts@plt>
call   1070 <mpz_mul@plt>
xor    %r14d,%r14d
lea    0x10(%rsp),%r12
mov    0x2d2b(%rip),%rbp
jmp    12ed <decipherRSA+0x13d>
nop
movb   $0x0,0x10(%rsp,%r14,1)
mov    %r12,%rsi
mov    $0x3e,%edx
call   1090 <mpz_set_str@plt>
call   1030 <mpz_powm@plt>
mov    %r15,%rdi
mov    $0x3e,%esi
call   1080 <mpz_out_str@plt>
xor    %r14d,%r14d
cmp    0x0(%rbp),%bl
je     130c <decipherRSA+0x15c>
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
movslq %r14d,%r14
cmp    $0xa,%al
je     12c0 <decipherRSA+0x110>
mov    %bl,0x10(%rsp,%r14,1)
add    $0x1,%r14d
cmp    0x0(%rbp),%bl
jne    12ed <decipherRSA+0x13d>
lea    0xd6f(%rip),%rdi
call   1040 <puts@plt>
lea    0xdaa(%rip),%rdi
call   1040 <puts@plt>
call   10b0 <mpz_clear@plt>
call   10b0 <mpz_clear@plt>
call   10b0 <mpz_clear@plt>
call   10b0 <mpz_clear@plt>
call   10b0 <mpz_clear@plt>
mov    0x8(%rsp),%rdi
call   1050 <fclose@plt>
mov    %r13,%rdi
call   1050 <fclose@plt>
mov    %r15,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
jmp    136c <decipherRSA+0x1bc>
lea    0xd8e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%eax
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [26 x i8] c" File Decryption\0A\00"
@.str.1 = [40 x i8] c"--------------------------------------\0A\00"
@.str.2 = [14 x i8] c"out/prive.rsa\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [19 x i8] c"out/cipherFile.txt\00"
@.str.5 = [23 x i8] c"out/decipheredFile.txt\00"
@.str.6 = [2 x i8] c"w\00"
@.str.7 = [64 x i8] c"Error while opening one of the 3 files required in decipherRSA\0A\00"
@.str.8 = [46 x i8] c"-> (p,q,d) has been imported from prive.rsa\0A\0A\00"
@EOF = global i8 0
@.str.9 = [72 x i8] c"-> End of decryption. Message has been decrypted in decipheredFile.txt\0A\00"
define i32 @decipherRSA() {
%1 = alloca i32
%2 = alloca i32*
%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 [500 x i8]
%13 = alloca i8
%14 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 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* %16, i32** %2
%17 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %17, i32** %3
%18 = call i32* @fopen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %18, i32** %4
%19 = load i32*, i32** %2
%20 = icmp eq i32* %19, null
br i1 %20, label %27, label %21
21: ; preds = %0
%22 = load i32*, i32** %3
%23 = icmp eq i32* %22, null
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32*, i32** %4
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %29
27: ; preds = %24, %21, %0
%28 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
store i32 -1, i32* %1
br label %110
29: ; preds = %24
store i32 0, i32* %11
%30 = load i32, i32* %5
%31 = call i32 @mpz_init2(i32 %30, i32 2048)
%32 = load i32, i32* %6
%33 = call i32 @mpz_init2(i32 %32, i32 2048)
%34 = load i32, i32* %7
%35 = call i32 @mpz_init2(i32 %34, i32 2048)
%36 = load i32, i32* %8
%37 = call i32 @mpz_init2(i32 %36, i32 2048)
%38 = load i32, i32* %9
%39 = call i32 @mpz_init2(i32 %38, i32 2048)
%40 = load i32, i32* %10
%41 = call i32 @mpz_init2(i32 %40, i32 2048)
%42 = load i32, i32* %6
%43 = load i32*, i32** %2
%44 = call i32 @mpz_inp_str(i32 %42, i32* %43, i32 16)
%45 = load i32, i32* %7
%46 = load i32*, i32** %2
%47 = call i32 @mpz_inp_str(i32 %45, i32* %46, i32 16)
%48 = load i32, i32* %8
%49 = load i32*, i32** %2
%50 = call i32 @mpz_inp_str(i32 %48, i32* %49, i32 16)
%51 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%52 = load i32, i32* %5
%53 = load i32, i32* %6
%54 = load i32, i32* %7
%55 = call i32 @mpz_mul(i32 %52, i32 %53, i32 %54)
br label %56
56: ; preds = %85, %29
%57 = load i32*, i32** %3
%58 = call signext i8 @fgetc(i32* %57)
store i8 %58, i8* %13
%59 = load i8, i8* %13
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 10
br i1 %61, label %62, label %69
62: ; preds = %56
%63 = load i8, i8* %13
%64 = load i32, i32* %11
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [500 x i8], [500 x i8]* %12, i64 0, i64 %65
store i8 %63, i8* %66
%67 = load i32, i32* %11
%68 = add nsw i32 %67, 1
store i32 %68, i32* %11
br label %84
69: ; preds = %56
%70 = load i32, i32* %11
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [500 x i8], [500 x i8]* %12, i64 0, i64 %71
store i8 0, i8* %72
%73 = load i32, i32* %9
%74 = getelementptr inbounds [500 x i8], [500 x i8]* %12, i64 0, i64 0
%75 = call i32 @mpz_set_str(i32 %73, i8* %74, i32 62)
%76 = load i32, i32* %10
%77 = load i32, i32* %9
%78 = load i32, i32* %8
%79 = load i32, i32* %5
%80 = call i32 @mpz_powm(i32 %76, i32 %77, i32 %78, i32 %79)
%81 = load i32*, i32** %4
%82 = load i32, i32* %10
%83 = call i32 @mpz_out_str(i32* %81, i32 62, i32 %82)
store i32 0, i32* %11
br label %84
84: ; preds = %69, %62
br label %85
85: ; preds = %84
%86 = load i8, i8* %13
%87 = sext i8 %86 to i32
%88 = load i8, i8* @EOF
%89 = sext i8 %88 to i32
%90 = icmp ne i32 %87, %89
br i1 %90, label %56, label %91
91: ; preds = %85
%92 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.9, i64 0, i64 0))
%93 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%94 = load i32, i32* %6
%95 = call i32 @mpz_clear(i32 %94)
%96 = load i32, i32* %7
%97 = call i32 @mpz_clear(i32 %96)
%98 = load i32, i32* %8
%99 = call i32 @mpz_clear(i32 %98)
%100 = load i32, i32* %9
%101 = call i32 @mpz_clear(i32 %100)
%102 = load i32, i32* %10
%103 = call i32 @mpz_clear(i32 %102)
%104 = load i32*, i32** %2
%105 = call i32 @fclose(i32* %104)
%106 = load i32*, i32** %3
%107 = call i32 @fclose(i32* %106)
%108 = load i32*, i32** %4
%109 = call i32 @fclose(i32* %108)
store i32 0, i32* %1
br label %110
110: ; preds = %91, %27
%111 = load i32, i32* %1
ret i32 %111
}

LLVM IR (-O2):
@.str.2 = [14 x i8] c"out/prive.rsa\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [19 x i8] c"out/cipherFile.txt\00"
@.str.5 = [23 x i8] c"out/decipheredFile.txt\00"
@.str.6 = [2 x i8] c"w\00"
@EOF = global i8 0
@str = [25 x i8] c" File Decryption\00"
@str.11 = [45 x i8] c"-> (p,q,d) has been imported from prive.rsa\0A\00"
@str.12 = [71 x i8] c"-> End of decryption. Message has been decrypted in decipheredFile.txt\00"
@str.13 = [39 x i8] c"--------------------------------------\00"
@str.14 = [63 x i8] c"Error while opening one of the 3 files required in decipherRSA\00"
define i32 @decipherRSA() {
%1 = alloca [500 x i8]
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32* @fopen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%7 = icmp eq i32* %4, null
%8 = icmp eq i32* %5, null
%9 = or i1 %7, %8
%10 = icmp eq i32* %6, null
%11 = or i1 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.14, i64 0, i64 0))
br label %54
14: ; preds = %0
%15 = getelementptr inbounds [500 x i8], [500 x i8]* %1, i64 0, i64 0
%16 = tail call i32 @mpz_init2(i32 undef, i32 2048)
%17 = tail call i32 @mpz_init2(i32 undef, i32 2048)
%18 = tail call i32 @mpz_init2(i32 undef, i32 2048)
%19 = tail call i32 @mpz_init2(i32 undef, i32 2048)
%20 = tail call i32 @mpz_init2(i32 undef, i32 2048)
%21 = tail call i32 @mpz_init2(i32 undef, i32 2048)
%22 = tail call i32 @mpz_inp_str(i32 undef, i32* %4, i32 16)
%23 = tail call i32 @mpz_inp_str(i32 undef, i32* %4, i32 16)
%24 = tail call i32 @mpz_inp_str(i32 undef, i32* %4, i32 16)
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.11, i64 0, i64 0))
%26 = tail call i32 @mpz_mul(i32 undef, i32 undef, i32 undef)
br label %27
27: ; preds = %39, %14
%28 = phi i32 [ 0, %14 ], [ %40, %39 ]
%29 = call signext i8 @fgetc(i32* %5)
%30 = icmp eq i8 %29, 10
%31 = sext i32 %28 to i64
%32 = getelementptr inbounds [500 x i8], [500 x i8]* %1, i64 0, i64 %31
br i1 %30, label %35, label %33
33: ; preds = %27
store i8 %29, i8* %32
%34 = add nsw i32 %28, 1
br label %39
35: ; preds = %27
store i8 0, i8* %32
%36 = call i32 @mpz_set_str(i32 undef, i8* %15, i32 62)
%37 = call i32 @mpz_powm(i32 undef, i32 undef, i32 undef, i32 undef)
%38 = call i32 @mpz_out_str(i32* %6, i32 62, i32 undef)
br label %39
39: ; preds = %33, %35
%40 = phi i32 [ %34, %33 ], [ 0, %35 ]
%41 = load i8, i8* @EOF
%42 = icmp eq i8 %29, %41
br i1 %42, label %43, label %27
43: ; preds = %39
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.12, i64 0, i64 0))
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.13, i64 0, i64 0))
%46 = call i32 @mpz_clear(i32 undef)
%47 = call i32 @mpz_clear(i32 undef)
%48 = call i32 @mpz_clear(i32 undef)
%49 = call i32 @mpz_clear(i32 undef)
%50 = call i32 @mpz_clear(i32 undef)
%51 = call i32 @fclose(i32* %4)
%52 = call i32 @fclose(i32* %5)
%53 = call i32 @fclose(i32* %6)
br label %54
54: ; preds = %43, %12
%55 = phi i32 [ -1, %12 ], [ 0, %43 ]
ret i32 %55
}