#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 */
struct sigaction {
  scalar_t__ sa_flags;
  int /*<<< orphan*/ sa_mask;
  int /*<<< orphan*/ sa_handler;
};
struct rlimit {
  int rlim_max;
};
typedef scalar_t__ pid_t;

/* Variables and functions */
int /*<<< orphan*/ LOG_CONS;
int /*<<< orphan*/ LOG_ERR;
int /*<<< orphan*/ LOG_USER;
int /*<<< orphan*/ O_RDWR;
int /*<<< orphan*/ RLIMIT_NOFILE;
int RLIM_INFINITY;
int /*<<< orphan*/ SIGHUP;
int /*<<< orphan*/ SIG_IGN;
scalar_t__ chdir(char *);
int /*<<< orphan*/ close(int);
int dup(int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
scalar_t__ fork();
scalar_t__ getrlimit(int /*<<< orphan*/, struct rlimit *);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ openlog(char const *, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ setsid();
scalar_t__ sigaction(int /*<<< orphan*/, struct sigaction *,
                     int /*<<< orphan*/ *);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, int, int, int);
int /*<<< orphan*/ umask(int /*<<< orphan*/);
void daemonize(const char *cmd) {
  int i, fd0, fd1, fd2;
  pid_t pid;
  struct rlimit rl;
  struct sigaction sa;
  umask(0);
  if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
    perror("cannot get file limit");
    exit(1);
  }
  if ((pid = fork()) < 0) {
    perror("cannot fork to become session leader");
    exit(1);
  } else if (pid != 0) {
    exit(0);
  }
  setsid();
  sa.sa_handler = SIG_IGN;
  sigemptyset(&sa.sa_mask);
  sa.sa_flags = 0;
  if (sigaction(SIGHUP, &sa, NULL) < 0) {
    perror("cannot ignore SIGHUP");
    exit(1);
  }
  if ((pid = fork()) < 0) {
    perror("cannot fork to ignore SIGHUP");
    exit(1);
  } else if (pid != 0) {
    exit(0);
  }
  if (chdir("/") < 0) {
    perror("cannot change directory to /");
    exit(1);
  }
  if (rl.rlim_max == RLIM_INFINITY) {
    rl.rlim_max = 1024;
  }
  for (i = 0; i < rl.rlim_max; i++) {
    close(i);
  }
  fd0 = open("/dev/null", O_RDWR);
  fd1 = dup(0);
  fd2 = dup(0);
  openlog(cmd, LOG_CONS, LOG_USER);
  if (fd0 != 0 || fd1 != 1 || fd2 != 2) {
    syslog(LOG_ERR, "unexpected file descriptors %d %d %d", fd0, fd1, fd2);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<daemonize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
xor    %edi,%edi
call   1090 <umask@plt>
mov    0x2dd6(%rip),%rax
mov    (%rax),%edi
lea    -0x28(%rbp),%rsi
call   10f0 <getrlimit@plt>
cmp    $0x0,%rax
jge    1225 <daemonize+0x45>
lea    0xdea(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    $0x0,%al
call   1100 <fork@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jge    1250 <daemonize+0x70>
lea    0xdd5(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpq   $0x0,-0x20(%rbp)
je     1262 <daemonize+0x82>
xor    %edi,%edi
call   10e0 <exit@plt>
jmp    1267 <daemonize+0x87>
mov    $0x0,%al
call   1070 <setsid@plt>
mov    0x2d53(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
lea    -0x38(%rbp),%rdi
add    $0x8,%rdi
call   1080 <sigemptyset@plt>
movq   $0x0,-0x38(%rbp)
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
lea    -0x38(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigaction@plt>
cmp    $0x0,%rax
jge    12c5 <daemonize+0xe5>
lea    0xd85(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    $0x0,%al
call   1100 <fork@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jge    12f0 <daemonize+0x110>
lea    0xd6f(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpq   $0x0,-0x20(%rbp)
je     1302 <daemonize+0x122>
xor    %edi,%edi
call   10e0 <exit@plt>
jmp    1307 <daemonize+0x127>
lea    0xd7a(%rip),%rdi
call   1040 <chdir@plt>
cmp    $0x0,%rax
jge    1333 <daemonize+0x153>
lea    0xd49(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0x28(%rbp),%eax
mov    0x2c73(%rip),%rcx
cmp    (%rcx),%eax
jne    134c <daemonize+0x16c>
movl   $0x400,-0x28(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1375 <daemonize+0x195>
mov    -0xc(%rbp),%edi
call   1060 <close@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1353 <daemonize+0x173>
mov    0x2c64(%rip),%rax
mov    (%rax),%esi
lea    0xd05(%rip),%rdi
call   10b0 <open@plt>
mov    %eax,-0x10(%rbp)
xor    %edi,%edi
call   1050 <dup@plt>
mov    %eax,-0x14(%rbp)
xor    %edi,%edi
call   1050 <dup@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2c0c(%rip),%rax
mov    (%rax),%esi
mov    0x2c23(%rip),%rax
mov    (%rax),%edx
call   10d0 <openlog@plt>
cmpl   $0x0,-0x10(%rbp)
jne    13da <daemonize+0x1fa>
cmpl   $0x1,-0x14(%rbp)
jne    13da <daemonize+0x1fa>
cmpl   $0x2,-0x18(%rbp)
je     1403 <daemonize+0x223>
mov    0x2bbf(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
lea    0xca0(%rip),%rsi
call   10a0 <syslog@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<daemonize>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%r14
xor    %edi,%edi
call   1090 <umask@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%edi
mov    %rsp,%rsi
call   10f0 <getrlimit@plt>
test   %rax,%rax
js     1334 <daemonize+0x154>
xor    %eax,%eax
call   1100 <fork@plt>
test   %rax,%rax
js     133d <daemonize+0x15d>
jne    132d <daemonize+0x14d>
xor    %eax,%eax
call   1070 <setsid@plt>
mov    0x2d96(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
lea    0x10(%rsp),%rdi
call   1080 <sigemptyset@plt>
movq   $0x0,0x8(%rsp)
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
xor    %edx,%edx
call   1030 <sigaction@plt>
test   %rax,%rax
js     1346 <daemonize+0x166>
xor    %eax,%eax
call   1100 <fork@plt>
test   %rax,%rax
js     134f <daemonize+0x16f>
jne    132d <daemonize+0x14d>
lea    0xe02(%rip),%rdi
call   1040 <chdir@plt>
test   %rax,%rax
js     1358 <daemonize+0x178>
mov    (%rsp),%eax
mov    0x2d12(%rip),%rcx
cmp    (%rcx),%eax
jne    12ab <daemonize+0xcb>
movl   $0x400,(%rsp)
jmp    12af <daemonize+0xcf>
test   %eax,%eax
jle    12cf <daemonize+0xef>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1060 <close@plt>
add    $0x1,%ebx
cmp    (%rsp),%ebx
jl     12c0 <daemonize+0xe0>
mov    0x2d0a(%rip),%rax
mov    (%rax),%esi
lea    0xdab(%rip),%rdi
call   10b0 <open@plt>
mov    %eax,%r15d
xor    %edi,%edi
call   1050 <dup@plt>
mov    %eax,%ebx
xor    %edi,%edi
call   1050 <dup@plt>
mov    %eax,%ebp
mov    0x2cb8(%rip),%rax
mov    (%rax),%esi
mov    0x2ccf(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
call   10d0 <openlog@plt>
test   %r15d,%r15d
jne    136e <daemonize+0x18e>
cmp    $0x1,%ebx
jne    136e <daemonize+0x18e>
cmp    $0x2,%ebp
jne    136e <daemonize+0x18e>
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
call   10e0 <exit@plt>
lea    0xcc5(%rip),%rdi
jmp    135f <daemonize+0x17f>
lea    0xcd2(%rip),%rdi
jmp    135f <daemonize+0x17f>
lea    0xcee(%rip),%rdi
jmp    135f <daemonize+0x17f>
lea    0xcfa(%rip),%rdi
jmp    135f <daemonize+0x17f>
lea    0xd0e(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    0x2c2b(%rip),%rax
mov    (%rax),%edi
lea    0xd16(%rip),%rsi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    %ebp,%r8d
call   10a0 <syslog@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
%struct.rlimit = type { i32 }
%struct.sigaction = type { i64, i32, i32 }
@RLIMIT_NOFILE = global i32 0
@.str = [22 x i8] c"cannot get file limit\00"
@.str.1 = [37 x i8] c"cannot fork to become session leader\00"
@SIG_IGN = global i32 0
@SIGHUP = global i32 0
@.str.2 = [21 x i8] c"cannot ignore SIGHUP\00"
@.str.3 = [29 x i8] c"cannot fork to ignore SIGHUP\00"
@.str.4 = [2 x i8] c"/\00"
@.str.5 = [29 x i8] c"cannot change directory to /\00"
@RLIM_INFINITY = global i32 0
@.str.6 = [10 x i8] c"/dev/null\00"
@O_RDWR = global i32 0
@LOG_CONS = global i32 0
@LOG_USER = global i32 0
@LOG_ERR = global i32 0
@.str.7 = [37 x i8] c"unexpected file descriptors %d %d %d\00"
define void @daemonize(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i64
%8 = alloca %struct.rlimit
%9 = alloca %struct.sigaction
store i8* %0, i8** %2
%10 = call i32 @umask(i32 0)
%11 = load i32, i32* @RLIMIT_NOFILE
%12 = call i64 @getrlimit(i32 %11, %struct.rlimit* %8)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %1
%15 = call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %1
%18 = call i64 (...) @fork()
store i64 %18, i64* %7
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @exit(i32 1)
unreachable
23: ; preds = %17
%24 = load i64, i64* %7
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @exit(i32 0)
unreachable
28: ; preds = %23
br label %29
29: ; preds = %28
%30 = call i32 (...) @setsid()
%31 = load i32, i32* @SIG_IGN
%32 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %9, i32 0, i32 2
store i32 %31, i32* %32
%33 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %9, i32 0, i32 1
%34 = call i32 @sigemptyset(i32* %33)
%35 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %9, i32 0, i32 0
store i64 0, i64* %35
%36 = load i32, i32* @SIGHUP
%37 = call i64 @sigaction(i32 %36, %struct.sigaction* %9, i32* null)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %29
%40 = call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %29
%43 = call i64 (...) @fork()
store i64 %43, i64* %7
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %42
%49 = load i64, i64* %7
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @exit(i32 0)
unreachable
53: ; preds = %48
br label %54
54: ; preds = %53
%55 = call i64 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%56 = icmp slt i64 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%59 = call i32 @exit(i32 1)
unreachable
60: ; preds = %54
%61 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %8, i32 0, i32 0
%62 = load i32, i32* %61
%63 = load i32, i32* @RLIM_INFINITY
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %60
%66 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %8, i32 0, i32 0
store i32 1024, i32* %66
br label %67
67: ; preds = %65, %60
store i32 0, i32* %3
br label %68
68: ; preds = %76, %67
%69 = load i32, i32* %3
%70 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %8, i32 0, i32 0
%71 = load i32, i32* %70
%72 = icmp slt i32 %69, %71
br i1 %72, label %73, label %79
73: ; preds = %68
%74 = load i32, i32* %3
%75 = call i32 @close(i32 %74)
br label %76
76: ; preds = %73
%77 = load i32, i32* %3
%78 = add nsw i32 %77, 1
store i32 %78, i32* %3
br label %68
79: ; preds = %68
%80 = load i32, i32* @O_RDWR
%81 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %80)
store i32 %81, i32* %4
%82 = call i32 @dup(i32 0)
store i32 %82, i32* %5
%83 = call i32 @dup(i32 0)
store i32 %83, i32* %6
%84 = load i8*, i8** %2
%85 = load i32, i32* @LOG_CONS
%86 = load i32, i32* @LOG_USER
%87 = call i32 @openlog(i8* %84, i32 %85, i32 %86)
%88 = load i32, i32* %4
%89 = icmp ne i32 %88, 0
br i1 %89, label %96, label %90
90: ; preds = %79
%91 = load i32, i32* %5
%92 = icmp ne i32 %91, 1
br i1 %92, label %96, label %93
93: ; preds = %90
%94 = load i32, i32* %6
%95 = icmp ne i32 %94, 2
br i1 %95, label %96, label %103
96: ; preds = %93, %90, %79
%97 = load i32, i32* @LOG_ERR
%98 = load i32, i32* %4
%99 = load i32, i32* %5
%100 = load i32, i32* %6
%101 = call i32 @syslog(i32 %97, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 %98, i32 %99, i32 %100)
%102 = call i32 @exit(i32 1)
unreachable
103: ; preds = %93
ret void
}

LLVM IR (-O2):
%struct.rlimit = type { i32 }
%struct.sigaction = type { i64, i32, i32 }
@RLIMIT_NOFILE = global i32 0
@.str = [22 x i8] c"cannot get file limit\00"
@.str.1 = [37 x i8] c"cannot fork to become session leader\00"
@SIG_IGN = global i32 0
@SIGHUP = global i32 0
@.str.2 = [21 x i8] c"cannot ignore SIGHUP\00"
@.str.3 = [29 x i8] c"cannot fork to ignore SIGHUP\00"
@.str.4 = [2 x i8] c"/\00"
@.str.5 = [29 x i8] c"cannot change directory to /\00"
@RLIM_INFINITY = global i32 0
@.str.6 = [10 x i8] c"/dev/null\00"
@O_RDWR = global i32 0
@LOG_CONS = global i32 0
@LOG_USER = global i32 0
@LOG_ERR = global i32 0
@.str.7 = [37 x i8] c"unexpected file descriptors %d %d %d\00"
define void @daemonize(i8* %0) {
%2 = alloca %struct.rlimit
%3 = alloca %struct.sigaction
%4 = bitcast %struct.rlimit* %2 to i8*
%5 = bitcast %struct.sigaction* %3 to i8*
%6 = tail call i32 @umask(i32 0)
%7 = load i32, i32* @RLIMIT_NOFILE
%8 = call i64 @getrlimit(i32 %7, %struct.rlimit* %2)
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @exit(i32 1)
unreachable
13: ; preds = %1
%14 = call i64 (...) @fork()
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @exit(i32 1)
unreachable
19: ; preds = %13
%20 = icmp eq i64 %14, 0
br i1 %20, label %23, label %21
21: ; preds = %19
%22 = call i32 @exit(i32 0)
unreachable
23: ; preds = %19
%24 = call i32 (...) @setsid()
%25 = load i32, i32* @SIG_IGN
%26 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %3, i64 0, i32 2
store i32 %25, i32* %26
%27 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %3, i64 0, i32 1
%28 = call i32 @sigemptyset(i32* %27)
%29 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %3, i64 0, i32 0
store i64 0, i64* %29
%30 = load i32, i32* @SIGHUP
%31 = call i64 @sigaction(i32 %30, %struct.sigaction* %3, i32* null)
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %23
%34 = call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %23
%37 = call i64 (...) @fork()
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %36
%43 = icmp eq i64 %37, 0
br i1 %43, label %46, label %44
44: ; preds = %42
%45 = call i32 @exit(i32 0)
unreachable
46: ; preds = %42
%47 = call i64 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %46
%53 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %2, i64 0, i32 0
%54 = load i32, i32* %53
%55 = load i32, i32* @RLIM_INFINITY
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %58
57: ; preds = %52
store i32 1024, i32* %53
br label %60
58: ; preds = %52
%59 = icmp sgt i32 %54, 0
br i1 %59, label %60, label %67
60: ; preds = %57, %58
br label %61
61: ; preds = %60, %61
%62 = phi i32 [ %64, %61 ], [ 0, %60 ]
%63 = call i32 @close(i32 %62)
%64 = add nuw nsw i32 %62, 1
%65 = load i32, i32* %53
%66 = icmp slt i32 %64, %65
br i1 %66, label %61, label %67
67: ; preds = %61, %58
%68 = load i32, i32* @O_RDWR
%69 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %68)
%70 = call i32 @dup(i32 0)
%71 = call i32 @dup(i32 0)
%72 = load i32, i32* @LOG_CONS
%73 = load i32, i32* @LOG_USER
%74 = call i32 @openlog(i8* %0, i32 %72, i32 %73)
%75 = icmp ne i32 %69, 0
%76 = icmp ne i32 %70, 1
%77 = select i1 %75, i1 true, i1 %76
%78 = icmp ne i32 %71, 2
%79 = select i1 %77, i1 true, i1 %78
br i1 %79, label %80, label %84
80: ; preds = %67
%81 = load i32, i32* @LOG_ERR
%82 = call i32 @syslog(i32 %81, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 %69, i32 %70, i32 %71)
%83 = call i32 @exit(i32 1)
unreachable
84: ; preds = %67
ret void
}