#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_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
struct servent {
  int /*<<< orphan*/ s_port;
};
struct protoent {
  int /*<<< orphan*/ p_proto;
};
struct hostent {
  int /*<<< orphan*/ h_length;
  int /*<<< orphan*/ h_addr;
};
typedef int /*<<< orphan*/ sin;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_NONE;
int /*<<< orphan*/ PF_INET;
int SOCK_DGRAM;
int SOCK_STREAM;
scalar_t__ atoi(char const *);
scalar_t__ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ errexit(char *, char const *, ...);
int /*<<< orphan*/ errno;
struct hostent *gethostbyname(char const *);
struct protoent *getprotobyname(char const *);
struct servent *getservbyname(char const *, char const *);
int /*<<< orphan*/ htons(unsigned short);
int /*<<< orphan*/ inet_addr(char const *);
int /*<<< orphan*/ memcpy(TYPE_1__ *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int socket(int /*<<< orphan*/, int, int /*<<< orphan*/);
scalar_t__ strcmp(char const *, char *);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
int connectsock(const char *host, const char *service, const char *transport) {
  struct hostent *phe;
  struct servent *pse;
  struct protoent *ppe;
  struct sockaddr_in sin;
  int s, type;
  memset(&sin, 0, sizeof(sin));
  sin.sin_family = AF_INET;
  if (pse = getservbyname(service, transport))
    sin.sin_port = pse->s_port;
  else if ((sin.sin_port = htons((unsigned short)atoi(service))) == 0)
    errexit("can't get \"%s\" service entry\n", service);
  if (phe = gethostbyname(host))
    memcpy(&sin.sin_addr, phe->h_addr, phe->h_length);
  else if ((sin.sin_addr.s_addr = inet_addr(host)) == INADDR_NONE)
    errexit("can't get \"%s\" host entry\n", host);
  if ((ppe = getprotobyname(transport)) == 0)
    errexit("can't get \"%s\" protocol entry\n", transport);
  if (strcmp(transport, "udp") == 0)
    type = SOCK_DGRAM;
  else
    type = SOCK_STREAM;
  s = socket(PF_INET, type, ppe->p_proto);
  if (s < 0)
    errexit("can't create socket: %s\n", strerror(errno));
  if (connect(s, (struct sockaddr *)&sin, sizeof(sin)) < 0)
    errexit("can't connect to %s.%s: %s\n", host, service, strerror(errno));
  return s;
}


x86 assembly (clang, -O0):
<connectsock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <getservbyname@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     1229 <connectsock+0x59>
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
jmp    125d <connectsock+0x8d>
mov    -0x10(%rbp),%rdi
call   10c0 <atoi@plt>
movzwl %ax,%edi
call   1030 <htons@plt>
mov    %eax,-0x3c(%rbp)
cmp    $0x0,%eax
jne    1258 <connectsock+0x88>
mov    -0x10(%rbp),%rsi
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1060 <errexit@plt>
jmp    125d <connectsock+0x8d>
mov    -0x8(%rbp),%rdi
call   1090 <gethostbyname@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     128f <connectsock+0xbf>
lea    -0x40(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x20(%rbp),%rax
mov    (%rax),%edx
call   10a0 <memcpy@plt>
jmp    12c1 <connectsock+0xf1>
mov    -0x8(%rbp),%rdi
call   1070 <inet_addr@plt>
mov    %eax,-0x40(%rbp)
mov    0x2d3e(%rip),%rcx
cmp    (%rcx),%eax
jne    12bc <connectsock+0xec>
mov    -0x8(%rbp),%rsi
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1060 <errexit@plt>
jmp    12c1 <connectsock+0xf1>
mov    -0x18(%rbp),%rdi
call   10b0 <getprotobyname@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    12ea <connectsock+0x11a>
mov    -0x18(%rbp),%rsi
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1060 <errexit@plt>
mov    -0x18(%rbp),%rdi
lea    0xd63(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1315 <connectsock+0x145>
mov    0x2ccd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
jmp    1321 <connectsock+0x151>
mov    0x2cac(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2c90(%rip),%rax
mov    (%rax),%edi
mov    -0x48(%rbp),%esi
mov    -0x30(%rbp),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jge    1364 <connectsock+0x194>
mov    0x2c74(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
movslq %eax,%rsi
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1060 <errexit@plt>
mov    -0x44(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0xc,%edx
call   10d0 <connect@plt>
cmp    $0x0,%rax
jge    13b5 <connectsock+0x1e5>
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    0x2c2a(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x58(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    %eax,%ecx
lea    0xcc7(%rip),%rdi
mov    $0x0,%al
call   1060 <errexit@plt>
mov    -0x44(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<connectsock>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r12
mov    %rsi,%r14
mov    %rdi,%r15
lea    0x8(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    0x2dec(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <getservbyname@plt>
test   %rax,%rax
je     121a <connectsock+0x4a>
mov    (%rax),%eax
mov    %eax,0xc(%rsp)
jmp    1243 <connectsock+0x73>
mov    %r14,%rdi
call   10c0 <atoi@plt>
movzwl %ax,%edi
call   1030 <htons@plt>
mov    %eax,0xc(%rsp)
test   %eax,%eax
jne    1243 <connectsock+0x73>
lea    0xdc7(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <errexit@plt>
mov    %r15,%rdi
call   1090 <gethostbyname@plt>
test   %rax,%rax
je     1261 <connectsock+0x91>
mov    (%rax),%edx
mov    0x4(%rax),%esi
lea    0x8(%rsp),%rdi
call   10a0 <memcpy@plt>
jmp    1289 <connectsock+0xb9>
mov    %r15,%rdi
call   1070 <inet_addr@plt>
mov    %eax,0x8(%rsp)
mov    0x2d6c(%rip),%rcx
cmp    (%rcx),%eax
jne    1289 <connectsock+0xb9>
lea    0xd9f(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <errexit@plt>
mov    %r12,%rdi
call   10b0 <getprotobyname@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    12aa <connectsock+0xda>
lea    0xd99(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <errexit@plt>
lea    0xda7(%rip),%rsi
mov    %r12,%rdi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    12c7 <connectsock+0xf7>
mov    0x2d13(%rip),%rax
jmp    12ce <connectsock+0xfe>
mov    0x2cfa(%rip),%rax
mov    (%rax),%esi
mov    0x2ce1(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%edx
call   10f0 <socket@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    1305 <connectsock+0x135>
mov    0x2cd3(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
movslq %eax,%rsi
lea    0xd5e(%rip),%rdi
xor    %eax,%eax
call   1060 <errexit@plt>
lea    0x8(%rsp),%rsi
mov    %ebx,%edi
mov    $0xc,%edx
call   10d0 <connect@plt>
test   %rax,%rax
jns    133f <connectsock+0x16f>
mov    0x2c9e(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
lea    0xd45(%rip),%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <errexit@plt>
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.hostent = type { i32, i32 }
%struct.servent = type { i32 }
%struct.protoent = type { i32 }
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@.str = [30 x i8] c"can't get \22%s\22 service entry\0A\00"
@INADDR_NONE = global i32 0
@.str.1 = [27 x i8] c"can't get \22%s\22 host entry\0A\00"
@.str.2 = [31 x i8] c"can't get \22%s\22 protocol entry\0A\00"
@.str.3 = [4 x i8] c"udp\00"
@SOCK_DGRAM = global i32 0
@SOCK_STREAM = global i32 0
@PF_INET = global i32 0
@.str.4 = [25 x i8] c"can't create socket: %s\0A\00"
@errno = global i32 0
@.str.5 = [28 x i8] c"can't connect to %s.%s: %s\0A\00"
define i32 @connectsock(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca %struct.hostent*
%8 = alloca %struct.servent*
%9 = alloca %struct.protoent*
%10 = alloca %struct.sockaddr_in
%11 = alloca i32
%12 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%13 = call i32 @memset(%struct.sockaddr_in* %10, i32 0, i32 12)
%14 = load i32, i32* @AF_INET
%15 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 2
store i32 %14, i32* %15
%16 = load i8*, i8** %5
%17 = load i8*, i8** %6
%18 = call %struct.servent* @getservbyname(i8* %16, i8* %17)
store %struct.servent* %18, %struct.servent** %8
%19 = icmp ne %struct.servent* %18, null
br i1 %19, label %20, label %25
20: ; preds = %3
%21 = load %struct.servent*, %struct.servent** %8
%22 = getelementptr inbounds %struct.servent, %struct.servent* %21, i32 0, i32 0
%23 = load i32, i32* %22
%24 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 1
store i32 %23, i32* %24
br label %36
25: ; preds = %3
%26 = load i8*, i8** %5
%27 = call i64 @atoi(i8* %26)
%28 = trunc i64 %27 to i16
%29 = call i32 @htons(i16 zeroext %28)
%30 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 1
store i32 %29, i32* %30
%31 = icmp eq i32 %29, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = load i8*, i8** %5
%34 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %33)
br label %35
35: ; preds = %32, %25
br label %36
36: ; preds = %35, %20
%37 = load i8*, i8** %4
%38 = call %struct.hostent* @gethostbyname(i8* %37)
store %struct.hostent* %38, %struct.hostent** %7
%39 = icmp ne %struct.hostent* %38, null
br i1 %39, label %40, label %49
40: ; preds = %36
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
%42 = load %struct.hostent*, %struct.hostent** %7
%43 = getelementptr inbounds %struct.hostent, %struct.hostent* %42, i32 0, i32 1
%44 = load i32, i32* %43
%45 = load %struct.hostent*, %struct.hostent** %7
%46 = getelementptr inbounds %struct.hostent, %struct.hostent* %45, i32 0, i32 0
%47 = load i32, i32* %46
%48 = call i32 @memcpy(%struct.TYPE_2__* %41, i32 %44, i32 %47)
br label %60
49: ; preds = %36
%50 = load i8*, i8** %4
%51 = call i32 @inet_addr(i8* %50)
%52 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
%53 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %52, i32 0, i32 0
store i32 %51, i32* %53
%54 = load i32, i32* @INADDR_NONE
%55 = icmp eq i32 %51, %54
br i1 %55, label %56, label %59
56: ; preds = %49
%57 = load i8*, i8** %4
%58 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %57)
br label %59
59: ; preds = %56, %49
br label %60
60: ; preds = %59, %40
%61 = load i8*, i8** %6
%62 = call %struct.protoent* @getprotobyname(i8* %61)
store %struct.protoent* %62, %struct.protoent** %9
%63 = icmp eq %struct.protoent* %62, null
br i1 %63, label %64, label %67
64: ; preds = %60
%65 = load i8*, i8** %6
%66 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i8* %65)
br label %67
67: ; preds = %64, %60
%68 = load i8*, i8** %6
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = load i32, i32* @SOCK_DGRAM
store i32 %72, i32* %12
br label %75
73: ; preds = %67
%74 = load i32, i32* @SOCK_STREAM
store i32 %74, i32* %12
br label %75
75: ; preds = %73, %71
%76 = load i32, i32* @PF_INET
%77 = load i32, i32* %12
%78 = load %struct.protoent*, %struct.protoent** %9
%79 = getelementptr inbounds %struct.protoent, %struct.protoent* %78, i32 0, i32 0
%80 = load i32, i32* %79
%81 = call i32 @socket(i32 %76, i32 %77, i32 %80)
store i32 %81, i32* %11
%82 = load i32, i32* %11
%83 = icmp slt i32 %82, 0
br i1 %83, label %84, label %90
84: ; preds = %75
%85 = load i32, i32* @errno
%86 = call i32 @strerror(i32 %85)
%87 = sext i32 %86 to i64
%88 = inttoptr i64 %87 to i8*
%89 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i8* %88)
br label %90
90: ; preds = %84, %75
%91 = load i32, i32* %11
%92 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%93 = call i64 @connect(i32 %91, %struct.sockaddr* %92, i32 12)
%94 = icmp slt i64 %93, 0
br i1 %94, label %95, label %101
95: ; preds = %90
%96 = load i8*, i8** %4
%97 = load i8*, i8** %5
%98 = load i32, i32* @errno
%99 = call i32 @strerror(i32 %98)
%100 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* %96, i8* %97, i32 %99)
br label %101
101: ; preds = %95, %90
%102 = load i32, i32* %11
ret i32 %102
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.servent = type { i32 }
%struct.hostent = type { i32, i32 }
%struct.protoent = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@.str = [30 x i8] c"can't get \22%s\22 service entry\0A\00"
@INADDR_NONE = global i32 0
@.str.1 = [27 x i8] c"can't get \22%s\22 host entry\0A\00"
@.str.2 = [31 x i8] c"can't get \22%s\22 protocol entry\0A\00"
@.str.3 = [4 x i8] c"udp\00"
@SOCK_DGRAM = global i32 0
@SOCK_STREAM = global i32 0
@PF_INET = global i32 0
@.str.4 = [25 x i8] c"can't create socket: %s\0A\00"
@errno = global i32 0
@.str.5 = [28 x i8] c"can't connect to %s.%s: %s\0A\00"
define i32 @connectsock(i8* %0, i8* %1, i8* %2) {
%4 = alloca %struct.sockaddr_in
%5 = bitcast %struct.sockaddr_in* %4 to i8*
%6 = call i32 @memset(%struct.sockaddr_in* %4, i32 0, i32 12)
%7 = load i32, i32* @AF_INET
%8 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %7, i32* %8
%9 = call %struct.servent* @getservbyname(i8* %1, i8* %2)
%10 = icmp eq %struct.servent* %9, null
br i1 %10, label %15, label %11
11: ; preds = %3
%12 = getelementptr inbounds %struct.servent, %struct.servent* %9, i64 0, i32 0
%13 = load i32, i32* %12
%14 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
store i32 %13, i32* %14
br label %23
15: ; preds = %3
%16 = call i64 @atoi(i8* %1)
%17 = trunc i64 %16 to i16
%18 = call i32 @htons(i16 zeroext %17)
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
store i32 %18, i32* %19
%20 = icmp eq i32 %18, 0
br i1 %20, label %21, label %23
21: ; preds = %15
%22 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %1)
br label %23
23: ; preds = %15, %21, %11
%24 = call %struct.hostent* @gethostbyname(i8* %0)
%25 = icmp eq %struct.hostent* %24, null
br i1 %25, label %33, label %26
26: ; preds = %23
%27 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
%28 = getelementptr inbounds %struct.hostent, %struct.hostent* %24, i64 0, i32 1
%29 = load i32, i32* %28
%30 = getelementptr inbounds %struct.hostent, %struct.hostent* %24, i64 0, i32 0
%31 = load i32, i32* %30
%32 = call i32 @memcpy(%struct.TYPE_2__* %27, i32 %29, i32 %31)
br label %40
33: ; preds = %23
%34 = call i32 @inet_addr(i8* %0)
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
store i32 %34, i32* %35
%36 = load i32, i32* @INADDR_NONE
%37 = icmp eq i32 %34, %36
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %40
40: ; preds = %33, %38, %26
%41 = call %struct.protoent* @getprotobyname(i8* %2)
%42 = icmp eq %struct.protoent* %41, null
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i8* %2)
br label %45
45: ; preds = %43, %40
%46 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
%48 = load i32, i32* @SOCK_DGRAM
%49 = load i32, i32* @SOCK_STREAM
%50 = select i1 %47, i32 %48, i32 %49
%51 = load i32, i32* @PF_INET
%52 = getelementptr inbounds %struct.protoent, %struct.protoent* %41, i64 0, i32 0
%53 = load i32, i32* %52
%54 = call i32 @socket(i32 %51, i32 %50, i32 %53)
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %45
%57 = load i32, i32* @errno
%58 = call i32 @strerror(i32 %57)
%59 = sext i32 %58 to i64
%60 = inttoptr i64 %59 to i8*
%61 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i8* %60)
br label %62
62: ; preds = %56, %45
%63 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%64 = call i64 @connect(i32 %54, %struct.sockaddr* %63, i32 12)
%65 = icmp slt i64 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %62
%67 = load i32, i32* @errno
%68 = call i32 @strerror(i32 %67)
%69 = call i32 (i8*, i8*, ...) @errexit(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* %0, i8* %1, i32 %68)
br label %70
70: ; preds = %66, %62
ret i32 %54
}