#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 O_CREAT;
int O_RDWR;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ close(int);
scalar_t__ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fdopen(int, char *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fputs(char *, int /*<<< orphan*/ *);
int ftell(int /*<<< orphan*/ *);
int lseek(int, int, int /*<<< orphan*/);
int mkstemp(char *);
int open(char *, int);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ unlink(char *);
int main(int argc, char *argv[]) {
  char name[256];
  FILE *fp = NULL;
  int retval = 0;
  int fd;
  sprintf(name, "%s-uClibc-test.XXXXXX",
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/119/aircam-openwrt/refs/heads/develop/"
          "build_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9.32_eabi/"
          "uClibc-0.9.32/test/misc/fdopen.c");
  fd = mkstemp(name);
  close(fd);
  fp = fopen(name, "w");
  if (!(fp != NULL)) {
    fputs("test failed: "
          "fp != NULL"
          "\n",
          stderr);
    retval = 1;
    goto the_end;
  }
  if (!(fputs("foobar and baz", fp) > 0)) {
    fputs("test failed: "
          "fputs (\"foobar and baz\", fp) > 0"
          "\n",
          stderr);
    retval = 1;
    goto the_end;
  };
  if (!(fclose(fp) == 0)) {
    fputs("test failed: "
          "fclose (fp) == 0"
          "\n",
          stderr);
    retval = 1;
    goto the_end;
  };
  fp = NULL;
  fd = open(name, O_RDWR | O_CREAT);
  if (!(fd != -1)) {
    fputs("test failed: "
          "fd != -1"
          "\n",
          stderr);
    retval = 1;
    goto the_end;
  };
  if (!(lseek(fd, 5, SEEK_SET) == 5)) {
    fputs("test failed: "
          "lseek (fd, 5, SEEK_SET) == 5"
          "\n",
          stderr);
    retval = 1;
    goto the_end;
  };
  fp = fdopen(fd, "a");
  if (!(fp != NULL)) {
    fputs("test failed: "
          "fp != NULL"
          "\n",
          stderr);
    retval = 1;
    goto the_end;
  };
  if (!(ftell(fp) == 5)) {
    fputs("test failed: "
          "ftell (fp) == 5"
          "\n",
          stderr);
    retval = 1;
    goto the_end;
  };
the_end:
  if (fp != NULL)
    if (!(fclose(fp) == 0)) {
      fputs("test failed: "
            "fclose (fp) == 0"
            "\n",
            stderr);
      retval = 1;
      goto the_end;
    };
  unlink(name);
  return retval;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x118(%rbp)
movl   $0x0,-0x11c(%rbp)
lea    -0x110(%rbp),%rdi
lea    0xe14(%rip),%rsi
lea    0xe23(%rip),%rdx
call   10d0 <sprintf@plt>
lea    -0x110(%rbp),%rdi
call   1090 <mkstemp@plt>
mov    %eax,-0x120(%rbp)
mov    -0x120(%rbp),%edi
call   1070 <close@plt>
lea    -0x110(%rbp),%rdi
lea    0xecf(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x118(%rbp)
cmpq   $0x0,-0x118(%rbp)
jne    1262 <main+0xb2>
mov    0x2d8c(%rip),%rax
mov    (%rax),%rsi
lea    0xea6(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x11c(%rbp)
jmp    1412 <main+0x262>
mov    -0x118(%rbp),%rsi
lea    0xe9d(%rip),%rdi
call   1060 <fputs@plt>
cmp    $0x0,%rax
jg     12a4 <main+0xf4>
mov    0x2d4a(%rip),%rax
mov    (%rax),%rsi
lea    0xe8c(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x11c(%rbp)
jmp    1412 <main+0x262>
mov    -0x118(%rbp),%rdi
call   1040 <fclose@plt>
cmp    $0x0,%rax
je     12df <main+0x12f>
mov    0x2d0f(%rip),%rax
mov    (%rax),%rsi
lea    0xe80(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x11c(%rbp)
jmp    1412 <main+0x262>
movq   $0x0,-0x118(%rbp)
lea    -0x110(%rbp),%rdi
mov    0x2ce8(%rip),%rax
mov    (%rax),%esi
mov    0x2cf7(%rip),%rax
or     (%rax),%esi
call   10b0 <open@plt>
mov    %eax,-0x120(%rbp)
cmpl   $0xffffffff,-0x120(%rbp)
jne    1340 <main+0x190>
mov    0x2cae(%rip),%rax
mov    (%rax),%rsi
lea    0xe3e(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x11c(%rbp)
jmp    1412 <main+0x262>
mov    -0x120(%rbp),%edi
mov    0x2c7b(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%esi
call   1050 <lseek@plt>
cmp    $0x5,%eax
je     1387 <main+0x1d7>
mov    0x2c67(%rip),%rax
mov    (%rax),%rsi
lea    0xe0e(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x11c(%rbp)
jmp    1412 <main+0x262>
mov    -0x120(%rbp),%edi
lea    0xe18(%rip),%rsi
call   10a0 <fdopen@plt>
mov    %rax,-0x118(%rbp)
cmpq   $0x0,-0x118(%rbp)
jne    13d3 <main+0x223>
mov    0x2c1b(%rip),%rax
mov    (%rax),%rsi
lea    0xd35(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x11c(%rbp)
jmp    1412 <main+0x262>
mov    -0x118(%rbp),%rdi
call   1080 <ftell@plt>
cmp    $0x5,%eax
je     140d <main+0x25d>
mov    0x2be1(%rip),%rax
mov    (%rax),%rsi
lea    0xdb5(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x11c(%rbp)
jmp    1412 <main+0x262>
jmp    1412 <main+0x262>
cmpq   $0x0,-0x118(%rbp)
je     1460 <main+0x2b0>
mov    -0x118(%rbp),%rdi
call   1040 <fclose@plt>
cmp    $0x0,%rax
je     145b <main+0x2ab>
mov    0x2b93(%rip),%rax
mov    (%rax),%rsi
lea    0xd04(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x11c(%rbp)
jmp    1412 <main+0x262>
jmp    1460 <main+0x2b0>
lea    -0x110(%rbp),%rdi
call   1030 <unlink@plt>
mov    -0x11c(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x100,%rsp
lea    0xe2e(%rip),%rsi
lea    0xe3d(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
call   10d0 <sprintf@plt>
mov    %rbx,%rdi
call   1090 <mkstemp@plt>
mov    %eax,%edi
call   1070 <close@plt>
lea    0xef8(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <fopen@plt>
test   %rax,%rax
je     133e <main+0x17e>
mov    %rax,%r14
lea    0xef8(%rip),%rdi
mov    %rax,%rsi
call   1060 <fputs@plt>
test   %rax,%rax
jle    124b <main+0x8b>
mov    %r14,%rdi
call   1040 <fclose@plt>
test   %rax,%rax
je     12b7 <main+0xf7>
mov    0x2d96(%rip),%rax
mov    (%rax),%rcx
lea    0xf07(%rip),%rdi
mov    $0x1e,%esi
jmp    1261 <main+0xa1>
mov    0x2d7e(%rip),%rax
mov    (%rax),%rcx
lea    0xec0(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
call   10e0 <fwrite@plt>
mov    $0x1,%ebp
mov    %r14,%rdi
call   1040 <fclose@plt>
test   %rax,%rax
je     1363 <main+0x1a3>
mov    0x2d48(%rip),%rbx
lea    0xebc(%rip),%rbp
nop
mov    (%rbx),%rcx
mov    $0x1e,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
call   10e0 <fwrite@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
test   %rax,%rax
jne    1290 <main+0xd0>
jmp    135e <main+0x19e>
mov    0x2d22(%rip),%rax
mov    0x2d33(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    %rsp,%rdi
call   10b0 <open@plt>
cmp    $0xffffffff,%eax
je     1379 <main+0x1b9>
mov    %eax,%ebx
mov    0x2ce5(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
mov    $0x5,%esi
call   1050 <lseek@plt>
cmp    $0x5,%eax
jne    1391 <main+0x1d1>
lea    0xeab(%rip),%rsi
mov    %ebx,%edi
call   10a0 <fdopen@plt>
test   %rax,%rax
je     133e <main+0x17e>
mov    %rax,%r14
mov    %rax,%rdi
call   1080 <ftell@plt>
xor    %ebp,%ebp
cmp    $0x5,%eax
je     1270 <main+0xb0>
mov    0x2ca6(%rip),%rax
mov    (%rax),%rcx
lea    0xe7a(%rip),%rdi
mov    $0x1d,%esi
jmp    1261 <main+0xa1>
mov    0x2c8b(%rip),%rax
mov    (%rax),%rcx
lea    0xda5(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
call   10e0 <fwrite@plt>
mov    $0x1,%ebp
mov    %rsp,%rdi
call   1030 <unlink@plt>
mov    %ebp,%eax
add    $0x100,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    0x2c50(%rip),%rax
mov    (%rax),%rcx
lea    0xde0(%rip),%rdi
mov    $0x16,%esi
jmp    1354 <main+0x194>
mov    0x2c38(%rip),%rax
mov    (%rax),%rcx
lea    0xddf(%rip),%rdi
mov    $0x2a,%esi
jmp    1354 <main+0x194>

LLVM IR (-O0):
@.str = [22 x i8] c"%s-uClibc-test.XXXXXX\00"
@.str.1 = [220 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/119/aircam-openwrt/refs/heads/develop/build_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9.32_eabi/uClibc-0.9.32/test/misc/fdopen.c\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [25 x i8] c"test failed: fp != NULL\0A\00"
@stderr = global i32* null
@.str.4 = [15 x i8] c"foobar and baz\00"
@.str.5 = [47 x i8] c"test failed: fputs (\22foobar and baz\22, fp) > 0\0A\00"
@.str.6 = [31 x i8] c"test failed: fclose (fp) == 0\0A\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@.str.7 = [23 x i8] c"test failed: fd != -1\0A\00"
@SEEK_SET = global i32 0
@.str.8 = [43 x i8] c"test failed: lseek (fd, 5, SEEK_SET) == 5\0A\00"
@.str.9 = [2 x i8] c"a\00"
@.str.10 = [30 x i8] c"test failed: ftell (fp) == 5\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [256 x i8]
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32* null, i32** %7
store i32 0, i32* %8
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%11 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([220 x i8], [220 x i8]* @.str.1, i64 0, i64 0))
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%13 = call i32 @mkstemp(i8* %12)
store i32 %13, i32* %9
%14 = load i32, i32* %9
%15 = call i32 @close(i32 %14)
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%17 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %17, i32** %7
%18 = load i32*, i32** %7
%19 = icmp ne i32* %18, null
br i1 %19, label %23, label %20
20: ; preds = %2
%21 = load i32*, i32** @stderr
%22 = call i64 @fputs(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32* %21)
store i32 1, i32* %8
br label %72
23: ; preds = %2
%24 = load i32*, i32** %7
%25 = call i64 @fputs(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32* %24)
%26 = icmp sgt i64 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = load i32*, i32** @stderr
%29 = call i64 @fputs(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0), i32* %28)
store i32 1, i32* %8
br label %72
30: ; preds = %23
%31 = load i32*, i32** %7
%32 = call i64 @fclose(i32* %31)
%33 = icmp eq i64 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %30
%35 = load i32*, i32** @stderr
%36 = call i64 @fputs(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32* %35)
store i32 1, i32* %8
br label %72
37: ; preds = %30
store i32* null, i32** %7
%38 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%39 = load i32, i32* @O_RDWR
%40 = load i32, i32* @O_CREAT
%41 = or i32 %39, %40
%42 = call i32 @open(i8* %38, i32 %41)
store i32 %42, i32* %9
%43 = load i32, i32* %9
%44 = icmp ne i32 %43, -1
br i1 %44, label %48, label %45
45: ; preds = %37
%46 = load i32*, i32** @stderr
%47 = call i64 @fputs(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32* %46)
store i32 1, i32* %8
br label %72
48: ; preds = %37
%49 = load i32, i32* %9
%50 = load i32, i32* @SEEK_SET
%51 = call i32 @lseek(i32 %49, i32 5, i32 %50)
%52 = icmp eq i32 %51, 5
br i1 %52, label %56, label %53
53: ; preds = %48
%54 = load i32*, i32** @stderr
%55 = call i64 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i32* %54)
store i32 1, i32* %8
br label %72
56: ; preds = %48
%57 = load i32, i32* %9
%58 = call i32* @fdopen(i32 %57, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32* %58, i32** %7
%59 = load i32*, i32** %7
%60 = icmp ne i32* %59, null
br i1 %60, label %64, label %61
61: ; preds = %56
%62 = load i32*, i32** @stderr
%63 = call i64 @fputs(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32* %62)
store i32 1, i32* %8
br label %72
64: ; preds = %56
%65 = load i32*, i32** %7
%66 = call i32 @ftell(i32* %65)
%67 = icmp eq i32 %66, 5
br i1 %67, label %71, label %68
68: ; preds = %64
%69 = load i32*, i32** @stderr
%70 = call i64 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32* %69)
store i32 1, i32* %8
br label %72
71: ; preds = %64
br label %72
72: ; preds = %79, %71, %68, %61, %53, %45, %34, %27, %20
%73 = load i32*, i32** %7
%74 = icmp ne i32* %73, null
br i1 %74, label %75, label %83
75: ; preds = %72
%76 = load i32*, i32** %7
%77 = call i64 @fclose(i32* %76)
%78 = icmp eq i64 %77, 0
br i1 %78, label %82, label %79
79: ; preds = %75
%80 = load i32*, i32** @stderr
%81 = call i64 @fputs(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32* %80)
store i32 1, i32* %8
br label %72
82: ; preds = %75
br label %83
83: ; preds = %82, %72
%84 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%85 = call i32 @unlink(i8* %84)
%86 = load i32, i32* %8
ret i32 %86
}

LLVM IR (-O2):
@.str = [22 x i8] c"%s-uClibc-test.XXXXXX\00"
@.str.1 = [220 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/119/aircam-openwrt/refs/heads/develop/build_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9.32_eabi/uClibc-0.9.32/test/misc/fdopen.c\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [25 x i8] c"test failed: fp != NULL\0A\00"
@stderr = global i32* null
@.str.4 = [15 x i8] c"foobar and baz\00"
@.str.5 = [47 x i8] c"test failed: fputs (\22foobar and baz\22, fp) > 0\0A\00"
@.str.6 = [31 x i8] c"test failed: fclose (fp) == 0\0A\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@.str.7 = [23 x i8] c"test failed: fd != -1\0A\00"
@SEEK_SET = global i32 0
@.str.8 = [43 x i8] c"test failed: lseek (fd, 5, SEEK_SET) == 5\0A\00"
@.str.9 = [2 x i8] c"a\00"
@.str.10 = [30 x i8] c"test failed: ftell (fp) == 5\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%5 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([220 x i8], [220 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @mkstemp(i8* %4)
%7 = call i32 @close(i32 %6)
%8 = call i32* @fopen(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32*, i32** @stderr
%12 = call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 24, i64 1, i32* %11)
br label %63
13: ; preds = %2
%14 = call i64 @fputs(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32* %8)
%15 = icmp sgt i64 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = load i32*, i32** @stderr
%18 = call i64 @fwrite(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0), i64 46, i64 1, i32* %17)
br label %53
19: ; preds = %13
%20 = call i64 @fclose(i32* %8)
%21 = icmp eq i64 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32*, i32** @stderr
%24 = call i64 @fwrite(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i64 30, i64 1, i32* %23)
br label %53
25: ; preds = %19
%26 = load i32, i32* @O_RDWR
%27 = load i32, i32* @O_CREAT
%28 = or i32 %27, %26
%29 = call i32 @open(i8* %4, i32 %28)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %34
31: ; preds = %25
%32 = load i32*, i32** @stderr
%33 = call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i64 22, i64 1, i32* %32)
br label %63
34: ; preds = %25
%35 = load i32, i32* @SEEK_SET
%36 = call i32 @lseek(i32 %29, i32 5, i32 %35)
%37 = icmp eq i32 %36, 5
br i1 %37, label %41, label %38
38: ; preds = %34
%39 = load i32*, i32** @stderr
%40 = call i64 @fwrite(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i64 42, i64 1, i32* %39)
br label %63
41: ; preds = %34
%42 = call i32* @fdopen(i32 %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%43 = icmp eq i32* %42, null
br i1 %43, label %44, label %47
44: ; preds = %41
%45 = load i32*, i32** @stderr
%46 = call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 24, i64 1, i32* %45)
br label %63
47: ; preds = %41
%48 = call i32 @ftell(i32* %42)
%49 = icmp eq i32 %48, 5
br i1 %49, label %53, label %50
50: ; preds = %47
%51 = load i32*, i32** @stderr
%52 = call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i64 29, i64 1, i32* %51)
br label %53
53: ; preds = %47, %50, %22, %16
%54 = phi i32* [ %8, %16 ], [ %8, %22 ], [ %42, %50 ], [ %42, %47 ]
%55 = phi i32 [ 1, %16 ], [ 1, %22 ], [ 1, %50 ], [ 0, %47 ]
%56 = call i64 @fclose(i32* %54)
%57 = icmp eq i64 %56, 0
br i1 %57, label %63, label %58
58: ; preds = %53, %58
%59 = load i32*, i32** @stderr
%60 = call i64 @fwrite(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i64 30, i64 1, i32* %59)
%61 = call i64 @fclose(i32* %54)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %58
63: ; preds = %58, %53, %44, %38, %31, %10
%64 = phi i32 [ 1, %10 ], [ 1, %31 ], [ 1, %38 ], [ 1, %44 ], [ %55, %53 ], [ 1, %58 ]
%65 = call i32 @unlink(i8* %4)
ret i32 %64
}