#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 option {
  char *member_0;
  char member_3;
  int /*<<< orphan*/ *member_2;
  int /*<<< orphan*/ member_1;
};

/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ abort();
int /*<<< orphan*/ free(char *);
int getopt_long(int, char **, char *, struct option *, int /*<<< orphan*/ *);
int myuptime_count_connected_users();
char *myuptime_get_load();
char *myuptime_get_start_date();
char *myuptime_get_time();
char *myuptime_get_uptime(int);
int /*<<< orphan*/ no_argument;
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int pretty_flag = 0;
  int since_flag = 0;
  int c, nbr_user;
  char *pgr_name;
  char *now_time;
  char *uptime;
  char *load;
  char *since;
  struct option options[] = {{"pretty", no_argument, NULL, 'p'},
                             {"since", no_argument, NULL, 's'},
                             {0, 0, 0, 0}};
  pgr_name = argv[0];
  while ((c = getopt_long(argc, argv, "ps", options, NULL)) != -1) {
    switch (c) {
    case 'p':
      pretty_flag = 1;
      break;
    case 's':
      since_flag = 1;
      break;
    default:
      abort();
    }
  }
  if (since_flag) {
    since = myuptime_get_start_date();
    if (since == NULL) {
      perror(pgr_name);
      return EXIT_FAILURE;
    }
    printf("%s\n", since);
    free(since);
    return EXIT_SUCCESS;
  }
  uptime = myuptime_get_uptime(pretty_flag);
  if (uptime == NULL) {
    perror(pgr_name);
    return EXIT_FAILURE;
  }
  if (pretty_flag) {
    printf("%s\n", uptime);
    free(uptime);
    return EXIT_SUCCESS;
  }
  now_time = myuptime_get_time();
  if (now_time == NULL) {
    perror(pgr_name);
    return EXIT_FAILURE;
  }
  nbr_user = myuptime_count_connected_users();
  if (nbr_user == -1) {
    perror(pgr_name);
    return EXIT_FAILURE;
  }
  load = myuptime_get_load();
  if (load == NULL) {
    perror(pgr_name);
    return EXIT_FAILURE;
  }
  printf("%s ", now_time);
  printf("up %s, ", uptime);
  printf("%d user(s), ", nbr_user);
  printf("load average: %s\n", load);
  free(now_time);
  free(uptime);
  free(load);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xe1b(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0x2ded(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xa8(%rbp)
movq   $0x0,-0xa0(%rbp)
movl   $0x70,-0x98(%rbp)
add    $0x20,%rdi
lea    0xdec(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0x2db7(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x88(%rbp)
movq   $0x0,-0x80(%rbp)
movl   $0x73,-0x78(%rbp)
add    $0x20,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1090 <memset@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0xb0(%rbp),%rcx
lea    0xd9d(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1060 <getopt_long@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0xffffffff,%eax
je     12d5 <main+0x125>
mov    -0x1c(%rbp),%eax
mov    %eax,-0xb4(%rbp)
sub    $0x70,%eax
je     12b1 <main+0x101>
jmp    129d <main+0xed>
mov    -0xb4(%rbp),%eax
sub    $0x73,%eax
je     12bd <main+0x10d>
jmp    12c9 <main+0x119>
movl   $0x1,-0x14(%rbp)
jmp    12d0 <main+0x120>
movl   $0x1,-0x18(%rbp)
jmp    12d0 <main+0x120>
mov    $0x0,%al
call   1040 <abort@plt>
jmp    125b <main+0xab>
cmpl   $0x0,-0x18(%rbp)
je     133b <main+0x18b>
mov    $0x0,%al
call   1050 <myuptime_get_start_date@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    130f <main+0x15f>
mov    -0x28(%rbp),%rdi
call   10d0 <perror@plt>
mov    0x2cd3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    149e <main+0x2ee>
mov    -0x48(%rbp),%rsi
lea    0xd1d(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    0x2c9f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    149e <main+0x2ee>
mov    -0x14(%rbp),%edi
call   10b0 <myuptime_get_uptime@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    136c <main+0x1bc>
mov    -0x28(%rbp),%rdi
call   10d0 <perror@plt>
mov    0x2c76(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    149e <main+0x2ee>
cmpl   $0x0,-0x14(%rbp)
je     13a2 <main+0x1f2>
mov    -0x38(%rbp),%rsi
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    0x2c38(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    149e <main+0x2ee>
mov    $0x0,%al
call   10a0 <myuptime_get_time@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    13d2 <main+0x222>
mov    -0x28(%rbp),%rdi
call   10d0 <perror@plt>
mov    0x2c10(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    149e <main+0x2ee>
mov    $0x0,%al
call   1070 <myuptime_count_connected_users@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0xffffffff,-0x20(%rbp)
jne    1400 <main+0x250>
mov    -0x28(%rbp),%rdi
call   10d0 <perror@plt>
mov    0x2be2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    149e <main+0x2ee>
mov    $0x0,%al
call   10c0 <myuptime_get_load@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    1430 <main+0x280>
mov    -0x28(%rbp),%rdi
call   10d0 <perror@plt>
mov    0x2bb2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    149e <main+0x2ee>
mov    -0x30(%rbp),%rsi
lea    0xbd5(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xbc7(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xbbe(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x40(%rbp),%rsi
lea    0xbb9(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    0x2b37(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rsi,%rbx
mov    %edi,%r15d
lea    0xe35(%rip),%rax
mov    %rax,0x10(%rsp)
mov    0x2e09(%rip),%rax
mov    (%rax),%al
mov    %al,0x18(%rsp)
movq   $0x0,0x20(%rsp)
movl   $0x70,0x28(%rsp)
lea    0xe12(%rip),%rcx
mov    %rcx,0x30(%rsp)
mov    %al,0x38(%rsp)
movq   $0x0,0x40(%rsp)
movl   $0x73,0x48(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
mov    (%rsi),%rax
mov    %rax,0x8(%rsp)
xor    %ebp,%ebp
mov    $0x1,%r14b
lea    0xddd(%rip),%r12
lea    0x10(%rsp),%r13
mov    %ebp,%ecx
nopw   0x0(%rax,%rax,1)
mov    %ecx,%ebp
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
xor    %r8d,%r8d
call   1070 <getopt_long@plt>
mov    $0x1,%ecx
cmp    $0x70,%eax
je     1240 <main+0x90>
cmp    $0xffffffff,%eax
je     1273 <main+0xc3>
cmp    $0x73,%eax
jne    1374 <main+0x1c4>
xor    %r14d,%r14d
jmp    1235 <main+0x85>
test   $0x1,%r14b
je     132a <main+0x17a>
mov    %ebp,%edi
call   10b0 <myuptime_get_uptime@plt>
test   %rax,%rax
je     1361 <main+0x1b1>
mov    %rax,%rbx
test   %ebp,%ebp
jne    1339 <main+0x189>
xor    %eax,%eax
call   10a0 <myuptime_get_time@plt>
test   %rax,%rax
je     1361 <main+0x1b1>
mov    %rax,%r15
xor    %eax,%eax
call   1080 <myuptime_count_connected_users@plt>
cmp    $0xffffffff,%eax
je     1361 <main+0x1b1>
mov    %eax,%r12d
xor    %eax,%eax
call   10c0 <myuptime_get_load@plt>
test   %rax,%rax
je     1361 <main+0x1b1>
mov    %rax,%rbp
lea    0xd38(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xd2b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xd22(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xd1e(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
jmp    1344 <main+0x194>
xor    %eax,%eax
call   1050 <myuptime_get_start_date@plt>
test   %rax,%rax
je     1361 <main+0x1b1>
mov    %rax,%rbx
mov    %rbx,%rdi
call   1060 <puts@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x2c80(%rip),%rax
mov    (%rax),%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x8(%rsp),%rdi
call   10d0 <perror@plt>
mov    0x2c66(%rip),%rax
jmp    1350 <main+0x1a0>
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32*, i32 }
@.str = [7 x i8] c"pretty\00"
@no_argument = global i32 0
@.str.1 = [6 x i8] c"since\00"
@.str.2 = [3 x i8] c"ps\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.4 = [4 x i8] c"%s \00"
@.str.5 = [8 x i8] c"up %s, \00"
@.str.6 = [13 x i8] c"%d user(s), \00"
@.str.7 = [18 x i8] c"load average: %s\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 i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca [3 x %struct.option]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
%16 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %15, i64 0, i64 0
%17 = getelementptr inbounds %struct.option, %struct.option* %16, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds %struct.option, %struct.option* %16, i32 0, i32 1
%19 = load i32, i32* @no_argument
%20 = trunc i32 %19 to i8
store i8 %20, i8* %18
%21 = getelementptr inbounds %struct.option, %struct.option* %16, i32 0, i32 2
store i32* null, i32** %21
%22 = getelementptr inbounds %struct.option, %struct.option* %16, i32 0, i32 3
store i32 112, i32* %22
%23 = getelementptr inbounds %struct.option, %struct.option* %16, i64 1
%24 = getelementptr inbounds %struct.option, %struct.option* %23, i32 0, i32 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds %struct.option, %struct.option* %23, i32 0, i32 1
%26 = load i32, i32* @no_argument
%27 = trunc i32 %26 to i8
store i8 %27, i8* %25
%28 = getelementptr inbounds %struct.option, %struct.option* %23, i32 0, i32 2
store i32* null, i32** %28
%29 = getelementptr inbounds %struct.option, %struct.option* %23, i32 0, i32 3
store i32 115, i32* %29
%30 = getelementptr inbounds %struct.option, %struct.option* %23, i64 1
%31 = bitcast %struct.option* %30 to i8*
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 0
%34 = load i8*, i8** %33
store i8* %34, i8** %10
br label %35
35: ; preds = %47, %2
%36 = load i32, i32* %4
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %15, i64 0, i64 0
%39 = call i32 @getopt_long(i32 %36, i8** %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %struct.option* %38, i32* null)
store i32 %39, i32* %8
%40 = icmp ne i32 %39, -1
br i1 %40, label %41, label %48
41: ; preds = %35
%42 = load i32, i32* %8
switch i32 %42, label %45 [
i32 112, label %43
i32 115, label %44
]
43: ; preds = %41
store i32 1, i32* %6
br label %47
44: ; preds = %41
store i32 1, i32* %7
br label %47
45: ; preds = %41
%46 = call i32 (...) @abort()
unreachable
47: ; preds = %44, %43
br label %35
48: ; preds = %35
%49 = load i32, i32* %7
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %65
51: ; preds = %48
%52 = call i8* (...) @myuptime_get_start_date()
store i8* %52, i8** %14
%53 = load i8*, i8** %14
%54 = icmp eq i8* %53, null
br i1 %54, label %55, label %59
55: ; preds = %51
%56 = load i8*, i8** %10
%57 = call i32 @perror(i8* %56)
%58 = load i32, i32* @EXIT_FAILURE
store i32 %58, i32* %3
br label %123
59: ; preds = %51
%60 = load i8*, i8** %14
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %60)
%62 = load i8*, i8** %14
%63 = call i32 @free(i8* %62)
%64 = load i32, i32* @EXIT_SUCCESS
store i32 %64, i32* %3
br label %123
65: ; preds = %48
%66 = load i32, i32* %6
%67 = call i8* @myuptime_get_uptime(i32 %66)
store i8* %67, i8** %12
%68 = load i8*, i8** %12
%69 = icmp eq i8* %68, null
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load i8*, i8** %10
%72 = call i32 @perror(i8* %71)
%73 = load i32, i32* @EXIT_FAILURE
store i32 %73, i32* %3
br label %123
74: ; preds = %65
%75 = load i32, i32* %6
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %83
77: ; preds = %74
%78 = load i8*, i8** %12
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %78)
%80 = load i8*, i8** %12
%81 = call i32 @free(i8* %80)
%82 = load i32, i32* @EXIT_SUCCESS
store i32 %82, i32* %3
br label %123
83: ; preds = %74
%84 = call i8* (...) @myuptime_get_time()
store i8* %84, i8** %11
%85 = load i8*, i8** %11
%86 = icmp eq i8* %85, null
br i1 %86, label %87, label %91
87: ; preds = %83
%88 = load i8*, i8** %10
%89 = call i32 @perror(i8* %88)
%90 = load i32, i32* @EXIT_FAILURE
store i32 %90, i32* %3
br label %123
91: ; preds = %83
%92 = call i32 (...) @myuptime_count_connected_users()
store i32 %92, i32* %9
%93 = load i32, i32* %9
%94 = icmp eq i32 %93, -1
br i1 %94, label %95, label %99
95: ; preds = %91
%96 = load i8*, i8** %10
%97 = call i32 @perror(i8* %96)
%98 = load i32, i32* @EXIT_FAILURE
store i32 %98, i32* %3
br label %123
99: ; preds = %91
%100 = call i8* (...) @myuptime_get_load()
store i8* %100, i8** %13
%101 = load i8*, i8** %13
%102 = icmp eq i8* %101, null
br i1 %102, label %103, label %107
103: ; preds = %99
%104 = load i8*, i8** %10
%105 = call i32 @perror(i8* %104)
%106 = load i32, i32* @EXIT_FAILURE
store i32 %106, i32* %3
br label %123
107: ; preds = %99
%108 = load i8*, i8** %11
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %108)
%110 = load i8*, i8** %12
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %110)
%112 = load i32, i32* %9
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %112)
%114 = load i8*, i8** %13
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i8* %114)
%116 = load i8*, i8** %11
%117 = call i32 @free(i8* %116)
%118 = load i8*, i8** %12
%119 = call i32 @free(i8* %118)
%120 = load i8*, i8** %13
%121 = call i32 @free(i8* %120)
%122 = load i32, i32* @EXIT_SUCCESS
store i32 %122, i32* %3
br label %123
123: ; preds = %107, %103, %95, %87, %77, %70, %59, %55
%124 = load i32, i32* %3
ret i32 %124
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32*, i32 }
@.str = [7 x i8] c"pretty\00"
@no_argument = global i32 0
@.str.1 = [6 x i8] c"since\00"
@.str.2 = [3 x i8] c"ps\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
@.str.4 = [4 x i8] c"%s \00"
@.str.5 = [8 x i8] c"up %s, \00"
@.str.6 = [13 x i8] c"%d user(s), \00"
@.str.7 = [18 x i8] c"load average: %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [3 x %struct.option]
%4 = bitcast [3 x %struct.option]* %3 to i8*
%5 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 0
%6 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 0, i32 1
%8 = load i32, i32* @no_argument
%9 = trunc i32 %8 to i8
store i8 %9, i8* %7
%10 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 0, i32 2
store i32* null, i32** %10
%11 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 0, i32 3
store i32 112, i32* %11
%12 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 1, i32 1
store i8 %9, i8* %13
%14 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 1, i32 2
store i32* null, i32** %14
%15 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 1, i32 3
store i32 115, i32* %15
%16 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %3, i64 0, i64 2
%17 = bitcast %struct.option* %16 to i8*
%18 = load i8*, i8** %1
br label %19
19: ; preds = %22, %2
%20 = phi i1 [ true, %2 ], [ false, %22 ]
%21 = phi i32 [ 0, %2 ], [ %23, %22 ]
br label %22
22: ; preds = %19, %22
%23 = phi i32 [ 1, %22 ], [ %21, %19 ]
%24 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %struct.option* %5, i32* null)
switch i32 %24, label %25 [
i32 -1, label %27
i32 112, label %22
i32 115, label %19
]
25: ; preds = %22
%26 = call i32 (...) @abort()
unreachable
27: ; preds = %22
br i1 %20, label %36, label %28
28: ; preds = %27
%29 = call i8* (...) @myuptime_get_start_date()
%30 = icmp eq i8* %29, null
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @perror(i8* %18)
br label %69
33: ; preds = %28
%34 = call i32 @puts(i8* %29)
%35 = call i32 @free(i8* %29)
br label %69
36: ; preds = %27
%37 = call i8* @myuptime_get_uptime(i32 %23)
%38 = icmp eq i8* %37, null
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @perror(i8* %18)
br label %69
41: ; preds = %36
%42 = icmp eq i32 %23, 0
br i1 %42, label %46, label %43
43: ; preds = %41
%44 = call i32 @puts(i8* %37)
%45 = call i32 @free(i8* %37)
br label %69
46: ; preds = %41
%47 = call i8* (...) @myuptime_get_time()
%48 = icmp eq i8* %47, null
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @perror(i8* %18)
br label %69
51: ; preds = %46
%52 = call i32 (...) @myuptime_count_connected_users()
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 @perror(i8* %18)
br label %69
56: ; preds = %51
%57 = call i8* (...) @myuptime_get_load()
%58 = icmp eq i8* %57, null
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 @perror(i8* %18)
br label %69
61: ; preds = %56
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %47)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %37)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %52)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i8* %57)
%66 = call i32 @free(i8* %47)
%67 = call i32 @free(i8* %37)
%68 = call i32 @free(i8* %57)
br label %69
69: ; preds = %61, %59, %54, %49, %43, %39, %33, %31
%70 = phi i32* [ @EXIT_FAILURE, %31 ], [ @EXIT_SUCCESS, %33 ], [ @EXIT_FAILURE, %39 ], [ @EXIT_SUCCESS, %43 ], [ @EXIT_FAILURE, %49 ], [ @EXIT_FAILURE, %54 ], [ @EXIT_FAILURE, %59 ], [ @EXIT_SUCCESS, %61 ]
%71 = load i32, i32* %70
ret i32 %71
}