#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 /*<<< orphan*/ SEEK_SET;
char *archdep_filename_parameter(char const *);
int archdep_spawn(char *, char **, int /*<<< orphan*/ *, int /*<<< orphan*/ *);
char *archdep_tmpnam();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
int /*<<< orphan*/ ioutil_remove(char *);
int /*<<< orphan*/ lib_free(char *);
char *lib_stralloc(char *);
int strlen(char *);
int /*<<< orphan*/ util_fname_split(char const *, int /*<<< orphan*/ *,
                                    char **);
int zipcode_read_sector(int /*<<< orphan*/ *, int, int *, char *);
char *try_uncompress_zipcode(const char *name, int write_mode) {
  char *tmp_name = NULL;
  int i, count, sector, sectors = 0;
  FILE *fd;
  char tmp[256];
  char *argv[5];
  int exit_status;
  util_fname_split(name, NULL, &tmp_name);
  if (tmp_name == NULL)
    return NULL;
  if (strlen(tmp_name) < 3 || tmp_name[1] != '!') {
    lib_free(tmp_name);
    return NULL;
  }
  lib_free(tmp_name);
  fd = fopen(name, "r");
  if (fd == NULL)
    return NULL;
  fseek(fd, 4, SEEK_SET);
  for (count = 1; count < 21; count++) {
    i = zipcode_read_sector(fd, 1, &sector, tmp);
    if (i || sector < 0 || sector > 20 || (sectors & (1 << sector))) {
      fclose(fd);
      return NULL;
    }
    sectors |= 1 << sector;
  }
  fclose(fd);
  if (write_mode)
    return "";
  tmp_name = archdep_tmpnam();
  argv[0] = lib_stralloc("c1541");
  argv[1] = lib_stralloc("-zcreate");
  argv[2] = lib_stralloc(tmp_name);
  argv[3] = archdep_filename_parameter(name);
  argv[4] = NULL;
  exit_status = archdep_spawn("c1541", argv, NULL, NULL);
  lib_free(argv[0]);
  lib_free(argv[1]);
  lib_free(argv[2]);
  lib_free(argv[3]);
  if (exit_status) {
    ioutil_remove(tmp_name);
    lib_free(tmp_name);
    return NULL;
  }
  return tmp_name;
}


x86 assembly (clang, -O0):
<try_uncompress_zipcode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
lea    -0x20(%rbp),%rdx
call   1050 <util_fname_split@plt>
cmpq   $0x0,-0x20(%rbp)
jne    120a <try_uncompress_zipcode+0x4a>
movq   $0x0,-0x8(%rbp)
jmp    142b <try_uncompress_zipcode+0x26b>
mov    -0x20(%rbp),%rdi
call   1090 <strlen@plt>
cmp    $0x3,%eax
jl     122d <try_uncompress_zipcode+0x6d>
mov    -0x20(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x21,%eax
je     1243 <try_uncompress_zipcode+0x83>
mov    -0x20(%rbp),%rdi
call   1060 <lib_free@plt>
movq   $0x0,-0x8(%rbp)
jmp    142b <try_uncompress_zipcode+0x26b>
mov    -0x20(%rbp),%rdi
call   1060 <lib_free@plt>
mov    -0x10(%rbp),%rdi
lea    0xda9(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    1278 <try_uncompress_zipcode+0xb8>
movq   $0x0,-0x8(%rbp)
jmp    142b <try_uncompress_zipcode+0x26b>
mov    -0x38(%rbp),%rdi
mov    0x2d5d(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%esi
call   10c0 <fseek@plt>
movl   $0x1,-0x28(%rbp)
cmpl   $0x15,-0x28(%rbp)
jge    1328 <try_uncompress_zipcode+0x168>
mov    -0x38(%rbp),%rdi
lea    -0x140(%rbp),%rcx
mov    $0x1,%esi
lea    -0x2c(%rbp),%rdx
call   10b0 <zipcode_read_sector@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    12f4 <try_uncompress_zipcode+0x134>
cmpl   $0x0,-0x2c(%rbp)
jl     12f4 <try_uncompress_zipcode+0x134>
cmpl   $0x14,-0x2c(%rbp)
jg     12f4 <try_uncompress_zipcode+0x134>
mov    -0x30(%rbp),%eax
mov    -0x2c(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     130a <try_uncompress_zipcode+0x14a>
mov    -0x38(%rbp),%rdi
call   1070 <fclose@plt>
movq   $0x0,-0x8(%rbp)
jmp    142b <try_uncompress_zipcode+0x26b>
mov    -0x2c(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
or     -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1296 <try_uncompress_zipcode+0xd6>
mov    -0x38(%rbp),%rdi
call   1070 <fclose@plt>
cmpl   $0x0,-0x14(%rbp)
je     134b <try_uncompress_zipcode+0x18b>
lea    0xcc5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    142b <try_uncompress_zipcode+0x26b>
mov    $0x0,%al
call   10d0 <archdep_tmpnam@plt>
mov    %rax,-0x20(%rbp)
lea    0xca5(%rip),%rdi
call   1040 <lib_stralloc@plt>
mov    %rax,-0x170(%rbp)
lea    0xc98(%rip),%rdi
call   1040 <lib_stralloc@plt>
mov    %rax,-0x168(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <lib_stralloc@plt>
mov    %rax,-0x160(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <archdep_filename_parameter@plt>
mov    %rax,-0x158(%rbp)
movq   $0x0,-0x150(%rbp)
lea    -0x170(%rbp),%rsi
lea    0xc4d(%rip),%rdi
xor    %eax,%eax
mov    %eax,%ecx
mov    %rcx,%rdx
call   1080 <archdep_spawn@plt>
mov    %eax,-0x174(%rbp)
mov    -0x170(%rbp),%rdi
call   1060 <lib_free@plt>
mov    -0x168(%rbp),%rdi
call   1060 <lib_free@plt>
mov    -0x160(%rbp),%rdi
call   1060 <lib_free@plt>
mov    -0x158(%rbp),%rdi
call   1060 <lib_free@plt>
cmpl   $0x0,-0x174(%rbp)
je     1423 <try_uncompress_zipcode+0x263>
mov    -0x20(%rbp),%rdi
call   10a0 <ioutil_remove@plt>
mov    -0x20(%rbp),%rdi
call   1060 <lib_free@plt>
movq   $0x0,-0x8(%rbp)
jmp    142b <try_uncompress_zipcode+0x26b>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<try_uncompress_zipcode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148,%rsp
mov    %esi,%r14d
mov    %rdi,%r15
movq   $0x0,(%rsp)
xor    %ebp,%ebp
mov    %rsp,%rdx
xor    %esi,%esi
call   1050 <util_fname_split@plt>
mov    (%rsp),%rdi
test   %rdi,%rdi
je     137a <try_uncompress_zipcode+0x1ba>
call   1090 <strlen@plt>
mov    (%rsp),%rdi
cmp    $0x3,%eax
jl     1373 <try_uncompress_zipcode+0x1b3>
cmpb   $0x21,0x1(%rdi)
jne    1373 <try_uncompress_zipcode+0x1b3>
call   1060 <lib_free@plt>
lea    0xde0(%rip),%rsi
mov    %r15,%rdi
call   10e0 <fopen@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     137a <try_uncompress_zipcode+0x1ba>
mov    %rax,%rbx
mov    %r14d,0x8(%rsp)
mov    0x2d9e(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x4,%esi
call   10c0 <fseek@plt>
mov    $0x14,%r14d
lea    0xc(%rsp),%r12
lea    0x40(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r12,%rdx
mov    %r13,%rcx
call   10b0 <zipcode_read_sector@plt>
test   %eax,%eax
jne    12c3 <try_uncompress_zipcode+0x103>
mov    0xc(%rsp),%ecx
test   %ecx,%ecx
js     12c3 <try_uncompress_zipcode+0x103>
cmp    $0x14,%ecx
jg     12c3 <try_uncompress_zipcode+0x103>
mov    $0x1,%eax
shl    %cl,%eax
bt     %ecx,%ebp
jb     12c3 <try_uncompress_zipcode+0x103>
or     %eax,%ebp
add    $0xffffffff,%r14d
jne    1270 <try_uncompress_zipcode+0xb0>
mov    %rbx,%rdi
call   1070 <fclose@plt>
cmpl   $0x0,0x8(%rsp)
je     12d0 <try_uncompress_zipcode+0x110>
lea    0xd49(%rip),%rbp
jmp    137a <try_uncompress_zipcode+0x1ba>
mov    %rbx,%rdi
call   1070 <fclose@plt>
jmp    1378 <try_uncompress_zipcode+0x1b8>
xor    %eax,%eax
call   10d0 <archdep_tmpnam@plt>
mov    %rax,(%rsp)
lea    0xd20(%rip),%rbx
mov    %rbx,%rdi
call   1040 <lib_stralloc@plt>
mov    %rax,0x10(%rsp)
lea    0xd12(%rip),%rdi
call   1040 <lib_stralloc@plt>
mov    %rax,0x18(%rsp)
mov    (%rsp),%rdi
call   1040 <lib_stralloc@plt>
mov    %rax,0x20(%rsp)
mov    %r15,%rdi
call   1030 <archdep_filename_parameter@plt>
mov    %rax,0x28(%rsp)
movq   $0x0,0x30(%rsp)
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
xor    %ecx,%ecx
call   1080 <archdep_spawn@plt>
mov    %eax,%ebx
mov    0x10(%rsp),%rdi
call   1060 <lib_free@plt>
mov    0x18(%rsp),%rdi
call   1060 <lib_free@plt>
mov    0x20(%rsp),%rdi
call   1060 <lib_free@plt>
mov    0x28(%rsp),%rdi
call   1060 <lib_free@plt>
mov    (%rsp),%rbp
test   %ebx,%ebx
je     137a <try_uncompress_zipcode+0x1ba>
mov    %rbp,%rdi
call   10a0 <ioutil_remove@plt>
mov    (%rsp),%rdi
call   1060 <lib_free@plt>
xor    %ebp,%ebp
mov    %rbp,%rax
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@SEEK_SET = global i32 0
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [6 x i8] c"c1541\00"
@.str.3 = [9 x i8] c"-zcreate\00"
define i8* @try_uncompress_zipcode(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32*
%12 = alloca [256 x i8]
%13 = alloca [5 x i8*]
%14 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* null, i8** %6
store i32 0, i32* %10
%15 = load i8*, i8** %4
%16 = call i32 @util_fname_split(i8* %15, i32* null, i8** %6)
%17 = load i8*, i8** %6
%18 = icmp eq i8* %17, null
br i1 %18, label %19, label %20
19: ; preds = %2
store i8* null, i8** %3
br label %119
20: ; preds = %2
%21 = load i8*, i8** %6
%22 = call i32 @strlen(i8* %21)
%23 = icmp slt i32 %22, 3
br i1 %23, label %30, label %24
24: ; preds = %20
%25 = load i8*, i8** %6
%26 = getelementptr inbounds i8, i8* %25, i64 1
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 33
br i1 %29, label %30, label %33
30: ; preds = %24, %20
%31 = load i8*, i8** %6
%32 = call i32 @lib_free(i8* %31)
store i8* null, i8** %3
br label %119
33: ; preds = %24
%34 = load i8*, i8** %6
%35 = call i32 @lib_free(i8* %34)
%36 = load i8*, i8** %4
%37 = call i32* @fopen(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %37, i32** %11
%38 = load i32*, i32** %11
%39 = icmp eq i32* %38, null
br i1 %39, label %40, label %41
40: ; preds = %33
store i8* null, i8** %3
br label %119
41: ; preds = %33
%42 = load i32*, i32** %11
%43 = load i32, i32* @SEEK_SET
%44 = call i32 @fseek(i32* %42, i32 4, i32 %43)
store i32 1, i32* %8
br label %45
45: ; preds = %74, %41
%46 = load i32, i32* %8
%47 = icmp slt i32 %46, 21
br i1 %47, label %48, label %77
48: ; preds = %45
%49 = load i32*, i32** %11
%50 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%51 = call i32 @zipcode_read_sector(i32* %49, i32 1, i32* %9, i8* %50)
store i32 %51, i32* %7
%52 = load i32, i32* %7
%53 = icmp ne i32 %52, 0
br i1 %53, label %66, label %54
54: ; preds = %48
%55 = load i32, i32* %9
%56 = icmp slt i32 %55, 0
br i1 %56, label %66, label %57
57: ; preds = %54
%58 = load i32, i32* %9
%59 = icmp sgt i32 %58, 20
br i1 %59, label %66, label %60
60: ; preds = %57
%61 = load i32, i32* %10
%62 = load i32, i32* %9
%63 = shl i32 1, %62
%64 = and i32 %61, %63
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %60, %57, %54, %48
%67 = load i32*, i32** %11
%68 = call i32 @fclose(i32* %67)
store i8* null, i8** %3
br label %119
69: ; preds = %60
%70 = load i32, i32* %9
%71 = shl i32 1, %70
%72 = load i32, i32* %10
%73 = or i32 %72, %71
store i32 %73, i32* %10
br label %74
74: ; preds = %69
%75 = load i32, i32* %8
%76 = add nsw i32 %75, 1
store i32 %76, i32* %8
br label %45
77: ; preds = %45
%78 = load i32*, i32** %11
%79 = call i32 @fclose(i32* %78)
%80 = load i32, i32* %5
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %77
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %119
83: ; preds = %77
%84 = call i8* (...) @archdep_tmpnam()
store i8* %84, i8** %6
%85 = call i8* @lib_stralloc(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%86 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 0
store i8* %85, i8** %86
%87 = call i8* @lib_stralloc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%88 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 1
store i8* %87, i8** %88
%89 = load i8*, i8** %6
%90 = call i8* @lib_stralloc(i8* %89)
%91 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 2
store i8* %90, i8** %91
%92 = load i8*, i8** %4
%93 = call i8* @archdep_filename_parameter(i8* %92)
%94 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 3
store i8* %93, i8** %94
%95 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 4
store i8* null, i8** %95
%96 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 0
%97 = call i32 @archdep_spawn(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %96, i32* null, i32* null)
store i32 %97, i32* %14
%98 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 0
%99 = load i8*, i8** %98
%100 = call i32 @lib_free(i8* %99)
%101 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 1
%102 = load i8*, i8** %101
%103 = call i32 @lib_free(i8* %102)
%104 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 2
%105 = load i8*, i8** %104
%106 = call i32 @lib_free(i8* %105)
%107 = getelementptr inbounds [5 x i8*], [5 x i8*]* %13, i64 0, i64 3
%108 = load i8*, i8** %107
%109 = call i32 @lib_free(i8* %108)
%110 = load i32, i32* %14
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %117
112: ; preds = %83
%113 = load i8*, i8** %6
%114 = call i32 @ioutil_remove(i8* %113)
%115 = load i8*, i8** %6
%116 = call i32 @lib_free(i8* %115)
store i8* null, i8** %3
br label %119
117: ; preds = %83
%118 = load i8*, i8** %6
store i8* %118, i8** %3
br label %119
119: ; preds = %117, %112, %82, %66, %40, %30, %19
%120 = load i8*, i8** %3
ret i8* %120
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@SEEK_SET = global i32 0
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [6 x i8] c"c1541\00"
@.str.3 = [9 x i8] c"-zcreate\00"
define i8* @try_uncompress_zipcode(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [256 x i8]
%6 = alloca [5 x i8*]
%7 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%8 = bitcast i32* %4 to i8*
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%10 = bitcast [5 x i8*]* %6 to i8*
%11 = call i32 @util_fname_split(i8* %0, i32* null, i8** %3)
%12 = load i8*, i8** %3
%13 = icmp eq i8* %12, null
br i1 %13, label %81, label %14
14: ; preds = %2
%15 = call i32 @strlen(i8* %12)
%16 = icmp slt i32 %15, 3
%17 = load i8*, i8** %3
br i1 %16, label %22, label %18
18: ; preds = %14
%19 = getelementptr inbounds i8, i8* %17, i64 1
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 33
br i1 %21, label %24, label %22
22: ; preds = %14, %18
%23 = call i32 @lib_free(i8* %17)
br label %81
24: ; preds = %18
%25 = call i32 @lib_free(i8* %17)
%26 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%27 = icmp eq i32* %26, null
br i1 %27, label %81, label %28
28: ; preds = %24
%29 = load i32, i32* @SEEK_SET
%30 = call i32 @fseek(i32* %26, i32 4, i32 %29)
br label %31
31: ; preds = %28, %47
%32 = phi i32 [ 1, %28 ], [ %49, %47 ]
%33 = phi i32 [ 0, %28 ], [ %48, %47 ]
%34 = call i32 @zipcode_read_sector(i32* %26, i32 1, i32* %4, i8* %9)
%35 = icmp ne i32 %34, 0
%36 = load i32, i32* %4
%37 = icmp slt i32 %36, 0
%38 = select i1 %35, i1 true, i1 %37
%39 = icmp sgt i32 %36, 20
%40 = select i1 %38, i1 true, i1 %39
br i1 %40, label %45, label %41
41: ; preds = %31
%42 = shl nuw nsw i32 1, %36
%43 = and i32 %42, %33
%44 = icmp eq i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %41, %31
%46 = call i32 @fclose(i32* %26)
br label %81
47: ; preds = %41
%48 = or i32 %42, %33
%49 = add nuw nsw i32 %32, 1
%50 = icmp eq i32 %49, 21
br i1 %50, label %51, label %31
51: ; preds = %47
%52 = call i32 @fclose(i32* %26)
%53 = icmp eq i32 %1, 0
br i1 %53, label %54, label %81
54: ; preds = %51
%55 = call i8* (...) @archdep_tmpnam()
store i8* %55, i8** %3
%56 = call i8* @lib_stralloc(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%57 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i64 0, i64 0
store i8* %56, i8** %57
%58 = call i8* @lib_stralloc(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%59 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i64 0, i64 1
store i8* %58, i8** %59
%60 = load i8*, i8** %3
%61 = call i8* @lib_stralloc(i8* %60)
%62 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i64 0, i64 2
store i8* %61, i8** %62
%63 = call i8* @archdep_filename_parameter(i8* %0)
%64 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i64 0, i64 3
store i8* %63, i8** %64
%65 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i64 0, i64 4
store i8* null, i8** %65
%66 = call i32 @archdep_spawn(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %57, i32* null, i32* null)
%67 = load i8*, i8** %57
%68 = call i32 @lib_free(i8* %67)
%69 = load i8*, i8** %59
%70 = call i32 @lib_free(i8* %69)
%71 = load i8*, i8** %62
%72 = call i32 @lib_free(i8* %71)
%73 = load i8*, i8** %64
%74 = call i32 @lib_free(i8* %73)
%75 = icmp eq i32 %66, 0
%76 = load i8*, i8** %3
br i1 %75, label %81, label %77
77: ; preds = %54
%78 = call i32 @ioutil_remove(i8* %76)
%79 = load i8*, i8** %3
%80 = call i32 @lib_free(i8* %79)
br label %81
81: ; preds = %54, %51, %24, %2, %77, %45, %22
%82 = phi i8* [ null, %22 ], [ null, %45 ], [ null, %77 ], [ null, %2 ], [ null, %24 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %51 ], [ %76, %54 ]
ret i8* %82
}