#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int rm_so;
  int /*<<< orphan*/ rm_eo;
};
typedef TYPE_1__ regmatch_t;
typedef int /*<<< orphan*/ regex_t;
typedef int /*<<< orphan*/ lbuf;
typedef int /*<<< orphan*/ ebuf;

/* Variables and functions */
int REG_NOMATCH;
scalar_t__ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ printf(char *, int, char *);
int regcomp(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ regerror(int, int /*<<< orphan*/ *, char *, int);
int regexec(int /*<<< orphan*/ *, char *, size_t const, TYPE_1__ *,
            int /*<<< orphan*/);
int /*<<< orphan*/ regfree(int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int strlen(char *);
char *substr(char *, int, int /*<<< orphan*/);
int main(int argc, char **argv) {
  char *pattern;
  int x, z, lno = 0, cflags = 0;
  char ebuf[128], lbuf[256];
  regex_t reg;
  regmatch_t pm[10];
  const size_t nmatch = 10;
  pattern = argv[1];
  z = regcomp(&reg, pattern, cflags);
  if (z != 0) {
    regerror(z, &reg, ebuf, sizeof(ebuf));
    fprintf(stderr, "%s: pattern '%s' \n", ebuf, pattern);
    return 1;
  }
  while (fgets(lbuf, sizeof(lbuf), stdin)) {
    ++lno;
    if ((z = strlen(lbuf)) > 0 && lbuf[z - 1] == '\n')
      lbuf[z - 1] = 0;
    z = regexec(&reg, lbuf, nmatch, pm, 0);
    if (z == REG_NOMATCH)
      continue;
    else if (z != 0) {
      regerror(z, &reg, ebuf, sizeof(ebuf));
      fprintf(stderr, "%s: regcom('%s')\n", ebuf, lbuf);
      return 2;
    }
    for (x = 0; x < nmatch && pm[x].rm_so != -1; ++x) {
      if (!x)
        printf("%04d: %s\n", lno, lbuf);
      printf(" $%d='%s'\n", x, substr(lbuf, pm[x].rm_so, pm[x].rm_eo));
    }
  }
  regfree(&reg);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x220,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movq   $0xa,-0x218(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%edx
lea    -0x1b4(%rbp),%rdi
call   1070 <regcomp@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     1235 <main+0xa5>
mov    -0x20(%rbp),%edi
lea    -0xb0(%rbp),%rdx
lea    -0x1b4(%rbp),%rsi
mov    $0x80,%ecx
call   10a0 <regerror@plt>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
lea    -0xb0(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    0xddc(%rip),%rsi
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1408 <main+0x278>
jmp    123a <main+0xaa>
lea    -0x1b0(%rbp),%rdi
mov    0x2da0(%rip),%rax
mov    (%rax),%edx
mov    $0x100,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     13f5 <main+0x265>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
lea    -0x1b0(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x20(%rbp)
cmp    $0x0,%eax
jle    12a8 <main+0x118>
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x1b0(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
jne    12a8 <main+0x118>
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1b0(%rbp,%rax,1)
lea    -0x1b0(%rbp),%rsi
lea    -0x210(%rbp),%rcx
lea    -0x1b4(%rbp),%rdi
mov    $0xa,%edx
xor    %r8d,%r8d
call   10b0 <regexec@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    0x2d09(%rip),%rcx
cmp    (%rcx),%eax
jne    12e4 <main+0x154>
jmp    123a <main+0xaa>
cmpl   $0x0,-0x20(%rbp)
je     1338 <main+0x1a8>
mov    -0x20(%rbp),%edi
lea    -0xb0(%rbp),%rdx
lea    -0x1b4(%rbp),%rsi
mov    $0x80,%ecx
call   10a0 <regerror@plt>
mov    0x2cc0(%rip),%rax
mov    (%rax),%edi
lea    -0xb0(%rbp),%rdx
lea    -0x1b0(%rbp),%rcx
lea    0xcec(%rip),%rsi
call   1090 <fprintf@plt>
movl   $0x2,-0x4(%rbp)
jmp    1408 <main+0x278>
jmp    133d <main+0x1ad>
movl   $0x0,-0x1c(%rbp)
movslq -0x1c(%rbp),%rcx
xor    %eax,%eax
cmp    $0xa,%rcx
mov    %al,-0x219(%rbp)
jae    136f <main+0x1df>
movslq -0x1c(%rbp),%rax
cmpl   $0xffffffff,-0x210(%rbp,%rax,8)
ff
setne  %al
mov    %al,-0x219(%rbp)
mov    -0x219(%rbp),%al
test   $0x1,%al
jne    1382 <main+0x1f2>
jmp    13f0 <main+0x260>
cmpl   $0x0,-0x1c(%rbp)
jne    13a2 <main+0x212>
mov    -0x24(%rbp),%esi
lea    -0x1b0(%rbp),%rdx
lea    0xc88(%rip),%rdi
call   1060 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x220(%rbp)
lea    -0x1b0(%rbp),%rdi
movslq -0x1c(%rbp),%rax
mov    -0x210(%rbp,%rax,8),%esi
movslq -0x1c(%rbp),%rax
mov    -0x20c(%rbp,%rax,8),%edx
call   1050 <substr@plt>
mov    -0x220(%rbp),%esi
mov    %rax,%rdx
lea    0xc52(%rip),%rdi
call   1060 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1344 <main+0x1b4>
jmp    123a <main+0xaa>
lea    -0x1b4(%rbp),%rdi
call   1030 <regfree@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x220,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1e8,%rsp
mov    0x8(%rsi),%rbx
lea    0xc(%rsp),%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <regcomp@plt>
test   %eax,%eax
je     11f9 <main+0x69>
lea    0xc(%rsp),%rsi
lea    0x160(%rsp),%rbp
mov    %eax,%edi
mov    %rbp,%rdx
mov    $0x80,%ecx
call   10a0 <regerror@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%edi
lea    0xe1c(%rip),%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
call   1090 <fprintf@plt>
mov    $0x1,%eax
jmp    134d <main+0x1bd>
mov    0x2de8(%rip),%rax
mov    (%rax),%edx
lea    0x60(%rsp),%rdi
mov    $0x100,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     1301 <main+0x171>
xor    %r14d,%r14d
lea    0x60(%rsp),%rbx
lea    0x10(%rsp),%r12
lea    0xdf7(%rip),%r13
lea    0xdfa(%rip),%rbp
jmp    125f <main+0xcf>
nopw   0x0(%rax,%rax,1)
mov    0x2da1(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x100,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     1301 <main+0x171>
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    127a <main+0xea>
add    $0xffffffff,%eax
cmpb   $0xa,0x60(%rsp,%rax,1)
jne    127a <main+0xea>
movb   $0x0,0x60(%rsp,%rax,1)
add    $0x1,%r14d
mov    $0xa,%edx
lea    0xc(%rsp),%rdi
mov    %rbx,%rsi
mov    %r12,%rcx
xor    %r8d,%r8d
call   10b0 <regexec@plt>
mov    0x2d43(%rip),%rcx
cmp    (%rcx),%eax
je     1240 <main+0xb0>
test   %eax,%eax
jne    130f <main+0x17f>
xor    %r15d,%r15d
jmp    12d9 <main+0x149>
nopw   0x0(%rax,%rax,1)
mov    0x14(%rsp,%r15,8),%edx
mov    %rbx,%rdi
call   1050 <substr@plt>
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %rax,%rdx
call   1060 <printf@plt>
add    $0x1,%r15
cmp    $0xa,%r15
je     1240 <main+0xb0>
mov    0x10(%rsp,%r15,8),%esi
cmp    $0xffffffff,%esi
je     1240 <main+0xb0>
test   %r15,%r15
jne    12b0 <main+0x120>
mov    %r13,%rdi
mov    %r14d,%esi
mov    %rbx,%rdx
call   1060 <printf@plt>
mov    0x10(%rsp,%r15,8),%esi
jmp    12b0 <main+0x120>
lea    0xc(%rsp),%rdi
call   1030 <regfree@plt>
xor    %eax,%eax
jmp    134d <main+0x1bd>
lea    0xc(%rsp),%rsi
lea    0x160(%rsp),%rbx
mov    %eax,%edi
mov    %rbx,%rdx
mov    $0x80,%ecx
call   10a0 <regerror@plt>
mov    0x2c9e(%rip),%rax
mov    (%rax),%edi
lea    0xcd8(%rip),%rsi
lea    0x60(%rsp),%rcx
mov    %rbx,%rdx
call   1090 <fprintf@plt>
mov    $0x2,%eax
add    $0x1e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32 }
@stderr = global i32 0
@.str = [19 x i8] c"%s: pattern '%s' \0A\00"
@stdin = global i32 0
@REG_NOMATCH = global i32 0
@.str.1 = [18 x i8] c"%s: regcom('%s')\0A\00"
@.str.2 = [10 x i8] c"%04d: %s\0A\00"
@.str.3 = [11 x i8] c" $%d='%s'\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [128 x i8]
%4 = alloca [256 x i8]
%5 = alloca i32
%6 = alloca [10 x %struct.TYPE_3__]
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%9 = bitcast i32* %5 to i8*
%10 = bitcast [10 x %struct.TYPE_3__]* %6 to i8*
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = call i32 @regcomp(i32* %5, i8* %12, i32 0)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, i32* @stdin
%17 = call i64 @fgets(i8* %8, i32 256, i32 %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %70, label %19
19: ; preds = %15
%20 = getelementptr inbounds [10 x %struct.TYPE_3__], [10 x %struct.TYPE_3__]* %6, i64 0, i64 0
br label %25
21: ; preds = %2
%22 = call i32 @regerror(i32 %13, i32* %5, i8* %7, i32 128)
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %12)
br label %72
25: ; preds = %19, %66
%26 = phi i32 [ 0, %19 ], [ %27, %66 ]
%27 = add nuw nsw i32 %26, 1
%28 = call i32 @strlen(i8* %8)
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %25
%31 = add nsw i32 %28, -1
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = icmp eq i8 %34, 10
br i1 %35, label %36, label %37
36: ; preds = %30
store i8 0, i8* %33
br label %37
37: ; preds = %36, %30, %25
%38 = call i32 @regexec(i32* %5, i8* %8, i64 10, %struct.TYPE_3__* %20, i32 0)
%39 = load i32, i32* @REG_NOMATCH
%40 = icmp eq i32 %38, %39
br i1 %40, label %66, label %41
41: ; preds = %37
%42 = icmp eq i32 %38, 0
br i1 %42, label %47, label %43
43: ; preds = %41
%44 = call i32 @regerror(i32 %38, i32* %5, i8* %7, i32 128)
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %8)
br label %72
47: ; preds = %41, %57
%48 = phi i64 [ %64, %57 ], [ 0, %41 ]
%49 = getelementptr inbounds [10 x %struct.TYPE_3__], [10 x %struct.TYPE_3__]* %6, i64 0, i64 %48, i32 0
%50 = load i32, i32* %49
%51 = icmp eq i32 %50, -1
br i1 %51, label %66, label %52
52: ; preds = %47
%53 = icmp eq i64 %48, 0
br i1 %53, label %54, label %57
54: ; preds = %52
%55 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %27, i8* %8)
%56 = load i32, i32* %49
br label %57
57: ; preds = %54, %52
%58 = phi i32 [ %56, %54 ], [ %50, %52 ]
%59 = getelementptr inbounds [10 x %struct.TYPE_3__], [10 x %struct.TYPE_3__]* %6, i64 0, i64 %48, i32 1
%60 = load i32, i32* %59
%61 = call i8* @substr(i8* %8, i32 %58, i32 %60)
%62 = trunc i64 %48 to i32
%63 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %62, i8* %61)
%64 = add nuw nsw i64 %48, 1
%65 = icmp eq i64 %64, 10
br i1 %65, label %66, label %47
66: ; preds = %47, %57, %37
%67 = load i32, i32* @stdin
%68 = call i64 @fgets(i8* %8, i32 256, i32 %67)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %25
70: ; preds = %66, %15
%71 = call i32 @regfree(i32* %5)
br label %72
72: ; preds = %70, %43, %21
%73 = phi i32 [ 1, %21 ], [ 2, %43 ], [ 0, %70 ]
ret i32 %73
}