#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*/ errno;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
char *malloc(int);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
char *read_configfile(char *configfile) {
  char *buffer = NULL;
  FILE *f;
  if (configfile) {
    if ((f = fopen(configfile, "rb"))) {
      int size, len;
      fseek(f, 0, SEEK_END);
      size = ftell(f);
      rewind(f);
      buffer = malloc(size + 2);
      len = fread(buffer, 1, size, f);
      fclose(f);
      if (len == size) {
        char c1, c2, c, ws = 1;
        int i, j = 0;
        buffer[len] = 0;
        for (i = 0; i <= len; i++) {
          c1 = buffer[i];
          c2 = buffer[i + 1];
          if (c1 > ' ') {
            if (c1 == '{')
              ws = 1;
            else
              ws = 0;
            c = 1;
          } else {
            c1 = ' ';
            if (ws || (c2 <= ' ') || (c2 == '}'))
              c = 0;
            else
              c = 1;
            if (c)
              ws = 1;
          }
          if (c)
            buffer[j++] = c1;
        }
        while (j && (buffer[j - 1] == ' '))
          j--;
        buffer[j] = 0;
      } else {
        fprintf(stderr, "ERR: read(%s) len(%d)\n", configfile, len);
        free(buffer);
        buffer = NULL;
      }
    } else {
      fprintf(stderr, "ERR: open(%s) %s\n", configfile, strerror(errno));
    }
  } else {
    buffer = malloc(1);
    *buffer = 0;
  }
  return buffer;
}


x86 assembly (clang, -O0):
<read_configfile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     140d <read_configfile+0x26d>
mov    -0x8(%rbp),%rdi
lea    0xe36(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     13ce <read_configfile+0x22e>
mov    -0x18(%rbp),%rdi
mov    0x2e00(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10a0 <fseek@plt>
mov    -0x18(%rbp),%rdi
call   1080 <ftell@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rdi
call   1060 <rewind@plt>
mov    -0x1c(%rbp),%edi
add    $0x2,%edi
call   1090 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    $0x1,%esi
call   1040 <fread@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jne    139a <read_configfile+0x1fa>
movb   $0x1,-0x24(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     133d <read_configfile+0x19d>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x21(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x22(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x20,%eax
jle    12bd <read_configfile+0x11d>
movsbl -0x21(%rbp),%eax
cmp    $0x7b,%eax
jne    12b0 <read_configfile+0x110>
movb   $0x1,-0x24(%rbp)
jmp    12b4 <read_configfile+0x114>
movb   $0x0,-0x24(%rbp)
movb   $0x1,-0x23(%rbp)
jmp    1308 <read_configfile+0x168>
movb   $0x20,-0x21(%rbp)
movsbl -0x24(%rbp),%eax
cmp    $0x0,%eax
jne    12e8 <read_configfile+0x148>
movsbl -0x22(%rbp),%eax
cmp    $0x20,%eax
jle    12e8 <read_configfile+0x148>
movsbl -0x22(%rbp),%eax
cmp    $0x7d,%eax
jne    12f1 <read_configfile+0x151>
movb   $0x0,-0x23(%rbp)
jmp    12f5 <read_configfile+0x155>
movb   $0x1,-0x23(%rbp)
cmpb   $0x0,-0x23(%rbp)
je     1303 <read_configfile+0x163>
movb   $0x1,-0x24(%rbp)
jmp    1308 <read_configfile+0x168>
cmpb   $0x0,-0x23(%rbp)
je     132a <read_configfile+0x18a>
mov    -0x21(%rbp),%dl
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x2c(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    132f <read_configfile+0x18f>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1260 <read_configfile+0xc0>
jmp    1342 <read_configfile+0x1a2>
xor    %eax,%eax
cmpl   $0x0,-0x2c(%rbp)
mov    %al,-0x2d(%rbp)
je     136b <read_configfile+0x1cb>
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
sete   %al
mov    %al,-0x2d(%rbp)
mov    -0x2d(%rbp),%al
test   $0x1,%al
jne    137b <read_configfile+0x1db>
jmp    1389 <read_configfile+0x1e9>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
jmp    1342 <read_configfile+0x1a2>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
jmp    13c9 <read_configfile+0x229>
mov    0x2c37(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x20(%rbp),%ecx
lea    0xc52(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x10(%rbp)
jmp    1408 <read_configfile+0x268>
mov    0x2c03(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    0x2be7(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x3c(%rbp),%edi
mov    -0x38(%rbp),%rdx
mov    %rax,%rcx
lea    0xc19(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    1422 <read_configfile+0x282>
mov    $0x1,%edi
call   1090 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_configfile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %rdi,%rdi
je     1291 <read_configfile+0xf1>
mov    %rdi,%r15
lea    0xe42(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     12a6 <read_configfile+0x106>
mov    %rax,%r12
mov    0x2e12(%rip),%rax
mov    (%rax),%edx
xor    %ebp,%ebp
mov    %r12,%rdi
xor    %esi,%esi
call   10a0 <fseek@plt>
mov    %r12,%rdi
call   1080 <ftell@plt>
mov    %eax,%r14d
mov    %r12,%rdi
call   1060 <rewind@plt>
lea    0x2(%r14),%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x1,%esi
mov    %r14d,%edx
mov    %r12,%rcx
call   1040 <fread@plt>
mov    %eax,%r13d
mov    %r12,%rdi
call   1050 <fclose@plt>
cmp    %r14d,%r13d
jne    12d7 <read_configfile+0x137>
movslq %r14d,%rax
movb   $0x0,(%rbx,%rax,1)
test   %r14d,%r14d
js     1300 <read_configfile+0x160>
add    $0x1,%r14d
mov    $0x1,%cl
xor    %eax,%eax
xor    %ebp,%ebp
jmp    1268 <read_configfile+0xc8>
cs nopw 0x0(%rax,%rax,1)
cmp    $0x7b,%dl
sete   %cl
movslq %ebp,%rsi
add    $0x1,%ebp
mov    %dl,(%rbx,%rsi,1)
cmp    %rax,%r14
je     1300 <read_configfile+0x160>
mov    %rax,%rsi
movzbl (%rbx,%rax,1),%edx
add    $0x1,%rax
cmp    $0x21,%dl
jge    1250 <read_configfile+0xb0>
test   %cl,%cl
jne    125f <read_configfile+0xbf>
movzbl 0x1(%rbx,%rsi,1),%edx
cmp    $0x21,%dl
jl     125f <read_configfile+0xbf>
cmp    $0x7d,%dl
je     125f <read_configfile+0xbf>
mov    $0x20,%dl
mov    $0x1,%cl
jmp    1256 <read_configfile+0xb6>
mov    $0x1,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
movb   $0x0,(%rax)
jmp    133f <read_configfile+0x19f>
mov    0x2d2b(%rip),%rax
mov    (%rax),%ebp
mov    0x2d1a(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xd56(%rip),%rsi
xor    %ebx,%ebx
mov    %ebp,%edi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    133f <read_configfile+0x19f>
mov    0x2cfa(%rip),%rax
mov    (%rax),%edi
lea    0xd1c(%rip),%rsi
mov    %r15,%rdx
mov    %r13d,%ecx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %ebx,%ebx
jmp    133f <read_configfile+0x19f>
movslq %ebp,%rax
mov    %rax,%rdi
shl    $0x20,%rdi
movabs $0xffffffff00000000,%rcx
ff ff ff
mov    %rax,%rdx
nopw   0x0(%rax,%rax,1)
mov    %rdi,%rsi
sub    $0x1,%rdx
jb     1337 <read_configfile+0x197>
lea    (%rsi,%rcx,1),%rdi
cmpb   $0x20,-0x1(%rbx,%rax,1)
mov    %rdx,%rax
je     1320 <read_configfile+0x180>
sar    $0x20,%rsi
movb   $0x0,(%rbx,%rsi,1)
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@SEEK_END = global i32 0
@stderr = global i32 0
@.str.1 = [23 x i8] c"ERR: read(%s) len(%d)\0A\00"
@.str.2 = [18 x i8] c"ERR: open(%s) %s\0A\00"
@errno = global i32 0
define i8* @read_configfile(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
%11 = alloca i32
%12 = alloca i32
store i8* %0, i8** %2
store i8* null, i8** %3
%13 = load i8*, i8** %2
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %141
15: ; preds = %1
%16 = load i8*, i8** %2
%17 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %17, i32** %4
%18 = icmp ne i32* %17, null
br i1 %18, label %19, label %134
19: ; preds = %15
%20 = load i32*, i32** %4
%21 = load i32, i32* @SEEK_END
%22 = call i32 @fseek(i32* %20, i32 0, i32 %21)
%23 = load i32*, i32** %4
%24 = call i32 @ftell(i32* %23)
store i32 %24, i32* %5
%25 = load i32*, i32** %4
%26 = call i32 @rewind(i32* %25)
%27 = load i32, i32* %5
%28 = add nsw i32 %27, 2
%29 = call i8* @malloc(i32 %28)
store i8* %29, i8** %3
%30 = load i8*, i8** %3
%31 = load i32, i32* %5
%32 = load i32*, i32** %4
%33 = call i32 @fread(i8* %30, i32 1, i32 %31, i32* %32)
store i32 %33, i32* %6
%34 = load i32*, i32** %4
%35 = call i32 @fclose(i32* %34)
%36 = load i32, i32* %6
%37 = load i32, i32* %5
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %126
39: ; preds = %19
store i8 1, i8* %10
store i32 0, i32* %12
%40 = load i8*, i8** %3
%41 = load i32, i32* %6
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %40, i64 %42
store i8 0, i8* %43
store i32 0, i32* %11
br label %44
44: ; preds = %100, %39
%45 = load i32, i32* %11
%46 = load i32, i32* %6
%47 = icmp sle i32 %45, %46
br i1 %47, label %48, label %103
48: ; preds = %44
%49 = load i8*, i8** %3
%50 = load i32, i32* %11
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, i8* %49, i64 %51
%53 = load i8, i8* %52
store i8 %53, i8* %7
%54 = load i8*, i8** %3
%55 = load i32, i32* %11
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, i8* %54, i64 %57
%59 = load i8, i8* %58
store i8 %59, i8* %8
%60 = load i8, i8* %7
%61 = sext i8 %60 to i32
%62 = icmp sgt i32 %61, 32
br i1 %62, label %63, label %70
63: ; preds = %48
%64 = load i8, i8* %7
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 123
br i1 %66, label %67, label %68
67: ; preds = %63
store i8 1, i8* %10
br label %69
68: ; preds = %63
store i8 0, i8* %10
br label %69
69: ; preds = %68, %67
store i8 1, i8* %9
br label %89
70: ; preds = %48
store i8 32, i8* %7
%71 = load i8, i8* %10
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 0
br i1 %73, label %82, label %74
74: ; preds = %70
%75 = load i8, i8* %8
%76 = sext i8 %75 to i32
%77 = icmp sle i32 %76, 32
br i1 %77, label %82, label %78
78: ; preds = %74
%79 = load i8, i8* %8
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 125
br i1 %81, label %82, label %83
82: ; preds = %78, %74, %70
store i8 0, i8* %9
br label %84
83: ; preds = %78
store i8 1, i8* %9
br label %84
84: ; preds = %83, %82
%85 = load i8, i8* %9
%86 = icmp ne i8 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %84
store i8 1, i8* %10
br label %88
88: ; preds = %87, %84
br label %89
89: ; preds = %88, %69
%90 = load i8, i8* %9
%91 = icmp ne i8 %90, 0
br i1 %91, label %92, label %99
92: ; preds = %89
%93 = load i8, i8* %7
%94 = load i8*, i8** %3
%95 = load i32, i32* %12
%96 = add nsw i32 %95, 1
store i32 %96, i32* %12
%97 = sext i32 %95 to i64
%98 = getelementptr inbounds i8, i8* %94, i64 %97
store i8 %93, i8* %98
br label %99
99: ; preds = %92, %89
br label %100
100: ; preds = %99
%101 = load i32, i32* %11
%102 = add nsw i32 %101, 1
store i32 %102, i32* %11
br label %44
103: ; preds = %44
br label %104
104: ; preds = %118, %103
%105 = load i32, i32* %12
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %116
107: ; preds = %104
%108 = load i8*, i8** %3
%109 = load i32, i32* %12
%110 = sub nsw i32 %109, 1
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, i8* %108, i64 %111
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 32
br label %116
116: ; preds = %107, %104
%117 = phi i1 [ false, %104 ], [ %115, %107 ]
br i1 %117, label %118, label %121
118: ; preds = %116
%119 = load i32, i32* %12
%120 = add nsw i32 %119, -1
store i32 %120, i32* %12
br label %104
121: ; preds = %116
%122 = load i8*, i8** %3
%123 = load i32, i32* %12
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %122, i64 %124
store i8 0, i8* %125
br label %133
126: ; preds = %19
%127 = load i32, i32* @stderr
%128 = load i8*, i8** %2
%129 = load i32, i32* %6
%130 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %127, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %128, i32 %129)
%131 = load i8*, i8** %3
%132 = call i32 @free(i8* %131)
store i8* null, i8** %3
br label %133
133: ; preds = %126, %121
br label %140
134: ; preds = %15
%135 = load i32, i32* @stderr
%136 = load i8*, i8** %2
%137 = load i32, i32* @errno
%138 = call i8* @strerror(i32 %137)
%139 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %135, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %136, i8* %138)
br label %140
140: ; preds = %134, %133
br label %144
141: ; preds = %1
%142 = call i8* @malloc(i32 1)
store i8* %142, i8** %3
%143 = load i8*, i8** %3
store i8 0, i8* %143
br label %144
144: ; preds = %141, %140
%145 = load i8*, i8** %3
ret i8* %145
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@SEEK_END = global i32 0
@stderr = global i32 0
@.str.1 = [23 x i8] c"ERR: read(%s) len(%d)\0A\00"
@.str.2 = [18 x i8] c"ERR: open(%s) %s\0A\00"
@errno = global i32 0
define noalias i8* @read_configfile(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %76, label %3
3: ; preds = %1
%4 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32* %4, null
br i1 %5, label %71, label %6
6: ; preds = %3
%7 = load i32, i32* @SEEK_END
%8 = tail call i32 @fseek(i32* %4, i32 0, i32 %7)
%9 = tail call i32 @ftell(i32* %4)
%10 = tail call i32 @rewind(i32* %4)
%11 = add nsw i32 %9, 2
%12 = tail call i8* @malloc(i32 %11)
%13 = tail call i32 @fread(i8* %12, i32 1, i32 %9, i32* %4)
%14 = tail call i32 @fclose(i32* %4)
%15 = icmp eq i32 %13, %9
br i1 %15, label %16, label %67
16: ; preds = %6
%17 = sext i32 %9 to i64
%18 = getelementptr inbounds i8, i8* %12, i64 %17
store i8 0, i8* %18
%19 = icmp slt i32 %9, 0
br i1 %19, label %23, label %20
20: ; preds = %16
%21 = add nuw i32 %9, 1
%22 = zext i32 %21 to i64
br label %26
23: ; preds = %51, %16
%24 = phi i32 [ 0, %16 ], [ %53, %51 ]
%25 = sext i32 %24 to i64
br label %55
26: ; preds = %20, %51
%27 = phi i64 [ 0, %20 ], [ %32, %51 ]
%28 = phi i32 [ 0, %20 ], [ %53, %51 ]
%29 = phi i8 [ 1, %20 ], [ %52, %51 ]
%30 = getelementptr inbounds i8, i8* %12, i64 %27
%31 = load i8, i8* %30
%32 = add nuw nsw i64 %27, 1
%33 = icmp sgt i8 %31, 32
br i1 %33, label %34, label %37
34: ; preds = %26
%35 = icmp eq i8 %31, 123
%36 = zext i1 %35 to i8
br label %45
37: ; preds = %26
%38 = getelementptr inbounds i8, i8* %12, i64 %32
%39 = load i8, i8* %38
%40 = icmp ne i8 %29, 0
%41 = icmp slt i8 %39, 33
%42 = select i1 %40, i1 true, i1 %41
%43 = icmp eq i8 %39, 125
%44 = select i1 %42, i1 true, i1 %43
br i1 %44, label %51, label %45
45: ; preds = %34, %37
%46 = phi i8 [ %36, %34 ], [ 1, %37 ]
%47 = phi i8 [ %31, %34 ], [ 32, %37 ]
%48 = add nsw i32 %28, 1
%49 = sext i32 %28 to i64
%50 = getelementptr inbounds i8, i8* %12, i64 %49
store i8 %47, i8* %50
br label %51
51: ; preds = %37, %45
%52 = phi i8 [ %46, %45 ], [ %29, %37 ]
%53 = phi i32 [ %48, %45 ], [ %28, %37 ]
%54 = icmp eq i64 %32, %22
br i1 %54, label %23, label %26
55: ; preds = %23, %58
%56 = phi i64 [ %25, %23 ], [ %59, %58 ]
%57 = icmp eq i64 %56, 0
br i1 %57, label %63, label %58
58: ; preds = %55
%59 = add nsw i64 %56, -1
%60 = getelementptr inbounds i8, i8* %12, i64 %59
%61 = load i8, i8* %60
%62 = icmp eq i8 %61, 32
br i1 %62, label %55, label %63
63: ; preds = %55, %58
%64 = shl i64 %56, 32
%65 = ashr exact i64 %64, 32
%66 = getelementptr inbounds i8, i8* %12, i64 %65
store i8 0, i8* %66
br label %78
67: ; preds = %6
%68 = load i32, i32* @stderr
%69 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 %13)
%70 = tail call i32 @free(i8* %12)
br label %78
71: ; preds = %3
%72 = load i32, i32* @stderr
%73 = load i32, i32* @errno
%74 = tail call i8* @strerror(i32 %73)
%75 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %74)
br label %78
76: ; preds = %1
%77 = tail call dereferenceable_or_null(1) i8* @malloc(i32 1)
store i8 0, i8* %77
br label %78
78: ; preds = %63, %67, %71, %76
%79 = phi i8* [ null, %71 ], [ %77, %76 ], [ %12, %63 ], [ null, %67 ]
ret i8* %79
}