#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__ chdir(char *);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ err_open();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(scalar_t__);
scalar_t__ fork();
int /*<<< orphan*/ fprintf(scalar_t__, char *, ...);
int getpid();
int init();
scalar_t__ opt_daemon();
scalar_t__ opt_debug();
scalar_t__ opt_help();
int /*<<< orphan*/ options_init(int, char **);
int /*<<< orphan*/ options_usage();
int /*<<< orphan*/ server(int);
int /*<<< orphan*/ setsid();
scalar_t__ stderr;
scalar_t__ stdin;
scalar_t__ stdout;
char *str_date_yymmdd();
char *str_time_hhmmss();
int /*<<< orphan*/ umask(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  options_init(argc, argv);
  if (opt_help())
    options_usage();
  umask(0);
  close(0);
  stdin = 0;
  close(1);
  stdout = 0;
  close(2);
  stderr = 0;
  if (opt_daemon()) {
    do {
      if (opt_debug())
        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",
                  144);
          fprintf(stderr, "main(): fork()-ing, pid=%d", getpid());
          fprintf(stderr, "\n");
          fflush(stderr);
        } while (0);
    } while (0);
    if (fork())
      exit(0);
    do {
      if (opt_debug())
        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",
                  147);
          fprintf(stderr, "main(): fork()-ed, pid=%d", getpid());
          fprintf(stderr, "\n");
          fflush(stderr);
        } while (0);
    } while (0);
    setsid();
    if (chdir("/") < 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",
                  150);
          fprintf(stderr, "main(): chdir() failed");
          fprintf(stderr, "\n");
          fflush(stderr);
        } while (0);
        exit(1);
      } while (0);
  }
  int fd = init();
  while (1)
    server(fd);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <options_init@plt>
mov    $0x0,%al
call   10f0 <opt_help@plt>
cmp    $0x0,%rax
je     126a <main+0x3a>
mov    $0x0,%al
call   1100 <options_usage@plt>
xor    %edi,%edi
call   1090 <umask@plt>
xor    %edi,%edi
call   1060 <close@plt>
mov    0x2d69(%rip),%rax
movq   $0x0,(%rax)
mov    $0x1,%edi
call   1060 <close@plt>
mov    0x2d39(%rip),%rax
movq   $0x0,(%rax)
mov    $0x2,%edi
call   1060 <close@plt>
mov    0x2d29(%rip),%rax
movq   $0x0,(%rax)
mov    $0x0,%al
call   10b0 <opt_daemon@plt>
cmp    $0x0,%rax
je     1525 <main+0x2f5>
jmp    12cc <main+0x9c>
mov    $0x0,%al
call   1120 <opt_debug@plt>
cmp    $0x0,%rax
je     1384 <main+0x154>
jmp    12e2 <main+0xb2>
mov    $0x0,%al
call   1140 <err_open@plt>
mov    0x2ce8(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    $0x0,%al
call   10e0 <str_date_yymmdd@plt>
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1110 <str_time_hhmmss@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    %rax,%rcx
lea    0xce5(%rip),%rsi
lea    0xcec(%rip),%r8
mov    $0x90,%r9d
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2ca2(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%edx
lea    0xd40(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2c79(%rip),%rax
mov    (%rax),%rdi
lea    0xd43(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2c61(%rip),%rax
mov    (%rax),%rdi
call   10d0 <fflush@plt>
jmp    1384 <main+0x154>
jmp    1389 <main+0x159>
mov    $0x0,%al
call   1150 <fork@plt>
cmp    $0x0,%rax
je     13a1 <main+0x171>
xor    %edi,%edi
call   1130 <exit@plt>
jmp    13a6 <main+0x176>
mov    $0x0,%al
call   1120 <opt_debug@plt>
cmp    $0x0,%rax
je     145e <main+0x22e>
jmp    13bc <main+0x18c>
mov    $0x0,%al
call   1140 <err_open@plt>
mov    0x2c0e(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    $0x0,%al
call   10e0 <str_date_yymmdd@plt>
mov    %rax,-0x40(%rbp)
mov    $0x0,%al
call   1110 <str_time_hhmmss@plt>
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%rdx
mov    %rax,%rcx
lea    0xc0b(%rip),%rsi
lea    0xc12(%rip),%r8
mov    $0x93,%r9d
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2bc8(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%edx
lea    0xc83(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2b9f(%rip),%rax
mov    (%rax),%rdi
lea    0xc69(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2b87(%rip),%rax
mov    (%rax),%rdi
call   10d0 <fflush@plt>
jmp    145e <main+0x22e>
jmp    1463 <main+0x233>
mov    $0x0,%al
call   1070 <setsid@plt>
lea    0xc57(%rip),%rdi
call   1050 <chdir@plt>
cmp    $0x0,%rax
jge    1520 <main+0x2f0>
jmp    1485 <main+0x255>
jmp    148a <main+0x25a>
mov    $0x0,%al
call   1140 <err_open@plt>
mov    0x2b40(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x58(%rbp)
mov    $0x0,%al
call   10e0 <str_date_yymmdd@plt>
mov    %rax,-0x50(%rbp)
mov    $0x0,%al
call   1110 <str_time_hhmmss@plt>
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rdx
mov    %rax,%rcx
lea    0xb3d(%rip),%rsi
lea    0xb44(%rip),%r8
mov    $0x96,%r9d
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2afa(%rip),%rax
mov    (%rax),%rdi
lea    0xbe2(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2ae2(%rip),%rax
mov    (%rax),%rdi
lea    0xbac(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2aca(%rip),%rax
mov    (%rax),%rdi
call   10d0 <fflush@plt>
mov    $0x1,%edi
call   1130 <exit@plt>
jmp    1525 <main+0x2f5>
mov    $0x0,%al
call   10a0 <init@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   10c0 <server@plt>
jmp    152f <main+0x2ff>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
call   1030 <options_init@plt>
xor    %eax,%eax
call   10f0 <opt_help@plt>
test   %rax,%rax
je     124d <main+0x1d>
xor    %eax,%eax
call   1100 <options_usage@plt>
xor    %edi,%edi
call   1090 <umask@plt>
xor    %edi,%edi
call   1060 <close@plt>
mov    0x2d86(%rip),%rax
movq   $0x0,(%rax)
mov    $0x1,%edi
call   1060 <close@plt>
mov    0x2d56(%rip),%rax
movq   $0x0,(%rax)
mov    $0x2,%edi
call   1060 <close@plt>
mov    0x2d46(%rip),%r15
movq   $0x0,(%r15)
xor    %eax,%eax
call   10b0 <opt_daemon@plt>
test   %rax,%rax
je     13d3 <main+0x1a3>
xor    %eax,%eax
call   1120 <opt_debug@plt>
test   %rax,%rax
je     132a <main+0xfa>
xor    %eax,%eax
call   1140 <err_open@plt>
mov    (%r15),%r14
xor    %eax,%eax
call   10e0 <str_date_yymmdd@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1110 <str_time_hhmmss@plt>
lea    0xd29(%rip),%rsi
lea    0xd30(%rip),%r8
mov    %r14,%rdi
mov    %rbx,%rdx
mov    %rax,%rcx
mov    $0x90,%r9d
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rbx
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xd8c(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rdi
lea    0xd91(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rdi
call   10d0 <fflush@plt>
xor    %eax,%eax
call   1150 <fork@plt>
test   %rax,%rax
jne    13e9 <main+0x1b9>
xor    %eax,%eax
call   1120 <opt_debug@plt>
test   %rax,%rax
je     13bb <main+0x18b>
xor    %eax,%eax
call   1140 <err_open@plt>
mov    (%r15),%r14
xor    %eax,%eax
call   10e0 <str_date_yymmdd@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1110 <str_time_hhmmss@plt>
lea    0xc98(%rip),%rsi
lea    0xc9f(%rip),%r8
mov    %r14,%rdi
mov    %rbx,%rdx
mov    %rax,%rcx
mov    $0x93,%r9d
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rbx
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xd18(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rdi
lea    0xd00(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rdi
call   10d0 <fflush@plt>
xor    %eax,%eax
call   1070 <setsid@plt>
lea    0xcff(%rip),%rdi
call   1050 <chdir@plt>
test   %rax,%rax
js     13f0 <main+0x1c0>
xor    %eax,%eax
call   10a0 <init@plt>
mov    %eax,%ebx
nopl   0x0(%rax)
mov    %ebx,%edi
call   10c0 <server@plt>
jmp    13e0 <main+0x1b0>
xor    %edi,%edi
call   1130 <exit@plt>
xor    %eax,%eax
call   1140 <err_open@plt>
mov    (%r15),%r14
xor    %eax,%eax
call   10e0 <str_date_yymmdd@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1110 <str_time_hhmmss@plt>
lea    0xbee(%rip),%rsi
lea    0xbf5(%rip),%r8
mov    %r14,%rdi
mov    %rbx,%rdx
mov    %rax,%rcx
mov    $0x96,%r9d
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rdi
lea    0xc91(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rdi
lea    0xc62(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r15),%rdi
call   10d0 <fflush@plt>
mov    $0x1,%edi
call   1130 <exit@plt>

LLVM IR (-O0):
@stdin = global i64 0
@stdout = global i64 0
@stderr = global i64 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 = [27 x i8] c"main(): fork()-ing, pid=%d\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [26 x i8] c"main(): fork()-ed, pid=%d\00"
@.str.5 = [2 x i8] c"/\00"
@.str.6 = [23 x i8] c"main(): chdir() failed\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = call i32 @options_init(i32 %7, i8** %8)
%10 = call i64 (...) @opt_help()
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @options_usage()
br label %14
14: ; preds = %12, %2
%15 = call i32 @umask(i32 0)
%16 = call i32 @close(i32 0)
store i64 0, i64* @stdin
%17 = call i32 @close(i32 1)
store i64 0, i64* @stdout
%18 = call i32 @close(i32 2)
store i64 0, i64* @stderr
%19 = call i64 (...) @opt_daemon()
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %88
21: ; preds = %14
br label %22
22: ; preds = %21
%23 = call i64 (...) @opt_debug()
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %40
25: ; preds = %22
br label %26
26: ; preds = %25
%27 = call i32 (...) @err_open()
%28 = load i64, i64* @stderr
%29 = call i8* (...) @str_date_yymmdd()
%30 = call i8* (...) @str_time_hhmmss()
%31 = call i32 (i64, i8*, ...) @fprintf(i64 %28, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %29, i8* %30, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 144)
%32 = load i64, i64* @stderr
%33 = call i32 (...) @getpid()
%34 = call i32 (i64, i8*, ...) @fprintf(i64 %32, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %33)
%35 = load i64, i64* @stderr
%36 = call i32 (i64, i8*, ...) @fprintf(i64 %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%37 = load i64, i64* @stderr
%38 = call i32 @fflush(i64 %37)
br label %39
39: ; preds = %26
br label %40
40: ; preds = %39, %22
br label %41
41: ; preds = %40
%42 = call i64 (...) @fork()
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 @exit(i32 0)
unreachable
46: ; preds = %41
br label %47
47: ; preds = %46
%48 = call i64 (...) @opt_debug()
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %65
50: ; preds = %47
br label %51
51: ; preds = %50
%52 = call i32 (...) @err_open()
%53 = load i64, i64* @stderr
%54 = call i8* (...) @str_date_yymmdd()
%55 = call i8* (...) @str_time_hhmmss()
%56 = call i32 (i64, i8*, ...) @fprintf(i64 %53, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %54, i8* %55, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 147)
%57 = load i64, i64* @stderr
%58 = call i32 (...) @getpid()
%59 = call i32 (i64, i8*, ...) @fprintf(i64 %57, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %58)
%60 = load i64, i64* @stderr
%61 = call i32 (i64, i8*, ...) @fprintf(i64 %60, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%62 = load i64, i64* @stderr
%63 = call i32 @fflush(i64 %62)
br label %64
64: ; preds = %51
br label %65
65: ; preds = %64, %47
br label %66
66: ; preds = %65
%67 = call i32 (...) @setsid()
%68 = call i64 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%69 = icmp slt i64 %68, 0
br i1 %69, label %70, label %87
70: ; preds = %66
br label %71
71: ; preds = %70
br label %72
72: ; preds = %71
%73 = call i32 (...) @err_open()
%74 = load i64, i64* @stderr
%75 = call i8* (...) @str_date_yymmdd()
%76 = call i8* (...) @str_time_hhmmss()
%77 = call i32 (i64, i8*, ...) @fprintf(i64 %74, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %75, i8* %76, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 150)
%78 = load i64, i64* @stderr
%79 = call i32 (i64, i8*, ...) @fprintf(i64 %78, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%80 = load i64, i64* @stderr
%81 = call i32 (i64, i8*, ...) @fprintf(i64 %80, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%82 = load i64, i64* @stderr
%83 = call i32 @fflush(i64 %82)
br label %84
84: ; preds = %72
%85 = call i32 @exit(i32 1)
unreachable
86: ; No predecessors!
br label %87
87: ; preds = %86, %66
br label %88
88: ; preds = %87, %14
%89 = call i32 (...) @init()
store i32 %89, i32* %6
br label %90
90: ; preds = %88, %90
%91 = load i32, i32* %6
%92 = call i32 @server(i32 %91)
br label %90
}

LLVM IR (-O2):
@stdin = global i64 0
@stdout = global i64 0
@stderr = global i64 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 = [27 x i8] c"main(): fork()-ing, pid=%d\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [26 x i8] c"main(): fork()-ed, pid=%d\00"
@.str.5 = [2 x i8] c"/\00"
@.str.6 = [23 x i8] c"main(): chdir() failed\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @options_init(i32 %0, i8** %1)
%4 = tail call i64 (...) @opt_help()
%5 = icmp eq i64 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 (...) @options_usage()
br label %8
8: ; preds = %6, %2
%9 = tail call i32 @umask(i32 0)
%10 = tail call i32 @close(i32 0)
store i64 0, i64* @stdin
%11 = tail call i32 @close(i32 1)
store i64 0, i64* @stdout
%12 = tail call i32 @close(i32 2)
store i64 0, i64* @stderr
%13 = tail call i64 (...) @opt_daemon()
%14 = icmp eq i64 %13, 0
br i1 %14, label %69, label %15
15: ; preds = %8
%16 = tail call i64 (...) @opt_debug()
%17 = icmp eq i64 %16, 0
br i1 %17, label %31, label %18
18: ; preds = %15
%19 = tail call i32 (...) @err_open()
%20 = load i64, i64* @stderr
%21 = tail call i8* (...) @str_date_yymmdd()
%22 = tail call i8* (...) @str_time_hhmmss()
%23 = tail call i32 (i64, i8*, ...) @fprintf(i64 %20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %21, i8* %22, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 144)
%24 = load i64, i64* @stderr
%25 = tail call i32 (...) @getpid()
%26 = tail call i32 (i64, i8*, ...) @fprintf(i64 %24, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %25)
%27 = load i64, i64* @stderr
%28 = tail call i32 (i64, i8*, ...) @fprintf(i64 %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%29 = load i64, i64* @stderr
%30 = tail call i32 @fflush(i64 %29)
br label %31
31: ; preds = %15, %18
%32 = tail call i64 (...) @fork()
%33 = icmp eq i64 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %31
%35 = tail call i32 @exit(i32 0)
unreachable
36: ; preds = %31
%37 = tail call i64 (...) @opt_debug()
%38 = icmp eq i64 %37, 0
br i1 %38, label %52, label %39
39: ; preds = %36
%40 = tail call i32 (...) @err_open()
%41 = load i64, i64* @stderr
%42 = tail call i8* (...) @str_date_yymmdd()
%43 = tail call i8* (...) @str_time_hhmmss()
%44 = tail call i32 (i64, i8*, ...) @fprintf(i64 %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %42, i8* %43, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 147)
%45 = load i64, i64* @stderr
%46 = tail call i32 (...) @getpid()
%47 = tail call i32 (i64, i8*, ...) @fprintf(i64 %45, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = load i64, i64* @stderr
%49 = tail call i32 (i64, i8*, ...) @fprintf(i64 %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%50 = load i64, i64* @stderr
%51 = tail call i32 @fflush(i64 %50)
br label %52
52: ; preds = %36, %39
%53 = tail call i32 (...) @setsid()
%54 = tail call i64 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%55 = icmp slt i64 %54, 0
br i1 %55, label %56, label %69
56: ; preds = %52
%57 = tail call i32 (...) @err_open()
%58 = load i64, i64* @stderr
%59 = tail call i8* (...) @str_date_yymmdd()
%60 = tail call i8* (...) @str_time_hhmmss()
%61 = tail call i32 (i64, i8*, ...) @fprintf(i64 %58, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %59, i8* %60, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 150)
%62 = load i64, i64* @stderr
%63 = tail call i32 (i64, i8*, ...) @fprintf(i64 %62, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%64 = load i64, i64* @stderr
%65 = tail call i32 (i64, i8*, ...) @fprintf(i64 %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%66 = load i64, i64* @stderr
%67 = tail call i32 @fflush(i64 %66)
%68 = tail call i32 @exit(i32 1)
unreachable
69: ; preds = %52, %8
%70 = tail call i32 (...) @init()
br label %71
71: ; preds = %71, %69
%72 = tail call i32 @server(i32 %70)
br label %71
}