#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 */
typedef int /*<<< orphan*/ yes;
struct sockaddr_un {
  scalar_t__ *sun_path;
  int /*<<< orphan*/ sun_family;
};
struct sockaddr {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ AF_LOCAL;
int /*<<< orphan*/ PF_LOCAL;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SOMAXCONN;
int /*<<< orphan*/ SO_REUSEADDR;
int /*<<< orphan*/ SUN_LEN(struct sockaddr_un *);
scalar_t__ bind(int, struct sockaddr *, int /*<<< orphan*/);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ err_open();
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ listen(int, int /*<<< orphan*/);
int /*<<< orphan*/ opt_socket();
scalar_t__ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
char *str_date_yymmdd();
char *str_time_hhmmss();
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strncpy(scalar_t__ *, int /*<<< orphan*/, int);
int init() {
  struct sockaddr_un addr;
  int fd = socket(PF_LOCAL, SOCK_STREAM, 0);
  if (fd < 0)
    do {
      do {
        err_open();
        fprintf(stderr, "%s.%s %s:%d: ", str_date_yymmdd(), str_time_hhmmss(),
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/tardyp/amake/refs/heads/"
                "master/tcd/tcd.c",
                32);
        fprintf(stderr, "init(): socket() failed");
        fprintf(stderr, "\n");
        fflush(stderr);
      } while (0);
      exit(1);
    } while (0);
  int yes = 1;
  if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)))
    do {
      do {
        err_open();
        fprintf(stderr, "%s.%s %s:%d: ", str_date_yymmdd(), str_time_hhmmss(),
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/tardyp/amake/refs/heads/"
                "master/tcd/tcd.c",
                35);
        fprintf(stderr, "init(): setsockopt() failed");
        fprintf(stderr, "\n");
        fflush(stderr);
      } while (0);
      exit(1);
    } while (0);
  addr.sun_family = AF_LOCAL;
  strncpy(addr.sun_path, opt_socket(), sizeof(addr.sun_path));
  addr.sun_path[sizeof(addr.sun_path) - 1] = 0;
  if (bind(fd, (struct sockaddr *)&addr, SUN_LEN(&addr)) < 0) {
    close(fd);
    fd = 0;
    do {
      do {
        err_open();
        fprintf(stderr, "%s.%s %s:%d: ", str_date_yymmdd(), str_time_hhmmss(),
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/tardyp/amake/refs/heads/"
                "master/tcd/tcd.c",
                42);
        fprintf(stderr, "init(): bind() failed: %s", strerror(errno));
        fprintf(stderr, "\n");
        fflush(stderr);
      } while (0);
      exit(1);
    } while (0);
  }
  if (listen(fd, SOMAXCONN) < 0)
    do {
      do {
        err_open();
        fprintf(stderr, "%s.%s %s:%d: ", str_date_yymmdd(), str_time_hhmmss(),
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/tardyp/amake/refs/heads/"
                "master/tcd/tcd.c",
                45);
        fprintf(stderr, "init(): listen() failed");
        fprintf(stderr, "\n");
        fflush(stderr);
      } while (0);
      exit(1);
    } while (0);
  return fd;
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
mov    0x2db5(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    12bb <init+0xcb>
jmp    1226 <init+0x36>
jmp    122b <init+0x3b>
mov    $0x0,%al
call   10f0 <err_open@plt>
mov    0x2d97(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    $0x0,%al
call   10a0 <str_date_yymmdd@plt>
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   10c0 <str_time_hhmmss@plt>
mov    -0x24(%rbp),%edi
mov    -0x20(%rbp),%rdx
mov    %rax,%rcx
lea    0xd9f(%rip),%rsi
lea    0xda6(%rip),%r8
mov    $0x20,%r9d
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2d54(%rip),%rax
mov    (%rax),%edi
lea    0xe0c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%edi
lea    0xe0d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
movl   $0x1,-0x18(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2d1c(%rip),%rax
mov    (%rax),%esi
mov    0x2cd3(%rip),%rax
mov    (%rax),%edx
lea    -0x18(%rbp),%rcx
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
cmp    $0x0,%rax
je     138a <init+0x19a>
jmp    12f5 <init+0x105>
jmp    12fa <init+0x10a>
mov    $0x0,%al
call   10f0 <err_open@plt>
mov    0x2cc8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    $0x0,%al
call   10a0 <str_date_yymmdd@plt>
mov    %rax,-0x30(%rbp)
mov    $0x0,%al
call   10c0 <str_time_hhmmss@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%rdx
mov    %rax,%rcx
lea    0xcd0(%rip),%rsi
lea    0xcd7(%rip),%r8
mov    $0x23,%r9d
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2c85(%rip),%rax
mov    (%rax),%edi
lea    0xd57(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2c6e(%rip),%rax
mov    (%rax),%edi
lea    0xd3e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2c57(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2c4f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    $0x0,%al
call   1080 <opt_socket@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%esi
mov    $0x8,%edx
call   1030 <strncpy@plt>
mov    -0x10(%rbp),%rax
movq   $0x0,0x38(%rax)
mov    -0x14(%rbp),%eax
mov    %eax,-0x44(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x10(%rbp),%rdi
call   1100 <SUN_LEN@plt>
mov    -0x44(%rbp),%edi
mov    -0x40(%rbp),%rsi
mov    %eax,%edx
call   10b0 <bind@plt>
cmp    $0x0,%rax
jge    14ab <init+0x2bb>
mov    -0x14(%rbp),%edi
call   1050 <close@plt>
movl   $0x0,-0x14(%rbp)
jmp    1404 <init+0x214>
mov    $0x0,%al
call   10f0 <err_open@plt>
mov    0x2bbe(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    $0x0,%al
call   10a0 <str_date_yymmdd@plt>
mov    %rax,-0x60(%rbp)
mov    $0x0,%al
call   10c0 <str_time_hhmmss@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xbc6(%rip),%rsi
lea    0xbcd(%rip),%r8
mov    $0x2a,%r9d
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2b7b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    0x2b57(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x54(%rbp),%edi
mov    %rax,%rdx
lea    0xc52(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2b4d(%rip),%rax
mov    (%rax),%edi
lea    0xc1d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2b36(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x14(%rbp),%edi
mov    0x2b13(%rip),%rax
mov    (%rax),%esi
call   1090 <listen@plt>
cmp    $0x0,%rax
jge    1560 <init+0x370>
jmp    14cb <init+0x2db>
jmp    14d0 <init+0x2e0>
mov    $0x0,%al
call   10f0 <err_open@plt>
mov    0x2af2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    $0x0,%al
call   10a0 <str_date_yymmdd@plt>
mov    %rax,-0x70(%rbp)
mov    $0x0,%al
call   10c0 <str_time_hhmmss@plt>
mov    -0x74(%rbp),%edi
mov    -0x70(%rbp),%rdx
mov    %rax,%rcx
lea    0xafa(%rip),%rsi
lea    0xb01(%rip),%r8
mov    $0x2d,%r9d
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2aaf(%rip),%rax
mov    (%rax),%edi
lea    0xbb7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2a98(%rip),%rax
mov    (%rax),%edi
lea    0xb68(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2a81(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x14(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    0x2e19(%rip),%rax
mov    (%rax),%edi
mov    0x2e18(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10c0 <socket@plt>
test   %eax,%eax
jns    1219 <init+0x79>
xor    %eax,%eax
call   10b0 <err_open@plt>
mov    0x2e05(%rip),%r14
mov    (%r14),%ebp
xor    %eax,%eax
call   1080 <str_date_yymmdd@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1090 <str_time_hhmmss@plt>
lea    0xe12(%rip),%rsi
lea    0xe19(%rip),%r8
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
mov    $0x20,%r9d
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r14),%edi
lea    0xe7d(%rip),%rsi
jmp    1299 <init+0xf9>
movl   $0x1,0xc(%rsp)
mov    0x2dc0(%rip),%rcx
mov    (%rcx),%esi
mov    0x2d8f(%rip),%rcx
mov    (%rcx),%edx
lea    0xc(%rsp),%rcx
mov    %eax,%edi
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
test   %rax,%rax
je     12c3 <init+0x123>
xor    %eax,%eax
call   10b0 <err_open@plt>
mov    0x2d80(%rip),%r14
mov    (%r14),%ebx
xor    %eax,%eax
call   1080 <str_date_yymmdd@plt>
mov    %rax,%rbp
xor    %eax,%eax
call   1090 <str_time_hhmmss@plt>
lea    0xd8d(%rip),%rsi
lea    0xd94(%rip),%r8
mov    %ebx,%edi
mov    %rbp,%rdx
mov    %rax,%rcx
mov    $0x23,%r9d
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r14),%edi
lea    0xe12(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r14),%edi
lea    0xdff(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r14),%edi
call   1060 <fflush@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
xor    %eax,%eax
call   1070 <opt_socket@plt>
mov    %eax,%esi
mov    $0x8,%edx
call   1030 <strncpy@plt>

LLVM IR (-O0):
%struct.sockaddr_un = type { i64*, i32 }
%struct.sockaddr = type { i32 }
@PF_LOCAL = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str = [14 x i8] c"%s.%s %s:%d: \00"
@.str.1 = [131 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tardyp/amake/refs/heads/master/tcd/tcd.c\00"
@.str.2 = [24 x i8] c"init(): socket() failed\00"
@.str.3 = [2 x i8] c"\0A\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.4 = [28 x i8] c"init(): setsockopt() failed\00"
@AF_LOCAL = global i32 0
@.str.5 = [26 x i8] c"init(): bind() failed: %s\00"
@errno = global i32 0
@SOMAXCONN = global i32 0
@.str.6 = [24 x i8] c"init(): listen() failed\00"
define i32 @init() {
%1 = alloca %struct.sockaddr_un
%2 = alloca i32
%3 = alloca i32
%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 %26
9: ; preds = %0
br label %10
10: ; preds = %9
br label %11
11: ; preds = %10
%12 = call i32 (...) @err_open()
%13 = load i32, i32* @stderr
%14 = call i8* (...) @str_date_yymmdd()
%15 = call i8* (...) @str_time_hhmmss()
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %14, i8* %15, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 32)
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fflush(i32 %21)
br label %23
23: ; preds = %11
%24 = call i32 @exit(i32 1)
unreachable
25: ; No predecessors!
br label %26
26: ; preds = %25, %0
store i32 1, i32* %3
%27 = load i32, i32* %2
%28 = load i32, i32* @SOL_SOCKET
%29 = load i32, i32* @SO_REUSEADDR
%30 = call i64 @setsockopt(i32 %27, i32 %28, i32 %29, i32* %3, i32 4)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %49
32: ; preds = %26
br label %33
33: ; preds = %32
br label %34
34: ; preds = %33
%35 = call i32 (...) @err_open()
%36 = load i32, i32* @stderr
%37 = call i8* (...) @str_date_yymmdd()
%38 = call i8* (...) @str_time_hhmmss()
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %37, i8* %38, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 35)
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%44 = load i32, i32* @stderr
%45 = call i32 @fflush(i32 %44)
br label %46
46: ; preds = %34
%47 = call i32 @exit(i32 1)
unreachable
48: ; No predecessors!
br label %49
49: ; preds = %48, %26
%50 = load i32, i32* @AF_LOCAL
%51 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %1, i32 0, i32 1
store i32 %50, i32* %51
%52 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %1, i32 0, i32 0
%53 = load i64*, i64** %52
%54 = call i32 (...) @opt_socket()
%55 = call i32 @strncpy(i64* %53, i32 %54, i32 8)
%56 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %1, i32 0, i32 0
%57 = load i64*, i64** %56
%58 = getelementptr inbounds i64, i64* %57, i64 7
store i64 0, i64* %58
%59 = load i32, i32* %2
%60 = bitcast %struct.sockaddr_un* %1 to %struct.sockaddr*
%61 = call i32 @SUN_LEN(%struct.sockaddr_un* %1)
%62 = call i64 @bind(i32 %59, %struct.sockaddr* %60, i32 %61)
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %85
64: ; preds = %49
%65 = load i32, i32* %2
%66 = call i32 @close(i32 %65)
store i32 0, i32* %2
br label %67
67: ; preds = %64
br label %68
68: ; preds = %67
%69 = call i32 (...) @err_open()
%70 = load i32, i32* @stderr
%71 = call i8* (...) @str_date_yymmdd()
%72 = call i8* (...) @str_time_hhmmss()
%73 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %71, i8* %72, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 42)
%74 = load i32, i32* @stderr
%75 = load i32, i32* @errno
%76 = call i8* @strerror(i32 %75)
%77 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* %76)
%78 = load i32, i32* @stderr
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%80 = load i32, i32* @stderr
%81 = call i32 @fflush(i32 %80)
br label %82
82: ; preds = %68
%83 = call i32 @exit(i32 1)
unreachable
84: ; No predecessors!
br label %85
85: ; preds = %84, %49
%86 = load i32, i32* %2
%87 = load i32, i32* @SOMAXCONN
%88 = call i64 @listen(i32 %86, i32 %87)
%89 = icmp slt i64 %88, 0
br i1 %89, label %90, label %107
90: ; preds = %85
br label %91
91: ; preds = %90
br label %92
92: ; preds = %91
%93 = call i32 (...) @err_open()
%94 = load i32, i32* @stderr
%95 = call i8* (...) @str_date_yymmdd()
%96 = call i8* (...) @str_time_hhmmss()
%97 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %95, i8* %96, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 45)
%98 = load i32, i32* @stderr
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%100 = load i32, i32* @stderr
%101 = call i32 (i32, i8*, ...) @fprintf(i32 %100, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%102 = load i32, i32* @stderr
%103 = call i32 @fflush(i32 %102)
br label %104
104: ; preds = %92
%105 = call i32 @exit(i32 1)
unreachable
106: ; No predecessors!
br label %107
107: ; preds = %106, %85
%108 = load i32, i32* %2
ret i32 %108
}

LLVM IR (-O2):
@PF_LOCAL = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str = [14 x i8] c"%s.%s %s:%d: \00"
@.str.1 = [131 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tardyp/amake/refs/heads/master/tcd/tcd.c\00"
@.str.2 = [24 x i8] c"init(): socket() failed\00"
@.str.3 = [2 x i8] c"\0A\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.4 = [28 x i8] c"init(): setsockopt() failed\00"
@AF_LOCAL = global i32 0
@errno = global i32 0
@SOMAXCONN = global i32 0
define i32 @init() {
%1 = alloca i32
%2 = load i32, i32* @PF_LOCAL
%3 = load i32, i32* @SOCK_STREAM
%4 = tail call i32 @socket(i32 %2, i32 %3, i32 0)
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %19
6: ; preds = %0
%7 = tail call i32 (...) @err_open()
%8 = load i32, i32* @stderr
%9 = tail call i8* (...) @str_date_yymmdd()
%10 = tail call i8* (...) @str_time_hhmmss()
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %9, i8* %10, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 32)
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 @fflush(i32 %16)
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %0
%20 = bitcast i32* %1 to i8*
store i32 1, i32* %1
%21 = load i32, i32* @SOL_SOCKET
%22 = load i32, i32* @SO_REUSEADDR
%23 = call i64 @setsockopt(i32 %4, i32 %21, i32 %22, i32* %1, i32 4)
%24 = icmp eq i64 %23, 0
br i1 %24, label %38, label %25
25: ; preds = %19
%26 = call i32 (...) @err_open()
%27 = load i32, i32* @stderr
%28 = call i8* (...) @str_date_yymmdd()
%29 = call i8* (...) @str_time_hhmmss()
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %28, i8* %29, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 35)
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 @fflush(i32 %35)
%37 = call i32 @exit(i32 1)
unreachable
38: ; preds = %19
%39 = call i32 (...) @opt_socket()
%40 = call i32 @strncpy(i64* undef, i32 %39, i32 8)
unreachable
}