#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 ssize_t;

/* Variables and functions */
int /*<<< orphan*/ convert_context_hunks_to_unified(char **, size_t *,
                                                    unsigned long *);
int /*<<< orphan*/ copy_unified_hunks(char **, size_t *, int *,
                                      unsigned long *);
scalar_t__ feof(int /*<<< orphan*/);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fwrite(char *, size_t, int, int /*<<< orphan*/);
int getline(char **, size_t *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
scalar_t__ strncmp(char *, char *, int);
void do_convert_to_unified(void) {
  char *line = NULL;
  size_t linelen = 0;
  unsigned long linenum = 0;
  ssize_t got = getline(&line, &linelen, stdin);
  if (got == -1)
    return;
  linenum++;
  for (;;) {
    int is_context = 0;
    for (;;) {
      if (feof(stdin))
        goto eof;
      if (!strncmp(line, "--- ", 4)) {
        is_context = 0;
        break;
      }
      if (!strncmp(line, "*** ", 4)) {
        is_context = 1;
        break;
      }
      fwrite(line, (size_t)got, 1, stdout);
      got = getline(&line, &linelen, stdin);
      if (got == -1)
        goto eof;
      linenum++;
    }
    if (is_context) {
      printf("--- %s", line + 4);
      got = getline(&line, &linelen, stdin);
      if (got == -1)
        goto eof;
      linenum++;
      if (strncmp(line, "--- ", 4))
        continue;
      printf("+++ ");
      fwrite(line + 4, (size_t)got - 4, 1, stdout);
      convert_context_hunks_to_unified(&line, &linelen, &linenum);
    } else {
      fwrite(line, (size_t)got, 1, stdout);
      got = getline(&line, &linelen, stdin);
      if (got == -1)
        goto eof;
      linenum++;
      if (strncmp(line, "+++ ", 4))
        continue;
      fwrite(line, (size_t)got, 1, stdout);
      copy_unified_hunks(&line, &linelen, &got, &linenum);
    }
  }
eof:
  if (line)
    free(line);
  return;
}


x86 assembly (clang, -O0):
<do_convert_to_unified>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movq   $0x0,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0x2e41(%rip),%rax
mov    (%rax),%edx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1090 <getline@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    11c8 <do_convert_to_unified+0x48>
jmp    1422 <do_convert_to_unified+0x2a2>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x20(%rbp)
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
call   1080 <feof@plt>
cmp    $0x0,%rax
je     11f8 <do_convert_to_unified+0x78>
jmp    1409 <do_convert_to_unified+0x289>
mov    -0x8(%rbp),%rdi
lea    0xdfd(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1223 <do_convert_to_unified+0xa3>
movl   $0x0,-0x20(%rbp)
jmp    12a2 <do_convert_to_unified+0x122>
mov    -0x8(%rbp),%rdi
lea    0xdd7(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    124e <do_convert_to_unified+0xce>
movl   $0x1,-0x20(%rbp)
jmp    12a2 <do_convert_to_unified+0x122>
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rsi
mov    0x2d7b(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edx
call   10a0 <fwrite@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%edx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1090 <getline@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    1291 <do_convert_to_unified+0x111>
jmp    1409 <do_convert_to_unified+0x289>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11db <do_convert_to_unified+0x5b>
cmpl   $0x0,-0x20(%rbp)
je     1361 <do_convert_to_unified+0x1e1>
mov    -0x8(%rbp),%rsi
add    $0x4,%rsi
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2d1f(%rip),%rax
mov    (%rax),%edx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1090 <getline@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    12ea <do_convert_to_unified+0x16a>
jmp    1409 <do_convert_to_unified+0x289>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xcff(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     131a <do_convert_to_unified+0x19a>
jmp    11d4 <do_convert_to_unified+0x54>
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
movslq -0x1c(%rbp),%rsi
sub    $0x4,%rsi
mov    0x2c99(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edx
call   10a0 <fwrite@plt>
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1070 <convert_context_hunks_to_unified@plt>
jmp    1404 <do_convert_to_unified+0x284>
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rsi
mov    0x2c68(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edx
call   10a0 <fwrite@plt>
mov    0x2c65(%rip),%rax
mov    (%rax),%edx
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1090 <getline@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    13a4 <do_convert_to_unified+0x224>
jmp    1409 <do_convert_to_unified+0x289>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xc56(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     13d4 <do_convert_to_unified+0x254>
jmp    11d4 <do_convert_to_unified+0x54>
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rsi
mov    0x2bf5(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edx
call   10a0 <fwrite@plt>
lea    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
lea    -0x18(%rbp),%rcx
call   1050 <copy_unified_hunks@plt>
jmp    11d4 <do_convert_to_unified+0x54>
cmpq   $0x0,-0x8(%rbp)
je     141d <do_convert_to_unified+0x29d>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
jmp    1422 <do_convert_to_unified+0x2a2>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_convert_to_unified>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movq   $0x0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
mov    0x2e41(%rip),%rbp
mov    0x0(%rbp),%edx
lea    0x10(%rsp),%rdi
lea    0x20(%rsp),%rsi
call   1090 <getline@plt>
mov    %eax,0xc(%rsp)
cmp    $0xffffffff,%eax
je     11e7 <do_convert_to_unified+0x67>
movq   $0x1,0x18(%rsp)
mov    0x0(%rbp),%edi
call   1080 <feof@plt>
test   %rax,%rax
je     11f6 <do_convert_to_unified+0x76>
mov    0x10(%rsp),%rdi
test   %rdi,%rdi
je     11e7 <do_convert_to_unified+0x67>
call   1030 <free@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe03(%rip),%r14
mov    0x2dd4(%rip),%r12
lea    0x10(%rsp),%r15
lea    0x20(%rsp),%rbx
lea    0xdf0(%rip),%r13
jmp    1264 <do_convert_to_unified+0xe4>
nopw   0x0(%rax,%rax,1)
movslq 0xc(%rsp),%rsi
mov    (%r12),%ecx
mov    %rdx,%rdi
mov    $0x1,%edx
call   10a0 <fwrite@plt>
mov    0x0(%rbp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1090 <getline@plt>
mov    %eax,0xc(%rsp)
cmp    $0xffffffff,%eax
je     11d8 <do_convert_to_unified+0x58>
addq   $0x1,0x18(%rsp)
mov    0x0(%rbp),%edi
call   1080 <feof@plt>
test   %rax,%rax
jne    11d8 <do_convert_to_unified+0x58>
mov    0x10(%rsp),%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
mov    0x10(%rsp),%rdi
test   %rax,%rax
je     1330 <do_convert_to_unified+0x1b0>
mov    %r13,%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
mov    0x10(%rsp),%rdx
test   %rax,%rax
jne    1220 <do_convert_to_unified+0xa0>
add    $0x4,%rdx
lea    0xd64(%rip),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x0(%rbp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1090 <getline@plt>
mov    %eax,0xc(%rsp)
cmp    $0xffffffff,%eax
je     11d8 <do_convert_to_unified+0x58>
addq   $0x1,0x18(%rsp)
mov    0x10(%rsp),%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1253 <do_convert_to_unified+0xd3>
lea    0xd1e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%rsp),%rdi
add    $0x4,%rdi
movslq 0xc(%rsp),%rsi
add    $0xfffffffffffffffc,%rsi
mov    (%r12),%ecx
mov    $0x1,%edx
call   10a0 <fwrite@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
lea    0x18(%rsp),%rdx
call   1070 <convert_context_hunks_to_unified@plt>
jmp    1253 <do_convert_to_unified+0xd3>
nop
movslq 0xc(%rsp),%rsi
mov    (%r12),%ecx
mov    $0x1,%edx
call   10a0 <fwrite@plt>
mov    0x0(%rbp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1090 <getline@plt>
mov    %eax,0xc(%rsp)
cmp    $0xffffffff,%eax
je     11d8 <do_convert_to_unified+0x58>
addq   $0x1,0x18(%rsp)
mov    0x10(%rsp),%rdi
lea    0xca1(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1253 <do_convert_to_unified+0xd3>
mov    0x10(%rsp),%rdi
movslq 0xc(%rsp),%rsi
mov    (%r12),%ecx
mov    $0x1,%edx
call   10a0 <fwrite@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
lea    0xc(%rsp),%rdx
lea    0x18(%rsp),%rcx
call   1050 <copy_unified_hunks@plt>
jmp    1253 <do_convert_to_unified+0xd3>

LLVM IR (-O0):
@stdin = global i32 0
@.str = [5 x i8] c"--- \00"
@.str.1 = [5 x i8] c"*** \00"
@stdout = global i32 0
@.str.2 = [7 x i8] c"--- %s\00"
@.str.3 = [5 x i8] c"+++ \00"
define void @do_convert_to_unified() {
%1 = alloca i8*
%2 = alloca i64
%3 = alloca i64
%4 = alloca i32
%5 = alloca i32
store i8* null, i8** %1
store i64 0, i64* %2
store i64 0, i64* %3
%6 = load i32, i32* @stdin
%7 = call i32 @getline(i8** %1, i64* %2, i32 %6)
store i32 %7, i32* %4
%8 = load i32, i32* %4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %11
10: ; preds = %0
br label %106
11: ; preds = %0
%12 = load i64, i64* %3
%13 = add i64 %12, 1
store i64 %13, i64* %3
br label %14
14: ; preds = %98, %90, %62, %11
store i32 0, i32* %5
br label %15
15: ; preds = %41, %14
%16 = load i32, i32* @stdin
%17 = call i64 @feof(i32 %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
br label %99
20: ; preds = %15
%21 = load i8*, i8** %1
%22 = call i64 @strncmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%23 = icmp ne i64 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %20
store i32 0, i32* %5
br label %44
25: ; preds = %20
%26 = load i8*, i8** %1
%27 = call i64 @strncmp(i8* %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 4)
%28 = icmp ne i64 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %25
store i32 1, i32* %5
br label %44
30: ; preds = %25
%31 = load i8*, i8** %1
%32 = load i32, i32* %4
%33 = sext i32 %32 to i64
%34 = load i32, i32* @stdout
%35 = call i32 @fwrite(i8* %31, i64 %33, i32 1, i32 %34)
%36 = load i32, i32* @stdin
%37 = call i32 @getline(i8** %1, i64* %2, i32 %36)
store i32 %37, i32* %4
%38 = load i32, i32* %4
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %41
40: ; preds = %30
br label %99
41: ; preds = %30
%42 = load i64, i64* %3
%43 = add i64 %42, 1
store i64 %43, i64* %3
br label %15
44: ; preds = %29, %24
%45 = load i32, i32* %5
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %73
47: ; preds = %44
%48 = load i8*, i8** %1
%49 = getelementptr inbounds i8, i8* %48, i64 4
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %49)
%51 = load i32, i32* @stdin
%52 = call i32 @getline(i8** %1, i64* %2, i32 %51)
store i32 %52, i32* %4
%53 = load i32, i32* %4
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %56
55: ; preds = %47
br label %99
56: ; preds = %47
%57 = load i64, i64* %3
%58 = add i64 %57, 1
store i64 %58, i64* %3
%59 = load i8*, i8** %1
%60 = call i64 @strncmp(i8* %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %56
br label %14
63: ; preds = %56
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%65 = load i8*, i8** %1
%66 = getelementptr inbounds i8, i8* %65, i64 4
%67 = load i32, i32* %4
%68 = sext i32 %67 to i64
%69 = sub i64 %68, 4
%70 = load i32, i32* @stdout
%71 = call i32 @fwrite(i8* %66, i64 %69, i32 1, i32 %70)
%72 = call i32 @convert_context_hunks_to_unified(i8** %1, i64* %2, i64* %3)
br label %98
73: ; preds = %44
%74 = load i8*, i8** %1
%75 = load i32, i32* %4
%76 = sext i32 %75 to i64
%77 = load i32, i32* @stdout
%78 = call i32 @fwrite(i8* %74, i64 %76, i32 1, i32 %77)
%79 = load i32, i32* @stdin
%80 = call i32 @getline(i8** %1, i64* %2, i32 %79)
store i32 %80, i32* %4
%81 = load i32, i32* %4
%82 = icmp eq i32 %81, -1
br i1 %82, label %83, label %84
83: ; preds = %73
br label %99
84: ; preds = %73
%85 = load i64, i64* %3
%86 = add i64 %85, 1
store i64 %86, i64* %3
%87 = load i8*, i8** %1
%88 = call i64 @strncmp(i8* %87, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %84
br label %14
91: ; preds = %84
%92 = load i8*, i8** %1
%93 = load i32, i32* %4
%94 = sext i32 %93 to i64
%95 = load i32, i32* @stdout
%96 = call i32 @fwrite(i8* %92, i64 %94, i32 1, i32 %95)
%97 = call i32 @copy_unified_hunks(i8** %1, i64* %2, i32* %4, i64* %3)
br label %98
98: ; preds = %91, %63
br label %14
99: ; preds = %83, %55, %40, %19
%100 = load i8*, i8** %1
%101 = icmp ne i8* %100, null
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load i8*, i8** %1
%104 = call i32 @free(i8* %103)
br label %105
105: ; preds = %102, %99
br label %106
106: ; preds = %105, %10
ret void
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [5 x i8] c"--- \00"
@.str.1 = [5 x i8] c"*** \00"
@stdout = global i32 0
@.str.2 = [7 x i8] c"--- %s\00"
@.str.3 = [5 x i8] c"+++ \00"
define void @do_convert_to_unified() {
%1 = alloca i8*
%2 = alloca i64
%3 = alloca i64
%4 = alloca i32
%5 = bitcast i8** %1 to i8*
store i8* null, i8** %1
%6 = bitcast i64* %2 to i8*
store i64 0, i64* %2
%7 = bitcast i64* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = load i32, i32* @stdin
%10 = call i32 @getline(i8** %1, i64* %2, i32 %9)
store i32 %10, i32* %4
%11 = icmp eq i32 %10, -1
br i1 %11, label %92, label %12
12: ; preds = %0
store i64 1, i64* %3
%13 = load i32, i32* @stdin
%14 = call i64 @feof(i32 %13)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %87
16: ; preds = %12, %39
%17 = load i8*, i8** %1
%18 = call i64 @strncmp(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%19 = icmp eq i64 %18, 0
%20 = load i8*, i8** %1
br i1 %19, label %62, label %21
21: ; preds = %16
%22 = call i64 @strncmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 4)
%23 = icmp eq i64 %22, 0
%24 = load i8*, i8** %1
br i1 %23, label %40, label %25
25: ; preds = %21
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = load i32, i32* @stdout
%29 = call i32 @fwrite(i8* %24, i64 %27, i32 1, i32 %28)
%30 = load i32, i32* @stdin
%31 = call i32 @getline(i8** %1, i64* %2, i32 %30)
store i32 %31, i32* %4
%32 = icmp eq i32 %31, -1
br i1 %32, label %87, label %33
33: ; preds = %25
%34 = load i64, i64* %3
%35 = add i64 %34, 1
store i64 %35, i64* %3
%36 = load i32, i32* @stdin
%37 = call i64 @feof(i32 %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %87
39: ; preds = %33, %83
br label %16
40: ; preds = %21
%41 = getelementptr inbounds i8, i8* %24, i64 4
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %41)
%43 = load i32, i32* @stdin
%44 = call i32 @getline(i8** %1, i64* %2, i32 %43)
store i32 %44, i32* %4
%45 = icmp eq i32 %44, -1
br i1 %45, label %87, label %46
46: ; preds = %40
%47 = load i64, i64* %3
%48 = add i64 %47, 1
store i64 %48, i64* %3
%49 = load i8*, i8** %1
%50 = call i64 @strncmp(i8* %49, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %83
52: ; preds = %46
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%54 = load i8*, i8** %1
%55 = getelementptr inbounds i8, i8* %54, i64 4
%56 = load i32, i32* %4
%57 = sext i32 %56 to i64
%58 = add nsw i64 %57, -4
%59 = load i32, i32* @stdout
%60 = call i32 @fwrite(i8* %55, i64 %58, i32 1, i32 %59)
%61 = call i32 @convert_context_hunks_to_unified(i8** %1, i64* %2, i64* %3)
br label %83
62: ; preds = %16
%63 = load i32, i32* %4
%64 = sext i32 %63 to i64
%65 = load i32, i32* @stdout
%66 = call i32 @fwrite(i8* %20, i64 %64, i32 1, i32 %65)
%67 = load i32, i32* @stdin
%68 = call i32 @getline(i8** %1, i64* %2, i32 %67)
store i32 %68, i32* %4
%69 = icmp eq i32 %68, -1
br i1 %69, label %87, label %70
70: ; preds = %62
%71 = load i64, i64* %3
%72 = add i64 %71, 1
store i64 %72, i64* %3
%73 = load i8*, i8** %1
%74 = call i64 @strncmp(i8* %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %83
76: ; preds = %70
%77 = load i8*, i8** %1
%78 = load i32, i32* %4
%79 = sext i32 %78 to i64
%80 = load i32, i32* @stdout
%81 = call i32 @fwrite(i8* %77, i64 %79, i32 1, i32 %80)
%82 = call i32 @copy_unified_hunks(i8** %1, i64* %2, i32* %4, i64* %3)
br label %83
83: ; preds = %52, %76, %70, %46
%84 = load i32, i32* @stdin
%85 = call i64 @feof(i32 %84)
%86 = icmp eq i64 %85, 0
br i1 %86, label %39, label %87
87: ; preds = %40, %62, %83, %25, %33, %12
%88 = load i8*, i8** %1
%89 = icmp eq i8* %88, null
br i1 %89, label %92, label %90
90: ; preds = %87
%91 = call i32 @free(i8* %88)
br label %92
92: ; preds = %87, %90, %0
ret void
}