#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__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int sscanf(char *, char *, ...);
int /*<<< orphan*/ stderr;
char *strchr(char *, char);
void read_life105(FILE *f, void (*cb)(void *, char, int, int, int, char),
                  void (*paramcb)(void *, const char *, const char *),
                  void *cbdata) {
  char linebuff[10000];
  char parambuff[30];
  char valuebuff[50];
  int gen, xpos, ypos, value;
  char area = 'P';
  while (fgets(linebuff, sizeof linebuff, f)) {
    char *p = strchr(linebuff, '\r');
    if (p)
      *p = 0;
    p = strchr(linebuff, '\n');
    if (p)
      *p = 0;
    if (linebuff[0] == '#')
      switch (linebuff[1]) {
      case 'L':
        break;
      case 'D':
        break;
      case 'N':
        break;
      case 'P':
        area = 'P';
        gen = 0;
        if (sscanf(linebuff + 2, "%d %d", &xpos, &ypos) != 2) {
          fprintf(stderr, "Bad line: %s\n", linebuff);
          return;
        }
        break;
      case 'F':
        area = 'F';
        if (sscanf(linebuff + 2, "%d %d %d", &gen, &xpos, &ypos) != 3) {
          fprintf(stderr, "Bad line: %s\n", linebuff);
          return;
        }
        break;
      case 'S':
        if (sscanf(linebuff + 2, "%s %s", parambuff, valuebuff) != 2) {
          fprintf(stderr, "Bad line: %s\n", linebuff);
          return;
        }
        if (paramcb)
          paramcb(cbdata, parambuff, valuebuff);
        break;
      default:
        fprintf(stderr, "Unknown line: %s\n", linebuff);
        break;
      }
    else {
      int x = xpos;
      for (p = linebuff; *p; p++) {
        cb(cbdata, area, gen, x, ypos, *p);
        x++;
      }
      ypos++;
    }
  }
}


x86 assembly (clang, -O0):
<read_life105>:
push   %rbp
mov    %rsp,%rbp
sub    $0x27c0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movb   $0x50,-0x27a1(%rbp)
lea    -0x2730(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x2710,%esi
call   1040 <fgets@plt>
cmp    $0x0,%rax
je     142f <read_life105+0x2ef>
lea    -0x2730(%rbp),%rdi
mov    $0xd,%esi
call   1030 <strchr@plt>
mov    %rax,-0x27b0(%rbp)
cmpq   $0x0,-0x27b0(%rbp)
je     11b1 <read_life105+0x71>
mov    -0x27b0(%rbp),%rax
movb   $0x0,(%rax)
lea    -0x2730(%rbp),%rdi
mov    $0xa,%esi
call   1030 <strchr@plt>
mov    %rax,-0x27b0(%rbp)
cmpq   $0x0,-0x27b0(%rbp)
je     11e1 <read_life105+0xa1>
mov    -0x27b0(%rbp),%rax
movb   $0x0,(%rax)
movsbl -0x2730(%rbp),%eax
cmp    $0x23,%eax
jne    1398 <read_life105+0x258>
movsbl -0x272f(%rbp),%eax
add    $0xffffffbc,%eax
mov    %eax,%ecx
mov    %rcx,-0x27c0(%rbp)
sub    $0xf,%eax
ja     1377 <read_life105+0x237>
mov    -0x27c0(%rbp),%rax
lea    0xde5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1393 <read_life105+0x253>
jmp    1393 <read_life105+0x253>
jmp    1393 <read_life105+0x253>
movb   $0x50,-0x27a1(%rbp)
movl   $0x0,-0x2794(%rbp)
lea    -0x2730(%rbp),%rdi
add    $0x2,%rdi
lea    0xdfb(%rip),%rsi
lea    -0x2798(%rbp),%rdx
lea    -0x279c(%rbp),%rcx
mov    $0x0,%al
call   1060 <sscanf@plt>
cmp    $0x2,%eax
je     1295 <read_life105+0x155>
mov    0x2d65(%rip),%rax
mov    (%rax),%edi
lea    -0x2730(%rbp),%rdx
lea    0xdb5(%rip),%rsi
call   1050 <fprintf@plt>
jmp    142f <read_life105+0x2ef>
jmp    1393 <read_life105+0x253>
movb   $0x46,-0x27a1(%rbp)
lea    -0x2730(%rbp),%rdi
add    $0x2,%rdi
lea    0xd9b(%rip),%rsi
lea    -0x2794(%rbp),%rdx
lea    -0x2798(%rbp),%rcx
lea    -0x279c(%rbp),%r8
mov    $0x0,%al
call   1060 <sscanf@plt>
cmp    $0x3,%eax
je     12f9 <read_life105+0x1b9>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
lea    -0x2730(%rbp),%rdx
lea    0xd51(%rip),%rsi
call   1050 <fprintf@plt>
jmp    142f <read_life105+0x2ef>
jmp    1393 <read_life105+0x253>
lea    -0x2730(%rbp),%rdi
add    $0x2,%rdi
lea    -0x2750(%rbp),%rdx
lea    -0x2790(%rbp),%rcx
lea    0xd39(%rip),%rsi
mov    $0x0,%al
call   1060 <sscanf@plt>
cmp    $0x2,%eax
je     134f <read_life105+0x20f>
mov    0x2cab(%rip),%rax
mov    (%rax),%edi
lea    -0x2730(%rbp),%rdx
lea    0xcfb(%rip),%rsi
call   1050 <fprintf@plt>
jmp    142f <read_life105+0x2ef>
cmpq   $0x0,-0x18(%rbp)
je     1372 <read_life105+0x232>
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rdi
lea    -0x2750(%rbp),%rsi
lea    -0x2790(%rbp),%rdx
call   *%rax
jmp    1393 <read_life105+0x253>
mov    0x2c62(%rip),%rax
mov    (%rax),%edi
lea    -0x2730(%rbp),%rdx
lea    0xccf(%rip),%rsi
call   1050 <fprintf@plt>
jmp    142a <read_life105+0x2ea>
mov    -0x2798(%rbp),%eax
mov    %eax,-0x27b4(%rbp)
lea    -0x2730(%rbp),%rax
mov    %rax,-0x27b0(%rbp)
mov    -0x27b0(%rbp),%rax
cmpb   $0x0,(%rax)
je     141b <read_life105+0x2db>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rdi
mov    -0x27a1(%rbp),%sil
mov    -0x2794(%rbp),%edx
mov    -0x27b4(%rbp),%ecx
mov    -0x279c(%rbp),%r8d
mov    -0x27b0(%rbp),%r9
movsbl %sil,%esi
movsbl (%r9),%r9d
call   *%rax
mov    -0x27b4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27b4(%rbp)
mov    -0x27b0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x27b0(%rbp)
jmp    13b2 <read_life105+0x272>
mov    -0x279c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x279c(%rbp)
jmp    1162 <read_life105+0x22>
add    $0x27c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_life105>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2798,%rsp
mov    %rcx,%r15
mov    %rdx,0x10(%rsp)
mov    %rsi,%rbx
mov    %rdi,%rdx
lea    0x80(%rsp),%rdi
mov    $0x2710,%esi
mov    %rdx,0x18(%rsp)
call   1040 <fgets@plt>
test   %rax,%rax
je     1346 <read_life105+0x206>
mov    $0x50,%r14b
lea    0x80(%rsp),%rbp
jmp    11b0 <read_life105+0x70>
nopl   0x0(%rax)
addl   $0x1,0x4(%rsp)
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    0x18(%rsp),%rdx
call   1040 <fgets@plt>
test   %rax,%rax
je     1346 <read_life105+0x206>
mov    %rbp,%rdi
mov    $0xd,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     11c5 <read_life105+0x85>
movb   $0x0,(%rax)
mov    %rbp,%rdi
mov    $0xa,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     11da <read_life105+0x9a>
movb   $0x0,(%rax)
mov    0x80(%rsp),%al
test   %al,%al
je     1190 <read_life105+0x50>
cmp    $0x23,%al
jne    1250 <read_life105+0x110>
movsbl 0x81(%rsp),%eax
add    $0xffffffbc,%eax
cmp    $0xf,%eax
ja     128f <read_life105+0x14f>
lea    0xdfc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x82(%rsp),%rdi
lea    0xe32(%rip),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0x4(%rsp),%r8
xor    %eax,%eax
call   1060 <sscanf@plt>
mov    $0x46,%r14b
cmp    $0x3,%eax
je     1195 <read_life105+0x55>
jmp    1329 <read_life105+0x1e9>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x8(%rsp),%r13d
lea    0x81(%rsp),%r12
nopl   (%rax)
mov    0xc(%rsp),%edx
mov    0x4(%rsp),%r8d
movsbl %r14b,%esi
movsbl %al,%r9d
mov    %r15,%rdi
mov    %r13d,%ecx
call   *%rbx
add    $0x1,%r13d
movzbl (%r12),%eax
add    $0x1,%r12
test   %al,%al
jne    1260 <read_life105+0x120>
jmp    1190 <read_life105+0x50>
mov    0x2d4a(%rip),%rax
mov    (%rax),%edi
lea    0xdbe(%rip),%rsi
mov    %rbp,%rdx
call   1050 <fprintf@plt>
jmp    1195 <read_life105+0x55>
movl   $0x0,0xc(%rsp)
lea    0x82(%rsp),%rdi
lea    0xd8e(%rip),%rsi
lea    0x8(%rsp),%rdx
lea    0x4(%rsp),%rcx
xor    %eax,%eax
call   1060 <sscanf@plt>
mov    $0x50,%r14b
cmp    $0x2,%eax
je     1195 <read_life105+0x55>
jmp    1329 <read_life105+0x1e9>
lea    0x82(%rsp),%rdi
lea    0xd66(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x40(%rsp),%rcx
xor    %eax,%eax
call   1060 <sscanf@plt>
cmp    $0x2,%eax
jne    1329 <read_life105+0x1e9>
mov    0x10(%rsp),%rax
test   %rax,%rax
je     1195 <read_life105+0x55>
mov    %r15,%rdi
lea    0x20(%rsp),%rsi
lea    0x40(%rsp),%rdx
call   *%rax
jmp    1195 <read_life105+0x55>
mov    0x2cb0(%rip),%rax
mov    (%rax),%edi
lea    0xd07(%rip),%rsi
lea    0x80(%rsp),%rdx
call   1050 <fprintf@plt>
add    $0x2798,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@stderr = global i32 0
@.str.1 = [14 x i8] c"Bad line: %s\0A\00"
@.str.2 = [9 x i8] c"%d %d %d\00"
@.str.3 = [6 x i8] c"%s %s\00"
@.str.4 = [18 x i8] c"Unknown line: %s\0A\00"
define void @read_life105(i32* %0, void (i8*, i8, i32, i32, i32, i8)* %1, void (i8*, i8*, i8*)* %2, i8* %3) {
%5 = alloca i32*
%6 = alloca void (i8*, i8, i32, i32, i32, i8)*
%7 = alloca void (i8*, i8*, i8*)*
%8 = alloca i8*
%9 = alloca [10000 x i8]
%10 = alloca [30 x i8]
%11 = alloca [50 x i8]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8
%17 = alloca i8*
%18 = alloca i32
store i32* %0, i32** %5
store void (i8*, i8, i32, i32, i32, i8)* %1, void (i8*, i8, i32, i32, i32, i8)** %6
store void (i8*, i8*, i8*)* %2, void (i8*, i8*, i8*)** %7
store i8* %3, i8** %8
store i8 80, i8* %16
br label %19
19: ; preds = %119, %4
%20 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%21 = load i32*, i32** %5
%22 = call i64 @fgets(i8* %20, i32 10000, i32* %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %120
24: ; preds = %19
%25 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%26 = call i8* @strchr(i8* %25, i8 signext 13)
store i8* %26, i8** %17
%27 = load i8*, i8** %17
%28 = icmp ne i8* %27, null
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = load i8*, i8** %17
store i8 0, i8* %30
br label %31
31: ; preds = %29, %24
%32 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%33 = call i8* @strchr(i8* %32, i8 signext 10)
store i8* %33, i8** %17
%34 = load i8*, i8** %17
%35 = icmp ne i8* %34, null
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = load i8*, i8** %17
store i8 0, i8* %37
br label %38
38: ; preds = %36, %31
%39 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 35
br i1 %42, label %43, label %95
43: ; preds = %38
%44 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 1
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
switch i32 %46, label %90 [
i32 76, label %47
i32 68, label %48
i32 78, label %49
i32 80, label %50
i32 70, label %60
i32 83, label %70
]
47: ; preds = %43
br label %94
48: ; preds = %43
br label %94
49: ; preds = %43
br label %94
50: ; preds = %43
store i8 80, i8* %16
store i32 0, i32* %12
%51 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%52 = getelementptr inbounds i8, i8* %51, i64 2
%53 = call i32 (i8*, i8*, ...) @sscanf(i8* %52, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %13, i32* %14)
%54 = icmp ne i32 %53, 2
br i1 %54, label %55, label %59
55: ; preds = %50
%56 = load i32, i32* @stderr
%57 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%58 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %57)
br label %120
59: ; preds = %50
br label %94
60: ; preds = %43
store i8 70, i8* %16
%61 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%62 = getelementptr inbounds i8, i8* %61, i64 2
%63 = call i32 (i8*, i8*, ...) @sscanf(i8* %62, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %12, i32* %13, i32* %14)
%64 = icmp ne i32 %63, 3
br i1 %64, label %65, label %69
65: ; preds = %60
%66 = load i32, i32* @stderr
%67 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%68 = call i32 @fprintf(i32 %66, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %67)
br label %120
69: ; preds = %60
br label %94
70: ; preds = %43
%71 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%72 = getelementptr inbounds i8, i8* %71, i64 2
%73 = getelementptr inbounds [30 x i8], [30 x i8]* %10, i64 0, i64 0
%74 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%75 = call i32 (i8*, i8*, ...) @sscanf(i8* %72, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %73, i8* %74)
%76 = icmp ne i32 %75, 2
br i1 %76, label %77, label %81
77: ; preds = %70
%78 = load i32, i32* @stderr
%79 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%80 = call i32 @fprintf(i32 %78, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %79)
br label %120
81: ; preds = %70
%82 = load void (i8*, i8*, i8*)*, void (i8*, i8*, i8*)** %7
%83 = icmp ne void (i8*, i8*, i8*)* %82, null
br i1 %83, label %84, label %89
84: ; preds = %81
%85 = load void (i8*, i8*, i8*)*, void (i8*, i8*, i8*)** %7
%86 = load i8*, i8** %8
%87 = getelementptr inbounds [30 x i8], [30 x i8]* %10, i64 0, i64 0
%88 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
br label %89
89: ; preds = %84, %81
br label %94
90: ; preds = %43
%91 = load i32, i32* @stderr
%92 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
%93 = call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %92)
br label %94
94: ; preds = %90, %89, %69, %59, %49, %48, %47
br label %119
95: ; preds = %38
%96 = load i32, i32* %13
store i32 %96, i32* %18
%97 = getelementptr inbounds [10000 x i8], [10000 x i8]* %9, i64 0, i64 0
store i8* %97, i8** %17
br label %98
98: ; preds = %113, %95
%99 = load i8*, i8** %17
%100 = load i8, i8* %99
%101 = icmp ne i8 %100, 0
br i1 %101, label %102, label %116
102: ; preds = %98
%103 = load void (i8*, i8, i32, i32, i32, i8)*, void (i8*, i8, i32, i32, i32, i8)** %6
%104 = load i8*, i8** %8
%105 = load i8, i8* %16
%106 = load i32, i32* %12
%107 = load i32, i32* %18
%108 = load i32, i32* %14
%109 = load i8*, i8** %17
%110 = load i8, i8* %109
%111 = load i32, i32* %18
%112 = add nsw i32 %111, 1
store i32 %112, i32* %18
br label %113
113: ; preds = %102
%114 = load i8*, i8** %17
%115 = getelementptr inbounds i8, i8* %114, i32 1
store i8* %115, i8** %17
br label %98
116: ; preds = %98
%117 = load i32, i32* %14
%118 = add nsw i32 %117, 1
store i32 %118, i32* %14
br label %119
119: ; preds = %116, %94
br label %19
120: ; preds = %55, %65, %77, %19
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@stderr = global i32 0
@.str.1 = [14 x i8] c"Bad line: %s\0A\00"
@.str.2 = [9 x i8] c"%d %d %d\00"
@.str.3 = [6 x i8] c"%s %s\00"
@.str.4 = [18 x i8] c"Unknown line: %s\0A\00"
define void @read_life105(i32* nocapture %0, void (i8*, i8, i32, i32, i32, i8)* nocapture %1, void (i8*, i8*, i8*)* %2, i8* %3) {
%5 = alloca [10000 x i8]
%6 = alloca [30 x i8]
%7 = alloca [50 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = getelementptr inbounds [10000 x i8], [10000 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [50 x i8], [50 x i8]* %7, i64 0, i64 0
%14 = bitcast i32* %8 to i8*
%15 = bitcast i32* %9 to i8*
%16 = bitcast i32* %10 to i8*
%17 = call i64 @fgets(i8* %11, i32 10000, i32* %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %73, label %19
19: ; preds = %4
%20 = getelementptr inbounds [10000 x i8], [10000 x i8]* %5, i64 0, i64 1
%21 = getelementptr inbounds [10000 x i8], [10000 x i8]* %5, i64 0, i64 2
%22 = icmp eq void (i8*, i8*, i8*)* %2, null
br label %23
23: ; preds = %19, %66
%24 = phi i8 [ 80, %19 ], [ %67, %66 ]
%25 = call i8* @strchr(i8* %11, i8 signext 13)
%26 = icmp eq i8* %25, null
br i1 %26, label %28, label %27
27: ; preds = %23
store i8 0, i8* %25
br label %28
28: ; preds = %27, %23
%29 = call i8* @strchr(i8* %11, i8 signext 10)
%30 = icmp eq i8* %29, null
br i1 %30, label %32, label %31
31: ; preds = %28
store i8 0, i8* %29
br label %32
32: ; preds = %31, %28
%33 = load i8, i8* %11
switch i8 %33, label %51 [
i8 35, label %34
i8 0, label %63
]
34: ; preds = %32
%35 = load i8, i8* %20
%36 = sext i8 %35 to i32
switch i32 %36, label %48 [
i32 76, label %66
i32 68, label %66
i32 78, label %66
i32 80, label %37
i32 70, label %40
i32 83, label %43
]
37: ; preds = %34
store i32 0, i32* %8
%38 = call i32 (i8*, i8*, ...) @sscanf(i8* %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %9, i32* %10)
%39 = icmp eq i32 %38, 2
br i1 %39, label %66, label %70
40: ; preds = %34
%41 = call i32 (i8*, i8*, ...) @sscanf(i8* %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %8, i32* %9, i32* %10)
%42 = icmp eq i32 %41, 3
br i1 %42, label %66, label %70
43: ; preds = %34
%44 = call i32 (i8*, i8*, ...) @sscanf(i8* %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %12, i8* %13)
%45 = icmp eq i32 %44, 2
br i1 %45, label %46, label %70
46: ; preds = %43
br i1 %22, label %66, label %47
47: ; preds = %46
br label %66
48: ; preds = %34
%49 = load i32, i32* @stderr
%50 = call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %11)
br label %66
51: ; preds = %32
%52 = load i32, i32* %9
br label %53
53: ; preds = %51, %53
%54 = phi i32 [ %59, %53 ], [ %52, %51 ]
%55 = phi i8* [ %60, %53 ], [ %11, %51 ]
%56 = phi i8 [ %61, %53 ], [ %33, %51 ]
%57 = load i32, i32* %8
%58 = load i32, i32* %10
%59 = add nsw i32 %54, 1
%60 = getelementptr inbounds i8, i8* %55, i64 1
%61 = load i8, i8* %60
%62 = icmp eq i8 %61, 0
br i1 %62, label %63, label %53
63: ; preds = %53, %32
%64 = load i32, i32* %10
%65 = add nsw i32 %64, 1
store i32 %65, i32* %10
br label %66
66: ; preds = %63, %46, %47, %40, %37, %48, %34, %34, %34
%67 = phi i8 [ %24, %48 ], [ %24, %47 ], [ %24, %46 ], [ 70, %40 ], [ 80, %37 ], [ %24, %34 ], [ %24, %34 ], [ %24, %34 ], [ %24, %63 ]
%68 = call i64 @fgets(i8* %11, i32 10000, i32* %0)
%69 = icmp eq i64 %68, 0
br i1 %69, label %73, label %23
70: ; preds = %43, %40, %37
%71 = load i32, i32* @stderr
%72 = call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %11)
br label %73
73: ; preds = %66, %70, %4
ret void
}