#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*/ *);
void *malloc(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
char *out_buf;
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strlen(char *);
char *strtok(char *, char *);
void edit_file_by_var(char *in_name, char *token, char *newtext) {
  FILE *in;
  FILE *out;
  char *line;
  int found = 0;
  int file_size = 0;
  in = fopen(in_name, "r");
  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 + strlen(newtext) + 10) * sizeof(char));
  memset(out_buf, 0, (file_size + strlen(newtext) + 10) * sizeof(char));
  line = strtok(in_buf, "\n");
  while (line) {
    if (strcmp(line, token) != 0) {
      strcat(out_buf, line);
      strcat(out_buf, "\n");
    } else {
      strcat(out_buf, line);
      strcat(out_buf, "\n");
      strcat(out_buf, newtext);
      strcat(out_buf, "\n");
      line = strtok(NULL, "\n");
      found = 1;
    }
    line = strtok(NULL, "\n");
  }
  if (found == 0) {
    ewe("edit_file_by_var: Token not found in file %s\n", token);
  }
  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);
}


x86 assembly (clang, -O0):
<edit_file_by_var>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdf3(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1231 <edit_file_by_var+0x51>
mov    -0x8(%rbp),%rsi
lea    0xdd6(%rip),%rdi
call   1060 <ewe@plt>
mov    -0x20(%rbp),%rdi
mov    0x2dac(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    -0x20(%rbp),%rdi
call   10a0 <ftell@plt>
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x2d7c(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    -0x38(%rbp),%edi
add    $0x1,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    -0x20(%rbp),%rcx
mov    $0x1,%edx
call   1040 <fread@plt>
mov    -0x40(%rbp),%rax
movslq -0x38(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x38(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,%ecx
mov    -0x5c(%rbp),%eax
add    %ecx,%eax
add    $0xa,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <strlen@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
add    %ecx,%eax
add    $0xa,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    -0x40(%rbp),%rdi
lea    0xd5b(%rip),%rsi
call   10e0 <strtok@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     13df <edit_file_by_var+0x1ff>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     1371 <edit_file_by_var+0x191>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   10f0 <strcat@plt>
mov    -0x48(%rbp),%rdi
lea    0xd18(%rip),%rsi
call   10f0 <strcat@plt>
jmp    13c6 <edit_file_by_var+0x1e6>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   10f0 <strcat@plt>
mov    -0x48(%rbp),%rdi
lea    0xcf6(%rip),%rsi
call   10f0 <strcat@plt>
mov    -0x48(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10f0 <strcat@plt>
mov    -0x48(%rbp),%rdi
lea    0xcd9(%rip),%rsi
call   10f0 <strcat@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xcc9(%rip),%rsi
call   10e0 <strtok@plt>
mov    %rax,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xcae(%rip),%rsi
call   10e0 <strtok@plt>
mov    %rax,-0x30(%rbp)
jmp    132d <edit_file_by_var+0x14d>
cmpl   $0x0,-0x34(%rbp)
jne    13f9 <edit_file_by_var+0x219>
mov    -0x10(%rbp),%rsi
lea    0xc33(%rip),%rdi
call   1060 <ewe@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
lea    0xc48(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1431 <edit_file_by_var+0x251>
mov    -0x8(%rbp),%rsi
lea    0xc2b(%rip),%rdi
call   1060 <ewe@plt>
mov    -0x48(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
call   1070 <strlen@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%esi
mov    -0x28(%rbp),%rcx
mov    $0x1,%edx
call   1100 <fwrite@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<edit_file_by_var>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%r12
mov    %rsi,%r13
lea    0xe05(%rip),%rsi
mov    %rdi,0x8(%rsp)
call   10d0 <fopen@plt>
mov    %rax,%r15
test   %rax,%rax
jne    121e <edit_file_by_var+0x3e>
lea    0xdee(%rip),%rdi
mov    0x8(%rsp),%rsi
call   1060 <ewe@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %rax,0x10(%rsp)
mov    %r15,%rdi
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    %r15,%rdi
call   10a0 <ftell@plt>
mov    %eax,%ebx
mov    0x2d8f(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
xor    %esi,%esi
call   10c0 <fseek@plt>
lea    0x1(%rbx),%ebp
mov    %ebp,%edi
call   10b0 <malloc@plt>
mov    %rax,%r14
mov    %rax,%rdi
xor    %esi,%esi
mov    %ebp,%edx
call   1080 <memset@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1040 <fread@plt>
movslq %ebx,%rbp
movb   $0x0,(%r14,%rbp,1)
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    %r12,%rdi
call   1070 <strlen@plt>
lea    (%rax,%rbp,1),%edi
add    $0xa,%edi
call   10b0 <malloc@plt>
mov    %rax,%rbx
mov    %r12,%rdi
call   1070 <strlen@plt>
lea    (%rax,%rbp,1),%edx
add    $0xa,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1080 <memset@plt>
lea    0xdba(%rip),%rsi
mov    %r14,0x20(%rsp)
mov    %r14,%rdi
call   10e0 <strtok@plt>
test   %rax,%rax
mov    0x8(%rsp),%r14
je     1378 <edit_file_by_var+0x198>
mov    %rax,%rbp
mov    %r15,0x18(%rsp)
lea    0xd90(%rip),%r14
jmp    1312 <edit_file_by_var+0x132>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    %r14,%rsi
call   10e0 <strtok@plt>
mov    %rax,%rbp
test   %rax,%rax
je     1367 <edit_file_by_var+0x187>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1090 <strcmp@plt>
mov    %rax,%r15
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10f0 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10f0 <strcat@plt>
test   %r15,%r15
jne    1300 <edit_file_by_var+0x120>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10f0 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10f0 <strcat@plt>
xor    %edi,%edi
mov    %r14,%rsi
call   10e0 <strtok@plt>
mov    $0x1,%eax
mov    %rax,0x10(%rsp)
jmp    1300 <edit_file_by_var+0x120>
cmpl   $0x0,0x10(%rsp)
mov    0x8(%rsp),%r14
mov    0x18(%rsp),%r15
jne    1387 <edit_file_by_var+0x1a7>
lea    0xca8(%rip),%rdi
mov    %r13,%rsi
call   1060 <ewe@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
lea    0xcbd(%rip),%rsi
mov    %r14,%rdi
call   10d0 <fopen@plt>
mov    %rax,%rbp
test   %r15,%r15
jne    13b7 <edit_file_by_var+0x1d7>
lea    0xca8(%rip),%rdi
mov    %r14,%rsi
call   1060 <ewe@plt>
mov    %rbx,%rdi
call   1070 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1100 <fwrite@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fclose@plt>

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

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