#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*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, size_t);
void put_line_strip_check(char *line, FILE *id) {
  char *ptmp;
  int length, i;
  int print_it = 0;
  ptmp = line;
  if (!strncmp(ptmp, "c:tex-begin", (size_t)11))
    return;
  if (!strncmp(ptmp, "c:tex-end", (size_t)9))
    return;
  if (!strncmp(ptmp, "*:tex-begin", (size_t)11))
    return;
  if (!strncmp(ptmp, "*:tex-end", (size_t)9))
    return;
  if (!strncmp(ptmp, "*:tex-cvsid", (size_t)11)) {
    (void)fprintf(id, "%%\n%% $");
    (void)fprintf(id, "Id$\n%%\n");
    return;
  }
  if (!strncmp(ptmp, "c:tex-cvsid", (size_t)11)) {
    (void)fprintf(id, "%%\n%% $");
    (void)fprintf(id, "Id$\n%%\n");
    return;
  }
  if (!strncmp(ptmp, "*:tex-", (size_t)6)) {
    ptmp += 6;
    print_it++;
  }
  if (!strncmp(ptmp, "c:tex-", (size_t)6)) {
    ptmp += 6;
    print_it++;
  }
  if (print_it) {
    (void)fprintf(id, "%s\n", ptmp);
    (void)fflush(id);
    return;
  }
  length = strlen(ptmp);
  for (i = 0; i < length; i++) {
    if (!strncmp(ptmp, "!:tex-", (size_t)6)) {
      ptmp += 6;
      print_it++;
      break;
    }
    ptmp++;
  }
  if (print_it)
    (void)fprintf(id, "%s\n", ptmp);
  (void)fflush(id);
}


x86 assembly (clang, -O0):
<put_line_strip_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe96(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1182 <put_line_strip_check+0x42>
jmp    13a7 <put_line_strip_check+0x267>
mov    -0x18(%rbp),%rdi
lea    0xe7f(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11a5 <put_line_strip_check+0x65>
jmp    13a7 <put_line_strip_check+0x267>
mov    -0x18(%rbp),%rdi
lea    0xe66(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11c8 <put_line_strip_check+0x88>
jmp    13a7 <put_line_strip_check+0x267>
mov    -0x18(%rbp),%rdi
lea    0xe4f(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11eb <put_line_strip_check+0xab>
jmp    13a7 <put_line_strip_check+0x267>
mov    -0x18(%rbp),%rdi
lea    0xe36(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1232 <put_line_strip_check+0xf2>
mov    -0x10(%rbp),%rdi
lea    0xe24(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe1a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13a7 <put_line_strip_check+0x267>
mov    -0x18(%rbp),%rdi
lea    0xe0b(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1279 <put_line_strip_check+0x139>
mov    -0x10(%rbp),%rdi
lea    0xddd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xdd3(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13a7 <put_line_strip_check+0x267>
mov    -0x18(%rbp),%rdi
lea    0xdd0(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12ac <put_line_strip_check+0x16c>
mov    -0x18(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x18(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xda4(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12df <put_line_strip_check+0x19f>
mov    -0x18(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x18(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     130d <put_line_strip_check+0x1cd>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xd6a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1060 <fflush@plt>
jmp    13a7 <put_line_strip_check+0x267>
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    137e <put_line_strip_check+0x23e>
mov    -0x18(%rbp),%rdi
lea    0xd2f(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1364 <put_line_strip_check+0x224>
mov    -0x18(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x18(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    137e <put_line_strip_check+0x23e>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1320 <put_line_strip_check+0x1e0>
cmpl   $0x0,-0x24(%rbp)
je     139e <put_line_strip_check+0x25e>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xccb(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1060 <fflush@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<put_line_strip_check>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r12
lea    0xea8(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12a7 <put_line_strip_check+0x167>
lea    0xe9b(%rip),%rsi
mov    $0x9,%edx
mov    %r12,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
je     12a7 <put_line_strip_check+0x167>
lea    0xe89(%rip),%rsi
mov    $0xb,%edx
mov    %r12,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
je     12a7 <put_line_strip_check+0x167>
lea    0xe79(%rip),%rsi
mov    $0x9,%edx
mov    %r12,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
je     12a7 <put_line_strip_check+0x167>
lea    0xe67(%rip),%rsi
mov    $0xb,%edx
mov    %r12,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
je     12b6 <put_line_strip_check+0x176>
lea    0xe67(%rip),%rsi
mov    $0xb,%edx
mov    %r12,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
je     12b6 <put_line_strip_check+0x176>
lea    0xe57(%rip),%rsi
mov    $0x6,%ebx
mov    $0x6,%edx
mov    %r12,%rdi
call   1030 <strncmp@plt>
mov    %eax,%ebp
xor    %r13d,%r13d
test   %eax,%eax
mov    $0x0,%r15d
cmove  %rbx,%r15
lea    (%r12,%r15,1),%rbx
lea    0xe30(%rip),%rsi
mov    $0x6,%edx
mov    %rbx,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
mov    $0x6,%ecx
cmove  %rcx,%r13
mov    %r13,(%rsp)
add    %r13,%rbx
test   %eax,%eax
je     12e6 <put_line_strip_check+0x1a6>
test   %ebp,%ebp
je     12e6 <put_line_strip_check+0x1a6>
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1317 <put_line_strip_check+0x1d7>
mov    %eax,%r13d
neg    %r13d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x6,%edx
mov    %rbx,%rdi
lea    0xdd7(%rip),%rsi
call   1030 <strncmp@plt>
test   %eax,%eax
je     12f5 <put_line_strip_check+0x1b5>
add    $0x1,%rbx
add    $0xffffffffffffffff,%rbp
cmp    %ebp,%r13d
jne    1280 <put_line_strip_check+0x140>
jmp    1317 <put_line_strip_check+0x1d7>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd7b(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xd72(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fprintf@plt>
lea    0xd75(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
jmp    1310 <put_line_strip_check+0x1d0>
add    (%rsp),%r15
add    %r12,%r15
sub    %rbp,%r15
add    $0x6,%r15
lea    0xd58(%rip),%rsi
mov    %r14,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <fflush@plt>

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

LLVM IR (-O2):
@.str = [12 x i8] c"c:tex-begin\00"
@.str.1 = [10 x i8] c"c:tex-end\00"
@.str.2 = [12 x i8] c"*:tex-begin\00"
@.str.3 = [10 x i8] c"*:tex-end\00"
@.str.4 = [12 x i8] c"*:tex-cvsid\00"
@.str.5 = [8 x i8] c"%%\0A%% $\00"
@.str.6 = [8 x i8] c"Id$\0A%%\0A\00"
@.str.7 = [12 x i8] c"c:tex-cvsid\00"
@.str.8 = [7 x i8] c"*:tex-\00"
@.str.9 = [7 x i8] c"c:tex-\00"
@.str.10 = [4 x i8] c"%s\0A\00"
@.str.11 = [7 x i8] c"!:tex-\00"
define void @put_line_strip_check(i8* %0, i32* nocapture %1) {
%3 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i64 11)
%4 = icmp eq i32 %3, 0
br i1 %4, label %56, label %5
5: ; preds = %2
%6 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i64 9)
%7 = icmp eq i32 %6, 0
br i1 %7, label %56, label %8
8: ; preds = %5
%9 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i64 11)
%10 = icmp eq i32 %9, 0
br i1 %10, label %56, label %11
11: ; preds = %8
%12 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i64 9)
%13 = icmp eq i32 %12, 0
br i1 %13, label %56, label %14
14: ; preds = %11
%15 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 11)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %56
20: ; preds = %14
%21 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i64 11)
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%25 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %56
26: ; preds = %20
%27 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i64 6)
%28 = icmp eq i32 %27, 0
%29 = select i1 %28, i64 6, i64 0
%30 = getelementptr i8, i8* %0, i64 %29
%31 = tail call i32 @strncmp(i8* dereferenceable(1) %30, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i64 6)
%32 = icmp eq i32 %31, 0
%33 = select i1 %32, i64 6, i64 0
%34 = getelementptr i8, i8* %30, i64 %33
%35 = select i1 %32, i1 true, i1 %28
br i1 %35, label %36, label %39
36: ; preds = %26
%37 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %34)
%38 = tail call i32 @fflush(i32* %1)
br label %56
39: ; preds = %26
%40 = tail call i32 @strlen(i8* %34)
%41 = icmp sgt i32 %40, 0
br i1 %41, label %42, label %54
42: ; preds = %39, %47
%43 = phi i32 [ %49, %47 ], [ 0, %39 ]
%44 = phi i8* [ %48, %47 ], [ %34, %39 ]
%45 = tail call i32 @strncmp(i8* dereferenceable(1) %44, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i64 6)
%46 = icmp eq i32 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %42
%48 = getelementptr inbounds i8, i8* %44, i64 1
%49 = add nuw nsw i32 %43, 1
%50 = icmp eq i32 %49, %40
br i1 %50, label %54, label %42
51: ; preds = %42
%52 = getelementptr inbounds i8, i8* %44, i64 6
%53 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* %52)
br label %54
54: ; preds = %47, %39, %51
%55 = tail call i32 @fflush(i32* %1)
br label %56
56: ; preds = %11, %8, %5, %2, %54, %36, %23, %17
ret void
}