#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 */
typedef int /*<<< orphan*/ timeout;
struct timeval {
  int tv_sec;
  scalar_t__ tv_usec;
};
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ socklen_t;
typedef int /*<<< orphan*/ server_addr;
typedef int /*<<< orphan*/ fd_set;
typedef int /*<<< orphan*/ client_addr;
typedef int /*<<< orphan*/ buffer;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ FD_CLR(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_ISSET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_SET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_ZERO(int /*<<< orphan*/ *);
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_RCVTIMEO;
int /*<<< orphan*/ SO_REUSEPORT;
int accept(int, struct sockaddr *, int /*<<< orphan*/ *);
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int htons(int);
char *inet_ntoa(TYPE_1__);
scalar_t__ listen(int, int);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recv(int, char *, int, int /*<<< orphan*/);
int select(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
           int /*<<< orphan*/ *, struct timeval *);
int /*<<< orphan*/ send(int, char *, int, int /*<<< orphan*/);
int setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, ...);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  int server_socket;
  if ((server_socket = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
    perror("socket()");
    exit(1);
  }
  int yes = 1;
  if (setsockopt(server_socket, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(int)) ==
      -1) {
    perror("setsockopt()");
    exit(1);
  }
  struct sockaddr_in server_addr;
  memset((void *)&server_addr, 0, sizeof(server_addr));
  server_addr.sin_family = AF_INET;
  server_addr.sin_port = htons(5555);
  server_addr.sin_addr.s_addr = htonl(INADDR_ANY);
  if (bind(server_socket, (struct sockaddr *)&server_addr,
           sizeof(server_addr)) < 0) {
    perror("bind()");
    exit(1);
  }
  if (listen(server_socket, 5) < 0) {
    perror("listen()");
    exit(1);
  }
  int accept_socket;
  struct sockaddr_in client_addr;
  int client_addr_len = sizeof(client_addr);
  char buffer[1024];
  int iDataNum;
  while (1) {
    int ret;
    fd_set fds;
    FD_ZERO(&fds);
    FD_SET(server_socket, &fds);
    struct timeval tv;
    tv.tv_sec = 3;
    tv.tv_usec = 0;
    printf("select() ... start\n");
    ret = select(server_socket + 1, &fds, NULL, NULL, &tv);
    if (ret < 0) {
      perror("select()");
      exit(1);
    } else if (ret == 0) {
      printf("select() waitting timeout ...\n");
      continue;
    }
    printf("select() ... end\n");
    if (!FD_ISSET(server_socket, &fds)) {
      printf("Unknown Error. Unknown fd from select()!!\n");
      FD_CLR(server_socket, &fds);
      continue;
    }
    FD_CLR(server_socket, &fds);
    printf("accept() ... start\n");
    accept_socket = accept(server_socket, (struct sockaddr *)&client_addr,
                           (socklen_t *)&client_addr_len);
    if (accept_socket < 0) {
      perror("accept()");
      break;
    } else {
      printf("accept() ... done\n");
      printf("Server socket fd = %d\n", server_socket);
      printf("Accept socket fd = %d\n", accept_socket);
    }
    struct timeval timeout;
    timeout.tv_sec = 6;
    timeout.tv_usec = 0;
    if (setsockopt(accept_socket, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout,
                   sizeof(timeout)) == -1) {
      perror("setsockopt()");
      exit(1);
    }
    printf("recv() ... start\n");
    iDataNum = recv(accept_socket, buffer, sizeof(buffer), 0);
    if (iDataNum < 0) {
      perror("recv()");
      close(accept_socket);
      continue;
    } else {
      printf("recv() ... done\n");
    }
    printf("IP is %s\n", inet_ntoa(client_addr.sin_addr));
    printf("Port is %d\n", htons(client_addr.sin_port));
    printf("Recv length is %d\n", iDataNum);
    printf("Recv Data   is %s\n\n", buffer);
    send(accept_socket, buffer, sizeof(buffer), 0);
    printf("close client connect ... start\n");
    close(accept_socket);
    printf("close client connect ... done\n");
    if (strcmp(buffer, "quit") == 0) {
      break;
    }
  }
  printf("close server socket ... start\n");
  close(server_socket);
  printf("close server socket ... done\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
mov    0x2d3f(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1170 <socket@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jge    12a4 <main+0x54>
lea    0xd6b(%rip),%rdi
call   1120 <perror@plt>
mov    $0x1,%edi
call   1150 <exit@plt>
movl   $0x1,-0x18(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2d33(%rip),%rax
mov    (%rax),%esi
mov    0x2d1a(%rip),%rax
mov    (%rax),%edx
lea    -0x18(%rbp),%rcx
mov    $0x4,%r8d
mov    $0x0,%al
call   1040 <setsockopt@plt>
cmp    $0xffffffff,%eax
jne    12f0 <main+0xa0>
lea    0xd28(%rip),%rdi
call   1120 <perror@plt>
mov    $0x1,%edi
call   1150 <exit@plt>
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   10b0 <memset@plt>
mov    0x2cd9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    $0x15b3,%edi
call   1070 <htons@plt>
mov    %eax,-0x28(%rbp)
mov    0x2cb0(%rip),%rax
mov    (%rax),%edi
call   10a0 <htonl@plt>
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0xc,%edx
call   1110 <bind@plt>
cmp    $0x0,%rax
jge    135b <main+0x10b>
lea    0xcca(%rip),%rdi
call   1120 <perror@plt>
mov    $0x1,%edi
call   1150 <exit@plt>
mov    -0x14(%rbp),%edi
mov    $0x5,%esi
call   1100 <listen@plt>
cmp    $0x0,%rax
jge    1388 <main+0x138>
lea    0xca4(%rip),%rdi
call   1120 <perror@plt>
mov    $0x1,%edi
call   1150 <exit@plt>
movl   $0xc,-0x3c(%rbp)
lea    -0x44c(%rbp),%rdi
call   10e0 <FD_ZERO@plt>
mov    -0x14(%rbp),%edi
lea    -0x44c(%rbp),%rsi
call   1160 <FD_SET@plt>
movl   $0x3,-0x460(%rbp)
movq   $0x0,-0x458(%rbp)
lea    0xc60(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x14(%rbp),%edi
add    $0x1,%edi
lea    -0x44c(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x460(%rbp),%r8
mov    %rcx,%rdx
call   10f0 <select@plt>
mov    %eax,-0x448(%rbp)
cmpl   $0x0,-0x448(%rbp)
jge    1416 <main+0x1c6>
lea    0xc33(%rip),%rdi
call   1120 <perror@plt>
mov    $0x1,%edi
call   1150 <exit@plt>
cmpl   $0x0,-0x448(%rbp)
jne    1436 <main+0x1e6>
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
jmp    138f <main+0x13f>
jmp    143b <main+0x1eb>
lea    0xc20(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x44c(%rbp),%rsi
call   1050 <FD_ISSET@plt>
cmp    $0x0,%eax
jne    1483 <main+0x233>
lea    0xc0c(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x44c(%rbp),%rsi
call   1140 <FD_CLR@plt>
jmp    138f <main+0x13f>
mov    -0x14(%rbp),%edi
lea    -0x44c(%rbp),%rsi
call   1140 <FD_CLR@plt>
lea    0xc06(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x38(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   1130 <accept@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    14ce <main+0x27e>
lea    0xbef(%rip),%rdi
call   1120 <perror@plt>
jmp    1674 <main+0x424>
lea    0xbe7(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xbe9(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xbef(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
movl   $0x6,-0x470(%rbp)
movq   $0x0,-0x468(%rbp)
mov    -0x2c(%rbp),%edi
mov    0x2acb(%rip),%rax
mov    (%rax),%esi
mov    0x2a9a(%rip),%rax
mov    (%rax),%edx
lea    -0x470(%rbp),%rcx
mov    $0x10,%r8d
mov    $0x0,%al
call   1040 <setsockopt@plt>
cmp    $0xffffffff,%eax
jne    155b <main+0x30b>
lea    0xabd(%rip),%rdi
call   1120 <perror@plt>
mov    $0x1,%edi
call   1150 <exit@plt>
lea    0xb9b(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x2c(%rbp),%edi
lea    -0x440(%rbp),%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
mov    %eax,-0x444(%rbp)
cmpl   $0x0,-0x444(%rbp)
jge    15ab <main+0x35b>
lea    0xb76(%rip),%rdi
call   1120 <perror@plt>
mov    -0x2c(%rbp),%edi
call   10c0 <close@plt>
jmp    138f <main+0x13f>
lea    0xb64(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x34(%rbp),%edi
call   1060 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xb5c(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x38(%rbp),%edi
call   1070 <htons@plt>
mov    %eax,%esi
lea    0xb4e(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x444(%rbp),%esi
lea    0xb46(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    -0x440(%rbp),%rsi
lea    0xb44(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x2c(%rbp),%edi
lea    -0x440(%rbp),%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
lea    0xb34(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x2c(%rbp),%edi
call   10c0 <close@plt>
lea    0xb3e(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    -0x440(%rbp),%rdi
lea    0xb48(%rip),%rsi
call   10d0 <strcmp@plt>
cmp    $0x0,%rax
jne    166f <main+0x41f>
jmp    1674 <main+0x424>
jmp    138f <main+0x13f>
lea    0xb2d(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x14(%rbp),%edi
call   10c0 <close@plt>
lea    0xb36(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
xor    %eax,%eax
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x458,%rsp
mov    0x2d68(%rip),%r14
mov    (%r14),%edi
mov    0x2d36(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1180 <socket@plt>
test   %eax,%eax
js     1614 <main+0x3b4>
mov    %eax,%ebx
movl   $0x1,0xc(%rsp)
mov    0x2d44(%rip),%rax
mov    (%rax),%esi
mov    0x2d2b(%rip),%rax
mov    (%rax),%edx
lea    0xc(%rsp),%rcx
mov    $0x4,%r8d
mov    %ebx,%edi
xor    %eax,%eax
call   1050 <setsockopt@plt>
cmp    $0xffffffff,%eax
je     15fe <main+0x39e>
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   10c0 <memset@plt>
mov    (%r14),%eax
mov    %eax,0x18(%rsp)
mov    $0x15b3,%edi
call   1080 <htons@plt>
mov    %eax,0x10(%rsp)
mov    0x2cd4(%rip),%rax
mov    (%rax),%edi
call   10b0 <htonl@plt>
mov    %eax,0x14(%rsp)
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0xc,%edx
call   1120 <bind@plt>
test   %rax,%rax
js     161d <main+0x3bd>
mov    %ebx,%edi
mov    $0x5,%esi
call   1110 <listen@plt>
test   %rax,%rax
js     1626 <main+0x3c6>
movl   $0xc,0x8(%rsp)
mov    %ebx,%r13d
add    $0x1,%r13d
lea    0x4(%rsp),%rbp
lea    0xd60(%rip),%r12
lea    0x40(%rsp),%r14
mov    %ebx,(%rsp)
jmp    137a <main+0x11a>
nopl   0x0(%rax)
lea    0xe54(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2,%eax
cmp    $0x3,%eax
je     15c2 <main+0x362>
mov    %rbp,%rdi
call   10f0 <FD_ZERO@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
call   1170 <FD_SET@plt>
movl   $0x3,0x40(%rsp)
movq   $0x0,0x48(%rsp)
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r13d,%edi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %r14,%r8
call   1100 <select@plt>
test   %eax,%eax
js     15f5 <main+0x395>
je     1360 <main+0x100>
lea    0xcfa(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
call   1060 <FD_ISSET@plt>
test   %eax,%eax
je     1580 <main+0x320>
mov    %ebx,%edi
mov    %rbp,%rsi
call   1150 <FD_CLR@plt>
lea    0xd48(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%edi
lea    0x20(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1140 <accept@plt>
test   %eax,%eax
js     15b6 <main+0x356>
mov    %eax,%r15d
mov    %r12,%rbp
lea    0xd30(%rip),%rdi
call   1040 <puts@plt>
lea    0xc11(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xc18(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   10a0 <printf@plt>
movl   $0x6,0x30(%rsp)
movq   $0x0,0x38(%rsp)
mov    0x2b8f(%rip),%rax
mov    (%rax),%esi
mov    0x2b5e(%rip),%rax
mov    (%rax),%edx
mov    $0x10,%r8d
mov    %r15d,%edi
lea    0x30(%rsp),%rcx
xor    %eax,%eax
call   1050 <setsockopt@plt>
cmp    $0xffffffff,%eax
je     15fe <main+0x39e>
lea    0xcd4(%rip),%rdi
call   1040 <puts@plt>
mov    %r15d,%edi
lea    0x50(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
test   %eax,%eax
js     159b <main+0x33b>
mov    %eax,%r12d
lea    0xcb7(%rip),%rdi
call   1040 <puts@plt>
mov    0x24(%rsp),%edi
call   1070 <inet_ntoa@plt>
lea    0xba1(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   10a0 <printf@plt>
mov    0x20(%rsp),%edi
call   1080 <htons@plt>
lea    0xb91(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xb8d(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xb8f(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10a0 <printf@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1090 <send@plt>
lea    0xc54(%rip),%rdi
call   1040 <puts@plt>
mov    %r15d,%edi
call   10d0 <close@plt>
lea    0xc5f(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
lea    0xb5d(%rip),%rsi
call   10e0 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
lea    (%rcx,%rcx,2),%eax
mov    %rbp,%r12
lea    0x4(%rsp),%rbp
mov    (%rsp),%ebx
cmp    $0x3,%eax
jne    137a <main+0x11a>
jmp    15c2 <main+0x362>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xb4c(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
call   1150 <FD_CLR@plt>
jmp    136c <main+0x10c>
lea    0xac4(%rip),%rdi
call   1130 <perror@plt>
mov    %r15d,%edi
call   10d0 <close@plt>
mov    $0x2,%eax
jmp    155d <main+0x2fd>
lea    0xa72(%rip),%rdi
call   1130 <perror@plt>
lea    0xb34(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%edi
call   10d0 <close@plt>
lea    0xb3f(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x458,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xa2a(%rip),%rdi
jmp    1605 <main+0x3a5>
lea    0xa04(%rip),%rdi
call   1130 <perror@plt>
mov    $0x1,%edi
call   1160 <exit@plt>
lea    0x9e5(%rip),%rdi
jmp    1605 <main+0x3a5>
lea    0x9f2(%rip),%rdi
jmp    1605 <main+0x3a5>
lea    0x9f0(%rip),%rdi
jmp    1605 <main+0x3a5>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.timeval = type { i32, i64 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [9 x i8] c"socket()\00"
@SOL_SOCKET = global i32 0
@SO_REUSEPORT = global i32 0
@.str.1 = [13 x i8] c"setsockopt()\00"
@INADDR_ANY = global i32 0
@.str.2 = [7 x i8] c"bind()\00"
@.str.3 = [9 x i8] c"listen()\00"
@.str.4 = [20 x i8] c"select() ... start\0A\00"
@.str.5 = [9 x i8] c"select()\00"
@.str.6 = [31 x i8] c"select() waitting timeout ...\0A\00"
@.str.7 = [18 x i8] c"select() ... end\0A\00"
@.str.8 = [43 x i8] c"Unknown Error. Unknown fd from select()!!\0A\00"
@.str.9 = [20 x i8] c"accept() ... start\0A\00"
@.str.10 = [9 x i8] c"accept()\00"
@.str.11 = [19 x i8] c"accept() ... done\0A\00"
@.str.12 = [23 x i8] c"Server socket fd = %d\0A\00"
@.str.13 = [23 x i8] c"Accept socket fd = %d\0A\00"
@SO_RCVTIMEO = global i32 0
@.str.14 = [18 x i8] c"recv() ... start\0A\00"
@.str.15 = [7 x i8] c"recv()\00"
@.str.16 = [17 x i8] c"recv() ... done\0A\00"
@.str.17 = [10 x i8] c"IP is %s\0A\00"
@.str.18 = [12 x i8] c"Port is %d\0A\00"
@.str.19 = [19 x i8] c"Recv length is %d\0A\00"
@.str.20 = [20 x i8] c"Recv Data is %s\0A\0A\00"
@.str.21 = [32 x i8] c"close client connect ... start\0A\00"
@.str.22 = [31 x i8] c"close client connect ... done\0A\00"
@.str.23 = [5 x i8] c"quit\00"
@.str.24 = [31 x i8] c"close server socket ... start\0A\00"
@.str.25 = [30 x i8] c"close server socket ... done\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.sockaddr_in
%9 = alloca i32
%10 = alloca %struct.sockaddr_in
%11 = alloca i32
%12 = alloca [1024 x i8]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca %struct.timeval
%17 = alloca %struct.timeval
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = load i32, i32* @AF_INET
%19 = load i32, i32* @SOCK_STREAM
%20 = call i32 @socket(i32 %18, i32 %19, i32 0)
store i32 %20, i32* %6
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %2
%23 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %2
store i32 1, i32* %7
%26 = load i32, i32* %6
%27 = load i32, i32* @SOL_SOCKET
%28 = load i32, i32* @SO_REUSEPORT
%29 = call i32 (i32, i32, i32, ...) @setsockopt(i32 %26, i32 %27, i32 %28, i32* %7, i64 4)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %34
31: ; preds = %25
%32 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 @exit(i32 1)
unreachable
34: ; preds = %25
%35 = bitcast %struct.sockaddr_in* %8 to i8*
%36 = call i32 @memset(i8* %35, i32 0, i32 12)
%37 = load i32, i32* @AF_INET
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 2
store i32 %37, i32* %38
%39 = call i32 @htons(i32 5555)
%40 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 0
store i32 %39, i32* %40
%41 = load i32, i32* @INADDR_ANY
%42 = call i32 @htonl(i32 %41)
%43 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 1
%44 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %43, i32 0, i32 0
store i32 %42, i32* %44
%45 = load i32, i32* %6
%46 = bitcast %struct.sockaddr_in* %8 to %struct.sockaddr*
%47 = call i64 @bind(i32 %45, %struct.sockaddr* %46, i32 12)
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %34
%50 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %34
%53 = load i32, i32* %6
%54 = call i64 @listen(i32 %53, i32 5)
%55 = icmp slt i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%58 = call i32 @exit(i32 1)
unreachable
59: ; preds = %52
store i32 12, i32* %11
br label %60
60: ; preds = %59, %78, %86, %126, %157
%61 = call i32 @FD_ZERO(i32* %15)
%62 = load i32, i32* %6
%63 = call i32 @FD_SET(i32 %62, i32* %15)
%64 = getelementptr inbounds %struct.timeval, %struct.timeval* %16, i32 0, i32 0
store i32 3, i32* %64
%65 = getelementptr inbounds %struct.timeval, %struct.timeval* %16, i32 0, i32 1
store i64 0, i64* %65
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%67 = load i32, i32* %6
%68 = add nsw i32 %67, 1
%69 = call i32 @select(i32 %68, i32* %15, i32* null, i32* null, %struct.timeval* %16)
store i32 %69, i32* %14
%70 = load i32, i32* %14
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %60
%73 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%74 = call i32 @exit(i32 1)
unreachable
75: ; preds = %60
%76 = load i32, i32* %14
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
br label %60
80: ; preds = %75
br label %81
81: ; preds = %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%83 = load i32, i32* %6
%84 = call i32 @FD_ISSET(i32 %83, i32* %15)
%85 = icmp ne i32 %84, 0
br i1 %85, label %90, label %86
86: ; preds = %81
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%88 = load i32, i32* %6
%89 = call i32 @FD_CLR(i32 %88, i32* %15)
br label %60
90: ; preds = %81
%91 = load i32, i32* %6
%92 = call i32 @FD_CLR(i32 %91, i32* %15)
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%94 = load i32, i32* %6
%95 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%96 = call i32 @accept(i32 %94, %struct.sockaddr* %95, i32* %11)
store i32 %96, i32* %9
%97 = load i32, i32* %9
%98 = icmp slt i32 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %90
%100 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
br label %158
101: ; preds = %90
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%103 = load i32, i32* %6
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i32 %103)
%105 = load i32, i32* %9
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i32 %105)
br label %107
107: ; preds = %101
%108 = getelementptr inbounds %struct.timeval, %struct.timeval* %17, i32 0, i32 0
store i32 6, i32* %108
%109 = getelementptr inbounds %struct.timeval, %struct.timeval* %17, i32 0, i32 1
store i64 0, i64* %109
%110 = load i32, i32* %9
%111 = load i32, i32* @SOL_SOCKET
%112 = load i32, i32* @SO_RCVTIMEO
%113 = bitcast %struct.timeval* %17 to i8*
%114 = call i32 (i32, i32, i32, ...) @setsockopt(i32 %110, i32 %111, i32 %112, i8* %113, i64 16)
%115 = icmp eq i32 %114, -1
br i1 %115, label %116, label %119
116: ; preds = %107
%117 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%118 = call i32 @exit(i32 1)
unreachable
119: ; preds = %107
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0))
%121 = load i32, i32* %9
%122 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%123 = call i32 @recv(i32 %121, i8* %122, i32 1024, i32 0)
store i32 %123, i32* %13
%124 = load i32, i32* %13
%125 = icmp slt i32 %124, 0
br i1 %125, label %126, label %130
126: ; preds = %119
%127 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
%128 = load i32, i32* %9
%129 = call i32 @close(i32 %128)
br label %60
130: ; preds = %119
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0))
br label %132
132: ; preds = %130
%133 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 1
%134 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %133, i32 0, i32 0
%135 = load i32, i32* %134
%136 = call i8* @inet_ntoa(i32 %135)
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i8* %136)
%138 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
%139 = load i32, i32* %138
%140 = call i32 @htons(i32 %139)
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.18, i64 0, i64 0), i32 %140)
%142 = load i32, i32* %13
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i32 %142)
%144 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.20, i64 0, i64 0), i8* %144)
%146 = load i32, i32* %9
%147 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%148 = call i32 @send(i32 %146, i8* %147, i32 1024, i32 0)
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0))
%150 = load i32, i32* %9
%151 = call i32 @close(i32 %150)
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0))
%153 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%154 = call i64 @strcmp(i8* %153, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%155 = icmp eq i64 %154, 0
br i1 %155, label %156, label %157
156: ; preds = %132
br label %158
157: ; preds = %132
br label %60
158: ; preds = %156, %99
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.24, i64 0, i64 0))
%160 = load i32, i32* %6
%161 = call i32 @close(i32 %160)
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.25, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.timeval = type { i32, i64 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [9 x i8] c"socket()\00"
@SOL_SOCKET = global i32 0
@SO_REUSEPORT = global i32 0
@.str.1 = [13 x i8] c"setsockopt()\00"
@INADDR_ANY = global i32 0
@.str.2 = [7 x i8] c"bind()\00"
@.str.3 = [9 x i8] c"listen()\00"
@.str.5 = [9 x i8] c"select()\00"
@.str.10 = [9 x i8] c"accept()\00"
@.str.12 = [23 x i8] c"Server socket fd = %d\0A\00"
@.str.13 = [23 x i8] c"Accept socket fd = %d\0A\00"
@SO_RCVTIMEO = global i32 0
@.str.15 = [7 x i8] c"recv()\00"
@.str.17 = [10 x i8] c"IP is %s\0A\00"
@.str.18 = [12 x i8] c"Port is %d\0A\00"
@.str.19 = [19 x i8] c"Recv length is %d\0A\00"
@.str.20 = [20 x i8] c"Recv Data is %s\0A\0A\00"
@.str.23 = [5 x i8] c"quit\00"
@str = [19 x i8] c"select() ... start\00"
@str.26 = [17 x i8] c"select() ... end\00"
@str.27 = [42 x i8] c"Unknown Error. Unknown fd from select()!!\00"
@str.28 = [30 x i8] c"close server socket ... start\00"
@str.29 = [29 x i8] c"close server socket ... done\00"
@str.30 = [19 x i8] c"accept() ... start\00"
@str.31 = [18 x i8] c"accept() ... done\00"
@str.32 = [17 x i8] c"recv() ... start\00"
@str.33 = [16 x i8] c"recv() ... done\00"
@str.34 = [31 x i8] c"close client connect ... start\00"
@str.35 = [30 x i8] c"close client connect ... done\00"
@str.36 = [30 x i8] c"select() waitting timeout ...\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = alloca %struct.sockaddr_in
%6 = alloca i32
%7 = alloca [1024 x i8]
%8 = alloca i32
%9 = alloca %struct.timeval
%10 = alloca %struct.timeval
%11 = load i32, i32* @AF_INET
%12 = load i32, i32* @SOCK_STREAM
%13 = tail call i32 @socket(i32 %11, i32 %12, i32 0)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = tail call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 @exit(i32 1)
unreachable
18: ; preds = %2
%19 = bitcast i32* %3 to i8*
store i32 1, i32* %3
%20 = load i32, i32* @SOL_SOCKET
%21 = load i32, i32* @SO_REUSEPORT
%22 = call i32 (i32, i32, i32, ...) @setsockopt(i32 %13, i32 %20, i32 %21, i32* %3, i64 4)
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %18
%25 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %18
%28 = bitcast %struct.sockaddr_in* %4 to i8*
%29 = call i32 @memset(i8* %28, i32 0, i32 12)
%30 = load i32, i32* @AF_INET
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %30, i32* %31
%32 = call i32 @htons(i32 5555)
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
store i32 %32, i32* %33
%34 = load i32, i32* @INADDR_ANY
%35 = call i32 @htonl(i32 %34)
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1, i32 0
store i32 %35, i32* %36
%37 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%38 = call i64 @bind(i32 %13, %struct.sockaddr* %37, i32 12)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %27
%41 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%42 = call i32 @exit(i32 1)
unreachable
43: ; preds = %27
%44 = call i64 @listen(i32 %13, i32 5)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%48 = call i32 @exit(i32 1)
unreachable
49: ; preds = %43
%50 = bitcast %struct.sockaddr_in* %5 to i8*
%51 = bitcast i32* %6 to i8*
store i32 12, i32* %6
%52 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%53 = bitcast i32* %8 to i8*
%54 = bitcast %struct.timeval* %9 to i8*
%55 = getelementptr inbounds %struct.timeval, %struct.timeval* %9, i64 0, i32 0
%56 = getelementptr inbounds %struct.timeval, %struct.timeval* %9, i64 0, i32 1
%57 = add nuw nsw i32 %13, 1
%58 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%59 = bitcast %struct.timeval* %10 to i8*
%60 = getelementptr inbounds %struct.timeval, %struct.timeval* %10, i64 0, i32 0
%61 = getelementptr inbounds %struct.timeval, %struct.timeval* %10, i64 0, i32 1
%62 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 1, i32 0
%63 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0
br label %64
64: ; preds = %128, %49
%65 = call i32 @FD_ZERO(i32* %8)
%66 = call i32 @FD_SET(i32 %13, i32* %8)
store i32 3, i32* %55
store i64 0, i64* %56
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%68 = call i32 @select(i32 %57, i32* %8, i32* null, i32* null, %struct.timeval* %9)
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %64
%71 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%72 = call i32 @exit(i32 1)
unreachable
73: ; preds = %64
%74 = icmp eq i32 %68, 0
br i1 %74, label %75, label %77
75: ; preds = %73
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.36, i64 0, i64 0))
br label %128
77: ; preds = %73
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.26, i64 0, i64 0))
%79 = call i32 @FD_ISSET(i32 %13, i32* %8)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %77
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.27, i64 0, i64 0))
%83 = call i32 @FD_CLR(i32 %13, i32* %8)
br label %128
84: ; preds = %77
%85 = call i32 @FD_CLR(i32 %13, i32* %8)
%86 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.30, i64 0, i64 0))
%87 = call i32 @accept(i32 %13, %struct.sockaddr* %58, i32* %6)
%88 = icmp slt i32 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %84
%90 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
br label %131
91: ; preds = %84
%92 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.31, i64 0, i64 0))
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i32 %13)
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i32 %87)
store i32 6, i32* %60
store i64 0, i64* %61
%95 = load i32, i32* @SOL_SOCKET
%96 = load i32, i32* @SO_RCVTIMEO
%97 = call i32 (i32, i32, i32, ...) @setsockopt(i32 %87, i32 %95, i32 %96, %struct.timeval* %10, i64 16)
%98 = icmp eq i32 %97, -1
br i1 %98, label %99, label %102
99: ; preds = %91
%100 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%101 = call i32 @exit(i32 1)
unreachable
102: ; preds = %91
%103 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.32, i64 0, i64 0))
%104 = call i32 @recv(i32 %87, i8* %52, i32 1024, i32 0)
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %102
%107 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
%108 = call i32 @close(i32 %87)
br label %126
109: ; preds = %102
%110 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.33, i64 0, i64 0))
%111 = load i32, i32* %62
%112 = call i8* @inet_ntoa(i32 %111)
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i8* %112)
%114 = load i32, i32* %63
%115 = call i32 @htons(i32 %114)
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.18, i64 0, i64 0), i32 %115)
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i32 %104)
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.20, i64 0, i64 0), i8* %52)
%119 = call i32 @send(i32 %87, i8* %52, i32 1024, i32 0)
%120 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.34, i64 0, i64 0))
%121 = call i32 @close(i32 %87)
%122 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.35, i64 0, i64 0))
%123 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
%125 = select i1 %124, i32 3, i32 0
br label %126
126: ; preds = %109, %106
%127 = phi i32 [ 2, %106 ], [ %125, %109 ]
br label %128
128: ; preds = %126, %81, %75
%129 = phi i32 [ 2, %75 ], [ %127, %126 ], [ 2, %81 ]
%130 = icmp eq i32 %129, 3
br i1 %130, label %131, label %64
131: ; preds = %128, %89
%132 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.28, i64 0, i64 0))
%133 = call i32 @close(i32 %13)
%134 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.29, i64 0, i64 0))
ret i32 0
}