#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 */

/* Variables and functions */
scalar_t__ EPROTONOSUPPORT;
int /*<<< orphan*/ PF_LOCAL;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ SOCK_RAW;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ err(int, char *);
scalar_t__ errno;
int /*<<< orphan*/ errx(int, char *, ...);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ socketpair(int /*<<< orphan*/, int /*<<< orphan*/,
                      int /*<<< orphan*/, int *);
int main(int argc, char *argv[]) {
  int sock, socks[2];
  sock = socket(PF_LOCAL, SOCK_STREAM, 0);
  if (sock < 0)
    err(-1, "socket(PF_LOCAL, SOCK_STREAM, 0)");
  close(sock);
  sock = socket(PF_LOCAL, SOCK_DGRAM, 0);
  if (sock < 0)
    err(-1, "socket(PF_LOCAL, SOCK_DGRAM, 0)");
  close(sock);
  sock = socket(PF_LOCAL, SOCK_RAW, 0);
  if (sock >= 0) {
    close(sock);
    errx(-1, "socket(PF_LOCAL, SOCK_RAW, 0) returned %d", sock);
  }
  if (errno != EPROTONOSUPPORT)
    err(-1, "socket(PF_LOCAL, SOCK_RAW, 0)");
  if (socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) < 0)
    err(-1, "socketpair(PF_LOCAL, SOCK_STREAM, 0, socks)");
  if (socks[0] < 0)
    errx(-1, "socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [0] < 0");
  if (socks[1] < 0)
    errx(-1, "socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [1] < 1");
  close(socks[0]);
  close(socks[1]);
  if (socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) < 0)
    err(-1, "socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks)");
  if (socks[0] < 0)
    errx(-1, "socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [0] < 0");
  if (socks[1] < 0)
    errx(-1, "socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [1] < 1");
  close(socks[0]);
  close(socks[1]);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
mov    0x2e52(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    119d <main+0x4d>
mov    $0xffffffff,%edi
lea    0xe68(%rip),%rsi
call   1060 <err@plt>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
mov    0x2e2b(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    11dc <main+0x8c>
mov    $0xffffffff,%edi
lea    0xe4a(%rip),%rsi
call   1060 <err@plt>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
mov    0x2dcd(%rip),%rax
mov    (%rax),%edi
mov    0x2df4(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     1228 <main+0xd8>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
mov    -0x14(%rbp),%edx
mov    $0xffffffff,%edi
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
mov    0x2d91(%rip),%rax
mov    (%rax),%rax
mov    0x2d97(%rip),%rcx
cmp    (%rcx),%rax
je     1253 <main+0x103>
mov    $0xffffffff,%edi
lea    0xe1d(%rip),%rsi
call   1060 <err@plt>
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
mov    0x2d65(%rip),%rax
mov    (%rax),%esi
lea    -0x1c(%rbp),%rcx
xor    %edx,%edx
call   1050 <socketpair@plt>
cmp    $0x0,%rax
jge    128b <main+0x13b>
mov    $0xffffffff,%edi
lea    0xe03(%rip),%rsi
call   1060 <err@plt>
cmpl   $0x0,-0x1c(%rbp)
jge    12a8 <main+0x158>
mov    $0xffffffff,%edi
lea    0xe14(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
cmpl   $0x0,-0x18(%rbp)
jge    12c5 <main+0x175>
mov    $0xffffffff,%edi
lea    0xe2b(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
mov    -0x1c(%rbp),%edi
call   1040 <close@plt>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
mov    0x2cdc(%rip),%rax
mov    (%rax),%edi
mov    0x2cfb(%rip),%rax
mov    (%rax),%esi
lea    -0x1c(%rbp),%rcx
xor    %edx,%edx
call   1050 <socketpair@plt>
cmp    $0x0,%rax
jge    130d <main+0x1bd>
mov    $0xffffffff,%edi
lea    0xe15(%rip),%rsi
call   1060 <err@plt>
cmpl   $0x0,-0x1c(%rbp)
jge    132a <main+0x1da>
mov    $0xffffffff,%edi
lea    0xe25(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
cmpl   $0x0,-0x18(%rbp)
jge    1347 <main+0x1f7>
mov    $0xffffffff,%edi
lea    0xe3b(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
mov    -0x1c(%rbp),%edi
call   1040 <close@plt>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    0x2e59(%rip),%r14
mov    (%r14),%edi
mov    0x2e5f(%rip),%r12
mov    (%r12),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    118b <main+0x3b>
lea    0xe7f(%rip),%rsi
mov    $0xffffffff,%edi
call   1060 <err@plt>
mov    %ebx,%edi
call   1040 <close@plt>
mov    (%r14),%edi
mov    0x2e44(%rip),%r15
mov    (%r15),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    11bd <main+0x6d>
lea    0xe6e(%rip),%rsi
mov    $0xffffffff,%edi
call   1060 <err@plt>
mov    %ebx,%edi
call   1040 <close@plt>
mov    (%r14),%edi
mov    0x2e1a(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
test   %eax,%eax
js     11f9 <main+0xa9>
mov    %eax,%ebx
mov    %eax,%edi
call   1040 <close@plt>
lea    0xe56(%rip),%rsi
mov    $0xffffffff,%edi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <errx@plt>
mov    0x2dc0(%rip),%rax
mov    (%rax),%rax
mov    0x2dc6(%rip),%rcx
cmp    (%rcx),%rax
je     1220 <main+0xd0>
lea    0xe55(%rip),%rsi
mov    $0xffffffff,%edi
call   1060 <err@plt>
mov    (%r14),%edi
mov    (%r12),%esi
mov    %rsp,%rcx
xor    %edx,%edx
call   1050 <socketpair@plt>
test   %rax,%rax
js     12a9 <main+0x159>
cmpl   $0x0,(%rsp)
js     12c0 <main+0x170>
cmpl   $0x0,0x4(%rsp)
js     12de <main+0x18e>
mov    (%rsp),%edi
call   1040 <close@plt>
mov    0x4(%rsp),%edi
call   1040 <close@plt>
mov    (%r14),%edi
mov    (%r15),%esi
mov    %rsp,%rcx
xor    %edx,%edx
call   1050 <socketpair@plt>
test   %rax,%rax
js     12f6 <main+0x1a6>
cmpl   $0x0,(%rsp)
js     1311 <main+0x1c1>
cmpl   $0x0,0x4(%rsp)
js     132f <main+0x1df>
mov    (%rsp),%edi
call   1040 <close@plt>
mov    0x4(%rsp),%edi
call   1040 <close@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
lea    0xdd9(%rip),%rsi
mov    $0xffffffff,%edi
call   1060 <err@plt>
cmpl   $0x0,(%rsp)
jns    1240 <main+0xf0>
lea    0xdee(%rip),%rsi
mov    $0xffffffff,%edi
xor    %eax,%eax
call   1030 <errx@plt>
cmpl   $0x0,0x4(%rsp)
jns    124b <main+0xfb>
lea    0xe04(%rip),%rsi
mov    $0xffffffff,%edi
xor    %eax,%eax
call   1030 <errx@plt>
jmp    124b <main+0xfb>
lea    0xe20(%rip),%rsi
mov    $0xffffffff,%edi
call   1060 <err@plt>
cmpl   $0x0,(%rsp)
jns    127f <main+0x12f>
lea    0xe30(%rip),%rsi
mov    $0xffffffff,%edi
xor    %eax,%eax
call   1030 <errx@plt>
cmpl   $0x0,0x4(%rsp)
jns    128a <main+0x13a>
lea    0xe45(%rip),%rsi
mov    $0xffffffff,%edi
xor    %eax,%eax
call   1030 <errx@plt>
jmp    128a <main+0x13a>

LLVM IR (-O0):
@PF_LOCAL = global i32 0
@SOCK_STREAM = global i32 0
@.str = [33 x i8] c"socket(PF_LOCAL, SOCK_STREAM, 0)\00"
@SOCK_DGRAM = global i32 0
@.str.1 = [32 x i8] c"socket(PF_LOCAL, SOCK_DGRAM, 0)\00"
@SOCK_RAW = global i32 0
@.str.2 = [42 x i8] c"socket(PF_LOCAL, SOCK_RAW, 0) returned %d\00"
@errno = global i64 0
@EPROTONOSUPPORT = global i64 0
@.str.3 = [30 x i8] c"socket(PF_LOCAL, SOCK_RAW, 0)\00"
@.str.4 = [44 x i8] c"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks)\00"
@.str.5 = [52 x i8] c"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [0] < 0\00"
@.str.6 = [52 x i8] c"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [1] < 1\00"
@.str.7 = [43 x i8] c"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks)\00"
@.str.8 = [51 x i8] c"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [0] < 0\00"
@.str.9 = [51 x i8] c"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [1] < 1\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [2 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* @PF_LOCAL
%9 = load i32, i32* @SOCK_STREAM
%10 = call i32 @socket(i32 %8, i32 %9, i32 0)
store i32 %10, i32* %6
%11 = load i32, i32* %6
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @err(i32 -1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
br label %15
15: ; preds = %13, %2
%16 = load i32, i32* %6
%17 = call i32 @close(i32 %16)
%18 = load i32, i32* @PF_LOCAL
%19 = load i32, i32* @SOCK_DGRAM
%20 = call i32 @socket(i32 %18, i32 %19, i32 0)
store i32 %20, i32* %6
%21 = load i32, i32* %6
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %15
%24 = call i32 @err(i32 -1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %23, %15
%26 = load i32, i32* %6
%27 = call i32 @close(i32 %26)
%28 = load i32, i32* @PF_LOCAL
%29 = load i32, i32* @SOCK_RAW
%30 = call i32 @socket(i32 %28, i32 %29, i32 0)
store i32 %30, i32* %6
%31 = load i32, i32* %6
%32 = icmp sge i32 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %25
%34 = load i32, i32* %6
%35 = call i32 @close(i32 %34)
%36 = load i32, i32* %6
%37 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i32 %36)
br label %38
38: ; preds = %33, %25
%39 = load i64, i64* @errno
%40 = load i64, i64* @EPROTONOSUPPORT
%41 = icmp ne i64 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @err(i32 -1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
br label %44
44: ; preds = %42, %38
%45 = load i32, i32* @PF_LOCAL
%46 = load i32, i32* @SOCK_STREAM
%47 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%48 = call i64 @socketpair(i32 %45, i32 %46, i32 0, i32* %47)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %44
%51 = call i32 @err(i32 -1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
br label %52
52: ; preds = %50, %44
%53 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%54 = load i32, i32* %53
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
br label %58
58: ; preds = %56, %52
%59 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%60 = load i32, i32* %59
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
br label %64
64: ; preds = %62, %58
%65 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%66 = load i32, i32* %65
%67 = call i32 @close(i32 %66)
%68 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%69 = load i32, i32* %68
%70 = call i32 @close(i32 %69)
%71 = load i32, i32* @PF_LOCAL
%72 = load i32, i32* @SOCK_DGRAM
%73 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%74 = call i64 @socketpair(i32 %71, i32 %72, i32 0, i32* %73)
%75 = icmp slt i64 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %64
%77 = call i32 @err(i32 -1, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
br label %78
78: ; preds = %76, %64
%79 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%80 = load i32, i32* %79
%81 = icmp slt i32 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %78
%83 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
br label %84
84: ; preds = %82, %78
%85 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%86 = load i32, i32* %85
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %84
%89 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
br label %90
90: ; preds = %88, %84
%91 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%92 = load i32, i32* %91
%93 = call i32 @close(i32 %92)
%94 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 1
%95 = load i32, i32* %94
%96 = call i32 @close(i32 %95)
ret i32 0
}

LLVM IR (-O2):
@PF_LOCAL = global i32 0
@SOCK_STREAM = global i32 0
@.str = [33 x i8] c"socket(PF_LOCAL, SOCK_STREAM, 0)\00"
@SOCK_DGRAM = global i32 0
@.str.1 = [32 x i8] c"socket(PF_LOCAL, SOCK_DGRAM, 0)\00"
@SOCK_RAW = global i32 0
@.str.2 = [42 x i8] c"socket(PF_LOCAL, SOCK_RAW, 0) returned %d\00"
@errno = global i64 0
@EPROTONOSUPPORT = global i64 0
@.str.3 = [30 x i8] c"socket(PF_LOCAL, SOCK_RAW, 0)\00"
@.str.4 = [44 x i8] c"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks)\00"
@.str.5 = [52 x i8] c"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [0] < 0\00"
@.str.6 = [52 x i8] c"socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [1] < 1\00"
@.str.7 = [43 x i8] c"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks)\00"
@.str.8 = [51 x i8] c"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [0] < 0\00"
@.str.9 = [51 x i8] c"socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) [1] < 1\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2 x i32]
%4 = bitcast [2 x i32]* %3 to i8*
%5 = load i32, i32* @PF_LOCAL
%6 = load i32, i32* @SOCK_STREAM
%7 = tail call i32 @socket(i32 %5, i32 %6, i32 0)
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = tail call i32 @err(i32 -1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %9, %2
%12 = tail call i32 @close(i32 %7)
%13 = load i32, i32* @PF_LOCAL
%14 = load i32, i32* @SOCK_DGRAM
%15 = tail call i32 @socket(i32 %13, i32 %14, i32 0)
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = tail call i32 @err(i32 -1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %11
%20 = tail call i32 @close(i32 %15)
%21 = load i32, i32* @PF_LOCAL
%22 = load i32, i32* @SOCK_RAW
%23 = tail call i32 @socket(i32 %21, i32 %22, i32 0)
%24 = icmp sgt i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = tail call i32 @close(i32 %23)
%27 = tail call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i32 %23)
br label %28
28: ; preds = %25, %19
%29 = load i64, i64* @errno
%30 = load i64, i64* @EPROTONOSUPPORT
%31 = icmp eq i64 %29, %30
br i1 %31, label %34, label %32
32: ; preds = %28
%33 = tail call i32 @err(i32 -1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
br label %34
34: ; preds = %32, %28
%35 = load i32, i32* @PF_LOCAL
%36 = load i32, i32* @SOCK_STREAM
%37 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%38 = call i64 @socketpair(i32 %35, i32 %36, i32 0, i32* %37)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 @err(i32 -1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
br label %42
42: ; preds = %40, %34
%43 = load i32, i32* %37
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
br label %47
47: ; preds = %45, %42
%48 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%49 = load i32, i32* %48
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
br label %53
53: ; preds = %51, %47
%54 = load i32, i32* %37
%55 = call i32 @close(i32 %54)
%56 = load i32, i32* %48
%57 = call i32 @close(i32 %56)
%58 = load i32, i32* @PF_LOCAL
%59 = load i32, i32* @SOCK_DGRAM
%60 = call i64 @socketpair(i32 %58, i32 %59, i32 0, i32* %37)
%61 = icmp slt i64 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %53
%63 = call i32 @err(i32 -1, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
br label %64
64: ; preds = %62, %53
%65 = load i32, i32* %37
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
br label %69
69: ; preds = %67, %64
%70 = load i32, i32* %48
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
br label %74
74: ; preds = %72, %69
%75 = load i32, i32* %37
%76 = call i32 @close(i32 %75)
%77 = load i32, i32* %48
%78 = call i32 @close(i32 %77)
ret i32 0
}