#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 */
int /*<<< orphan*/ F_GETFL;
int /*<<< orphan*/ F_GETOWN;
int /*<<< orphan*/ SO_ACCEPTCONN;
int /*<<< orphan*/ SO_BROADCAST;
int /*<<< orphan*/ SO_DEBUG;
int /*<<< orphan*/ SO_DONTROUTE;
int /*<<< orphan*/ SO_ERROR;
int /*<<< orphan*/ SO_KEEPALIVE;
int /*<<< orphan*/ SO_LINGER;
int /*<<< orphan*/ SO_OOBINLINE;
int /*<<< orphan*/ SO_RCVBUF;
int /*<<< orphan*/ SO_RCVLOWAT;
int /*<<< orphan*/ SO_RCVTIMEO;
int /*<<< orphan*/ SO_REUSEADDR;
int /*<<< orphan*/ SO_SNDBUF;
int /*<<< orphan*/ SO_SNDLOWAT;
int /*<<< orphan*/ SO_SNDTIMEO;
int /*<<< orphan*/ SO_TYPE;
int fcntl(int, int /*<<< orphan*/, ...);
int /*<<< orphan*/ print_int_sockopt(int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ print_lg_sockopt(int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ print_tm_sockopt(int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void print_sockopt(int fd, char const *prompt) {
  printf("%s options:\n", prompt);
  print_int_sockopt(fd, "SO_ACCEPTCONN", SO_ACCEPTCONN);
  print_int_sockopt(fd, "SO_BROADCAST", SO_BROADCAST);
  print_int_sockopt(fd, "SO_DEBUG", SO_DEBUG);
  print_int_sockopt(fd, "SO_DONTROUTE", SO_DONTROUTE);
  print_int_sockopt(fd, "SO_ERROR", SO_ERROR);
  print_int_sockopt(fd, "SO_KEEPALIVE", SO_KEEPALIVE);
  print_lg_sockopt(fd, "SO_LINGER", SO_LINGER);
  print_int_sockopt(fd, "SO_OOBINLINE", SO_OOBINLINE);
  print_int_sockopt(fd, "SO_RCVBUF", SO_RCVBUF);
  print_int_sockopt(fd, "SO_RCVLOWAT", SO_RCVLOWAT);
  print_tm_sockopt(fd, "SO_RCVTIMEO", SO_RCVTIMEO);
  print_int_sockopt(fd, "SO_REUSEADDR", SO_REUSEADDR);
  print_int_sockopt(fd, "SO_SNDBUF", SO_SNDBUF);
  print_int_sockopt(fd, "SO_SNDLOWAT", SO_SNDLOWAT);
  print_tm_sockopt(fd, "SO_SNDTIMEO", SO_SNDTIMEO);
  print_int_sockopt(fd, "SO_TYPE", SO_TYPE);
  int owner = fcntl(fd, F_GETOWN, 0);
  printf("socket owner %d\n", owner);
  int flags = fcntl(fd, F_GETFL);
  printf("socket flags 0x%08x\n", flags);
}


x86 assembly (clang, -O0):
<print_sockopt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x4(%rbp),%edi
mov    0x2e75(%rip),%rax
mov    (%rax),%edx
lea    0xe89(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2e1d(%rip),%rax
mov    (%rax),%edx
lea    0xe7f(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2dfd(%rip),%rax
mov    (%rax),%edx
lea    0xe74(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d8d(%rip),%rax
mov    (%rax),%edx
lea    0xe65(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2dad(%rip),%rax
mov    (%rax),%edx
lea    0xe5a(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d65(%rip),%rax
mov    (%rax),%edx
lea    0xe4b(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2dbd(%rip),%rax
mov    (%rax),%edx
lea    0xe40(%rip),%rsi
call   1060 <print_lg_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d55(%rip),%rax
mov    (%rax),%edx
lea    0xe32(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d5d(%rip),%rax
mov    (%rax),%edx
lea    0xe27(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d1d(%rip),%rax
mov    (%rax),%edx
lea    0xe19(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d25(%rip),%rax
mov    (%rax),%edx
lea    0xe0d(%rip),%rsi
call   1070 <print_tm_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2ce5(%rip),%rax
mov    (%rax),%edx
lea    0xe01(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d35(%rip),%rax
mov    (%rax),%edx
lea    0xdf6(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d2d(%rip),%rax
mov    (%rax),%edx
lea    0xde8(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2d1d(%rip),%rax
mov    (%rax),%edx
lea    0xddc(%rip),%rsi
call   1070 <print_tm_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2cdd(%rip),%rax
mov    (%rax),%edx
lea    0xdd0(%rip),%rsi
call   1030 <print_int_sockopt@plt>
mov    -0x4(%rbp),%edi
mov    0x2cbd(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
mov    $0x0,%al
call   1040 <fcntl@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xdb1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x4(%rbp),%edi
mov    0x2c5c(%rip),%rax
mov    (%rax),%esi
mov    $0x0,%al
call   1040 <fcntl@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xd9b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_sockopt>:
push   %rbx
mov    %edi,%ebx
lea    0xea6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edx
lea    0xe9c(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%edx
lea    0xe93(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%edx
lea    0xe89(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2da3(%rip),%rax
mov    (%rax),%edx
lea    0xe7b(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2dc4(%rip),%rax
mov    (%rax),%edx
lea    0xe71(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edx
lea    0xe63(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2dd6(%rip),%rax
mov    (%rax),%edx
lea    0xe59(%rip),%rsi
mov    %ebx,%edi
call   1060 <print_lg_sockopt@plt>
mov    0x2d6f(%rip),%rax
mov    (%rax),%edx
lea    0xe4c(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%edx
lea    0xe42(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2d39(%rip),%rax
mov    (%rax),%edx
lea    0xe35(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2d42(%rip),%rax
mov    (%rax),%edx
lea    0xe2a(%rip),%rsi
mov    %ebx,%edi
call   1070 <print_tm_sockopt@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%edx
lea    0xe1f(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2d54(%rip),%rax
mov    (%rax),%edx
lea    0xe15(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2d4d(%rip),%rax
mov    (%rax),%edx
lea    0xe08(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2d3e(%rip),%rax
mov    (%rax),%edx
lea    0xdfd(%rip),%rsi
mov    %ebx,%edi
call   1070 <print_tm_sockopt@plt>
mov    0x2cff(%rip),%rax
mov    (%rax),%edx
lea    0xdf2(%rip),%rsi
mov    %ebx,%edi
call   1030 <print_int_sockopt@plt>
mov    0x2ce0(%rip),%rax
mov    (%rax),%esi
mov    %ebx,%edi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <fcntl@plt>
lea    0xdd8(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c84(%rip),%rax
mov    (%rax),%esi
mov    %ebx,%edi
xor    %eax,%eax
call   1040 <fcntl@plt>
lea    0xdc7(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
pop    %rbx
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"%s options:\0A\00"
@.str.1 = [14 x i8] c"SO_ACCEPTCONN\00"
@SO_ACCEPTCONN = global i32 0
@.str.2 = [13 x i8] c"SO_BROADCAST\00"
@SO_BROADCAST = global i32 0
@.str.3 = [9 x i8] c"SO_DEBUG\00"
@SO_DEBUG = global i32 0
@.str.4 = [13 x i8] c"SO_DONTROUTE\00"
@SO_DONTROUTE = global i32 0
@.str.5 = [9 x i8] c"SO_ERROR\00"
@SO_ERROR = global i32 0
@.str.6 = [13 x i8] c"SO_KEEPALIVE\00"
@SO_KEEPALIVE = global i32 0
@.str.7 = [10 x i8] c"SO_LINGER\00"
@SO_LINGER = global i32 0
@.str.8 = [13 x i8] c"SO_OOBINLINE\00"
@SO_OOBINLINE = global i32 0
@.str.9 = [10 x i8] c"SO_RCVBUF\00"
@SO_RCVBUF = global i32 0
@.str.10 = [12 x i8] c"SO_RCVLOWAT\00"
@SO_RCVLOWAT = global i32 0
@.str.11 = [12 x i8] c"SO_RCVTIMEO\00"
@SO_RCVTIMEO = global i32 0
@.str.12 = [13 x i8] c"SO_REUSEADDR\00"
@SO_REUSEADDR = global i32 0
@.str.13 = [10 x i8] c"SO_SNDBUF\00"
@SO_SNDBUF = global i32 0
@.str.14 = [12 x i8] c"SO_SNDLOWAT\00"
@SO_SNDLOWAT = global i32 0
@.str.15 = [12 x i8] c"SO_SNDTIMEO\00"
@SO_SNDTIMEO = global i32 0
@.str.16 = [8 x i8] c"SO_TYPE\00"
@SO_TYPE = global i32 0
@F_GETOWN = global i32 0
@.str.17 = [17 x i8] c"socket owner %d\0A\00"
@F_GETFL = global i32 0
@.str.18 = [21 x i8] c"socket flags 0x%08x\0A\00"
define void @print_sockopt(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i32, i32* %3
%10 = load i32, i32* @SO_ACCEPTCONN
%11 = call i32 @print_int_sockopt(i32 %9, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %3
%13 = load i32, i32* @SO_BROADCAST
%14 = call i32 @print_int_sockopt(i32 %12, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %3
%16 = load i32, i32* @SO_DEBUG
%17 = call i32 @print_int_sockopt(i32 %15, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %3
%19 = load i32, i32* @SO_DONTROUTE
%20 = call i32 @print_int_sockopt(i32 %18, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %19)
%21 = load i32, i32* %3
%22 = load i32, i32* @SO_ERROR
%23 = call i32 @print_int_sockopt(i32 %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %22)
%24 = load i32, i32* %3
%25 = load i32, i32* @SO_KEEPALIVE
%26 = call i32 @print_int_sockopt(i32 %24, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %3
%28 = load i32, i32* @SO_LINGER
%29 = call i32 @print_lg_sockopt(i32 %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %28)
%30 = load i32, i32* %3
%31 = load i32, i32* @SO_OOBINLINE
%32 = call i32 @print_int_sockopt(i32 %30, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %31)
%33 = load i32, i32* %3
%34 = load i32, i32* @SO_RCVBUF
%35 = call i32 @print_int_sockopt(i32 %33, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i32 %34)
%36 = load i32, i32* %3
%37 = load i32, i32* @SO_RCVLOWAT
%38 = call i32 @print_int_sockopt(i32 %36, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %3
%40 = load i32, i32* @SO_RCVTIMEO
%41 = call i32 @print_tm_sockopt(i32 %39, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %3
%43 = load i32, i32* @SO_REUSEADDR
%44 = call i32 @print_int_sockopt(i32 %42, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i32 %43)
%45 = load i32, i32* %3
%46 = load i32, i32* @SO_SNDBUF
%47 = call i32 @print_int_sockopt(i32 %45, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %3
%49 = load i32, i32* @SO_SNDLOWAT
%50 = call i32 @print_int_sockopt(i32 %48, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i32 %49)
%51 = load i32, i32* %3
%52 = load i32, i32* @SO_SNDTIMEO
%53 = call i32 @print_tm_sockopt(i32 %51, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %3
%55 = load i32, i32* @SO_TYPE
%56 = call i32 @print_int_sockopt(i32 %54, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i32 %55)
%57 = load i32, i32* %3
%58 = load i32, i32* @F_GETOWN
%59 = call i32 (i32, i32, ...) @fcntl(i32 %57, i32 %58, i32 0)
store i32 %59, i32* %5
%60 = load i32, i32* %5
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %3
%63 = load i32, i32* @F_GETFL
%64 = call i32 (i32, i32, ...) @fcntl(i32 %62, i32 %63)
store i32 %64, i32* %6
%65 = load i32, i32* %6
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.18, i64 0, i64 0), i32 %65)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"%s options:\0A\00"
@.str.1 = [14 x i8] c"SO_ACCEPTCONN\00"
@SO_ACCEPTCONN = global i32 0
@.str.2 = [13 x i8] c"SO_BROADCAST\00"
@SO_BROADCAST = global i32 0
@.str.3 = [9 x i8] c"SO_DEBUG\00"
@SO_DEBUG = global i32 0
@.str.4 = [13 x i8] c"SO_DONTROUTE\00"
@SO_DONTROUTE = global i32 0
@.str.5 = [9 x i8] c"SO_ERROR\00"
@SO_ERROR = global i32 0
@.str.6 = [13 x i8] c"SO_KEEPALIVE\00"
@SO_KEEPALIVE = global i32 0
@.str.7 = [10 x i8] c"SO_LINGER\00"
@SO_LINGER = global i32 0
@.str.8 = [13 x i8] c"SO_OOBINLINE\00"
@SO_OOBINLINE = global i32 0
@.str.9 = [10 x i8] c"SO_RCVBUF\00"
@SO_RCVBUF = global i32 0
@.str.10 = [12 x i8] c"SO_RCVLOWAT\00"
@SO_RCVLOWAT = global i32 0
@.str.11 = [12 x i8] c"SO_RCVTIMEO\00"
@SO_RCVTIMEO = global i32 0
@.str.12 = [13 x i8] c"SO_REUSEADDR\00"
@SO_REUSEADDR = global i32 0
@.str.13 = [10 x i8] c"SO_SNDBUF\00"
@SO_SNDBUF = global i32 0
@.str.14 = [12 x i8] c"SO_SNDLOWAT\00"
@SO_SNDLOWAT = global i32 0
@.str.15 = [12 x i8] c"SO_SNDTIMEO\00"
@SO_SNDTIMEO = global i32 0
@.str.16 = [8 x i8] c"SO_TYPE\00"
@SO_TYPE = global i32 0
@F_GETOWN = global i32 0
@.str.17 = [17 x i8] c"socket owner %d\0A\00"
@F_GETFL = global i32 0
@.str.18 = [21 x i8] c"socket flags 0x%08x\0A\00"
define void @print_sockopt(i32 %0, i8* %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = load i32, i32* @SO_ACCEPTCONN
%5 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @SO_BROADCAST
%7 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @SO_DEBUG
%9 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @SO_DONTROUTE
%11 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @SO_ERROR
%13 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @SO_KEEPALIVE
%15 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @SO_LINGER
%17 = tail call i32 @print_lg_sockopt(i32 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @SO_OOBINLINE
%19 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @SO_RCVBUF
%21 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i32 %20)
%22 = load i32, i32* @SO_RCVLOWAT
%23 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @SO_RCVTIMEO
%25 = tail call i32 @print_tm_sockopt(i32 %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32 %24)
%26 = load i32, i32* @SO_REUSEADDR
%27 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i32 %26)
%28 = load i32, i32* @SO_SNDBUF
%29 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i32 %28)
%30 = load i32, i32* @SO_SNDLOWAT
%31 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i32 %30)
%32 = load i32, i32* @SO_SNDTIMEO
%33 = tail call i32 @print_tm_sockopt(i32 %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 %32)
%34 = load i32, i32* @SO_TYPE
%35 = tail call i32 @print_int_sockopt(i32 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i32 %34)
%36 = load i32, i32* @F_GETOWN
%37 = tail call i32 (i32, i32, ...) @fcntl(i32 %0, i32 %36, i32 0)
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), i32 %37)
%39 = load i32, i32* @F_GETFL
%40 = tail call i32 (i32, i32, ...) @fcntl(i32 %0, i32 %39)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.18, i64 0, i64 0), i32 %40)
ret void
}