#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*/ *create_file(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *open_file(char *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ rename_file(char *);
int /*<<< orphan*/ save_str(int /*<<< orphan*/ *, int /*<<< orphan*/ *, char *);
void convert_statistics(char *filename) {
  FILE *f, *f2;
  printf("converting statistics %s\n", filename);
  if ((f = open_file(filename)) == NULL)
    return;
  if ((f2 = create_file(filename)) == NULL) {
    fclose(f);
    return;
  }
  save_str(f, f2, "oldest");
  save_str(f, f2, "youngest");
  save_str(f, f2, "most_logins");
  save_str(f, f2, "most_xsent");
  save_str(f, f2, "most_xrecv");
  save_str(f, f2, "most_esent");
  save_str(f, f2, "most_erecv");
  save_str(f, f2, "most_posted");
  save_str(f, f2, "most_read");
  save_str(f, f2, "oldest_birth");
  save_str(f, f2, "youngest_birth");
  save_str(f, f2, "logins");
  save_str(f, f2, "xsent");
  save_str(f, f2, "xrecv");
  save_str(f, f2, "esent");
  save_str(f, f2, "erecv");
  save_str(f, f2, "posted");
  save_str(f, f2, "read");
  save_str(f, f2, "oldest_age");
  save_str(f, f2, "most_fsent");
  save_str(f, f2, "most_frecv");
  save_str(f, f2, "fsent");
  save_str(f, f2, "frecv");
  fclose(f);
  fclose(f2);
  rename_file(filename);
}


x86 assembly (clang, -O0):
<convert_statistics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xe89(%rip),%rdi
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <open_file@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1198 <convert_statistics+0x38>
jmp    13a4 <convert_statistics+0x244>
mov    -0x8(%rbp),%rdi
call   1080 <create_file@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    11bd <convert_statistics+0x5d>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
jmp    13a4 <convert_statistics+0x244>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe4e(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe41(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe36(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe2e(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe25(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe1c(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe13(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe0a(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xe02(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xdf8(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xdf1(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd87(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd7f(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd76(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd6d(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd64(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd5b(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd53(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd60(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd57(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd4e(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd34(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xd2b(%rip),%rdx
call   1030 <save_str@plt>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x8(%rbp),%rdi
call   1070 <rename_file@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert_statistics>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
lea    0xe91(%rip),%rdi
mov    %r14,%rsi
call   1060 <printf@plt>
mov    %r14,%rdi
call   1050 <open_file@plt>
test   %rax,%rax
je     135a <convert_statistics+0x1fa>
mov    %rax,%rbx
mov    %r14,%rdi
call   1080 <create_file@plt>
test   %rax,%rax
je     1360 <convert_statistics+0x200>
mov    %rax,%r15
lea    0xe74(%rip),%rdx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <save_str@plt>
lea    0xe69(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe60(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe5a(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe53(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe4c(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe45(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe3e(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe38(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe30(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xe2b(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xdc3(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xdbd(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xdb6(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xdaf(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xda8(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xda1(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xd9b(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xdaa(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xda3(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xd9c(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xd84(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
lea    0xd7d(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <save_str@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1070 <rename_file@plt>
pop    %rbx
pop    %r14
pop    %r15
ret
mov    %rbx,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <fclose@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"converting statistics %s\0A\00"
@.str.1 = [7 x i8] c"oldest\00"
@.str.2 = [9 x i8] c"youngest\00"
@.str.3 = [12 x i8] c"most_logins\00"
@.str.4 = [11 x i8] c"most_xsent\00"
@.str.5 = [11 x i8] c"most_xrecv\00"
@.str.6 = [11 x i8] c"most_esent\00"
@.str.7 = [11 x i8] c"most_erecv\00"
@.str.8 = [12 x i8] c"most_posted\00"
@.str.9 = [10 x i8] c"most_read\00"
@.str.10 = [13 x i8] c"oldest_birth\00"
@.str.11 = [15 x i8] c"youngest_birth\00"
@.str.12 = [7 x i8] c"logins\00"
@.str.13 = [6 x i8] c"xsent\00"
@.str.14 = [6 x i8] c"xrecv\00"
@.str.15 = [6 x i8] c"esent\00"
@.str.16 = [6 x i8] c"erecv\00"
@.str.17 = [7 x i8] c"posted\00"
@.str.18 = [5 x i8] c"read\00"
@.str.19 = [11 x i8] c"oldest_age\00"
@.str.20 = [11 x i8] c"most_fsent\00"
@.str.21 = [11 x i8] c"most_frecv\00"
@.str.22 = [6 x i8] c"fsent\00"
@.str.23 = [6 x i8] c"frecv\00"
define void @convert_statistics(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
%4 = alloca i32*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i8*, i8** %2
%8 = call i32* @open_file(i8* %7)
store i32* %8, i32** %3
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
br label %94
11: ; preds = %1
%12 = load i8*, i8** %2
%13 = call i32* @create_file(i8* %12)
store i32* %13, i32** %4
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32*, i32** %3
%17 = call i32 @fclose(i32* %16)
br label %94
18: ; preds = %11
%19 = load i32*, i32** %3
%20 = load i32*, i32** %4
%21 = call i32 @save_str(i32* %19, i32* %20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%22 = load i32*, i32** %3
%23 = load i32*, i32** %4
%24 = call i32 @save_str(i32* %22, i32* %23, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%25 = load i32*, i32** %3
%26 = load i32*, i32** %4
%27 = call i32 @save_str(i32* %25, i32* %26, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%28 = load i32*, i32** %3
%29 = load i32*, i32** %4
%30 = call i32 @save_str(i32* %28, i32* %29, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%31 = load i32*, i32** %3
%32 = load i32*, i32** %4
%33 = call i32 @save_str(i32* %31, i32* %32, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%34 = load i32*, i32** %3
%35 = load i32*, i32** %4
%36 = call i32 @save_str(i32* %34, i32* %35, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%37 = load i32*, i32** %3
%38 = load i32*, i32** %4
%39 = call i32 @save_str(i32* %37, i32* %38, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%40 = load i32*, i32** %3
%41 = load i32*, i32** %4
%42 = call i32 @save_str(i32* %40, i32* %41, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%43 = load i32*, i32** %3
%44 = load i32*, i32** %4
%45 = call i32 @save_str(i32* %43, i32* %44, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%46 = load i32*, i32** %3
%47 = load i32*, i32** %4
%48 = call i32 @save_str(i32* %46, i32* %47, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%49 = load i32*, i32** %3
%50 = load i32*, i32** %4
%51 = call i32 @save_str(i32* %49, i32* %50, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%52 = load i32*, i32** %3
%53 = load i32*, i32** %4
%54 = call i32 @save_str(i32* %52, i32* %53, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%55 = load i32*, i32** %3
%56 = load i32*, i32** %4
%57 = call i32 @save_str(i32* %55, i32* %56, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%58 = load i32*, i32** %3
%59 = load i32*, i32** %4
%60 = call i32 @save_str(i32* %58, i32* %59, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%61 = load i32*, i32** %3
%62 = load i32*, i32** %4
%63 = call i32 @save_str(i32* %61, i32* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%64 = load i32*, i32** %3
%65 = load i32*, i32** %4
%66 = call i32 @save_str(i32* %64, i32* %65, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%67 = load i32*, i32** %3
%68 = load i32*, i32** %4
%69 = call i32 @save_str(i32* %67, i32* %68, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%70 = load i32*, i32** %3
%71 = load i32*, i32** %4
%72 = call i32 @save_str(i32* %70, i32* %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%73 = load i32*, i32** %3
%74 = load i32*, i32** %4
%75 = call i32 @save_str(i32* %73, i32* %74, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
%76 = load i32*, i32** %3
%77 = load i32*, i32** %4
%78 = call i32 @save_str(i32* %76, i32* %77, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0))
%79 = load i32*, i32** %3
%80 = load i32*, i32** %4
%81 = call i32 @save_str(i32* %79, i32* %80, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0))
%82 = load i32*, i32** %3
%83 = load i32*, i32** %4
%84 = call i32 @save_str(i32* %82, i32* %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0))
%85 = load i32*, i32** %3
%86 = load i32*, i32** %4
%87 = call i32 @save_str(i32* %85, i32* %86, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0))
%88 = load i32*, i32** %3
%89 = call i32 @fclose(i32* %88)
%90 = load i32*, i32** %4
%91 = call i32 @fclose(i32* %90)
%92 = load i8*, i8** %2
%93 = call i32 @rename_file(i8* %92)
br label %94
94: ; preds = %18, %15, %10
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"converting statistics %s\0A\00"
@.str.1 = [7 x i8] c"oldest\00"
@.str.2 = [9 x i8] c"youngest\00"
@.str.3 = [12 x i8] c"most_logins\00"
@.str.4 = [11 x i8] c"most_xsent\00"
@.str.5 = [11 x i8] c"most_xrecv\00"
@.str.6 = [11 x i8] c"most_esent\00"
@.str.7 = [11 x i8] c"most_erecv\00"
@.str.8 = [12 x i8] c"most_posted\00"
@.str.9 = [10 x i8] c"most_read\00"
@.str.10 = [13 x i8] c"oldest_birth\00"
@.str.11 = [15 x i8] c"youngest_birth\00"
@.str.12 = [7 x i8] c"logins\00"
@.str.13 = [6 x i8] c"xsent\00"
@.str.14 = [6 x i8] c"xrecv\00"
@.str.15 = [6 x i8] c"esent\00"
@.str.16 = [6 x i8] c"erecv\00"
@.str.17 = [7 x i8] c"posted\00"
@.str.18 = [5 x i8] c"read\00"
@.str.19 = [11 x i8] c"oldest_age\00"
@.str.20 = [11 x i8] c"most_fsent\00"
@.str.21 = [11 x i8] c"most_frecv\00"
@.str.22 = [6 x i8] c"fsent\00"
@.str.23 = [6 x i8] c"frecv\00"
define void @convert_statistics(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32* @open_file(i8* %0)
%4 = icmp eq i32* %3, null
br i1 %4, label %37, label %5
5: ; preds = %1
%6 = tail call i32* @create_file(i8* %0)
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @fclose(i32* %3)
br label %37
10: ; preds = %5
%11 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%14 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%15 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%16 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%17 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%18 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%19 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%20 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%21 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%22 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%23 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%24 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%25 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%26 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%27 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%28 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%29 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
%30 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0))
%31 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0))
%32 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0))
%33 = tail call i32 @save_str(i32* %3, i32* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0))
%34 = tail call i32 @fclose(i32* %3)
%35 = tail call i32 @fclose(i32* %6)
%36 = tail call i32 @rename_file(i8* %0)
br label %37
37: ; preds = %1, %10, %8
ret void
}