#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*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ isspace(char);
int /*<<< orphan*/ pclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *popen(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *);
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
scalar_t__ strncmp(char *, char *, int);
int main(int argc, char *argv[]) {
  char *date = argv[1];
  char *fn = argv[2];
  FILE *logfd;
  char cmd[4096];
  char buf[4096];
  int gotrevmarker = 0;
  int gotlocksline = 0;
  int fileislocked = 0;
  sprintf(cmd, "rlog \"-d>%s\" %s 2>/dev/null", date, fn);
  logfd = popen(cmd, "r");
  while (fgets(buf, sizeof(buf), logfd)) {
    if (gotlocksline == 0) {
      if (strncmp(buf, "locks:", 6) == 0)
        gotlocksline = 1;
    } else if (gotlocksline == 1) {
      if (isspace(*buf))
        fileislocked = 1;
      gotlocksline = 2;
    }
    if (!gotrevmarker) {
      gotrevmarker = (strcmp(buf, "----------------------------\n") == 0);
      if (gotrevmarker) {
        fprintf(stdout, "%s", fn);
        if (fileislocked)
          fprintf(stdout, " (is being edited)");
        fprintf(stdout, "\n");
        fileislocked = 0;
      }
    }
    if (gotrevmarker)
      fprintf(stdout, "%s", buf);
  }
  pclose(logfd);
  if (fileislocked) {
    fprintf(stdout, "%s", fn);
    if (fileislocked)
      fprintf(stdout, " (is being edited)");
    fprintf(stdout, "\n");
    fprintf(stdout, "%s\n",
            "=================================================================="
            "===========");
  }
  if (gotrevmarker || fileislocked)
    fprintf(stdout, "\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2040,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x2034(%rbp)
movl   $0x0,-0x2038(%rbp)
movl   $0x0,-0x203c(%rbp)
lea    -0x1030(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xe1b(%rip),%rsi
call   10a0 <sprintf@plt>
lea    -0x1030(%rbp),%rdi
lea    0xe24(%rip),%rsi
call   1090 <popen@plt>
mov    %rax,-0x28(%rbp)
lea    -0x2030(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x1000,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     136e <main+0x1ee>
cmpl   $0x0,-0x2038(%rbp)
jne    125e <main+0xde>
lea    -0x2030(%rbp),%rdi
lea    0xde3(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1259 <main+0xd9>
movl   $0x1,-0x2038(%rbp)
jmp    129a <main+0x11a>
cmpl   $0x1,-0x2038(%rbp)
jne    1295 <main+0x115>
movsbl -0x2030(%rbp),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
je     128b <main+0x10b>
movl   $0x1,-0x203c(%rbp)
movl   $0x2,-0x2038(%rbp)
jmp    129a <main+0x11a>
cmpl   $0x0,-0x2034(%rbp)
jne    133e <main+0x1be>
lea    -0x2030(%rbp),%rdi
lea    0xd70(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x2034(%rbp)
cmpl   $0x0,-0x2034(%rbp)
je     1339 <main+0x1b9>
mov    0x2d00(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xd56(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
cmpl   $0x0,-0x203c(%rbp)
je     1318 <main+0x198>
mov    0x2cd8(%rip),%rax
mov    (%rax),%edi
lea    0xd35(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2cc1(%rip),%rax
mov    (%rax),%edi
lea    0xd19(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x0,-0x203c(%rbp)
jmp    133e <main+0x1be>
cmpl   $0x0,-0x2034(%rbp)
je     1369 <main+0x1e9>
mov    0x2c8e(%rip),%rax
mov    (%rax),%edi
lea    -0x2030(%rbp),%rdx
lea    0xce1(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1201 <main+0x81>
mov    -0x28(%rbp),%rdi
call   1040 <pclose@plt>
cmpl   $0x0,-0x203c(%rbp)
je     13f8 <main+0x278>
mov    0x2c55(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xcab(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
cmpl   $0x0,-0x203c(%rbp)
je     13c3 <main+0x243>
mov    0x2c2d(%rip),%rax
mov    (%rax),%edi
lea    0xc8a(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2c16(%rip),%rax
mov    (%rax),%edi
lea    0xc6e(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2bff(%rip),%rax
mov    (%rax),%edi
lea    0xc6f(%rip),%rsi
lea    0xc6c(%rip),%rdx
mov    $0x0,%al
call   1080 <fprintf@plt>
cmpl   $0x0,-0x2034(%rbp)
jne    1412 <main+0x292>
cmpl   $0x0,-0x203c(%rbp)
je     1429 <main+0x2a9>
mov    0x2bc7(%rip),%rax
mov    (%rax),%edi
lea    0xc1f(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0x2040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2018,%rsp
mov    0x8(%rsi),%rdx
mov    0x10(%rsi),%rcx
lea    0xe60(%rip),%rsi
lea    0x1010(%rsp),%rbx
mov    %rbx,%rdi
mov    %rcx,0x8(%rsp)
call   10a0 <sprintf@plt>
lea    0xe60(%rip),%rsi
mov    %rbx,%rdi
call   1090 <popen@plt>
mov    %rax,%r12
lea    0x10(%rsp),%rdi
mov    $0x1000,%esi
mov    %rax,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1362 <main+0x1e2>
lea    0x10(%rsp),%rbx
xor    %r14d,%r14d
xor    %r15d,%r15d
xor    %r13d,%r13d
jmp    123c <main+0xbc>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x2dd9(%rip),%rbp
mov    0x0(%rbp),%edi
xor    %ebp,%ebp
lea    0xe30(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%r13d
mov    %rbx,%rdi
mov    $0x1000,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1300 <main+0x180>
cmp    $0x1,%r15d
je     1270 <main+0xf0>
test   %r15d,%r15d
jne    1265 <main+0xe5>
mov    %rbx,%rdi
lea    0xdcd(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
xor    %r15d,%r15d
test   %rax,%rax
sete   %r15b
test   %r13d,%r13d
jne    1200 <main+0x80>
jmp    1295 <main+0x115>
nopl   0x0(%rax)
movsbl 0x10(%rsp),%edi
call   1050 <isspace@plt>
test   %rax,%rax
mov    $0x1,%eax
cmovne %eax,%r14d
mov    $0x2,%r15d
test   %r13d,%r13d
jne    1200 <main+0x80>
mov    %rbx,%rdi
lea    0xd86(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12b4 <main+0x134>
xor    %r13d,%r13d
mov    $0x1,%bpl
jmp    1223 <main+0xa3>
mov    0x2d25(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xd7e(%rip),%rsi
mov    0x8(%rsp),%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
test   %r14d,%r14d
je     12e7 <main+0x167>
mov    0x0(%rbp),%edi
lea    0xd66(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%edi
xor    %r14d,%r14d
lea    0xd4d(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    1207 <main+0x87>
mov    %r12,%rdi
call   1040 <pclose@plt>
test   %r14d,%r14d
je     136c <main+0x1ec>
mov    0x2ccc(%rip),%rbx
mov    (%rbx),%edi
lea    0xd26(%rip),%rsi
mov    0x8(%rsp),%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd14(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xcff(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd07(%rip),%rsi
lea    0xd04(%rip),%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    1378 <main+0x1f8>
mov    %r12,%rdi
call   1040 <pclose@plt>
jmp    1388 <main+0x208>
test   %bpl,%bpl
mov    0x2c6a(%rip),%rbx
jne    1388 <main+0x208>
mov    (%rbx),%edi
lea    0xcc0(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0x2018,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [28 x i8] c"rlog \22-d>%s\22 %s 2>/dev/null\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [7 x i8] c"locks:\00"
@.str.3 = [30 x i8] c"----------------------------\0A\00"
@stdout = global i32 0
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [19 x i8] c" (is being edited)\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [78 x i8] c"=============================================================================\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca [4096 x i8]
%10 = alloca [4096 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
store i8* %16, i8** %6
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 2
%19 = load i8*, i8** %18
store i8* %19, i8** %7
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
%20 = getelementptr inbounds [4096 x i8], [4096 x i8]* %9, i64 0, i64 0
%21 = load i8*, i8** %6
%22 = load i8*, i8** %7
%23 = call i32 @sprintf(i8* %20, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %21, i8* %22)
%24 = getelementptr inbounds [4096 x i8], [4096 x i8]* %9, i64 0, i64 0
%25 = call i32* @popen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %25, i32** %8
br label %26
26: ; preds = %81, %2
%27 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%28 = load i32*, i32** %8
%29 = call i64 @fgets(i8* %27, i32 4096, i32* %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %82
31: ; preds = %26
%32 = load i32, i32* %12
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %40
34: ; preds = %31
%35 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%36 = call i64 @strncmp(i8* %35, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34
store i32 1, i32* %12
br label %39
39: ; preds = %38, %34
br label %51
40: ; preds = %31
%41 = load i32, i32* %12
%42 = icmp eq i32 %41, 1
br i1 %42, label %43, label %50
43: ; preds = %40
%44 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%45 = load i8, i8* %44
%46 = call i64 @isspace(i8 signext %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %43
store i32 1, i32* %13
br label %49
49: ; preds = %48, %43
store i32 2, i32* %12
br label %50
50: ; preds = %49, %40
br label %51
51: ; preds = %50, %39
%52 = load i32, i32* %11
%53 = icmp ne i32 %52, 0
br i1 %53, label %74, label %54
54: ; preds = %51
%55 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%56 = call i64 @strcmp(i8* %55, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
%58 = zext i1 %57 to i32
store i32 %58, i32* %11
%59 = load i32, i32* %11
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %73
61: ; preds = %54
%62 = load i32, i32* @stdout
%63 = load i8*, i8** %7
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %63)
%65 = load i32, i32* %13
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %61
%68 = load i32, i32* @stdout
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %70
70: ; preds = %67, %61
%71 = load i32, i32* @stdout
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %13
br label %73
73: ; preds = %70, %54
br label %74
74: ; preds = %73, %51
%75 = load i32, i32* %11
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %81
77: ; preds = %74
%78 = load i32, i32* @stdout
%79 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %79)
br label %81
81: ; preds = %77, %74
br label %26
82: ; preds = %26
%83 = load i32*, i32** %8
%84 = call i32 @pclose(i32* %83)
%85 = load i32, i32* %13
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %101
87: ; preds = %82
%88 = load i32, i32* @stdout
%89 = load i8*, i8** %7
%90 = call i32 (i32, i8*, ...) @fprintf(i32 %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %89)
%91 = load i32, i32* %13
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %87
%94 = load i32, i32* @stdout
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %96
96: ; preds = %93, %87
%97 = load i32, i32* @stdout
%98 = call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%99 = load i32, i32* @stdout
%100 = call i32 (i32, i8*, ...) @fprintf(i32 %99, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0))
br label %101
101: ; preds = %96, %82
%102 = load i32, i32* %11
%103 = icmp ne i32 %102, 0
br i1 %103, label %107, label %104
104: ; preds = %101
%105 = load i32, i32* %13
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %104, %101
%108 = load i32, i32* @stdout
%109 = call i32 (i32, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %110
110: ; preds = %107, %104
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"rlog \22-d>%s\22 %s 2>/dev/null\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [7 x i8] c"locks:\00"
@.str.3 = [30 x i8] c"----------------------------\0A\00"
@stdout = global i32 0
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [19 x i8] c" (is being edited)\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [78 x i8] c"=============================================================================\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4096 x i8]
%4 = alloca [4096 x i8]
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = getelementptr inbounds i8*, i8** %1, i64 2
%8 = load i8*, i8** %7
%9 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%11 = call i32 @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %8)
%12 = call i32* @popen(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = call i64 @fgets(i8* %10, i32 4096, i32* %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @pclose(i32* %12)
br label %73
17: ; preds = %2, %51
%18 = phi i32 [ %54, %51 ], [ 0, %2 ]
%19 = phi i32 [ %31, %51 ], [ 0, %2 ]
%20 = phi i32 [ %53, %51 ], [ 0, %2 ]
switch i32 %19, label %30 [
i32 0, label %21
i32 1, label %25
]
21: ; preds = %17
%22 = call i64 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%23 = icmp eq i64 %22, 0
%24 = zext i1 %23 to i32
br label %30
25: ; preds = %17
%26 = load i8, i8* %10
%27 = call i64 @isspace(i8 signext %26)
%28 = icmp eq i64 %27, 0
%29 = select i1 %28, i32 %18, i32 1
br label %30
30: ; preds = %21, %17, %25
%31 = phi i32 [ 2, %25 ], [ %24, %21 ], [ %19, %17 ]
%32 = phi i32 [ %29, %25 ], [ %18, %21 ], [ %18, %17 ]
%33 = icmp eq i32 %20, 0
br i1 %33, label %34, label %47
34: ; preds = %30
%35 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %51
37: ; preds = %34
%38 = load i32, i32* @stdout
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %8)
%40 = icmp eq i32 %32, 0
br i1 %40, label %44, label %41
41: ; preds = %37
%42 = load i32, i32* @stdout
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %44
44: ; preds = %41, %37
%45 = load i32, i32* @stdout
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %47
47: ; preds = %30, %44
%48 = phi i32 [ 0, %44 ], [ %32, %30 ]
%49 = load i32, i32* @stdout
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %10)
br label %51
51: ; preds = %34, %47
%52 = phi i1 [ true, %34 ], [ false, %47 ]
%53 = phi i32 [ 0, %34 ], [ 1, %47 ]
%54 = phi i32 [ %32, %34 ], [ %48, %47 ]
%55 = call i64 @fgets(i8* %10, i32 4096, i32* %12)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %17
57: ; preds = %51
%58 = call i32 @pclose(i32* %12)
%59 = icmp eq i32 %54, 0
br i1 %59, label %69, label %60
60: ; preds = %57
%61 = load i32, i32* @stdout
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %8)
%63 = load i32, i32* @stdout
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%65 = load i32, i32* @stdout
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%67 = load i32, i32* @stdout
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0))
br label %70
69: ; preds = %57
br i1 %52, label %73, label %70
70: ; preds = %60, %69
%71 = load i32, i32* @stdout
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %73
73: ; preds = %15, %69, %70
ret i32 0
}