#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*/ asprintf(char **, char *, int);
int atoi(int /*<<< orphan*/);
int /*<<< orphan*/ err(int, char *, char *);
int /*<<< orphan*/ errx(int, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, char **, char **);
int getopt(int, char **, char *);
int /*<<< orphan*/ optarg;
scalar_t__ optind;
int /*<<< orphan*/ prsigs(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  FILE *fp;
  char *path = "/proc/self/status";
  char *k, *v;
  int opt, pid = -1;
  while ((opt = getopt(argc, argv, "p:")) != -1) {
    switch (opt) {
    case 'p':
      if (pid != -1)
        errx(2, "PID already specified");
      pid = atoi(optarg);
      break;
    default:
      errx(2, "bad usage");
    }
  }
  argc -= optind;
  argv += optind;
  if (argc > 1) {
    int i = 0;
    while (argv[++i])
      prsigs("arg", argv[i]);
    return 0;
  }
  if (pid > 0)
    asprintf(&path, "/proc/%d/status", pid);
  fp = fopen(path, "r");
  if (!fp)
    err(1, "could not open '%s'", path);
  while (fscanf(fp, "%m[^:]: %m[^\n]\n", &k, &v) > 0) {
    if (!strcmp(k, "SigBlk"))
      prsigs("blocked", v);
    else if (!strcmp(k, "SigIgn"))
      prsigs("ignored", v);
    else if (!strcmp(k, "SigCgt"))
      prsigs("caught", v);
    free(k);
    free(v);
  }
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe33(%rip),%rax
mov    %rax,-0x20(%rbp)
movl   $0xffffffff,-0x38(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe2c(%rip),%rdx
call   10b0 <getopt@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
je     124f <main+0x9f>
mov    -0x34(%rbp),%eax
sub    $0x70,%eax
jne    1239 <main+0x89>
jmp    1208 <main+0x58>
cmpl   $0xffffffff,-0x38(%rbp)
je     1223 <main+0x73>
mov    $0x2,%edi
lea    0xdf7(%rip),%rsi
call   1050 <errx@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
call   10c0 <atoi@plt>
mov    %eax,-0x38(%rbp)
jmp    124a <main+0x9a>
mov    $0x2,%edi
lea    0xde6(%rip),%rsi
call   1050 <errx@plt>
jmp    11d8 <main+0x28>
mov    0x2d8a(%rip),%rax
mov    (%rax),%rcx
movslq -0x8(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    0x2d76(%rip),%rax
mov    (%rax),%rax
shl    $0x3,%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    12ce <main+0x11e>
movl   $0x0,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x3c(%rbp)
movslq %ecx,%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     12c2 <main+0x112>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd7d(%rip),%rdi
call   10d0 <prsigs@plt>
jmp    128a <main+0xda>
movl   $0x0,-0x4(%rbp)
jmp    13fc <main+0x24c>
cmpl   $0x0,-0x38(%rbp)
jle    12eb <main+0x13b>
mov    -0x38(%rbp),%edx
lea    -0x20(%rbp),%rdi
lea    0xd53(%rip),%rsi
call   1090 <asprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xd53(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    131f <main+0x16f>
mov    -0x20(%rbp),%rdx
mov    $0x1,%edi
lea    0xd31(%rip),%rsi
call   1080 <err@plt>
jmp    1324 <main+0x174>
mov    -0x18(%rbp),%rdi
lea    0xd30(%rip),%rsi
lea    -0x28(%rbp),%rdx
lea    -0x30(%rbp),%rcx
call   1060 <fscanf@plt>
cmp    $0x0,%rax
jle    13ec <main+0x23c>
mov    -0x28(%rbp),%rdi
lea    0xd1e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1374 <main+0x1c4>
mov    -0x30(%rbp),%rsi
lea    0xd0c(%rip),%rdi
call   10d0 <prsigs@plt>
jmp    13d5 <main+0x225>
mov    -0x28(%rbp),%rdi
lea    0xcff(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13a2 <main+0x1f2>
mov    -0x30(%rbp),%rsi
lea    0xced(%rip),%rdi
call   10d0 <prsigs@plt>
jmp    13d0 <main+0x220>
mov    -0x28(%rbp),%rdi
lea    0xce0(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13cb <main+0x21b>
mov    -0x30(%rbp),%rsi
lea    0xcce(%rip),%rdi
call   10d0 <prsigs@plt>
jmp    13d0 <main+0x220>
jmp    13d5 <main+0x225>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
jmp    1324 <main+0x174>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
lea    0xe36(%rip),%r14
mov    %r14,0x10(%rsp)
mov    $0xffffffff,%r15d
lea    0xe36(%rip),%r12
lea    0xe48(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   10b0 <getopt@plt>
cmp    $0xffffffff,%eax
je     1240 <main+0x90>
cmp    $0x70,%eax
je     1216 <main+0x66>
mov    $0x2,%edi
mov    %r13,%rsi
call   1050 <errx@plt>
jmp    11f0 <main+0x40>
cmp    $0xffffffff,%r15d
je     122d <main+0x7d>
mov    $0x2,%edi
lea    0xded(%rip),%rsi
call   1050 <errx@plt>
mov    0x2dc4(%rip),%rax
mov    (%rax),%edi
call   10c0 <atoi@plt>
mov    %eax,%r15d
jmp    11f0 <main+0x40>
mov    0x2d99(%rip),%rax
mov    (%rax),%rax
sub    %eax,%ebx
cmp    $0x2,%ebx
jl     128a <main+0xda>
mov    0x8(%rbp,%rax,8),%rsi
test   %rsi,%rsi
je     13a8 <main+0x1f8>
lea    0x10(%rbp,%rax,8),%rbp
lea    0xdca(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   10d0 <prsigs@plt>
mov    0x0(%rbp),%rsi
add    $0x8,%rbp
test   %rsi,%rsi
jne    1270 <main+0xc0>
jmp    13a8 <main+0x1f8>
test   %r15d,%r15d
jle    12a8 <main+0xf8>
lea    0xda3(%rip),%rsi
lea    0x10(%rsp),%rdi
mov    %r15d,%edx
call   1090 <asprintf@plt>
mov    0x10(%rsp),%r14
lea    0xd9a(%rip),%rsi
mov    %r14,%rdi
call   10a0 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    12d5 <main+0x125>
mov    0x10(%rsp),%rdx
lea    0xd80(%rip),%rsi
mov    $0x1,%edi
call   1080 <err@plt>
lea    0xd83(%rip),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
mov    %rbx,%rdi
call   1060 <fscanf@plt>
test   %rax,%rax
jle    13a0 <main+0x1f0>
lea    0xd73(%rip),%r14
lea    0xd5c(%rip),%r12
lea    0x8(%rsp),%r13
mov    %rsp,%rbp
jmp    1349 <main+0x199>
nopl   (%rax)
mov    (%rsp),%rsi
lea    0xd5b(%rip),%rdi
call   10d0 <prsigs@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
call   1060 <fscanf@plt>
test   %rax,%rax
jle    13a0 <main+0x1f0>
mov    0x8(%rsp),%r15
mov    %r15,%rdi
mov    %r14,%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1310 <main+0x160>
mov    %r15,%rdi
lea    0xd17(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1390 <main+0x1e0>
mov    %r15,%rdi
lea    0xd13(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1320 <main+0x170>
mov    (%rsp),%rsi
lea    0xd06(%rip),%rdi
jmp    131b <main+0x16b>
mov    (%rsp),%rsi
lea    0xcea(%rip),%rdi
jmp    131b <main+0x16b>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"/proc/self/status\00"
@.str.1 = [3 x i8] c"p:\00"
@.str.2 = [22 x i8] c"PID already specified\00"
@optarg = global i32 0
@.str.3 = [10 x i8] c"bad usage\00"
@optind = global i64 0
@.str.4 = [4 x i8] c"arg\00"
@.str.5 = [16 x i8] c"/proc/%d/status\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [20 x i8] c"could not open '%s'\00"
@.str.8 = [16 x i8] c"%m[^:]: %m[^\0A]\0A\00"
@.str.9 = [7 x i8] c"SigBlk\00"
@.str.10 = [8 x i8] c"blocked\00"
@.str.11 = [7 x i8] c"SigIgn\00"
@.str.12 = [8 x i8] c"ignored\00"
@.str.13 = [7 x i8] c"SigCgt\00"
@.str.14 = [7 x i8] c"caught\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %7
store i32 -1, i32* %11
br label %13
13: ; preds = %30, %2
%14 = load i32, i32* %4
%15 = load i8**, i8*** %5
%16 = call i32 @getopt(i32 %14, i8** %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32 %16, i32* %10
%17 = icmp ne i32 %16, -1
br i1 %17, label %18, label %31
18: ; preds = %13
%19 = load i32, i32* %10
switch i32 %19, label %28 [
i32 112, label %20
]
20: ; preds = %18
%21 = load i32, i32* %11
%22 = icmp ne i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @errx(i32 2, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %23, %20
%26 = load i32, i32* @optarg
%27 = call i32 @atoi(i32 %26)
store i32 %27, i32* %11
br label %30
28: ; preds = %18
%29 = call i32 @errx(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %30
30: ; preds = %28, %25
br label %13
31: ; preds = %13
%32 = load i64, i64* @optind
%33 = load i32, i32* %4
%34 = sext i32 %33 to i64
%35 = sub nsw i64 %34, %32
%36 = trunc i64 %35 to i32
store i32 %36, i32* %4
%37 = load i64, i64* @optind
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 %37
store i8** %39, i8*** %5
%40 = load i32, i32* %4
%41 = icmp sgt i32 %40, 1
br i1 %41, label %42, label %59
42: ; preds = %31
store i32 0, i32* %12
br label %43
43: ; preds = %51, %42
%44 = load i8**, i8*** %5
%45 = load i32, i32* %12
%46 = add nsw i32 %45, 1
store i32 %46, i32* %12
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8*, i8** %44, i64 %47
%49 = load i8*, i8** %48
%50 = icmp ne i8* %49, null
br i1 %50, label %51, label %58
51: ; preds = %43
%52 = load i8**, i8*** %5
%53 = load i32, i32* %12
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %52, i64 %54
%56 = load i8*, i8** %55
%57 = call i32 @prsigs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %56)
br label %43
58: ; preds = %43
store i32 0, i32* %3
br label %109
59: ; preds = %31
%60 = load i32, i32* %11
%61 = icmp sgt i32 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load i32, i32* %11
%64 = call i32 @asprintf(i8** %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %63)
br label %65
65: ; preds = %62, %59
%66 = load i8*, i8** %7
%67 = call i32* @fopen(i8* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %67, i32** %6
%68 = load i32*, i32** %6
%69 = icmp ne i32* %68, null
br i1 %69, label %73, label %70
70: ; preds = %65
%71 = load i8*, i8** %7
%72 = call i32 @err(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %71)
br label %73
73: ; preds = %70, %65
br label %74
74: ; preds = %101, %73
%75 = load i32*, i32** %6
%76 = call i64 @fscanf(i32* %75, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8** %8, i8** %9)
%77 = icmp sgt i64 %76, 0
br i1 %77, label %78, label %106
78: ; preds = %74
%79 = load i8*, i8** %8
%80 = call i32 @strcmp(i8* %79, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%81 = icmp ne i32 %80, 0
br i1 %81, label %85, label %82
82: ; preds = %78
%83 = load i8*, i8** %9
%84 = call i32 @prsigs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* %83)
br label %101
85: ; preds = %78
%86 = load i8*, i8** %8
%87 = call i32 @strcmp(i8* %86, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%88 = icmp ne i32 %87, 0
br i1 %88, label %92, label %89
89: ; preds = %85
%90 = load i8*, i8** %9
%91 = call i32 @prsigs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %90)
br label %100
92: ; preds = %85
%93 = load i8*, i8** %8
%94 = call i32 @strcmp(i8* %93, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%95 = icmp ne i32 %94, 0
br i1 %95, label %99, label %96
96: ; preds = %92
%97 = load i8*, i8** %9
%98 = call i32 @prsigs(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* %97)
br label %99
99: ; preds = %96, %92
br label %100
100: ; preds = %99, %89
br label %101
101: ; preds = %100, %82
%102 = load i8*, i8** %8
%103 = call i32 @free(i8* %102)
%104 = load i8*, i8** %9
%105 = call i32 @free(i8* %104)
br label %74
106: ; preds = %74
%107 = load i32*, i32** %6
%108 = call i32 @fclose(i32* %107)
store i32 0, i32* %3
br label %109
109: ; preds = %106, %58
%110 = load i32, i32* %3
ret i32 %110
}

LLVM IR (-O2):
@.str = [18 x i8] c"/proc/self/status\00"
@.str.1 = [3 x i8] c"p:\00"
@.str.2 = [22 x i8] c"PID already specified\00"
@optarg = global i32 0
@.str.3 = [10 x i8] c"bad usage\00"
@optind = global i64 0
@.str.4 = [4 x i8] c"arg\00"
@.str.5 = [16 x i8] c"/proc/%d/status\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [20 x i8] c"could not open '%s'\00"
@.str.8 = [16 x i8] c"%m[^:]: %m[^\0A]\0A\00"
@.str.9 = [7 x i8] c"SigBlk\00"
@.str.10 = [8 x i8] c"blocked\00"
@.str.11 = [7 x i8] c"SigIgn\00"
@.str.12 = [8 x i8] c"ignored\00"
@.str.13 = [7 x i8] c"SigCgt\00"
@.str.14 = [7 x i8] c"caught\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = bitcast i8** %3 to i8*
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %3
%7 = bitcast i8** %4 to i8*
%8 = bitcast i8** %5 to i8*
br label %9
9: ; preds = %17, %2
%10 = phi i32 [ %19, %17 ], [ -1, %2 ]
br label %11
11: ; preds = %9, %20
%12 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
switch i32 %12, label %20 [
i32 -1, label %22
i32 112, label %13
]
13: ; preds = %11
%14 = icmp eq i32 %10, -1
br i1 %14, label %17, label %15
15: ; preds = %13
%16 = tail call i32 @errx(i32 2, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %15, %13
%18 = load i32, i32* @optarg
%19 = tail call i32 @atoi(i32 %18)
br label %9
20: ; preds = %11
%21 = tail call i32 @errx(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %11
22: ; preds = %11
%23 = load i64, i64* @optind
%24 = trunc i64 %23 to i32
%25 = sub i32 %0, %24
%26 = getelementptr inbounds i8*, i8** %1, i64 %23
%27 = icmp sgt i32 %25, 1
br i1 %27, label %28, label %40
28: ; preds = %22
%29 = getelementptr inbounds i8*, i8** %26, i64 1
%30 = load i8*, i8** %29
%31 = icmp eq i8* %30, null
br i1 %31, label %83, label %32
32: ; preds = %28, %32
%33 = phi i64 [ %36, %32 ], [ 1, %28 ]
%34 = phi i8* [ %38, %32 ], [ %30, %28 ]
%35 = tail call i32 @prsigs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %34)
%36 = add nuw i64 %33, 1
%37 = getelementptr inbounds i8*, i8** %26, i64 %36
%38 = load i8*, i8** %37
%39 = icmp eq i8* %38, null
br i1 %39, label %83, label %32
40: ; preds = %22
%41 = icmp sgt i32 %10, 0
br i1 %41, label %42, label %45
42: ; preds = %40
%43 = call i32 @asprintf(i8** %3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %10)
%44 = load i8*, i8** %3
br label %45
45: ; preds = %42, %40
%46 = phi i8* [ %44, %42 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), %40 ]
%47 = call i32* @fopen(i8* %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%48 = icmp eq i32* %47, null
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = load i8*, i8** %3
%51 = call i32 @err(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %50)
br label %52
52: ; preds = %49, %45
%53 = call i64 @fscanf(i32* %47, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8** %4, i8** %5)
%54 = icmp sgt i64 %53, 0
br i1 %54, label %55, label %81
55: ; preds = %52, %74
%56 = load i8*, i8** %4
%57 = call i32 @strcmp(i8* dereferenceable(1) %56, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = load i8*, i8** %5
%61 = call i32 @prsigs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* %60)
br label %74
62: ; preds = %55
%63 = call i32 @strcmp(i8* dereferenceable(1) %56, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i8*, i8** %5
%67 = call i32 @prsigs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %66)
br label %74
68: ; preds = %62
%69 = call i32 @strcmp(i8* dereferenceable(1) %56, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %68
%72 = load i8*, i8** %5
%73 = call i32 @prsigs(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* %72)
br label %74
74: ; preds = %65, %71, %68, %59
%75 = load i8*, i8** %4
%76 = call i32 @free(i8* %75)
%77 = load i8*, i8** %5
%78 = call i32 @free(i8* %77)
%79 = call i64 @fscanf(i32* %47, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8** %4, i8** %5)
%80 = icmp sgt i64 %79, 0
br i1 %80, label %55, label %81
81: ; preds = %74, %52
%82 = call i32 @fclose(i32* %47)
br label %83
83: ; preds = %32, %28, %81
ret i32 0
}