#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_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ ewe(char *, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int /*<<< orphan*/, int,
                          int /*<<< orphan*/ *);
int get_dump_status(int /*<<< orphan*/);
void *malloc(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
char *out_buf;
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strlen(char *);
char *strtok(char *, char *);
void edit_file_int(char *in_name, char *front, int line_to_edit, int value) {
  if (get_dump_status(0) == 1)
    printf("edit_file_int %s %d %d\n", in_name, line_to_edit, value);
  FILE *in;
  FILE *out;
  char *line;
  int file_size = 0;
  in = fopen(in_name, "r");
  int pos = 0;
  char temp[200];
  if (in == NULL) {
    ewe("edit_file_by_var: File %s not found\n", in_name);
  }
  fseek(in, 0, SEEK_END);
  file_size = ftell(in);
  fseek(in, 0, SEEK_SET);
  char *in_buf = malloc(file_size + 1);
  memset(in_buf, 0, (file_size + 1) * sizeof(char));
  fread(in_buf, file_size, 1, in);
  in_buf[file_size] = 0;
  fclose(in);
  char *out_buf = out_buf = malloc((file_size + 100) * sizeof(char));
  memset(out_buf, 0, (file_size + 100) * sizeof(char));
  line = strtok(in_buf, "\n");
  while (line) {
    pos++;
    if (pos != line_to_edit) {
      strcat(out_buf, line);
      strcat(out_buf, "\n");
    } else {
      sprintf(temp, "%s%ld\n", front, value);
      strcat(out_buf, temp);
    }
    line = strtok(NULL, "\n");
  }
  free(in_buf);
  out = fopen(in_name, "w");
  if (in == NULL) {
    ewe("edit_file_by_var: Can not write file %s \n", in_name);
  }
  fwrite(out_buf, strlen(out_buf), 1, out);
  free(out_buf);
  fclose(out);
  if (get_dump_status(0) == 1)
    printf("Exit edit_file_int %s\n", in_name);
}


x86 assembly (clang, -O0):
<edit_file_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
xor    %edi,%edi
call   10b0 <get_dump_status@plt>
cmp    $0x1,%eax
jne    1241 <edit_file_int+0x41>
mov    -0x8(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdc5(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x38(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    127e <edit_file_int+0x7e>
mov    -0x8(%rbp),%rsi
lea    0xda1(%rip),%rdi
call   1060 <ewe@plt>
mov    -0x20(%rbp),%rdi
mov    0x2d5f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    -0x20(%rbp),%rdi
call   10a0 <ftell@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x2d2f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    -0x34(%rbp),%edi
add    $0x1,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x108(%rbp)
mov    -0x108(%rbp),%rdi
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1090 <memset@plt>
mov    -0x108(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x20(%rbp),%rcx
mov    $0x1,%edx
call   1040 <fread@plt>
mov    -0x108(%rbp),%rax
movslq -0x34(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x34(%rbp),%eax
add    $0x64,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x110(%rbp)
mov    %rax,-0x110(%rbp)
mov    -0x110(%rbp),%rdi
mov    -0x34(%rbp),%eax
add    $0x64,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1090 <memset@plt>
mov    -0x108(%rbp),%rdi
lea    0xd15(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     13f2 <edit_file_int+0x1f2>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     13ac <edit_file_int+0x1ac>
mov    -0x110(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1100 <strcat@plt>
mov    -0x110(%rbp),%rdi
lea    0xcce(%rip),%rsi
call   1100 <strcat@plt>
jmp    13d9 <edit_file_int+0x1d9>
lea    -0x100(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%ecx
lea    0xc7e(%rip),%rsi
call   1110 <sprintf@plt>
mov    -0x110(%rbp),%rdi
lea    -0x100(%rbp),%rsi
call   1100 <strcat@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xc8c(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x30(%rbp)
jmp    1364 <edit_file_int+0x164>
mov    -0x108(%rbp),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
lea    0xc3d(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    142d <edit_file_int+0x22d>
mov    -0x8(%rbp),%rsi
lea    0xc20(%rip),%rdi
call   1060 <ewe@plt>
mov    -0x110(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x110(%rbp),%rdi
call   1070 <strlen@plt>
mov    -0x118(%rbp),%rdi
mov    %eax,%esi
mov    -0x28(%rbp),%rcx
mov    $0x1,%edx
call   1120 <fwrite@plt>
mov    -0x110(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
xor    %edi,%edi
call   10b0 <get_dump_status@plt>
cmp    $0x1,%eax
jne    1495 <edit_file_int+0x295>
mov    -0x8(%rbp),%rsi
lea    0xbe4(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<edit_file_int>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %ecx,%r13d
mov    %edx,%ebx
mov    %rsi,0x18(%rsp)
mov    %rdi,%r14
xor    %edi,%edi
call   10b0 <get_dump_status@plt>
cmp    $0x1,%eax
jne    1240 <edit_file_int+0x40>
lea    0xdcf(%rip),%rdi
mov    %r14,%rsi
mov    %ebx,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xdd1(%rip),%rsi
mov    %r14,%rdi
call   10e0 <fopen@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    1266 <edit_file_int+0x66>
lea    0xdbc(%rip),%rdi
mov    %r14,%rsi
call   1060 <ewe@plt>
mov    %r14,0x10(%rsp)
mov    0x2d76(%rip),%rax
mov    (%rax),%edx
mov    %rbp,%rdi
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    %rbp,%rdi
call   10a0 <ftell@plt>
mov    %eax,%r14d
mov    0x2d48(%rip),%rax
mov    (%rax),%edx
mov    %rbp,%rdi
xor    %esi,%esi
call   10d0 <fseek@plt>
lea    0x1(%r14),%r15d
mov    %r15d,%edi
call   10c0 <malloc@plt>
mov    %rax,%r12
mov    %rax,%rdi
xor    %esi,%esi
mov    %r15d,%edx
call   1090 <memset@plt>
mov    %r12,%rdi
mov    %r14d,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1040 <fread@plt>
movslq %r14d,%r14
movb   $0x0,(%r12,%r14,1)
mov    %rbp,0x8(%rsp)
mov    %rbp,%rdi
call   1050 <fclose@plt>
add    $0x64,%r14d
mov    %r14d,%edi
call   10c0 <malloc@plt>
mov    %rax,%rbp
mov    %rax,%rdi
xor    %esi,%esi
mov    %r14d,%edx
call   1090 <memset@plt>
lea    0xd6d(%rip),%rsi
mov    %r12,(%rsp)
mov    %r12,%rdi
call   10f0 <strtok@plt>
test   %rax,%rax
je     1375 <edit_file_int+0x175>
add    $0xffffffff,%ebx
lea    0xd21(%rip),%r12
lea    0x20(%rsp),%r14
lea    0xd46(%rip),%r15
jmp    135d <edit_file_int+0x15d>
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %r12,%rsi
mov    0x18(%rsp),%rdx
mov    %r13d,%ecx
call   1110 <sprintf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1100 <strcat@plt>
xor    %edi,%edi
mov    %r15,%rsi
call   10f0 <strtok@plt>
test   %rax,%rax
je     1375 <edit_file_int+0x175>
sub    $0x1,%ebx
jb     1330 <edit_file_int+0x130>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1100 <strcat@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
jmp    1349 <edit_file_int+0x149>
mov    (%rsp),%rdi
call   1030 <free@plt>
lea    0xcc1(%rip),%rsi
mov    0x10(%rsp),%r14
mov    %r14,%rdi
call   10e0 <fopen@plt>
mov    %rax,%rbx
cmpq   $0x0,0x8(%rsp)
jne    13ac <edit_file_int+0x1ac>
lea    0xca4(%rip),%rdi
mov    %r14,%rsi
call   1060 <ewe@plt>
mov    %rbp,%rdi
call   1070 <strlen@plt>
mov    %rbp,%rdi
mov    %eax,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1120 <fwrite@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
xor    %edi,%edi
call   10b0 <get_dump_status@plt>
cmp    $0x1,%eax
jne    13f3 <edit_file_int+0x1f3>
lea    0xc89(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"edit_file_int %s %d %d\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [37 x i8] c"edit_file_by_var: File %s not found\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [7 x i8] c"%s%ld\0A\00"
@.str.5 = [2 x i8] c"w\00"
@.str.6 = [42 x i8] c"edit_file_by_var: Can not write file %s \0A\00"
@.str.7 = [23 x i8] c"Exit edit_file_int %s\0A\00"
@out_buf = global i8* null
define void @edit_file_int(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca [200 x i8]
%15 = alloca i8*
%16 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%17 = call i32 @get_dump_status(i32 0)
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %24
19: ; preds = %4
%20 = load i8*, i8** %5
%21 = load i32, i32* %7
%22 = load i32, i32* %8
%23 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %20, i32 %21, i32 %22)
br label %24
24: ; preds = %19, %4
store i32 0, i32* %12
%25 = load i8*, i8** %5
%26 = call i32* @fopen(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %26, i32** %9
store i32 0, i32* %13
%27 = load i32*, i32** %9
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = load i8*, i8** %5
%31 = call i32 @ewe(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* %30)
br label %32
32: ; preds = %29, %24
%33 = load i32*, i32** %9
%34 = load i32, i32* @SEEK_END
%35 = call i32 @fseek(i32* %33, i32 0, i32 %34)
%36 = load i32*, i32** %9
%37 = call i32 @ftell(i32* %36)
store i32 %37, i32* %12
%38 = load i32*, i32** %9
%39 = load i32, i32* @SEEK_SET
%40 = call i32 @fseek(i32* %38, i32 0, i32 %39)
%41 = load i32, i32* %12
%42 = add nsw i32 %41, 1
%43 = call i8* @malloc(i32 %42)
store i8* %43, i8** %15
%44 = load i8*, i8** %15
%45 = load i32, i32* %12
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 1
%49 = trunc i64 %48 to i32
%50 = call i32 @memset(i8* %44, i32 0, i32 %49)
%51 = load i8*, i8** %15
%52 = load i32, i32* %12
%53 = load i32*, i32** %9
%54 = call i32 @fread(i8* %51, i32 %52, i32 1, i32* %53)
%55 = load i8*, i8** %15
%56 = load i32, i32* %12
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, i8* %55, i64 %57
store i8 0, i8* %58
%59 = load i32*, i32** %9
%60 = call i32 @fclose(i32* %59)
%61 = load i32, i32* %12
%62 = add nsw i32 %61, 100
%63 = sext i32 %62 to i64
%64 = mul i64 %63, 1
%65 = trunc i64 %64 to i32
%66 = call i8* @malloc(i32 %65)
store i8* %66, i8** %16
store i8* %66, i8** %16
%67 = load i8*, i8** %16
%68 = load i32, i32* %12
%69 = add nsw i32 %68, 100
%70 = sext i32 %69 to i64
%71 = mul i64 %70, 1
%72 = trunc i64 %71 to i32
%73 = call i32 @memset(i8* %67, i32 0, i32 %72)
%74 = load i8*, i8** %15
%75 = call i8* @strtok(i8* %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i8* %75, i8** %11
br label %76
76: ; preds = %99, %32
%77 = load i8*, i8** %11
%78 = icmp ne i8* %77, null
br i1 %78, label %79, label %101
79: ; preds = %76
%80 = load i32, i32* %13
%81 = add nsw i32 %80, 1
store i32 %81, i32* %13
%82 = load i32, i32* %13
%83 = load i32, i32* %7
%84 = icmp ne i32 %82, %83
br i1 %84, label %85, label %91
85: ; preds = %79
%86 = load i8*, i8** %16
%87 = load i8*, i8** %11
%88 = call i32 @strcat(i8* %86, i8* %87)
%89 = load i8*, i8** %16
%90 = call i32 @strcat(i8* %89, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %99
91: ; preds = %79
%92 = getelementptr inbounds [200 x i8], [200 x i8]* %14, i64 0, i64 0
%93 = load i8*, i8** %6
%94 = load i32, i32* %8
%95 = call i32 @sprintf(i8* %92, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %93, i32 %94)
%96 = load i8*, i8** %16
%97 = getelementptr inbounds [200 x i8], [200 x i8]* %14, i64 0, i64 0
%98 = call i32 @strcat(i8* %96, i8* %97)
br label %99
99: ; preds = %91, %85
%100 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i8* %100, i8** %11
br label %76
101: ; preds = %76
%102 = load i8*, i8** %15
%103 = call i32 @free(i8* %102)
%104 = load i8*, i8** %5
%105 = call i32* @fopen(i8* %104, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %105, i32** %10
%106 = load i32*, i32** %9
%107 = icmp eq i32* %106, null
br i1 %107, label %108, label %111
108: ; preds = %101
%109 = load i8*, i8** %5
%110 = call i32 @ewe(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %109)
br label %111
111: ; preds = %108, %101
%112 = load i8*, i8** %16
%113 = load i8*, i8** %16
%114 = call i32 @strlen(i8* %113)
%115 = load i32*, i32** %10
%116 = call i32 @fwrite(i8* %112, i32 %114, i32 1, i32* %115)
%117 = load i8*, i8** %16
%118 = call i32 @free(i8* %117)
%119 = load i32*, i32** %10
%120 = call i32 @fclose(i32* %119)
%121 = call i32 @get_dump_status(i32 0)
%122 = icmp eq i32 %121, 1
br i1 %122, label %123, label %126
123: ; preds = %111
%124 = load i8*, i8** %5
%125 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %124)
br label %126
126: ; preds = %123, %111
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"edit_file_int %s %d %d\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [37 x i8] c"edit_file_by_var: File %s not found\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [7 x i8] c"%s%ld\0A\00"
@.str.5 = [2 x i8] c"w\00"
@.str.6 = [42 x i8] c"edit_file_by_var: Can not write file %s \0A\00"
@.str.7 = [23 x i8] c"Exit edit_file_int %s\0A\00"
@out_buf = global i8* null
define void @edit_file_int(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca [200 x i8]
%6 = tail call i32 @get_dump_status(i32 0)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %4
%9 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %2, i32 %3)
br label %10
10: ; preds = %8, %4
%11 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%13 = icmp eq i32* %11, null
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = tail call i32 @ewe(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %16
16: ; preds = %14, %10
%17 = load i32, i32* @SEEK_END
%18 = tail call i32 @fseek(i32* %11, i32 0, i32 %17)
%19 = tail call i32 @ftell(i32* %11)
%20 = load i32, i32* @SEEK_SET
%21 = tail call i32 @fseek(i32* %11, i32 0, i32 %20)
%22 = add nsw i32 %19, 1
%23 = tail call i8* @malloc(i32 %22)
%24 = tail call i32 @memset(i8* %23, i32 0, i32 %22)
%25 = tail call i32 @fread(i8* %23, i32 %19, i32 1, i32* %11)
%26 = sext i32 %19 to i64
%27 = getelementptr inbounds i8, i8* %23, i64 %26
store i8 0, i8* %27
%28 = tail call i32 @fclose(i32* %11)
%29 = add nsw i32 %19, 100
%30 = tail call i8* @malloc(i32 %29)
%31 = tail call i32 @memset(i8* %30, i32 0, i32 %29)
%32 = tail call i8* @strtok(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%33 = icmp eq i8* %32, null
br i1 %33, label %48, label %34
34: ; preds = %16, %45
%35 = phi i8* [ %46, %45 ], [ %32, %16 ]
%36 = phi i32 [ %37, %45 ], [ 0, %16 ]
%37 = add nuw nsw i32 %36, 1
%38 = icmp eq i32 %37, %2
br i1 %38, label %42, label %39
39: ; preds = %34
%40 = call i32 @strcat(i8* %30, i8* %35)
%41 = call i32 @strcat(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %45
42: ; preds = %34
%43 = call i32 @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %1, i32 %3)
%44 = call i32 @strcat(i8* %30, i8* %12)
br label %45
45: ; preds = %42, %39
%46 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%47 = icmp eq i8* %46, null
br i1 %47, label %48, label %34
48: ; preds = %45, %16
%49 = call i32 @free(i8* %23)
%50 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br i1 %13, label %51, label %53
51: ; preds = %48
%52 = call i32 @ewe(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %0)
br label %53
53: ; preds = %51, %48
%54 = call i32 @strlen(i8* %30)
%55 = call i32 @fwrite(i8* %30, i32 %54, i32 1, i32* %50)
%56 = call i32 @free(i8* %30)
%57 = call i32 @fclose(i32* %50)
%58 = call i32 @get_dump_status(i32 0)
%59 = icmp eq i32 %58, 1
br i1 %59, label %60, label %62
60: ; preds = %53
%61 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %0)
br label %62
62: ; preds = %60, %53
ret void
}