#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 EXIT_FAILURE;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fdopen(int, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(char *);
int mkstemp(char *);
int /*<<< orphan*/ *open_db_file(char *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ run_merge(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                             int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
int /*<<< orphan*/ stderr;
char *strdup(char *);
int /*<<< orphan*/ system(char *);
scalar_t__ unlink(char *);
int main(int argc, char *argv[]) {
  FILE *linkfile_a;
  FILE *linkfile_b;
  FILE *outfh;
  char *outfile = strdup("/tmp/sdweb-XXXXXX");
  int outfd;
  char sysbuf[512];
  if (argc < 3) {
    fprintf(stderr, "Programmet tar inn to linkdb filer og slaar de sammen");
    fprintf(stderr,
            "til ny (sortert) fil\n\nUsage: ./mergeLinkDB output linkdb\n");
    exit(EXIT_FAILURE);
  }
  printf("merging %s < %s\n", argv[1], argv[2]);
  if ((linkfile_a = open_db_file(argv[1])) == NULL) {
    printf("dosent have a link db. Creating one from \"%s\"\n", argv[2]);
    sprintf(sysbuf, "cp %s %s", argv[2], argv[1]);
    printf("runing: \"%s\"\n", sysbuf);
    system(sysbuf);
    exit(1);
  }
  if ((linkfile_b = open_db_file(argv[2])) == NULL) {
    perror(argv[2]);
    exit(1);
  }
  if ((outfd = mkstemp(outfile)) == -1) {
    perror("mkstemp");
    exit(EXIT_FAILURE);
  }
  if ((outfh = fdopen(outfd, "w")) == NULL) {
    perror("mkstemp");
    exit(EXIT_FAILURE);
  }
  run_merge(linkfile_a, linkfile_b, outfh);
  fclose(outfh);
  close(outfd);
  if (unlink(argv[1]) != 0) {
    perror(argv[1]);
  }
  sprintf(sysbuf, "mv %s %s", outfile, argv[1]);
  printf("runing: \"%s\"\n", sysbuf);
  system(sysbuf);
  free(outfile);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xdf0(%rip),%rdi
call   1110 <strdup@plt>
mov    %rax,-0x30(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    125b <main+0x6b>
mov    0x2db6(%rip),%rax
mov    (%rax),%edi
lea    0xddf(%rip),%rsi
call   10a0 <fprintf@plt>
mov    0x2da1(%rip),%rax
mov    (%rax),%edi
lea    0xe00(%rip),%rsi
call   10a0 <fprintf@plt>
mov    0x2d84(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <open_db_file@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    12f8 <main+0x108>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
lea    0xdfa(%rip),%rsi
call   10e0 <sprintf@plt>
lea    -0x240(%rbp),%rsi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x240(%rbp),%rdi
call   1070 <system@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1050 <open_db_file@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    132a <main+0x13a>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    -0x30(%rbp),%rdi
call   10b0 <mkstemp@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
jne    1359 <main+0x169>
lea    0xd93(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2c86(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x34(%rbp),%edi
lea    0xd7e(%rip),%rsi
call   10c0 <fdopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    1390 <main+0x1a0>
lea    0xd5c(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2c4f(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1100 <run_merge@plt>
mov    -0x28(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x34(%rbp),%edi
call   1090 <close@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <unlink@plt>
cmp    $0x0,%rax
je     13d6 <main+0x1e6>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10d0 <perror@plt>
lea    -0x240(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
lea    0xcf3(%rip),%rsi
call   10e0 <sprintf@plt>
lea    -0x240(%rbp),%rsi
lea    0xcc8(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x240(%rbp),%rdi
call   1070 <system@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
mov    %rsi,%r12
mov    %edi,%ebx
lea    0xdf3(%rip),%rdi
call   1110 <strdup@plt>
cmp    $0x2,%ebx
jle    132a <main+0x13a>
mov    %rax,%r14
mov    0x8(%r12),%rsi
mov    0x10(%r12),%rdx
lea    0xe53(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x8(%r12),%rdi
call   1050 <open_db_file@plt>
mov    0x10(%r12),%rsi
test   %rax,%rax
je     135b <main+0x16b>
mov    %rax,%r15
mov    %rsi,%rdi
call   1050 <open_db_file@plt>
test   %rax,%rax
je     13a8 <main+0x1b8>
mov    %rax,%r13
mov    %r14,%rdi
call   10b0 <mkstemp@plt>
cmp    $0xffffffff,%eax
je     131c <main+0x12c>
mov    %eax,%ebp
lea    0xe62(%rip),%rsi
mov    %eax,%edi
call   10c0 <fdopen@plt>
test   %rax,%rax
je     131c <main+0x12c>
mov    %rax,%rbx
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rax,%rdx
call   1100 <run_merge@plt>
mov    %rbx,%rdi
call   1060 <fclose@plt>
mov    %ebp,%edi
call   1090 <close@plt>
mov    0x8(%r12),%rdi
call   1040 <unlink@plt>
test   %rax,%rax
jne    1310 <main+0x120>
mov    0x8(%r12),%rcx
lea    0xe19(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   10e0 <sprintf@plt>
lea    0xdec(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
call   1070 <system@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0x1,%eax
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x8(%r12),%rdi
call   10d0 <perror@plt>
jmp    12be <main+0xce>
lea    0xdb6(%rip),%rdi
call   10d0 <perror@plt>
jmp    134d <main+0x15d>
mov    0x2caf(%rip),%rbx
mov    (%rbx),%edi
lea    0xcd8(%rip),%rsi
call   10a0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd00(%rip),%rsi
call   10a0 <fprintf@plt>
mov    0x2c84(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    0xd31(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x8(%r12),%rcx
mov    0x10(%r12),%rdx
lea    0xd48(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   10e0 <sprintf@plt>
lea    0xd3f(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
call   1070 <system@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    0x10(%r12),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"/tmp/sdweb-XXXXXX\00"
@stderr = global i32 0
@.str.1 = [54 x i8] c"Programmet tar inn to linkdb filer og slaar de sammen\00"
@.str.2 = [58 x i8] c"til ny (sortert) fil\0A\0AUsage: ./mergeLinkDB output linkdb\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [17 x i8] c"merging %s < %s\0A\00"
@.str.4 = [47 x i8] c"dosent have a link db. Creating one from \22%s\22\0A\00"
@.str.5 = [9 x i8] c"cp %s %s\00"
@.str.6 = [14 x i8] c"runing: \22%s\22\0A\00"
@.str.7 = [8 x i8] c"mkstemp\00"
@.str.8 = [2 x i8] c"w\00"
@.str.9 = [9 x i8] c"mv %s %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 i8*
%10 = alloca i32
%11 = alloca [512 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = call i8* @strdup(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
store i8* %12, i8** %9
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %22
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%20 = load i32, i32* @EXIT_FAILURE
%21 = call i32 @exit(i32 %20)
unreachable
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 2
%28 = load i8*, i8** %27
%29 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %25, i8* %28)
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = call i32* @open_db_file(i8* %32)
store i32* %33, i32** %6
%34 = icmp eq i32* %33, null
br i1 %34, label %35, label %53
35: ; preds = %22
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 2
%38 = load i8*, i8** %37
%39 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 2
%43 = load i8*, i8** %42
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 1
%46 = load i8*, i8** %45
%47 = call i32 @sprintf(i8* %40, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %43, i8* %46)
%48 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%49 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* %48)
%50 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%51 = call i32 @system(i8* %50)
%52 = call i32 @exit(i32 1)
unreachable
53: ; preds = %22
%54 = load i8**, i8*** %5
%55 = getelementptr inbounds i8*, i8** %54, i64 2
%56 = load i8*, i8** %55
%57 = call i32* @open_db_file(i8* %56)
store i32* %57, i32** %7
%58 = icmp eq i32* %57, null
br i1 %58, label %59, label %65
59: ; preds = %53
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 2
%62 = load i8*, i8** %61
%63 = call i32 @perror(i8* %62)
%64 = call i32 @exit(i32 1)
unreachable
65: ; preds = %53
%66 = load i8*, i8** %9
%67 = call i32 @mkstemp(i8* %66)
store i32 %67, i32* %10
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %73
69: ; preds = %65
%70 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%71 = load i32, i32* @EXIT_FAILURE
%72 = call i32 @exit(i32 %71)
unreachable
73: ; preds = %65
%74 = load i32, i32* %10
%75 = call i32* @fdopen(i32 %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32* %75, i32** %8
%76 = icmp eq i32* %75, null
br i1 %76, label %77, label %81
77: ; preds = %73
%78 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%79 = load i32, i32* @EXIT_FAILURE
%80 = call i32 @exit(i32 %79)
unreachable
81: ; preds = %73
%82 = load i32*, i32** %6
%83 = load i32*, i32** %7
%84 = load i32*, i32** %8
%85 = call i32 @run_merge(i32* %82, i32* %83, i32* %84)
%86 = load i32*, i32** %8
%87 = call i32 @fclose(i32* %86)
%88 = load i32, i32* %10
%89 = call i32 @close(i32 %88)
%90 = load i8**, i8*** %5
%91 = getelementptr inbounds i8*, i8** %90, i64 1
%92 = load i8*, i8** %91
%93 = call i64 @unlink(i8* %92)
%94 = icmp ne i64 %93, 0
br i1 %94, label %95, label %100
95: ; preds = %81
%96 = load i8**, i8*** %5
%97 = getelementptr inbounds i8*, i8** %96, i64 1
%98 = load i8*, i8** %97
%99 = call i32 @perror(i8* %98)
br label %100
100: ; preds = %95, %81
%101 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%102 = load i8*, i8** %9
%103 = load i8**, i8*** %5
%104 = getelementptr inbounds i8*, i8** %103, i64 1
%105 = load i8*, i8** %104
%106 = call i32 @sprintf(i8* %101, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %102, i8* %105)
%107 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%108 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* %107)
%109 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%110 = call i32 @system(i8* %109)
%111 = load i8*, i8** %9
%112 = call i32 @free(i8* %111)
ret i32 1
}

LLVM IR (-O2):
@.str = [18 x i8] c"/tmp/sdweb-XXXXXX\00"
@stderr = global i32 0
@.str.1 = [54 x i8] c"Programmet tar inn to linkdb filer og slaar de sammen\00"
@.str.2 = [58 x i8] c"til ny (sortert) fil\0A\0AUsage: ./mergeLinkDB output linkdb\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [17 x i8] c"merging %s < %s\0A\00"
@.str.4 = [47 x i8] c"dosent have a link db. Creating one from \22%s\22\0A\00"
@.str.5 = [9 x i8] c"cp %s %s\00"
@.str.6 = [14 x i8] c"runing: \22%s\22\0A\00"
@.str.7 = [8 x i8] c"mkstemp\00"
@.str.8 = [2 x i8] c"w\00"
@.str.9 = [9 x i8] c"mv %s %s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [512 x i8]
%4 = tail call dereferenceable_or_null(18) i8* @strdup(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%6 = icmp slt i32 %0, 3
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* @EXIT_FAILURE
%13 = tail call i32 @exit(i32 %12)
unreachable
14: ; preds = %2
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = getelementptr inbounds i8*, i8** %1, i64 2
%18 = load i8*, i8** %17
%19 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %16, i8* %18)
%20 = load i8*, i8** %15
%21 = tail call i32* @open_db_file(i8* %20)
%22 = icmp eq i32* %21, null
%23 = load i8*, i8** %17
br i1 %22, label %24, label %32
24: ; preds = %14
%25 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i8* %23)
%26 = load i8*, i8** %17
%27 = load i8*, i8** %15
%28 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %26, i8* %27)
%29 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%30 = call i32 @system(i8* %5)
%31 = call i32 @exit(i32 1)
unreachable
32: ; preds = %14
%33 = tail call i32* @open_db_file(i8* %23)
%34 = icmp eq i32* %33, null
br i1 %34, label %35, label %39
35: ; preds = %32
%36 = load i8*, i8** %17
%37 = tail call i32 @perror(i8* %36)
%38 = tail call i32 @exit(i32 1)
unreachable
39: ; preds = %32
%40 = tail call i32 @mkstemp(i8* %4)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %46
42: ; preds = %39
%43 = tail call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%44 = load i32, i32* @EXIT_FAILURE
%45 = tail call i32 @exit(i32 %44)
unreachable
46: ; preds = %39
%47 = tail call i32* @fdopen(i32 %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%48 = icmp eq i32* %47, null
br i1 %48, label %49, label %53
49: ; preds = %46
%50 = tail call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%51 = load i32, i32* @EXIT_FAILURE
%52 = tail call i32 @exit(i32 %51)
unreachable
53: ; preds = %46
%54 = tail call i32 @run_merge(i32* %21, i32* %33, i32* %47)
%55 = tail call i32 @fclose(i32* %47)
%56 = tail call i32 @close(i32 %40)
%57 = load i8*, i8** %15
%58 = tail call i64 @unlink(i8* %57)
%59 = icmp eq i64 %58, 0
br i1 %59, label %63, label %60
60: ; preds = %53
%61 = load i8*, i8** %15
%62 = tail call i32 @perror(i8* %61)
br label %63
63: ; preds = %60, %53
%64 = load i8*, i8** %15
%65 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %4, i8* %64)
%66 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%67 = call i32 @system(i8* %5)
%68 = call i32 @free(i8* %4)
ret i32 1
}