#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 passwd {
  char *pw_dir;
};
typedef int /*<<< orphan*/ path;
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ ENOENT;
int EXIT_FAILURE;
int /*<<< orphan*/ LOG_ERR;
int /*<<< orphan*/ LOG_INFO;
int /*<<< orphan*/ closelog();
scalar_t__ errno;
scalar_t__ execl(char *, char *, char const *, int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
struct passwd *getpwnam(char const *);
int /*<<< orphan*/ initialize();
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *);
int /*<<< orphan*/ strerror(scalar_t__);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, ...);
int main(const int argc, const char **argv) {
  initialize();
  struct passwd *pwd = NULL;
  char path[4096];
  char buf[4096];
  FILE *keys = NULL;
  memset(path, 0, 4096);
  if (argc != 2) {
    syslog(LOG_ERR, "provisor_authorized_keys"
                    " called with incorrect argument");
    exit(1);
  }
  errno = 0;
  if ((pwd = getpwnam(argv[1])) == NULL) {
    if (errno) {
      syslog(LOG_ERR, "Username %s not found due to error: %s", argv[1],
             strerror(errno));
      exit(EXIT_FAILURE);
    } else {
      syslog(LOG_ERR, "Username %s was not found", argv[1]);
      exit(EXIT_FAILURE);
    }
  }
  snprintf(path, sizeof(path), "%s%s", pwd->pw_dir, "/.ssh/authorized_keys");
  if ((keys = fopen(path, "r")) == NULL) {
    if (errno == ENOENT) {
      syslog(LOG_INFO, "Cannot find authorized keys for %s, moving on",
             argv[1]);
    } else {
      syslog(LOG_ERR, "Cannot open authorized keys for %s: %s", argv[1],
             strerror(errno));
      exit(EXIT_FAILURE);
    }
  } else {
    while (fgets(buf, sizeof(buf), keys) != NULL) {
      printf("%s", buf);
      memset(buf, 0, sizeof(buf));
    }
    fclose(keys);
  }
  closelog();
  if (execl("/usr/bin/sss_ssh_authorizedkeys", "sss_ssh_authorizedkeys",
            argv[1], NULL) < 0) {
    syslog(LOG_ERR, "Cannot execute %s: %s", "sss_ssh_authorizedkeys",
           strerror(errno));
    exit(EXIT_FAILURE);
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2050,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1080 <initialize@plt>
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x2028(%rbp)
lea    -0x1020(%rbp),%rdi
xor    %esi,%esi
mov    $0x1000,%edx
call   1070 <memset@plt>
cmpl   $0x2,-0x8(%rbp)
je     1241 <main+0x71>
mov    0x2d91(%rip),%rax
mov    (%rax),%edi
lea    0xdd0(%rip),%rsi
mov    $0x0,%al
call   10b0 <syslog@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2d98(%rip),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10a0 <getpwnam@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1300 <main+0x130>
mov    0x2d6f(%rip),%rax
cmpq   $0x0,(%rax)
je     12d3 <main+0x103>
mov    0x2d36(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2034(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x2030(%rbp)
mov    0x2d40(%rip),%rax
mov    (%rax),%rdi
call   10e0 <strerror@plt>
mov    -0x2034(%rbp),%edi
mov    -0x2030(%rbp),%rdx
mov    %eax,%ecx
lea    0xd7a(%rip),%rsi
mov    $0x0,%al
call   10b0 <syslog@plt>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    0x2cde(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xd74(%rip),%rsi
mov    $0x0,%al
call   10b0 <syslog@plt>
mov    0x2cdf(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
lea    -0x1020(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1000,%esi
lea    0xd5f(%rip),%rdx
lea    0xd5d(%rip),%r8
call   1060 <snprintf@plt>
lea    -0x1020(%rbp),%rdi
lea    0xd60(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x2028(%rbp)
cmp    $0x0,%rax
jne    13e5 <main+0x215>
mov    0x2c8f(%rip),%rax
mov    (%rax),%rax
mov    0x2c65(%rip),%rcx
cmp    (%rcx),%rax
jne    1388 <main+0x1b8>
mov    0x2c65(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xd1a(%rip),%rsi
mov    $0x0,%al
call   10b0 <syslog@plt>
jmp    13e0 <main+0x210>
mov    0x2c29(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2044(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x2040(%rbp)
mov    0x2c33(%rip),%rax
mov    (%rax),%rdi
call   10e0 <strerror@plt>
mov    -0x2044(%rbp),%edi
mov    -0x2040(%rbp),%rdx
mov    %eax,%ecx
lea    0xcf9(%rip),%rsi
mov    $0x0,%al
call   10b0 <syslog@plt>
mov    0x2bff(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    1443 <main+0x273>
jmp    13ea <main+0x21a>
lea    -0x2020(%rbp),%rdi
mov    -0x2028(%rbp),%rdx
mov    $0x1000,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
je     1437 <main+0x267>
lea    -0x2020(%rbp),%rsi
lea    0xc42(%rip),%rdi
call   1050 <printf@plt>
lea    -0x2020(%rbp),%rdi
xor    %esi,%esi
mov    $0x1000,%edx
call   1070 <memset@plt>
jmp    13ea <main+0x21a>
mov    -0x2028(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x0,%al
call   1030 <closelog@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xc92(%rip),%rdi
lea    0xc94(%rip),%rsi
xor    %eax,%eax
mov    %eax,%ecx
call   10f0 <execl@plt>
cmp    $0x0,%rax
jge    14bc <main+0x2ec>
mov    0x2b3e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2048(%rbp)
mov    0x2b57(%rip),%rax
mov    (%rax),%rdi
call   10e0 <strerror@plt>
mov    -0x2048(%rbp),%edi
mov    %eax,%ecx
lea    0xc6b(%rip),%rsi
lea    0xc4d(%rip),%rdx
mov    $0x0,%al
call   10b0 <syslog@plt>
mov    0x2b23(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
xor    %edi,%edi
call   10d0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x2000,%rsp
mov    %rsi,%r14
mov    %edi,%ebx
xor    %eax,%eax
call   1080 <initialize@plt>
lea    0x1000(%rsp),%rdi
xor    %esi,%esi
mov    $0x1000,%edx
call   1070 <memset@plt>
cmp    $0x2,%ebx
jne    1253 <main+0x83>
mov    0x2dd5(%rip),%rbp
movq   $0x0,0x0(%rbp)
mov    0x8(%r14),%rdi
call   10a0 <getpwnam@plt>
test   %rax,%rax
jne    1274 <main+0xa4>
mov    0x0(%rbp),%rdi
mov    0x2d8c(%rip),%rax
mov    (%rax),%ebp
mov    0x8(%r14),%rbx
test   %rdi,%rdi
jne    12df <main+0x10f>
lea    0xe1d(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   10b0 <syslog@plt>
jmp    13ce <main+0x1fe>
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
lea    0xd9d(%rip),%rsi
xor    %eax,%eax
call   10b0 <syslog@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    (%rax),%rcx
lea    0xdfb(%rip),%rdx
lea    0xdf9(%rip),%r8
lea    0x1000(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1000,%esi
call   1060 <snprintf@plt>
lea    0xdf3(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <fopen@plt>
test   %rax,%rax
jne    12f5 <main+0x125>
mov    0x0(%rbp),%rdi
mov    0x2d07(%rip),%rax
cmp    (%rax),%rdi
jne    13a7 <main+0x1d7>
mov    0x2d07(%rip),%rax
mov    (%rax),%edi
mov    0x8(%r14),%rdx
lea    0xdc0(%rip),%rsi
xor    %eax,%eax
call   10b0 <syslog@plt>
jmp    1357 <main+0x187>
call   10e0 <strerror@plt>
lea    0xd4d(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
jmp    13c5 <main+0x1f5>
mov    %rax,%r12
mov    %rsp,%rdi
mov    $0x1000,%esi
mov    %rax,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
je     134f <main+0x17f>
lea    0xd48(%rip),%r15
mov    %rsp,%rbx
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1000,%edx
call   1070 <memset@plt>
mov    %rbx,%rdi
mov    $0x1000,%esi
mov    %r12,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
jne    1320 <main+0x150>
mov    %r12,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
call   1030 <closelog@plt>
mov    0x8(%r14),%rdx
lea    0xd82(%rip),%rdi
lea    0xd84(%rip),%rsi
xor    %ecx,%ecx
call   10f0 <execl@plt>
test   %rax,%rax
jns    13a0 <main+0x1d0>
mov    0x2c35(%rip),%rax
mov    (%rax),%ebx
mov    0x0(%rbp),%rdi
call   10e0 <strerror@plt>
lea    0xd76(%rip),%rsi
lea    0xd58(%rip),%rdx
mov    %ebx,%edi
jmp    13c5 <main+0x1f5>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    0x2c0a(%rip),%rax
mov    (%rax),%ebx
mov    0x8(%r14),%rbp
call   10e0 <strerror@plt>
lea    0xd04(%rip),%rsi
mov    %ebx,%edi
mov    %rbp,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   10b0 <syslog@plt>
mov    0x2c03(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
%struct.passwd = type { i8* }
@LOG_ERR = global i32 0
@.str = [56 x i8] c"provisor_authorized_keys called with incorrect argument\00"
@errno = global i64 0
@.str.1 = [39 x i8] c"Username %s not found due to error: %s\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [26 x i8] c"Username %s was not found\00"
@.str.3 = [5 x i8] c"%s%s\00"
@.str.4 = [22 x i8] c"/.ssh/authorized_keys\00"
@.str.5 = [2 x i8] c"r\00"
@ENOENT = global i64 0
@LOG_INFO = global i32 0
@.str.6 = [46 x i8] c"Cannot find authorized keys for %s, moving on\00"
@.str.7 = [39 x i8] c"Cannot open authorized keys for %s: %s\00"
@.str.8 = [3 x i8] c"%s\00"
@.str.9 = [32 x i8] c"/usr/bin/sss_ssh_authorizedkeys\00"
@.str.10 = [23 x i8] c"sss_ssh_authorizedkeys\00"
@.str.11 = [22 x i8] c"Cannot execute %s: %s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.passwd*
%7 = alloca [4096 x i8]
%8 = alloca [4096 x i8]
%9 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = call i32 (...) @initialize()
store %struct.passwd* null, %struct.passwd** %6
store i32* null, i32** %9
%11 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
%12 = call i32 @memset(i8* %11, i32 0, i32 4096)
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load i32, i32* @LOG_ERR
%17 = call i32 (i32, i8*, ...) @syslog(i32 %16, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @exit(i32 1)
unreachable
19: ; preds = %2
store i64 0, i64* @errno
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call %struct.passwd* @getpwnam(i8* %22)
store %struct.passwd* %23, %struct.passwd** %6
%24 = icmp eq %struct.passwd* %23, null
br i1 %24, label %25, label %46
25: ; preds = %19
%26 = load i64, i64* @errno
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %38
28: ; preds = %25
%29 = load i32, i32* @LOG_ERR
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = load i64, i64* @errno
%34 = call i32 @strerror(i64 %33)
%35 = call i32 (i32, i8*, ...) @syslog(i32 %29, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %32, i32 %34)
%36 = load i32, i32* @EXIT_FAILURE
%37 = call i32 @exit(i32 %36)
unreachable
38: ; preds = %25
%39 = load i32, i32* @LOG_ERR
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = call i32 (i32, i8*, ...) @syslog(i32 %39, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %42)
%44 = load i32, i32* @EXIT_FAILURE
%45 = call i32 @exit(i32 %44)
unreachable
46: ; preds = %19
%47 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
%48 = load %struct.passwd*, %struct.passwd** %6
%49 = getelementptr inbounds %struct.passwd, %struct.passwd* %48, i32 0, i32 0
%50 = load i8*, i8** %49
%51 = call i32 @snprintf(i8* %47, i32 4096, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %50, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%52 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
%53 = call i32* @fopen(i8* %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %53, i32** %9
%54 = icmp eq i32* %53, null
br i1 %54, label %55, label %76
55: ; preds = %46
%56 = load i64, i64* @errno
%57 = load i64, i64* @ENOENT
%58 = icmp eq i64 %56, %57
br i1 %58, label %59, label %65
59: ; preds = %55
%60 = load i32, i32* @LOG_INFO
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = call i32 (i32, i8*, ...) @syslog(i32 %60, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0), i8* %63)
br label %75
65: ; preds = %55
%66 = load i32, i32* @LOG_ERR
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 1
%69 = load i8*, i8** %68
%70 = load i64, i64* @errno
%71 = call i32 @strerror(i64 %70)
%72 = call i32 (i32, i8*, ...) @syslog(i32 %66, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i8* %69, i32 %71)
%73 = load i32, i32* @EXIT_FAILURE
%74 = call i32 @exit(i32 %73)
unreachable
75: ; preds = %59
br label %90
76: ; preds = %46
br label %77
77: ; preds = %82, %76
%78 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%79 = load i32*, i32** %9
%80 = call i32* @fgets(i8* %78, i32 4096, i32* %79)
%81 = icmp ne i32* %80, null
br i1 %81, label %82, label %87
82: ; preds = %77
%83 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%84 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %83)
%85 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%86 = call i32 @memset(i8* %85, i32 0, i32 4096)
br label %77
87: ; preds = %77
%88 = load i32*, i32** %9
%89 = call i32 @fclose(i32* %88)
br label %90
90: ; preds = %87, %75
%91 = call i32 (...) @closelog()
%92 = load i8**, i8*** %5
%93 = getelementptr inbounds i8*, i8** %92, i64 1
%94 = load i8*, i8** %93
%95 = call i64 @execl(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i8* %94, i32* null)
%96 = icmp slt i64 %95, 0
br i1 %96, label %97, label %104
97: ; preds = %90
%98 = load i32, i32* @LOG_ERR
%99 = load i64, i64* @errno
%100 = call i32 @strerror(i64 %99)
%101 = call i32 (i32, i8*, ...) @syslog(i32 %98, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 %100)
%102 = load i32, i32* @EXIT_FAILURE
%103 = call i32 @exit(i32 %102)
unreachable
104: ; preds = %90
%105 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.passwd = type { i8* }
@LOG_ERR = global i32 0
@.str = [56 x i8] c"provisor_authorized_keys called with incorrect argument\00"
@errno = global i64 0
@.str.1 = [39 x i8] c"Username %s not found due to error: %s\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [26 x i8] c"Username %s was not found\00"
@.str.3 = [5 x i8] c"%s%s\00"
@.str.4 = [22 x i8] c"/.ssh/authorized_keys\00"
@.str.5 = [2 x i8] c"r\00"
@ENOENT = global i64 0
@LOG_INFO = global i32 0
@.str.6 = [46 x i8] c"Cannot find authorized keys for %s, moving on\00"
@.str.7 = [39 x i8] c"Cannot open authorized keys for %s: %s\00"
@.str.8 = [3 x i8] c"%s\00"
@.str.9 = [32 x i8] c"/usr/bin/sss_ssh_authorizedkeys\00"
@.str.10 = [23 x i8] c"sss_ssh_authorizedkeys\00"
@.str.11 = [22 x i8] c"Cannot execute %s: %s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4096 x i8]
%4 = alloca [4096 x i8]
%5 = tail call i32 (...) @initialize()
%6 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%8 = call i32 @memset(i8* %6, i32 0, i32 4096)
%9 = icmp eq i32 %0, 2
br i1 %9, label %14, label %10
10: ; preds = %2
%11 = load i32, i32* @LOG_ERR
%12 = call i32 (i32, i8*, ...) @syslog(i32 %11, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @exit(i32 1)
unreachable
14: ; preds = %2
store i64 0, i64* @errno
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = call %struct.passwd* @getpwnam(i8* %16)
%18 = icmp eq %struct.passwd* %17, null
br i1 %18, label %19, label %33
19: ; preds = %14
%20 = load i64, i64* @errno
%21 = icmp eq i64 %20, 0
%22 = load i32, i32* @LOG_ERR
%23 = load i8*, i8** %15
br i1 %21, label %29, label %24
24: ; preds = %19
%25 = call i32 @strerror(i64 %20)
%26 = call i32 (i32, i8*, ...) @syslog(i32 %22, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %23, i32 %25)
%27 = load i32, i32* @EXIT_FAILURE
%28 = call i32 @exit(i32 %27)
unreachable
29: ; preds = %19
%30 = call i32 (i32, i8*, ...) @syslog(i32 %22, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %23)
%31 = load i32, i32* @EXIT_FAILURE
%32 = call i32 @exit(i32 %31)
unreachable
33: ; preds = %14
%34 = getelementptr inbounds %struct.passwd, %struct.passwd* %17, i64 0, i32 0
%35 = load i8*, i8** %34
%36 = call i32 @snprintf(i8* %6, i32 4096, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %35, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%37 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%38 = icmp eq i32* %37, null
br i1 %38, label %42, label %39
39: ; preds = %33
%40 = call i32* @fgets(i8* %7, i32 4096, i32* %37)
%41 = icmp eq i32* %40, null
br i1 %41, label %62, label %57
42: ; preds = %33
%43 = load i64, i64* @errno
%44 = load i64, i64* @ENOENT
%45 = icmp eq i64 %43, %44
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = load i32, i32* @LOG_INFO
%48 = load i8*, i8** %15
%49 = call i32 (i32, i8*, ...) @syslog(i32 %47, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0), i8* %48)
br label %64
50: ; preds = %42
%51 = load i32, i32* @LOG_ERR
%52 = load i8*, i8** %15
%53 = call i32 @strerror(i64 %43)
%54 = call i32 (i32, i8*, ...) @syslog(i32 %51, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i8* %52, i32 %53)
%55 = load i32, i32* @EXIT_FAILURE
%56 = call i32 @exit(i32 %55)
unreachable
57: ; preds = %39, %57
%58 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %7)
%59 = call i32 @memset(i8* %7, i32 0, i32 4096)
%60 = call i32* @fgets(i8* %7, i32 4096, i32* %37)
%61 = icmp eq i32* %60, null
br i1 %61, label %62, label %57
62: ; preds = %57, %39
%63 = call i32 @fclose(i32* %37)
br label %64
64: ; preds = %62, %46
%65 = call i32 (...) @closelog()
%66 = load i8*, i8** %15
%67 = call i64 @execl(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i8* %66, i32* null)
%68 = icmp slt i64 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %64
%70 = load i32, i32* @LOG_ERR
%71 = load i64, i64* @errno
%72 = call i32 @strerror(i64 %71)
%73 = call i32 (i32, i8*, ...) @syslog(i32 %70, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 %72)
%74 = load i32, i32* @EXIT_FAILURE
%75 = call i32 @exit(i32 %74)
unreachable
76: ; preds = %64
%77 = call i32 @exit(i32 0)
unreachable
}