#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 */
scalar_t__ copy_binary(int /*<<< orphan*/ *, int /*<<< orphan*/ *, char *);
scalar_t__ copy_data(int /*<<< orphan*/ *, int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
long ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ has_dsc_comment(char *, char *);
int /*<<< orphan*/ skip_region(char *, int /*<<< orphan*/ *, long *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, int);
char *next_line(char *line, FILE *in, long *pstart, long *plen) {
  if (pstart)
    *pstart = ftell(in);
  *plen = 0;
  for (;;) {
    if (!fgets(line, 258, in)) {
      line[0] = 0;
      return 0;
    }
    *plen += strlen(line);
    if (!has_dsc_comment(line, "Begin"))
      break;
    else if (!strncmp(line + 7, "Binary:", sizeof("Binary:") - 1)) {
      *plen += copy_binary(NULL, in, line);
      skip_region(line, in, plen, "EndBinary");
    } else if (!strncmp(line + 7, "Data:", sizeof("Data:") - 1)) {
      *plen += copy_data(NULL, in, line);
      skip_region(line, in, plen, "EndData");
    } else if (!strncmp(line + 7, "Feature:", sizeof("Feature:") - 1))
      skip_region(line, in, plen, "EndFeature");
    else if (!strncmp(line + 7, "File:", sizeof("File:") - 1))
      skip_region(line, in, plen, "EndFile");
    else if (!strncmp(line + 7, "Font:", sizeof("Font:") - 1))
      skip_region(line, in, plen, "EndFont");
    else if (!strncmp(line + 7, "ProcSet:", sizeof("ProcSet:") - 1))
      skip_region(line, in, plen, "EndProcSet");
    else if (!strncmp(line + 7, "Resource:", sizeof("Resource:") - 1))
      skip_region(line, in, plen, "EndResource");
  }
  return line;
}


x86 assembly (clang, -O0):
<next_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     11b6 <next_line+0x36>
mov    -0x18(%rbp),%rdi
call   1080 <ftell@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x102,%esi
call   1070 <fgets@plt>
cmp    $0x0,%eax
jne    11f0 <next_line+0x70>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
movq   $0x0,-0x8(%rbp)
jmp    1444 <next_line+0x2c4>
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
add    (%rax),%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rdi
lea    0xdef(%rip),%rsi
call   1060 <has_dsc_comment@plt>
cmp    $0x0,%eax
jne    1224 <next_line+0xa4>
jmp    143c <next_line+0x2bc>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xdd3(%rip),%rsi
mov    $0x7,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    1281 <next_line+0x101>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%edi
call   1030 <copy_binary@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
add    (%rax),%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xd97(%rip),%rcx
call   10a0 <skip_region@plt>
jmp    1432 <next_line+0x2b2>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xd88(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    12de <next_line+0x15e>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%edi
call   1090 <copy_data@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
add    (%rax),%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xd4a(%rip),%rcx
call   10a0 <skip_region@plt>
jmp    142d <next_line+0x2ad>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xd39(%rip),%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    131d <next_line+0x19d>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xd1c(%rip),%rcx
call   10a0 <skip_region@plt>
jmp    1428 <next_line+0x2a8>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xd0e(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    135c <next_line+0x1dc>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xcee(%rip),%rcx
call   10a0 <skip_region@plt>
jmp    1423 <next_line+0x2a3>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xcdd(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    139b <next_line+0x21b>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xcbd(%rip),%rcx
call   10a0 <skip_region@plt>
jmp    141e <next_line+0x29e>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xcac(%rip),%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    13da <next_line+0x25a>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xc8f(%rip),%rcx
call   10a0 <skip_region@plt>
jmp    1419 <next_line+0x299>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xc81(%rip),%rsi
mov    $0x9,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
jne    1414 <next_line+0x294>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xc65(%rip),%rcx
call   10a0 <skip_region@plt>
jmp    1419 <next_line+0x299>
jmp    141e <next_line+0x29e>
jmp    1423 <next_line+0x2a3>
jmp    1428 <next_line+0x2a8>
jmp    142d <next_line+0x2ad>
jmp    1432 <next_line+0x2b2>
jmp    1437 <next_line+0x2b7>
jmp    11c1 <next_line+0x41>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<next_line>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
test   %rdx,%rdx
je     11a8 <next_line+0x28>
mov    %rdx,%rbp
mov    %r15,%rdi
call   1080 <ftell@plt>
mov    %rax,0x0(%rbp)
movq   $0x0,(%r14)
mov    %rbx,%rdi
mov    $0x102,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
test   %eax,%eax
je     133d <next_line+0x1bd>
lea    0x7(%rbx),%r12
lea    0xe2e(%rip),%r13
lea    0xe2d(%rip),%rbp
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1050 <strlen@plt>
add    %rax,(%r14)
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <has_dsc_comment@plt>
test   %eax,%eax
je     1342 <next_line+0x1c2>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    $0x7,%edx
call   1040 <strncmp@plt>
test   %eax,%eax
je     12e0 <next_line+0x160>
mov    %r12,%rdi
lea    0xdf8(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
test   %eax,%eax
je     1300 <next_line+0x180>
mov    %r12,%rdi
lea    0xdea(%rip),%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
lea    0xde2(%rip),%rcx
test   %eax,%eax
je     1317 <next_line+0x197>
mov    %r12,%rdi
lea    0xddb(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
lea    0xdd0(%rip),%rcx
test   %eax,%eax
je     1317 <next_line+0x197>
mov    %r12,%rdi
lea    0xdc6(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
lea    0xdbb(%rip),%rcx
test   %eax,%eax
je     1317 <next_line+0x197>
mov    %r12,%rdi
lea    0xdb1(%rip),%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
lea    0xda9(%rip),%rcx
test   %eax,%eax
je     1317 <next_line+0x197>
mov    %r12,%rdi
lea    0xda6(%rip),%rsi
mov    $0x9,%edx
call   1040 <strncmp@plt>
lea    0xd9f(%rip),%rcx
test   %eax,%eax
jne    1325 <next_line+0x1a5>
jmp    1317 <next_line+0x197>
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1030 <copy_binary@plt>
lea    0xd1a(%rip),%rcx
jmp    1314 <next_line+0x194>
cs nopw 0x0(%rax,%rax,1)
xor    %edi,%edi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1090 <copy_data@plt>
lea    0xd0a(%rip),%rcx
add    %rax,(%r14)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   10a0 <skip_region@plt>
mov    %rbx,%rdi
mov    $0x102,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
test   %eax,%eax
jne    11e0 <next_line+0x60>
movb   $0x0,(%rbx)
xor    %ebx,%ebx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Begin\00"
@.str.1 = [8 x i8] c"Binary:\00"
@.str.2 = [10 x i8] c"EndBinary\00"
@.str.3 = [6 x i8] c"Data:\00"
@.str.4 = [8 x i8] c"EndData\00"
@.str.5 = [9 x i8] c"Feature:\00"
@.str.6 = [11 x i8] c"EndFeature\00"
@.str.7 = [6 x i8] c"File:\00"
@.str.8 = [8 x i8] c"EndFile\00"
@.str.9 = [6 x i8] c"Font:\00"
@.str.10 = [8 x i8] c"EndFont\00"
@.str.11 = [9 x i8] c"ProcSet:\00"
@.str.12 = [11 x i8] c"EndProcSet\00"
@.str.13 = [10 x i8] c"Resource:\00"
@.str.14 = [12 x i8] c"EndResource\00"
define i8* @next_line(i8* %0, i32* %1, i64* %2, i64* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i64*
%9 = alloca i64*
store i8* %0, i8** %6
store i32* %1, i32** %7
store i64* %2, i64** %8
store i64* %3, i64** %9
%10 = load i64*, i64** %8
%11 = icmp ne i64* %10, null
br i1 %11, label %12, label %16
12: ; preds = %4
%13 = load i32*, i32** %7
%14 = call i64 @ftell(i32* %13)
%15 = load i64*, i64** %8
store i64 %14, i64* %15
br label %16
16: ; preds = %12, %4
%17 = load i64*, i64** %9
store i64 0, i64* %17
br label %18
18: ; preds = %125, %16
%19 = load i8*, i8** %6
%20 = load i32*, i32** %7
%21 = call i32 @fgets(i8* %19, i32 258, i32* %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %18
%24 = load i8*, i8** %6
%25 = getelementptr inbounds i8, i8* %24, i64 0
store i8 0, i8* %25
store i8* null, i8** %5
br label %128
26: ; preds = %18
%27 = load i8*, i8** %6
%28 = call i64 @strlen(i8* %27)
%29 = load i64*, i64** %9
%30 = load i64, i64* %29
%31 = add nsw i64 %30, %28
store i64 %31, i64* %29
%32 = load i8*, i8** %6
%33 = call i32 @has_dsc_comment(i8* %32, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%34 = icmp ne i32 %33, 0
br i1 %34, label %36, label %35
35: ; preds = %26
br label %126
36: ; preds = %26
%37 = load i8*, i8** %6
%38 = getelementptr inbounds i8, i8* %37, i64 7
%39 = call i32 @strncmp(i8* %38, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%40 = icmp ne i32 %39, 0
br i1 %40, label %52, label %41
41: ; preds = %36
%42 = load i32*, i32** %7
%43 = load i8*, i8** %6
%44 = call i64 @copy_binary(i32* null, i32* %42, i8* %43)
%45 = load i64*, i64** %9
%46 = load i64, i64* %45
%47 = add nsw i64 %46, %44
store i64 %47, i64* %45
%48 = load i8*, i8** %6
%49 = load i32*, i32** %7
%50 = load i64*, i64** %9
%51 = call i32 @skip_region(i8* %48, i32* %49, i64* %50, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %124
52: ; preds = %36
%53 = load i8*, i8** %6
%54 = getelementptr inbounds i8, i8* %53, i64 7
%55 = call i32 @strncmp(i8* %54, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%56 = icmp ne i32 %55, 0
br i1 %56, label %68, label %57
57: ; preds = %52
%58 = load i32*, i32** %7
%59 = load i8*, i8** %6
%60 = call i64 @copy_data(i32* null, i32* %58, i8* %59)
%61 = load i64*, i64** %9
%62 = load i64, i64* %61
%63 = add nsw i64 %62, %60
store i64 %63, i64* %61
%64 = load i8*, i8** %6
%65 = load i32*, i32** %7
%66 = load i64*, i64** %9
%67 = call i32 @skip_region(i8* %64, i32* %65, i64* %66, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %123
68: ; preds = %52
%69 = load i8*, i8** %6
%70 = getelementptr inbounds i8, i8* %69, i64 7
%71 = call i32 @strncmp(i8* %70, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 8)
%72 = icmp ne i32 %71, 0
br i1 %72, label %78, label %73
73: ; preds = %68
%74 = load i8*, i8** %6
%75 = load i32*, i32** %7
%76 = load i64*, i64** %9
%77 = call i32 @skip_region(i8* %74, i32* %75, i64* %76, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %122
78: ; preds = %68
%79 = load i8*, i8** %6
%80 = getelementptr inbounds i8, i8* %79, i64 7
%81 = call i32 @strncmp(i8* %80, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%82 = icmp ne i32 %81, 0
br i1 %82, label %88, label %83
83: ; preds = %78
%84 = load i8*, i8** %6
%85 = load i32*, i32** %7
%86 = load i64*, i64** %9
%87 = call i32 @skip_region(i8* %84, i32* %85, i64* %86, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %121
88: ; preds = %78
%89 = load i8*, i8** %6
%90 = getelementptr inbounds i8, i8* %89, i64 7
%91 = call i32 @strncmp(i8* %90, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 5)
%92 = icmp ne i32 %91, 0
br i1 %92, label %98, label %93
93: ; preds = %88
%94 = load i8*, i8** %6
%95 = load i32*, i32** %7
%96 = load i64*, i64** %9
%97 = call i32 @skip_region(i8* %94, i32* %95, i64* %96, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %120
98: ; preds = %88
%99 = load i8*, i8** %6
%100 = getelementptr inbounds i8, i8* %99, i64 7
%101 = call i32 @strncmp(i8* %100, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 8)
%102 = icmp ne i32 %101, 0
br i1 %102, label %108, label %103
103: ; preds = %98
%104 = load i8*, i8** %6
%105 = load i32*, i32** %7
%106 = load i64*, i64** %9
%107 = call i32 @skip_region(i8* %104, i32* %105, i64* %106, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
br label %119
108: ; preds = %98
%109 = load i8*, i8** %6
%110 = getelementptr inbounds i8, i8* %109, i64 7
%111 = call i32 @strncmp(i8* %110, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i32 9)
%112 = icmp ne i32 %111, 0
br i1 %112, label %118, label %113
113: ; preds = %108
%114 = load i8*, i8** %6
%115 = load i32*, i32** %7
%116 = load i64*, i64** %9
%117 = call i32 @skip_region(i8* %114, i32* %115, i64* %116, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
br label %118
118: ; preds = %113, %108
br label %119
119: ; preds = %118, %103
br label %120
120: ; preds = %119, %93
br label %121
121: ; preds = %120, %83
br label %122
122: ; preds = %121, %73
br label %123
123: ; preds = %122, %57
br label %124
124: ; preds = %123, %41
br label %125
125: ; preds = %124
br label %18
126: ; preds = %35
%127 = load i8*, i8** %6
store i8* %127, i8** %5
br label %128
128: ; preds = %126, %23
%129 = load i8*, i8** %5
ret i8* %129
}

LLVM IR (-O2):
@.str = [6 x i8] c"Begin\00"
@.str.1 = [8 x i8] c"Binary:\00"
@.str.2 = [10 x i8] c"EndBinary\00"
@.str.3 = [6 x i8] c"Data:\00"
@.str.4 = [8 x i8] c"EndData\00"
@.str.5 = [9 x i8] c"Feature:\00"
@.str.6 = [11 x i8] c"EndFeature\00"
@.str.7 = [6 x i8] c"File:\00"
@.str.8 = [8 x i8] c"EndFile\00"
@.str.9 = [6 x i8] c"Font:\00"
@.str.10 = [8 x i8] c"EndFont\00"
@.str.11 = [9 x i8] c"ProcSet:\00"
@.str.12 = [11 x i8] c"EndProcSet\00"
@.str.13 = [10 x i8] c"Resource:\00"
@.str.14 = [12 x i8] c"EndResource\00"
define i8* @next_line(i8* %0, i32* %1, i64* writeonly %2, i64* %3) {
%5 = icmp eq i64* %2, null
br i1 %5, label %8, label %6
6: ; preds = %4
%7 = tail call i64 @ftell(i32* %1)
store i64 %7, i64* %2
br label %8
8: ; preds = %6, %4
store i64 0, i64* %3
%9 = tail call i32 @fgets(i8* %0, i32 258, i32* %1)
%10 = icmp eq i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %8
%12 = getelementptr inbounds i8, i8* %0, i64 7
br label %14
13: ; preds = %53, %8
store i8 0, i8* %0
br label %56
14: ; preds = %11, %53
%15 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%16 = load i64, i64* %3
%17 = add nsw i64 %16, %15
store i64 %17, i64* %3
%18 = tail call i32 @has_dsc_comment(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %56, label %20
20: ; preds = %14
%21 = tail call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = tail call i64 @copy_binary(i32* null, i32* %1, i8* %0)
br label %45
25: ; preds = %20
%26 = tail call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = tail call i64 @copy_data(i32* null, i32* %1, i8* %0)
br label %45
30: ; preds = %25
%31 = tail call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 8)
%32 = icmp eq i32 %31, 0
br i1 %32, label %50, label %33
33: ; preds = %30
%34 = tail call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%35 = icmp eq i32 %34, 0
br i1 %35, label %50, label %36
36: ; preds = %33
%37 = tail call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 5)
%38 = icmp eq i32 %37, 0
br i1 %38, label %50, label %39
39: ; preds = %36
%40 = tail call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 8)
%41 = icmp eq i32 %40, 0
br i1 %41, label %50, label %42
42: ; preds = %39
%43 = tail call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i32 9)
%44 = icmp eq i32 %43, 0
br i1 %44, label %50, label %53
45: ; preds = %23, %28
%46 = phi i64 [ %29, %28 ], [ %24, %23 ]
%47 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), %28 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), %23 ]
%48 = load i64, i64* %3
%49 = add nsw i64 %48, %46
store i64 %49, i64* %3
br label %50
50: ; preds = %45, %42, %39, %36, %33, %30
%51 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %30 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), %33 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), %36 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), %39 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), %42 ], [ %47, %45 ]
%52 = tail call i32 @skip_region(i8* %0, i32* %1, i64* %3, i8* %51)
br label %53
53: ; preds = %50, %42
%54 = tail call i32 @fgets(i8* %0, i32 258, i32* %1)
%55 = icmp eq i32 %54, 0
br i1 %55, label %13, label %14
56: ; preds = %14, %13
%57 = phi i8* [ null, %13 ], [ %0, %14 ]
ret i8* %57
}