#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*/ nv;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
char *my_malloc(int);
scalar_t__ realloc(char *, int);
int /*<<< orphan*/ sprintf(char *, char *, ...);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
char *strsep(char **, char *);
int /*<<< orphan*/ *strstr(char *, char *);
char *delete_nvram_contents(char *url, char *folder) {
  char *nv;
  char *nvp;
  char *p, *b;
  char *new_nv;
  int n;
  int i = 0;
  FILE *fp;
  fp = fopen("/opt/etc/smb_tokenfile", "r");
  if (fp == NULL) {
    nv = my_malloc(2);
    sprintf(nv, "");
  } else {
    fseek(fp, 0, SEEK_END);
    int file_size;
    file_size = ftell(fp);
    fseek(fp, 0, SEEK_SET);
    nv = my_malloc(file_size + 2);
    fscanf(fp, "%[^\n]%*c", nv);
    p = nv;
    fclose(fp);
  }
  nvp = my_malloc(strlen(url) + strlen(folder) + 2);
  sprintf(nvp, "%s>%s", url, folder);
  if (strstr(nv, nvp) == NULL) {
    free(nvp);
    return nv;
  }
  if (!strcmp(nv, nvp)) {
    free(nvp);
    memset(nv, 0, sizeof(nv));
    sprintf(nv, "");
    return nv;
  }
  if (nv) {
    while ((b = strsep(&p, "<")) != NULL) {
      if (strcmp(b, nvp)) {
        n = strlen(b);
        if (i == 0) {
          new_nv = my_malloc(n + 1);
          sprintf(new_nv, "%s", b);
          ++i;
        } else {
          new_nv = (char *)realloc(new_nv, strlen(new_nv) + n + 2);
          sprintf(new_nv, "%s<%s", new_nv, b);
        }
      }
    }
    free(nv);
  }
  free(nvp);
  return new_nv;
}


x86 assembly (clang, -O0):
<delete_nvram_contents>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x48(%rbp)
lea    0xe02(%rip),%rdi
lea    0xe12(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    123e <delete_nvram_contents+0x5e>
mov    $0x2,%edi
call   1040 <my_malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xdf7(%rip),%rsi
mov    $0x0,%al
call   10f0 <sprintf@plt>
jmp    12a6 <delete_nvram_contents+0xc6>
mov    -0x50(%rbp),%rdi
mov    0x2d9f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    -0x50(%rbp),%rdi
call   10a0 <ftell@plt>
mov    %eax,-0x54(%rbp)
mov    -0x50(%rbp),%rdi
mov    0x2d6f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    -0x54(%rbp),%edi
add    $0x2,%edi
call   1040 <my_malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xd89(%rip),%rsi
call   1080 <fscanf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x50(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x58(%rbp)
mov    -0x18(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x58(%rbp),%edi
add    %eax,%edi
add    $0x2,%edi
call   1040 <my_malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    0xd43(%rip),%rsi
mov    $0x0,%al
call   10f0 <sprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1100 <strstr@plt>
cmp    $0x0,%rax
jne    1313 <delete_nvram_contents+0x133>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1454 <delete_nvram_contents+0x274>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1362 <delete_nvram_contents+0x182>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    -0x20(%rbp),%rdi
lea    0xcdb(%rip),%rsi
mov    $0x0,%al
call   10f0 <sprintf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1454 <delete_nvram_contents+0x274>
cmpq   $0x0,-0x20(%rbp)
je     1443 <delete_nvram_contents+0x263>
jmp    1372 <delete_nvram_contents+0x192>
lea    -0x30(%rbp),%rdi
lea    0xcab(%rip),%rsi
call   10b0 <strsep@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     143a <delete_nvram_contents+0x25a>
mov    -0x38(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     1435 <delete_nvram_contents+0x255>
mov    -0x38(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x48(%rbp)
jne    13f0 <delete_nvram_contents+0x210>
mov    -0x44(%rbp),%edi
add    $0x1,%edi
call   1040 <my_malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%rdx
lea    0xc52(%rip),%rsi
mov    $0x0,%al
call   10f0 <sprintf@plt>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1430 <delete_nvram_contents+0x250>
mov    -0x40(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%esi
add    -0x44(%rbp),%esi
add    $0x2,%esi
call   10d0 <realloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x40(%rbp),%rdx
mov    -0x38(%rbp),%rcx
lea    0xc01(%rip),%rsi
mov    $0x0,%al
call   10f0 <sprintf@plt>
jmp    1435 <delete_nvram_contents+0x255>
jmp    1372 <delete_nvram_contents+0x192>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<delete_nvram_contents>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %rdi,%r12
lea    0xdf8(%rip),%rdi
lea    0xe08(%rip),%rsi
call   10f0 <fopen@plt>
test   %rax,%rax
je     1279 <delete_nvram_contents+0x89>
mov    %rax,%rbx
mov    0x2dc5(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    %rbx,%rdi
call   10b0 <ftell@plt>
mov    %eax,%ebp
mov    0x2d98(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   10d0 <fseek@plt>
add    $0x2,%ebp
mov    %ebp,%edi
call   1040 <my_malloc@plt>
mov    %rax,%r14
lea    0xdb9(%rip),%rsi
mov    %rbx,%rdi
mov    %rax,%rdx
call   1090 <fscanf@plt>
mov    %r14,(%rsp)
mov    %rbx,%rdi
call   1060 <fclose@plt>
jmp    1289 <delete_nvram_contents+0x99>
mov    $0x2,%edi
call   1040 <my_malloc@plt>
mov    %rax,%r14
movb   $0x0,(%rax)
mov    %r12,%rdi
call   1070 <strlen@plt>
mov    %eax,%ebx
mov    %r15,%rdi
call   1070 <strlen@plt>
lea    (%rbx,%rax,1),%edi
add    $0x2,%edi
call   1040 <my_malloc@plt>
mov    %rax,%r13
lea    0xd72(%rip),%rsi
mov    %rax,%rdi
mov    %r12,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   1100 <sprintf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
call   1110 <strstr@plt>
test   %rax,%rax
je     13aa <delete_nvram_contents+0x1ba>
mov    %r14,%rdi
mov    %r13,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13b4 <delete_nvram_contents+0x1c4>
test   %r14,%r14
je     13d1 <delete_nvram_contents+0x1e1>
lea    0xd30(%rip),%rsi
mov    %rsp,%rdi
call   10c0 <strsep@plt>
test   %rax,%rax
je     13d3 <delete_nvram_contents+0x1e3>
mov    %rax,%rbp
xor    %r12d,%r12d
jmp    136e <delete_nvram_contents+0x17e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1070 <strlen@plt>
lea    (%r15,%rax,1),%esi
add    $0x2,%esi
mov    %rbx,%rdi
call   10e0 <realloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
lea    0xce6(%rip),%rsi
mov    %rax,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1100 <sprintf@plt>
mov    $0x1,%r12d
mov    %rsp,%rdi
lea    0xcc7(%rip),%rsi
call   10c0 <strsep@plt>
mov    %rax,%rbp
test   %rax,%rax
je     13d3 <delete_nvram_contents+0x1e3>
mov    %rbp,%rdi
mov    %r13,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1357 <delete_nvram_contents+0x167>
mov    %rbp,%rdi
call   1070 <strlen@plt>
mov    %eax,%r15d
test   %r12d,%r12d
jne    1320 <delete_nvram_contents+0x130>
add    $0x1,%r15d
mov    %r15d,%edi
call   1040 <my_malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %rbp,%rsi
call   1050 <strcpy@plt>
jmp    1351 <delete_nvram_contents+0x161>
mov    %r13,%rdi
call   1030 <free@plt>
jmp    13e6 <delete_nvram_contents+0x1f6>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1080 <memset@plt>
movb   $0x0,(%r14)
jmp    13e6 <delete_nvram_contents+0x1f6>
jmp    13db <delete_nvram_contents+0x1eb>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %rbx,%r14
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [23 x i8] c"/opt/etc/smb_tokenfile\00"
@.str.1 = [2 x i8] c"r\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.3 = [9 x i8] c"%[^\0A]%*c\00"
@.str.4 = [6 x i8] c"%s>%s\00"
@.str.5 = [2 x i8] c"<\00"
@.str.7 = [6 x i8] c"%s<%s\00"
define i8* @delete_nvram_contents(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = bitcast i8** %3 to i8*
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i8* @my_malloc(i32 2)
store i8 0, i8* %8
br label %19
9: ; preds = %2
%10 = load i32, i32* @SEEK_END
%11 = tail call i32 @fseek(i32* %5, i32 0, i32 %10)
%12 = tail call i32 @ftell(i32* %5)
%13 = load i32, i32* @SEEK_SET
%14 = tail call i32 @fseek(i32* %5, i32 0, i32 %13)
%15 = add nsw i32 %12, 2
%16 = tail call i8* @my_malloc(i32 %15)
%17 = tail call i32 @fscanf(i32* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %16)
store i8* %16, i8** %3
%18 = tail call i32 @fclose(i32* %5)
br label %19
19: ; preds = %9, %7
%20 = phi i8* [ %8, %7 ], [ %16, %9 ]
%21 = tail call i32 @strlen(i8* %0)
%22 = tail call i32 @strlen(i8* %1)
%23 = add i32 %21, 2
%24 = add i32 %23, %22
%25 = tail call i8* @my_malloc(i32 %24)
%26 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %25, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %0, i8* %1)
%27 = tail call i32* @strstr(i8* dereferenceable(1) %20, i8* dereferenceable(1) %25)
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %31
29: ; preds = %19
%30 = tail call i32 @free(i8* %25)
br label %73
31: ; preds = %19
%32 = tail call i64 @strcmp(i8* %20, i8* %25)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = tail call i32 @free(i8* %25)
%36 = tail call i32 @memset(i8* %20, i32 0, i32 8)
store i8 0, i8* %20
br label %73
37: ; preds = %31
%38 = icmp eq i8* %20, null
br i1 %38, label %70, label %39
39: ; preds = %37
%40 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%41 = icmp eq i8* %40, null
br i1 %41, label %67, label %42
42: ; preds = %39, %62
%43 = phi i8* [ %65, %62 ], [ %40, %39 ]
%44 = phi i32 [ %64, %62 ], [ 0, %39 ]
%45 = phi i8* [ %63, %62 ], [ undef, %39 ]
%46 = call i64 @strcmp(i8* %43, i8* %25)
%47 = icmp eq i64 %46, 0
br i1 %47, label %62, label %48
48: ; preds = %42
%49 = call i32 @strlen(i8* %43)
%50 = icmp eq i32 %44, 0
br i1 %50, label %51, label %55
51: ; preds = %48
%52 = add nsw i32 %49, 1
%53 = call i8* @my_malloc(i32 %52)
%54 = call i8* @strcpy(i8* dereferenceable(1) %53, i8* %43)
br label %62
55: ; preds = %48
%56 = call i32 @strlen(i8* %45)
%57 = add i32 %49, 2
%58 = add i32 %57, %56
%59 = call i64 @realloc(i8* %45, i32 %58)
%60 = inttoptr i64 %59 to i8*
%61 = call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %60, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %60, i8* %43)
br label %62
62: ; preds = %51, %55, %42
%63 = phi i8* [ %53, %51 ], [ %60, %55 ], [ %45, %42 ]
%64 = phi i32 [ 1, %51 ], [ 1, %55 ], [ %44, %42 ]
%65 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%66 = icmp eq i8* %65, null
br i1 %66, label %67, label %42
67: ; preds = %62, %39
%68 = phi i8* [ undef, %39 ], [ %63, %62 ]
%69 = call i32 @free(i8* %20)
br label %70
70: ; preds = %67, %37
%71 = phi i8* [ %68, %67 ], [ undef, %37 ]
%72 = call i32 @free(i8* %25)
br label %73
73: ; preds = %70, %34, %29
%74 = phi i8* [ %20, %29 ], [ %71, %70 ], [ %20, %34 ]
ret i8* %74
}