#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__ EPROTOTYPE;
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(void) {
  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 != EPROTOTYPE)
    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    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
mov    0x2e59(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1196 <main+0x46>
mov    $0xffffffff,%edi
lea    0xe6f(%rip),%rsi
call   1060 <err@plt>
mov    -0x8(%rbp),%edi
call   1040 <close@plt>
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    11d5 <main+0x85>
mov    $0xffffffff,%edi
lea    0xe51(%rip),%rsi
call   1060 <err@plt>
mov    -0x8(%rbp),%edi
call   1040 <close@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
mov    0x2dfb(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1221 <main+0xd1>
mov    -0x8(%rbp),%edi
call   1040 <close@plt>
mov    -0x8(%rbp),%edx
mov    $0xffffffff,%edi
lea    0xe27(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
mov    0x2d98(%rip),%rax
mov    (%rax),%rax
mov    0x2d9e(%rip),%rcx
cmp    (%rcx),%rax
je     124c <main+0xfc>
mov    $0xffffffff,%edi
lea    0xe24(%rip),%rsi
call   1060 <err@plt>
mov    0x2d65(%rip),%rax
mov    (%rax),%edi
mov    0x2d6c(%rip),%rax
mov    (%rax),%esi
lea    -0x10(%rbp),%rcx
xor    %edx,%edx
call   1050 <socketpair@plt>
cmp    $0x0,%rax
jge    1284 <main+0x134>
mov    $0xffffffff,%edi
lea    0xe0a(%rip),%rsi
call   1060 <err@plt>
cmpl   $0x0,-0x10(%rbp)
jge    12a1 <main+0x151>
mov    $0xffffffff,%edi
lea    0xe1b(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
cmpl   $0x0,-0xc(%rbp)
jge    12be <main+0x16e>
mov    $0xffffffff,%edi
lea    0xe32(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
mov    -0x10(%rbp),%edi
call   1040 <close@plt>
mov    -0xc(%rbp),%edi
call   1040 <close@plt>
mov    0x2ce3(%rip),%rax
mov    (%rax),%edi
mov    0x2d02(%rip),%rax
mov    (%rax),%esi
lea    -0x10(%rbp),%rcx
xor    %edx,%edx
call   1050 <socketpair@plt>
cmp    $0x0,%rax
jge    1306 <main+0x1b6>
mov    $0xffffffff,%edi
lea    0xe1c(%rip),%rsi
call   1060 <err@plt>
cmpl   $0x0,-0x10(%rbp)
jge    1323 <main+0x1d3>
mov    $0xffffffff,%edi
lea    0xe2c(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
cmpl   $0x0,-0xc(%rbp)
jge    1340 <main+0x1f0>
mov    $0xffffffff,%edi
lea    0xe42(%rip),%rsi
mov    $0x0,%al
call   1030 <errx@plt>
mov    -0x10(%rbp),%edi
call   1040 <close@plt>
mov    -0xc(%rbp),%edi
call   1040 <close@plt>
xor    %eax,%eax
add    $0x10,%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
@EPROTOTYPE = 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() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [2 x i32]
store i32 0, i32* %1
%4 = load i32, i32* @PF_LOCAL
%5 = load i32, i32* @SOCK_STREAM
%6 = call i32 @socket(i32 %4, i32 %5, i32 0)
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = 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, %0
%12 = load i32, i32* %2
%13 = call i32 @close(i32 %12)
%14 = load i32, i32* @PF_LOCAL
%15 = load i32, i32* @SOCK_DGRAM
%16 = call i32 @socket(i32 %14, i32 %15, i32 0)
store i32 %16, i32* %2
%17 = load i32, i32* %2
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %11
%20 = call i32 @err(i32 -1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %21
21: ; preds = %19, %11
%22 = load i32, i32* %2
%23 = call i32 @close(i32 %22)
%24 = load i32, i32* @PF_LOCAL
%25 = load i32, i32* @SOCK_RAW
%26 = call i32 @socket(i32 %24, i32 %25, i32 0)
store i32 %26, i32* %2
%27 = load i32, i32* %2
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %21
%30 = load i32, i32* %2
%31 = call i32 @close(i32 %30)
%32 = load i32, i32* %2
%33 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i32 %32)
br label %34
34: ; preds = %29, %21
%35 = load i64, i64* @errno
%36 = load i64, i64* @EPROTOTYPE
%37 = icmp ne i64 %35, %36
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @err(i32 -1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
br label %40
40: ; preds = %38, %34
%41 = load i32, i32* @PF_LOCAL
%42 = load i32, i32* @SOCK_STREAM
%43 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%44 = call i64 @socketpair(i32 %41, i32 %42, i32 0, i32* %43)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = call i32 @err(i32 -1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
br label %48
48: ; preds = %46, %40
%49 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%50 = load i32, i32* %49
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
br label %54
54: ; preds = %52, %48
%55 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%56 = load i32, i32* %55
%57 = icmp slt i32 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
br label %60
60: ; preds = %58, %54
%61 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%62 = load i32, i32* %61
%63 = call i32 @close(i32 %62)
%64 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%65 = load i32, i32* %64
%66 = call i32 @close(i32 %65)
%67 = load i32, i32* @PF_LOCAL
%68 = load i32, i32* @SOCK_DGRAM
%69 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%70 = call i64 @socketpair(i32 %67, i32 %68, i32 0, i32* %69)
%71 = icmp slt i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %60
%73 = call i32 @err(i32 -1, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
br label %74
74: ; preds = %72, %60
%75 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%76 = load i32, i32* %75
%77 = icmp slt i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
br label %80
80: ; preds = %78, %74
%81 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%82 = load i32, i32* %81
%83 = icmp slt i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
br label %86
86: ; preds = %84, %80
%87 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%88 = load i32, i32* %87
%89 = call i32 @close(i32 %88)
%90 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%91 = load i32, i32* %90
%92 = call i32 @close(i32 %91)
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
@EPROTOTYPE = 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() {
%1 = alloca [2 x i32]
%2 = bitcast [2 x i32]* %1 to i8*
%3 = load i32, i32* @PF_LOCAL
%4 = load i32, i32* @SOCK_STREAM
%5 = tail call i32 @socket(i32 %3, i32 %4, i32 0)
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = tail call i32 @err(i32 -1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %0
%10 = tail call i32 @close(i32 %5)
%11 = load i32, i32* @PF_LOCAL
%12 = load i32, i32* @SOCK_DGRAM
%13 = tail call i32 @socket(i32 %11, i32 %12, i32 0)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = tail call i32 @err(i32 -1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %17
17: ; preds = %15, %9
%18 = tail call i32 @close(i32 %13)
%19 = load i32, i32* @PF_LOCAL
%20 = load i32, i32* @SOCK_RAW
%21 = tail call i32 @socket(i32 %19, i32 %20, i32 0)
%22 = icmp sgt i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = tail call i32 @close(i32 %21)
%25 = tail call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i32 %21)
br label %26
26: ; preds = %23, %17
%27 = load i64, i64* @errno
%28 = load i64, i64* @EPROTOTYPE
%29 = icmp eq i64 %27, %28
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = tail call i32 @err(i32 -1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
br label %32
32: ; preds = %30, %26
%33 = load i32, i32* @PF_LOCAL
%34 = load i32, i32* @SOCK_STREAM
%35 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 0
%36 = call i64 @socketpair(i32 %33, i32 %34, i32 0, i32* %35)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %32
%39 = call i32 @err(i32 -1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
br label %40
40: ; preds = %38, %32
%41 = load i32, i32* %35
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
br label %45
45: ; preds = %43, %40
%46 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 1
%47 = load i32, i32* %46
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
br label %51
51: ; preds = %49, %45
%52 = load i32, i32* %35
%53 = call i32 @close(i32 %52)
%54 = load i32, i32* %46
%55 = call i32 @close(i32 %54)
%56 = load i32, i32* @PF_LOCAL
%57 = load i32, i32* @SOCK_DGRAM
%58 = call i64 @socketpair(i32 %56, i32 %57, i32 0, i32* %35)
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %51
%61 = call i32 @err(i32 -1, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
br label %62
62: ; preds = %60, %51
%63 = load i32, i32* %35
%64 = icmp slt i32 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
br label %67
67: ; preds = %65, %62
%68 = load i32, i32* %46
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 (i32, i8*, ...) @errx(i32 -1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
br label %72
72: ; preds = %70, %67
%73 = load i32, i32* %35
%74 = call i32 @close(i32 %73)
%75 = load i32, i32* %46
%76 = call i32 @close(i32 %75)
ret i32 0
}