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

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ eipa_free(void **, int, char *);
char *eipa_malloc(size_t, int, char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int getline(char **, size_t *, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, int);
int remove(char const *);
int rename(char const *, char const *);
void students(const char *fname, char *stringToWrite, int lineToWrite) {
  int actualLine = 1;
  const char *finalFilename = "temp_cuda-sak";
  int done = 0;
  FILE *fp;
  fp = fopen(fname, "r");
  if (fp == NULL) {
    perror("Error while opening the file.\n");
    exit(EXIT_FAILURE);
  }
  FILE *fp2;
  fp2 = fopen(finalFilename, "w");
  if (fp2 == NULL) {
    perror("Error while creating the file.\n");
    exit(EXIT_FAILURE);
  }
  char *bufferPtr;
  char **linePtr;
  size_t bufferSize = 4096 * sizeof(char);
  size_t *linePtrSize = &bufferSize;
  bufferPtr =
      eipa_malloc((bufferSize), 682,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/WikiDreams/CUDA-SAK/refs/"
                  "heads/master/Cuda-SAK/functions.c");
  linePtr = &bufferPtr;
  while (!done) {
    if (actualLine == lineToWrite) {
      fprintf(fp2, "%s", stringToWrite);
    } else {
      ssize_t result = getline(linePtr, linePtrSize, fp);
      if (result == -1) {
        if (feof(fp)) {
          fclose(fp);
          fclose(fp2);
          if ((actualLine - 2) < lineToWrite) {
            printf("The file doesn't have line number %d.\n", lineToWrite);
          }
          int status = remove(fname);
          if (status != 0) {
            perror("Error while deleting the file.\n");
            exit(EXIT_FAILURE);
          }
          status = rename(finalFilename, fname);
          if (status != 0) {
            perror("Error while renaming the temp file.\n");
            exit(EXIT_FAILURE);
          }
          eipa_free((void **)(&(stringToWrite)), 718,
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/WikiDreams/CUDA-SAK/"
                    "refs/heads/master/Cuda-SAK/functions.c");
          eipa_free((void **)(&(bufferPtr)), 719,
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/WikiDreams/CUDA-SAK/"
                    "refs/heads/master/Cuda-SAK/functions.c");
          return;
        } else {
          perror("Error while opening the file.\n");
          exit(EXIT_FAILURE);
        }
      }
      fprintf(fp2, "%s", bufferPtr);
      eipa_free((void **)(&(bufferPtr)), 730,
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/WikiDreams/CUDA-SAK/refs/"
                "heads/master/Cuda-SAK/functions.c");
    }
    actualLine++;
  }
  eipa_free((void **)(&(stringToWrite)), 736,
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/WikiDreams/CUDA-SAK/refs/heads/master/"
            "Cuda-SAK/functions.c");
}


x86 assembly (clang, -O0):
<students>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
lea    0xe1f(%rip),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe17(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1225 <students+0x65>
lea    0xdfe(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2dc2(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x20(%rbp),%rdi
lea    0xdff(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    125e <students+0x9e>
lea    0xde6(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
movq   $0x1000,-0x50(%rbp)
lea    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rdi
mov    $0x2aa,%esi
lea    0xdd3(%rip),%rdx
call   10d0 <eipa_malloc@plt>
mov    %rax,-0x40(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpl   $0x0,-0x24(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12a5 <students+0xe5>
jmp    140f <students+0x24f>
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    12ca <students+0x10a>
mov    -0x38(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xe26(%rip),%rsi
call   1060 <fprintf@plt>
jmp    1401 <students+0x241>
mov    -0x48(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   10c0 <getline@plt>
mov    %eax,-0x5c(%rbp)
cmpl   $0xffffffff,-0x5c(%rbp)
jne    13d8 <students+0x218>
mov    -0x30(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     13be <students+0x1fe>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x18(%rbp),%eax
sub    $0x2,%eax
cmp    -0x14(%rbp),%eax
jge    132b <students+0x16b>
mov    -0x14(%rbp),%esi
lea    0xdc3(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1030 <remove@plt>
mov    %eax,-0x60(%rbp)
cmpl   $0x0,-0x60(%rbp)
je     135b <students+0x19b>
lea    0xdc8(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c8c(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   10b0 <rename@plt>
mov    %eax,-0x60(%rbp)
cmpl   $0x0,-0x60(%rbp)
je     138f <students+0x1cf>
lea    0xdb4(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c58(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
lea    -0x10(%rbp),%rdi
mov    $0x2ce,%esi
lea    0xcb2(%rip),%rdx
call   1080 <eipa_free@plt>
lea    -0x40(%rbp),%rdi
mov    $0x2cf,%esi
lea    0xc9d(%rip),%rdx
call   1080 <eipa_free@plt>
jmp    1424 <students+0x264>
lea    0xc4b(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c0f(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rdx
lea    0xcff(%rip),%rsi
call   1060 <fprintf@plt>
lea    -0x40(%rbp),%rdi
mov    $0x2da,%esi
lea    0xc55(%rip),%rdx
call   1080 <eipa_free@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    128f <students+0xcf>
lea    -0x10(%rbp),%rdi
mov    $0x2e0,%esi
lea    0xc32(%rip),%rdx
call   1080 <eipa_free@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<students>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %edx,%r14d
mov    %rdi,%rbx
mov    %rsi,0x20(%rsp)
mov    %rsi,0x30(%rsp)
lea    0xe29(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     1348 <students+0x188>
mov    %rax,%rbp
mov    %rbx,0x18(%rsp)
lea    0xdfe(%rip),%rdi
lea    0xe26(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     1351 <students+0x191>
mov    %rax,%rbx
movq   $0x1000,0x28(%rsp)
lea    0xe27(%rip),%rdx
mov    $0x1000,%edi
mov    $0x2aa,%esi
call   10d0 <eipa_malloc@plt>
mov    %rax,0x8(%rsp)
mov    $0x1,%r13d
mov    %r14d,0x14(%rsp)
sub    %r14d,%r13d
mov    $0xffffffff,%r12d
lea    0x8(%rsp),%r14
lea    0x28(%rsp),%r15
jmp    1271 <students+0xb1>
xchg   %ax,%ax
mov    0x20(%rsp),%rdi
mov    %rbx,%rsi
call   1060 <fputs@plt>
add    $0x1,%r12d
lea    (%r12,%r13,1),%eax
cmp    $0xffffffff,%eax
je     1260 <students+0xa0>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
call   10c0 <getline@plt>
cmp    $0xffffffff,%eax
je     12b4 <students+0xf4>
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
call   1060 <fputs@plt>
mov    %r14,%rdi
mov    $0x2da,%esi
lea    0xda8(%rip),%rdx
call   1080 <eipa_free@plt>
add    $0x1,%r12d
jmp    1271 <students+0xb1>
mov    %rbp,%rdi
call   1070 <feof@plt>
test   %rax,%rax
je     1348 <students+0x188>
mov    %rbp,%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    0x14(%rsp),%esi
cmp    %esi,%r12d
mov    0x18(%rsp),%rbx
jge    12ef <students+0x12f>
lea    0xdfc(%rip),%rdi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <remove@plt>
test   %eax,%eax
jne    135a <students+0x19a>
lea    0xcfe(%rip),%rdi
mov    %rbx,%rsi
call   10b0 <rename@plt>
test   %eax,%eax
jne    1363 <students+0x1a3>
lea    0xd3c(%rip),%rbx
lea    0x30(%rsp),%rdi
mov    $0x2ce,%esi
mov    %rbx,%rdx
call   1080 <eipa_free@plt>
lea    0x8(%rsp),%rdi
mov    $0x2cf,%esi
mov    %rbx,%rdx
call   1080 <eipa_free@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcc1(%rip),%rdi
jmp    136a <students+0x1aa>
lea    0xcd9(%rip),%rdi
jmp    136a <students+0x1aa>
lea    0xdac(%rip),%rdi
jmp    136a <students+0x1aa>
lea    0xdc3(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c6a(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"temp_cuda-sak\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [31 x i8] c"Error while opening the file.\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [32 x i8] c"Error while creating the file.\0A\00"
@.str.5 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/WikiDreams/CUDA-SAK/refs/heads/master/Cuda-SAK/functions.c\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [39 x i8] c"The file doesn't have line number %d.\0A\00"
@.str.8 = [32 x i8] c"Error while deleting the file.\0A\00"
@.str.9 = [37 x i8] c"Error while renaming the temp file.\0A\00"
define void @students(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i8*
%13 = alloca i8**
%14 = alloca i64
%15 = alloca i64*
%16 = alloca i32
%17 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
store i32 1, i32* %7
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8** %8
store i32 0, i32* %9
%18 = load i8*, i8** %4
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %19, i32** %10
%20 = load i32*, i32** %10
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %26
22: ; preds = %3
%23 = call i32 @perror(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* @EXIT_FAILURE
%25 = call i32 @exit(i32 %24)
unreachable
26: ; preds = %3
%27 = load i8*, i8** %8
%28 = call i32* @fopen(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %28, i32** %11
%29 = load i32*, i32** %11
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %35
31: ; preds = %26
%32 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%33 = load i32, i32* @EXIT_FAILURE
%34 = call i32 @exit(i32 %33)
unreachable
35: ; preds = %26
store i64 4096, i64* %14
store i64* %14, i64** %15
%36 = load i64, i64* %14
%37 = call i8* @eipa_malloc(i64 %36, i32 682, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
store i8* %37, i8** %12
store i8** %12, i8*** %13
br label %38
38: ; preds = %104, %35
%39 = load i32, i32* %9
%40 = icmp ne i32 %39, 0
%41 = xor i1 %40, true
br i1 %41, label %42, label %107
42: ; preds = %38
%43 = load i32, i32* %7
%44 = load i32, i32* %6
%45 = icmp eq i32 %43, %44
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = load i32*, i32** %11
%48 = load i8*, i8** %5
%49 = call i32 @fprintf(i32* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %48)
br label %104
50: ; preds = %42
%51 = load i8**, i8*** %13
%52 = load i64*, i64** %15
%53 = load i32*, i32** %10
%54 = call i32 @getline(i8** %51, i64* %52, i32* %53)
store i32 %54, i32* %16
%55 = load i32, i32* %16
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %99
57: ; preds = %50
%58 = load i32*, i32** %10
%59 = call i64 @feof(i32* %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %95
61: ; preds = %57
%62 = load i32*, i32** %10
%63 = call i32 @fclose(i32* %62)
%64 = load i32*, i32** %11
%65 = call i32 @fclose(i32* %64)
%66 = load i32, i32* %7
%67 = sub nsw i32 %66, 2
%68 = load i32, i32* %6
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %73
70: ; preds = %61
%71 = load i32, i32* %6
%72 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i32 %71)
br label %73
73: ; preds = %70, %61
%74 = load i8*, i8** %4
%75 = call i32 @remove(i8* %74)
store i32 %75, i32* %17
%76 = load i32, i32* %17
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %73
%79 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
%80 = load i32, i32* @EXIT_FAILURE
%81 = call i32 @exit(i32 %80)
unreachable
82: ; preds = %73
%83 = load i8*, i8** %8
%84 = load i8*, i8** %4
%85 = call i32 @rename(i8* %83, i8* %84)
store i32 %85, i32* %17
%86 = load i32, i32* %17
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %82
%89 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%90 = load i32, i32* @EXIT_FAILURE
%91 = call i32 @exit(i32 %90)
unreachable
92: ; preds = %82
%93 = call i32 @eipa_free(i8** %5, i32 718, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
%94 = call i32 @eipa_free(i8** %12, i32 719, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
br label %109
95: ; preds = %57
%96 = call i32 @perror(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%97 = load i32, i32* @EXIT_FAILURE
%98 = call i32 @exit(i32 %97)
unreachable
99: ; preds = %50
%100 = load i32*, i32** %11
%101 = load i8*, i8** %12
%102 = call i32 @fprintf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %101)
%103 = call i32 @eipa_free(i8** %12, i32 730, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
br label %104
104: ; preds = %99, %46
%105 = load i32, i32* %7
%106 = add nsw i32 %105, 1
store i32 %106, i32* %7
br label %38
107: ; preds = %38
%108 = call i32 @eipa_free(i8** %5, i32 736, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
br label %109
109: ; preds = %107, %92
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"temp_cuda-sak\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [31 x i8] c"Error while opening the file.\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [32 x i8] c"Error while creating the file.\0A\00"
@.str.5 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/WikiDreams/CUDA-SAK/refs/heads/master/Cuda-SAK/functions.c\00"
@.str.7 = [39 x i8] c"The file doesn't have line number %d.\0A\00"
@.str.8 = [32 x i8] c"Error while deleting the file.\0A\00"
@.str.9 = [37 x i8] c"Error while renaming the temp file.\0A\00"
define void @students(i8* nocapture %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
store i8* %1, i8** %4
%7 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = tail call i32 @perror(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* @EXIT_FAILURE
%12 = tail call i32 @exit(i32 %11)
unreachable
13: ; preds = %3
%14 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = tail call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32, i32* @EXIT_FAILURE
%19 = tail call i32 @exit(i32 %18)
unreachable
20: ; preds = %13
%21 = bitcast i8** %5 to i8*
%22 = bitcast i64* %6 to i8*
store i64 4096, i64* %6
%23 = tail call i8* @eipa_malloc(i64 4096, i32 682, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
store i8* %23, i8** %5
br label %24
24: ; preds = %64, %20
%25 = phi i32 [ 1, %20 ], [ %65, %64 ]
%26 = icmp eq i32 %25, %2
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 @fputs(i8* %1, i32* %14)
br label %64
29: ; preds = %24
%30 = call i32 @getline(i8** %5, i64* %6, i32* %7)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %60
32: ; preds = %29
%33 = call i64 @feof(i32* %7)
%34 = icmp eq i64 %33, 0
br i1 %34, label %56, label %35
35: ; preds = %32
%36 = call i32 @fclose(i32* %7)
%37 = call i32 @fclose(i32* %14)
%38 = add nsw i32 %25, -2
%39 = icmp slt i32 %38, %2
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i32 %2)
br label %42
42: ; preds = %40, %35
%43 = call i32 @remove(i8* %0)
%44 = icmp eq i32 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %42
%46 = call i32 @perror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
%47 = load i32, i32* @EXIT_FAILURE
%48 = call i32 @exit(i32 %47)
unreachable
49: ; preds = %42
%50 = call i32 @rename(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %0)
%51 = icmp eq i32 %50, 0
br i1 %51, label %66, label %52
52: ; preds = %49
%53 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%54 = load i32, i32* @EXIT_FAILURE
%55 = call i32 @exit(i32 %54)
unreachable
56: ; preds = %32
%57 = call i32 @perror(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%58 = load i32, i32* @EXIT_FAILURE
%59 = call i32 @exit(i32 %58)
unreachable
60: ; preds = %29
%61 = load i8*, i8** %5
%62 = call i32 @fputs(i8* %61, i32* %14)
%63 = call i32 @eipa_free(i8** %5, i32 730, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
br label %64
64: ; preds = %60, %27
%65 = add nuw nsw i32 %25, 1
br label %24
66: ; preds = %49
%67 = call i32 @eipa_free(i8** %4, i32 718, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
%68 = call i32 @eipa_free(i8** %5, i32 719, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.5, i64 0, i64 0))
ret void
}