#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;
typedef int /*<<< orphan*/ EVP_MD_CTX;
typedef int /*<<< orphan*/ EVP_MD;

/* Variables and functions */
int /*<<< orphan*/ EVP_DigestFinal_ex(int /*<<< orphan*/ *, unsigned char *,
                                      unsigned int *);
int /*<<< orphan*/ EVP_DigestInit_ex(int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ const *,
                                     int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_DigestUpdate(int /*<<< orphan*/ *, ...);
int EVP_MAX_MD_SIZE;
int /*<<< orphan*/ EVP_MD_CTX_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_MD_CTX_init(int /*<<< orphan*/ *);
int /*<<< orphan*/ *EVP_MD_CTX_new();
int /*<<< orphan*/ *EVP_get_digestbyname(char *);
int RAND_bytes(unsigned char *, int);
int base64_encode(unsigned char *, unsigned int, char **);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ stderr;
int strlen(char const *);
int output_new_password(FILE *fptr, const char *username,
                        const char *password) {
  int rc;
  unsigned char salt[12];
  char *salt64 = NULL, *hash64 = NULL;
  unsigned char hash[EVP_MAX_MD_SIZE];
  unsigned int hash_len;
  const EVP_MD *digest;
  EVP_MD_CTX *context;
  context = EVP_MD_CTX_new();
  rc = RAND_bytes(salt, 12);
  if (!rc) {
    fprintf(stderr, "Error: Insufficient entropy available to perform password "
                    "generation.\n");
    return 1;
  }
  rc = base64_encode(salt, 12, &salt64);
  if (rc) {
    if (salt64)
      free(salt64);
    fprintf(stderr, "Error: Unable to encode salt.\n");
    return 1;
  }
  digest = EVP_get_digestbyname("sha512");
  if (!digest) {
    fprintf(stderr, "Error: Unable to create openssl digest.\n");
    return 1;
  }
  EVP_MD_CTX_init(context);
  EVP_DigestInit_ex(context, digest, NULL);
  EVP_DigestUpdate(context, password, strlen(password));
  EVP_DigestUpdate(context, salt, 12);
  EVP_DigestFinal_ex(context, hash, &hash_len);
  EVP_MD_CTX_free(context);
  rc = base64_encode(hash, hash_len, &hash64);
  if (rc) {
    if (salt64)
      free(salt64);
    if (hash64)
      free(hash64);
    fprintf(stderr, "Error: Unable to encode hash.\n");
    return 1;
  }
  fprintf(fptr, "%s:$6$%s$%s\n", username, salt64, hash64);
  free(salt64);
  free(hash64);
  return 0;
}


x86 assembly (clang, -O0):
<output_new_password>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    0x2dfa(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x78(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    $0x0,%al
call   10e0 <EVP_MD_CTX_new@plt>
mov    %rax,-0x68(%rbp)
lea    -0x30(%rbp),%rdi
mov    $0xc,%esi
call   1070 <RAND_bytes@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1264 <output_new_password+0xa4>
mov    0x2d98(%rip),%rax
movslq (%rax),%rdi
lea    0xdb6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x6c(%rbp)
jmp    142e <output_new_password+0x26e>
lea    -0x30(%rbp),%rdi
mov    $0xc,%esi
lea    -0x38(%rbp),%rdx
call   10c0 <base64_encode@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     12c2 <output_new_password+0x102>
cmpq   $0x0,-0x38(%rbp)
je     1297 <output_new_password+0xd7>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    0x2d3a(%rip),%rax
movslq (%rax),%rdi
lea    0xd9f(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x6c(%rbp)
jmp    142e <output_new_password+0x26e>
lea    0xd9d(%rip),%rdi
call   10b0 <EVP_get_digestbyname@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    1308 <output_new_password+0x148>
mov    0x2cf4(%rip),%rax
movslq (%rax),%rdi
lea    0xd7f(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x6c(%rbp)
jmp    142e <output_new_password+0x26e>
mov    -0x68(%rbp),%rdi
call   10d0 <EVP_MD_CTX_init@plt>
mov    -0x68(%rbp),%rdi
mov    -0x60(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1080 <EVP_DigestInit_ex@plt>
mov    -0x68(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x20(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x88(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    %eax,%edx
mov    $0x0,%al
call   10a0 <EVP_DigestUpdate@plt>
mov    -0x68(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0xc,%edx
mov    $0x0,%al
call   10a0 <EVP_DigestUpdate@plt>
mov    -0x78(%rbp),%rsi
mov    -0x68(%rbp),%rdi
lea    -0x54(%rbp),%rdx
call   1050 <EVP_DigestFinal_ex@plt>
mov    -0x68(%rbp),%rdi
call   1040 <EVP_MD_CTX_free@plt>
mov    -0x78(%rbp),%rdi
mov    -0x54(%rbp),%esi
lea    -0x40(%rbp),%rdx
call   10c0 <base64_encode@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     13f0 <output_new_password+0x230>
cmpq   $0x0,-0x38(%rbp)
je     13b1 <output_new_password+0x1f1>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x40(%rbp)
je     13c5 <output_new_password+0x205>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    0x2c0c(%rip),%rax
movslq (%rax),%rdi
lea    0xcc0(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x6c(%rbp)
jmp    142e <output_new_password+0x26e>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
lea    0xcae(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x6c(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_new_password>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%r13
mov    %rsi,%r12
mov    %rdi,-0x58(%rbp)
mov    %rsp,%r15
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x30(%rbp)
mov    0x2de3(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
xor    %eax,%eax
call   10e0 <EVP_MD_CTX_new@plt>
mov    %rax,%r14
lea    -0x64(%rbp),%rdi
mov    $0xc,%esi
call   1070 <RAND_bytes@plt>
test   %eax,%eax
je     1270 <output_new_password+0xa0>
lea    -0x64(%rbp),%rdi
lea    -0x38(%rbp),%rdx
mov    $0xc,%esi
call   10c0 <base64_encode@plt>
test   %eax,%eax
je     12ab <output_new_password+0xdb>
mov    -0x38(%rbp),%rdi
test   %rdi,%rdi
je     1258 <output_new_password+0x88>
call   1030 <free@plt>
mov    0x2d79(%rip),%rax
movslq (%rax),%rcx
lea    0xdde(%rip),%rdi
mov    $0x1e,%esi
jmp    1286 <output_new_password+0xb6>
mov    0x2d61(%rip),%rax
movslq (%rax),%rcx
lea    0xd7f(%rip),%rdi
mov    $0x46,%esi
mov    $0x1,%edx
call   10f0 <fwrite@plt>
mov    $0x1,%r12d
mov    %r15,%rsp
mov    %r12d,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r15,-0x40(%rbp)
lea    0xdb0(%rip),%rdi
call   10b0 <EVP_get_digestbyname@plt>
test   %rax,%rax
je     1370 <output_new_password+0x1a0>
mov    %rax,%r15
mov    %r12,-0x50(%rbp)
mov    %r14,%rdi
call   10d0 <EVP_MD_CTX_init@plt>
xor    %r12d,%r12d
mov    %r14,%rdi
mov    %r15,%rsi
xor    %edx,%edx
call   1080 <EVP_DigestInit_ex@plt>
mov    %r13,%rdi
call   1060 <strlen@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   10a0 <EVP_DigestUpdate@plt>
lea    -0x64(%rbp),%rsi
mov    %r14,%rdi
mov    $0xc,%edx
xor    %eax,%eax
call   10a0 <EVP_DigestUpdate@plt>
lea    -0x44(%rbp),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <EVP_DigestFinal_ex@plt>
mov    %r14,%rdi
call   1040 <EVP_MD_CTX_free@plt>
mov    -0x44(%rbp),%esi
lea    -0x30(%rbp),%rdx
mov    %rbx,%rdi
call   10c0 <base64_encode@plt>
mov    -0x38(%rbp),%rcx
test   %eax,%eax
je     1398 <output_new_password+0x1c8>
test   %rcx,%rcx
mov    -0x40(%rbp),%r15
je     134c <output_new_password+0x17c>
mov    %rcx,%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
test   %rdi,%rdi
je     135a <output_new_password+0x18a>
call   1030 <free@plt>
mov    0x2c77(%rip),%rax
movslq (%rax),%rcx
lea    0xd2b(%rip),%rdi
jmp    1269 <output_new_password+0x99>
mov    0x2c61(%rip),%rax
movslq (%rax),%rcx
lea    0xcec(%rip),%rdi
mov    $0x28,%esi
mov    $0x1,%edx
call   10f0 <fwrite@plt>
mov    $0x1,%r12d
jmp    13c4 <output_new_password+0x1f4>
mov    -0x30(%rbp),%r8
lea    0xd12(%rip),%rsi
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%r15
jmp    1296 <output_new_password+0xc6>

LLVM IR (-O0):
@EVP_MAX_MD_SIZE = global i32 0
@stderr = global i32 0
@.str = [71 x i8] c"Error: Insufficient entropy available to perform password generation.\0A\00"
@.str.1 = [31 x i8] c"Error: Unable to encode salt.\0A\00"
@.str.2 = [7 x i8] c"sha512\00"
@.str.3 = [41 x i8] c"Error: Unable to create openssl digest.\0A\00"
@.str.4 = [31 x i8] c"Error: Unable to encode hash.\0A\00"
@.str.5 = [13 x i8] c"%s:$6$%s$%s\0A\00"
define i32 @output_new_password(i32* %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca [12 x i8]
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i32
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32
store i32* %0, i32** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* null, i8** %10
store i8* null, i8** %11
%18 = load i32, i32* @EVP_MAX_MD_SIZE
%19 = zext i32 %18 to i64
%20 = call i8* @llvm.stacksave()
store i8* %20, i8** %12
%21 = alloca i8, i64 %19
store i64 %19, i64* %13
%22 = call i32* (...) @EVP_MD_CTX_new()
store i32* %22, i32** %16
%23 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%24 = call i32 @RAND_bytes(i8* %23, i32 12)
store i32 %24, i32* %8
%25 = load i32, i32* %8
%26 = icmp ne i32 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %3
%28 = load i32, i32* @stderr
%29 = sext i32 %28 to i64
%30 = inttoptr i64 %29 to i32*
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %4
store i32 1, i32* %17
br label %106
32: ; preds = %3
%33 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%34 = call i32 @base64_encode(i8* %33, i32 12, i8** %10)
store i32 %34, i32* %8
%35 = load i32, i32* %8
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %48
37: ; preds = %32
%38 = load i8*, i8** %10
%39 = icmp ne i8* %38, null
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i8*, i8** %10
%42 = call i32 @free(i8* %41)
br label %43
43: ; preds = %40, %37
%44 = load i32, i32* @stderr
%45 = sext i32 %44 to i64
%46 = inttoptr i64 %45 to i32*
%47 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %4
store i32 1, i32* %17
br label %106
48: ; preds = %32
%49 = call i32* @EVP_get_digestbyname(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i32* %49, i32** %15
%50 = load i32*, i32** %15
%51 = icmp ne i32* %50, null
br i1 %51, label %57, label %52
52: ; preds = %48
%53 = load i32, i32* @stderr
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to i32*
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %4
store i32 1, i32* %17
br label %106
57: ; preds = %48
%58 = load i32*, i32** %16
%59 = call i32 @EVP_MD_CTX_init(i32* %58)
%60 = load i32*, i32** %16
%61 = load i32*, i32** %15
%62 = call i32 @EVP_DigestInit_ex(i32* %60, i32* %61, i32* null)
%63 = load i32*, i32** %16
%64 = load i8*, i8** %7
%65 = load i8*, i8** %7
%66 = call i32 @strlen(i8* %65)
%67 = call i32 (i32*, ...) @EVP_DigestUpdate(i32* %63, i8* %64, i32 %66)
%68 = load i32*, i32** %16
%69 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%70 = call i32 (i32*, ...) @EVP_DigestUpdate(i32* %68, i8* %69, i32 12)
%71 = load i32*, i32** %16
%72 = call i32 @EVP_DigestFinal_ex(i32* %71, i8* %21, i32* %14)
%73 = load i32*, i32** %16
%74 = call i32 @EVP_MD_CTX_free(i32* %73)
%75 = load i32, i32* %14
%76 = call i32 @base64_encode(i8* %21, i32 %75, i8** %11)
store i32 %76, i32* %8
%77 = load i32, i32* %8
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %96
79: ; preds = %57
%80 = load i8*, i8** %10
%81 = icmp ne i8* %80, null
br i1 %81, label %82, label %85
82: ; preds = %79
%83 = load i8*, i8** %10
%84 = call i32 @free(i8* %83)
br label %85
85: ; preds = %82, %79
%86 = load i8*, i8** %11
%87 = icmp ne i8* %86, null
br i1 %87, label %88, label %91
88: ; preds = %85
%89 = load i8*, i8** %11
%90 = call i32 @free(i8* %89)
br label %91
91: ; preds = %88, %85
%92 = load i32, i32* @stderr
%93 = sext i32 %92 to i64
%94 = inttoptr i64 %93 to i32*
%95 = call i32 (i32*, i8*, ...) @fprintf(i32* %94, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %4
store i32 1, i32* %17
br label %106
96: ; preds = %57
%97 = load i32*, i32** %5
%98 = load i8*, i8** %6
%99 = load i8*, i8** %10
%100 = load i8*, i8** %11
%101 = call i32 (i32*, i8*, ...) @fprintf(i32* %97, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %98, i8* %99, i8* %100)
%102 = load i8*, i8** %10
%103 = call i32 @free(i8* %102)
%104 = load i8*, i8** %11
%105 = call i32 @free(i8* %104)
store i32 0, i32* %4
store i32 1, i32* %17
br label %106
106: ; preds = %96, %91, %52, %43, %27
%107 = load i8*, i8** %12
%108 = load i32, i32* %4
ret i32 %108
}

LLVM IR (-O2):
@EVP_MAX_MD_SIZE = global i32 0
@stderr = global i32 0
@.str = [71 x i8] c"Error: Insufficient entropy available to perform password generation.\0A\00"
@.str.1 = [31 x i8] c"Error: Unable to encode salt.\0A\00"
@.str.2 = [7 x i8] c"sha512\00"
@.str.3 = [41 x i8] c"Error: Unable to create openssl digest.\0A\00"
@.str.4 = [31 x i8] c"Error: Unable to encode hash.\0A\00"
@.str.5 = [13 x i8] c"%s:$6$%s$%s\0A\00"
define i32 @output_new_password(i32* nocapture %0, i8* %1, i8* %2) {
%4 = alloca [12 x i8]
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%9 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%10 = bitcast i8** %6 to i8*
store i8* null, i8** %6
%11 = load i32, i32* @EVP_MAX_MD_SIZE
%12 = zext i32 %11 to i64
%13 = tail call i8* @llvm.stacksave()
%14 = alloca i8, i64 %12
%15 = bitcast i32* %7 to i8*
%16 = tail call i32* (...) @EVP_MD_CTX_new()
%17 = call i32 @RAND_bytes(i8* %8, i32 12)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %3
%20 = load i32, i32* @stderr
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to i32*
%23 = call i64 @fwrite(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i64 70, i64 1, i32* %22)
br label %78
24: ; preds = %3
%25 = call i32 @base64_encode(i8* %8, i32 12, i8** %5)
%26 = icmp eq i32 %25, 0
br i1 %26, label %37, label %27
27: ; preds = %24
%28 = load i8*, i8** %5
%29 = icmp eq i8* %28, null
br i1 %29, label %32, label %30
30: ; preds = %27
%31 = call i32 @free(i8* %28)
br label %32
32: ; preds = %30, %27
%33 = load i32, i32* @stderr
%34 = sext i32 %33 to i64
%35 = inttoptr i64 %34 to i32*
%36 = call i64 @fwrite(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i64 30, i64 1, i32* %35)
br label %78
37: ; preds = %24
%38 = call i32* @EVP_get_digestbyname(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%39 = icmp eq i32* %38, null
br i1 %39, label %40, label %45
40: ; preds = %37
%41 = load i32, i32* @stderr
%42 = sext i32 %41 to i64
%43 = inttoptr i64 %42 to i32*
%44 = call i64 @fwrite(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i64 40, i64 1, i32* %43)
br label %78
45: ; preds = %37
%46 = call i32 @EVP_MD_CTX_init(i32* %16)
%47 = call i32 @EVP_DigestInit_ex(i32* %16, i32* %38, i32* null)
%48 = call i32 @strlen(i8* %2)
%49 = call i32 (i32*, ...) @EVP_DigestUpdate(i32* %16, i8* %2, i32 %48)
%50 = call i32 (i32*, ...) @EVP_DigestUpdate(i32* %16, i8* %8, i32 12)
%51 = call i32 @EVP_DigestFinal_ex(i32* %16, i8* %14, i32* %7)
%52 = call i32 @EVP_MD_CTX_free(i32* %16)
%53 = load i32, i32* %7
%54 = call i32 @base64_encode(i8* %14, i32 %53, i8** %6)
%55 = icmp eq i32 %54, 0
%56 = load i8*, i8** %5
br i1 %55, label %71, label %57
57: ; preds = %45
%58 = icmp eq i8* %56, null
br i1 %58, label %61, label %59
59: ; preds = %57
%60 = call i32 @free(i8* %56)
br label %61
61: ; preds = %59, %57
%62 = load i8*, i8** %6
%63 = icmp eq i8* %62, null
br i1 %63, label %66, label %64
64: ; preds = %61
%65 = call i32 @free(i8* %62)
br label %66
66: ; preds = %64, %61
%67 = load i32, i32* @stderr
%68 = sext i32 %67 to i64
%69 = inttoptr i64 %68 to i32*
%70 = call i64 @fwrite(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i64 30, i64 1, i32* %69)
br label %78
71: ; preds = %45
%72 = load i8*, i8** %6
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %1, i8* %56, i8* %72)
%74 = load i8*, i8** %5
%75 = call i32 @free(i8* %74)
%76 = load i8*, i8** %6
%77 = call i32 @free(i8* %76)
br label %78
78: ; preds = %71, %66, %40, %32, %19
%79 = phi i32 [ 1, %32 ], [ 1, %66 ], [ 0, %71 ], [ 1, %40 ], [ 1, %19 ]
ret i32 %79
}