#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 sysinfo {
  int dummy;
};
struct statvfs {
  unsigned long f_frsize;
  unsigned long f_blocks;
  unsigned long f_bsize;
  unsigned long f_bfree;
};

/* Variables and functions */
int /*<<< orphan*/ execl(char *, char *, char *, char *, char *,
                         int /*<<< orphan*/ *);
int /*<<< orphan*/ execvp(char *, char **);
int /*<<< orphan*/ gethostname(char *, int);
char *gnu_get_libc_version();
int /*<<< orphan*/ iface();
int /*<<< orphan*/ information();
int /*<<< orphan*/ kernel(char *, int);
int /*<<< orphan*/ menu();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ statvfs(char *, struct statvfs *);
scalar_t__ strncmp(char *, char *, int);
int /*<<< orphan*/ stuff();
int /*<<< orphan*/ sysinfo(struct sysinfo *);
int main(int argc, char **argv) {
  char hostname[128];
  unsigned long hdd_size;
  unsigned long hdd_free;
  struct sysinfo info;
  sysinfo(&info);
  struct statvfs fsinfo;
  statvfs("/", &fsinfo);
  if (argv[1] == NULL) {
    menu();
  }
  if (argc > 1 && strncmp(argv[1], "--arp", 0x05) == 0) {
    printf("This is the routing table.\n");
    char *arg[] = {"cat", "/proc/net/arp", NULL};
    execvp(arg[0], arg);
  }
  if (argc > 1 && strncmp(argv[1], "--system", 0x05) == 0) {
    information();
    printf("GNU libc version: %s\n", gnu_get_libc_version());
    stuff();
  }
  if (argc > 1 && strncmp(argv[1], "--hostname", 0x05) == 0) {
    gethostname(hostname, sizeof hostname);
    printf("Hostname: %s\n", hostname);
  }
  if (argc > 1 && strncmp(argv[1], "--ip", 0x05) == 0) {
    printf("Printing the IP addresse(s) on the machine.\n");
    printf("-----------------------------------------------------\n\n\n");
    iface();
    printf("Printing the TCP table.\n");
    printf("-----------------------------------------------------\n\n\n");
    kernel("/proc/net/tcp", 2);
  }
  if (argc > 1 && strncmp(argv[1], "--disks", 0x05) == 0) {
    hdd_size = fsinfo.f_frsize * fsinfo.f_blocks;
    hdd_free = fsinfo.f_bsize * fsinfo.f_bfree;
    unsigned long capacity = hdd_size / 1000 / 1000 / 1000;
    unsigned long freesize = hdd_free / 1000 / 1000 / 1000;
    printf("The HDD size is %lu gigabytes, and has %lu gigabytes free.\n\n",
           capacity, freesize);
    execl("/bin/lsblk", "/bin/lsblk", "-d", "-S", "-n", NULL);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xa8(%rbp),%rdi
call   10d0 <sysinfo@plt>
lea    0xe04(%rip),%rdi
lea    -0xc8(%rbp),%rsi
call   10a0 <statvfs@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    121e <main+0x4e>
mov    $0x0,%al
call   1060 <menu@plt>
cmpl   $0x1,-0x8(%rbp)
jle    1296 <main+0xc6>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdcb(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1296 <main+0xc6>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    0x2ba0(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0x2b9a(%rip),%rax
mov    %rax,-0xd8(%rbp)
mov    0x2b94(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    -0xe0(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   10c0 <execvp@plt>
cmpl   $0x1,-0x8(%rbp)
jle    12e9 <main+0x119>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd87(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    12e9 <main+0x119>
mov    $0x0,%al
call   1050 <information@plt>
mov    $0x0,%al
call   10b0 <gnu_get_libc_version@plt>
mov    %rax,%rsi
lea    0xd64(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1090 <stuff@plt>
cmpl   $0x1,-0x8(%rbp)
jle    133c <main+0x16c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd53(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    133c <main+0x16c>
lea    -0x90(%rbp),%rdi
mov    $0x80,%esi
call   10e0 <gethostname@plt>
lea    -0x90(%rbp),%rsi
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jle    13b9 <main+0x1e9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd19(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    13b9 <main+0x1e9>
lea    0xd03(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd22(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1030 <iface@plt>
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd43(%rip),%rdi
mov    $0x2,%esi
call   1080 <kernel@plt>
cmpl   $0x1,-0x8(%rbp)
jle    14af <main+0x2df>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd2e(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    14af <main+0x2df>
mov    -0xc8(%rbp),%rax
imul   -0xc0(%rbp),%rax
ff
mov    %rax,-0x98(%rbp)
mov    -0xb8(%rbp),%rax
imul   -0xb0(%rbp),%rax
ff
mov    %rax,-0xa0(%rbp)
mov    -0x98(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0xe8(%rbp)
mov    -0xa0(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0xf0(%rbp)
mov    -0xe8(%rbp),%rsi
mov    -0xf0(%rbp),%rdx
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcb8(%rip),%rsi
lea    0xcbc(%rip),%rdx
lea    0xcb8(%rip),%rcx
lea    0xcb4(%rip),%r8
xor    %eax,%eax
mov    %eax,%r9d
mov    %rsi,%rdi
call   10f0 <execl@plt>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0xb8,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0x8(%rsp),%rdi
call   10e0 <sysinfo@plt>
lea    0xe01(%rip),%rdi
lea    0x10(%rsp),%rsi
call   10b0 <statvfs@plt>
cmpq   $0x0,0x8(%rbx)
je     121a <main+0x3a>
cmp    $0x2,%ebp
jge    122a <main+0x4a>
jmp    13e2 <main+0x202>
xor    %eax,%eax
call   1070 <menu@plt>
cmp    $0x2,%ebp
jl     13e2 <main+0x202>
mov    0x8(%rbx),%rdi
lea    0xdcd(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1279 <main+0x99>
lea    0xeef(%rip),%rdi
call   1050 <puts@plt>
mov    0x2bb9(%rip),%rax
mov    %rax,0x40(%rsp)
movaps 0x2b9d(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
lea    0xd99(%rip),%rdi
lea    0x30(%rsp),%rsi
call   10d0 <execvp@plt>
mov    0x8(%rbx),%rdi
lea    0xd96(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    12b9 <main+0xd9>
xor    %eax,%eax
call   1060 <information@plt>
xor    %eax,%eax
call   10c0 <gnu_get_libc_version@plt>
lea    0xd7b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10a0 <stuff@plt>
mov    0x8(%rbx),%rdi
lea    0xd75(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    12f6 <main+0x116>
lea    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x80,%esi
call   10f0 <gethostname@plt>
lea    0xd58(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x8(%rbx),%rdi
lea    0xd51(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1357 <main+0x177>
lea    0xda7(%rip),%rdi
call   1050 <puts@plt>
lea    0xddf(%rip),%rbp
mov    %rbp,%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1030 <iface@plt>
lea    0xdb1(%rip),%rdi
call   1050 <puts@plt>
mov    %rbp,%rdi
call   1050 <puts@plt>
lea    0xd0a(%rip),%rdi
mov    $0x2,%esi
call   1090 <kernel@plt>
mov    0x8(%rbx),%rdi
lea    0xd03(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    13e2 <main+0x202>
mov    0x18(%rsp),%rax
imul   0x10(%rsp),%rax
mov    0x28(%rsp),%rcx
imul   0x20(%rsp),%rcx
shr    $0x9,%rax
movabs $0x44b82fa09b5a53,%rdi
mul    %rdi
mov    %rdx,%rsi
shr    $0xb,%rsi
shr    $0x9,%rcx
mov    %rcx,%rax
mul    %rdi
shr    $0xb,%rdx
lea    0xcb9(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xce8(%rip),%rdi
lea    0xcec(%rip),%rdx
lea    0xce8(%rip),%rcx
lea    0xce4(%rip),%r8
mov    %rdi,%rsi
xor    %r9d,%r9d
call   1100 <execl@plt>
xor    %eax,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.sysinfo = type { i32 }
%struct.statvfs = type { i64, i64, i64, i64 }
@.str = [2 x i8] c"/\00"
@.str.1 = [6 x i8] c"--arp\00"
@.str.2 = [28 x i8] c"This is the routing table.\0A\00"
@.str.3 = [4 x i8] c"cat\00"
@.str.4 = [14 x i8] c"/proc/net/arp\00"
@__const.main.arg = [3 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i32 0, i32 0), i8* null]
@.str.5 = [9 x i8] c"--system\00"
@.str.6 = [22 x i8] c"GNU libc version: %s\0A\00"
@.str.7 = [11 x i8] c"--hostname\00"
@.str.8 = [14 x i8] c"Hostname: %s\0A\00"
@.str.9 = [5 x i8] c"--ip\00"
@.str.10 = [45 x i8] c"Printing the IP addresse(s) on the machine.\0A\00"
@.str.11 = [57 x i8] c"-----------------------------------------------------\0A\0A\0A\00"
@.str.12 = [25 x i8] c"Printing the TCP table.\0A\00"
@.str.13 = [14 x i8] c"/proc/net/tcp\00"
@.str.14 = [8 x i8] c"--disks\00"
@.str.15 = [61 x i8] c"The HDD size is %lu gigabytes, and has %lu gigabytes free.\0A\0A\00"
@.str.16 = [11 x i8] c"/bin/lsblk\00"
@.str.17 = [3 x i8] c"-d\00"
@.str.18 = [3 x i8] c"-S\00"
@.str.19 = [3 x i8] c"-n\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [128 x i8]
%7 = alloca i64
%8 = alloca i64
%9 = alloca %struct.sysinfo
%10 = alloca %struct.statvfs
%11 = alloca [3 x i8*]
%12 = alloca i64
%13 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = call i32 @sysinfo(%struct.sysinfo* %9)
%15 = call i32 @statvfs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %struct.statvfs* %10)
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = icmp eq i8* %18, null
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (...) @menu()
br label %22
22: ; preds = %20, %2
%23 = load i32, i32* %4
%24 = icmp sgt i32 %23, 1
br i1 %24, label %25, label %38
25: ; preds = %22
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i64 @strncmp(i8* %28, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %25
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%33 = bitcast [3 x i8*]* %11 to i8*
%34 = getelementptr inbounds [3 x i8*], [3 x i8*]* %11, i64 0, i64 0
%35 = load i8*, i8** %34
%36 = getelementptr inbounds [3 x i8*], [3 x i8*]* %11, i64 0, i64 0
%37 = call i32 @execvp(i8* %35, i8** %36)
br label %38
38: ; preds = %31, %25, %22
%39 = load i32, i32* %4
%40 = icmp sgt i32 %39, 1
br i1 %40, label %41, label %52
41: ; preds = %38
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 1
%44 = load i8*, i8** %43
%45 = call i64 @strncmp(i8* %44, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 5)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %41
%48 = call i32 (...) @information()
%49 = call i8* (...) @gnu_get_libc_version()
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %49)
%51 = call i32 (...) @stuff()
br label %52
52: ; preds = %47, %41, %38
%53 = load i32, i32* %4
%54 = icmp sgt i32 %53, 1
br i1 %54, label %55, label %66
55: ; preds = %52
%56 = load i8**, i8*** %5
%57 = getelementptr inbounds i8*, i8** %56, i64 1
%58 = load i8*, i8** %57
%59 = call i64 @strncmp(i8* %58, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 5)
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %55
%62 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%63 = call i32 @gethostname(i8* %62, i32 128)
%64 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %64)
br label %66
66: ; preds = %61, %55, %52
%67 = load i32, i32* %4
%68 = icmp sgt i32 %67, 1
br i1 %68, label %69, label %82
69: ; preds = %66
%70 = load i8**, i8*** %5
%71 = getelementptr inbounds i8*, i8** %70, i64 1
%72 = load i8*, i8** %71
%73 = call i64 @strncmp(i8* %72, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 5)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %82
75: ; preds = %69
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.11, i64 0, i64 0))
%78 = call i32 (...) @iface()
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.11, i64 0, i64 0))
%81 = call i32 @kernel(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 2)
br label %82
82: ; preds = %75, %69, %66
%83 = load i32, i32* %4
%84 = icmp sgt i32 %83, 1
br i1 %84, label %85, label %114
85: ; preds = %82
%86 = load i8**, i8*** %5
%87 = getelementptr inbounds i8*, i8** %86, i64 1
%88 = load i8*, i8** %87
%89 = call i64 @strncmp(i8* %88, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i32 5)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %114
91: ; preds = %85
%92 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %10, i32 0, i32 0
%93 = load i64, i64* %92
%94 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %10, i32 0, i32 1
%95 = load i64, i64* %94
%96 = mul i64 %93, %95
store i64 %96, i64* %7
%97 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %10, i32 0, i32 2
%98 = load i64, i64* %97
%99 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %10, i32 0, i32 3
%100 = load i64, i64* %99
%101 = mul i64 %98, %100
store i64 %101, i64* %8
%102 = load i64, i64* %7
%103 = udiv i64 %102, 1000
%104 = udiv i64 %103, 1000
%105 = udiv i64 %104, 1000
store i64 %105, i64* %12
%106 = load i64, i64* %8
%107 = udiv i64 %106, 1000
%108 = udiv i64 %107, 1000
%109 = udiv i64 %108, 1000
store i64 %109, i64* %13
%110 = load i64, i64* %12
%111 = load i64, i64* %13
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.15, i64 0, i64 0), i64 %110, i64 %111)
%113 = call i32 @execl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i32* null)
br label %114
114: ; preds = %91, %85, %82
ret i32 0
}

LLVM IR (-O2):
%struct.sysinfo = type { i32 }
%struct.statvfs = type { i64, i64, i64, i64 }
@.str = [2 x i8] c"/\00"
@.str.1 = [6 x i8] c"--arp\00"
@.str.3 = [4 x i8] c"cat\00"
@.str.4 = [14 x i8] c"/proc/net/arp\00"
@__const.main.arg = [3 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i32 0, i32 0), i8* null]
@.str.5 = [9 x i8] c"--system\00"
@.str.6 = [22 x i8] c"GNU libc version: %s\0A\00"
@.str.7 = [11 x i8] c"--hostname\00"
@.str.8 = [14 x i8] c"Hostname: %s\0A\00"
@.str.9 = [5 x i8] c"--ip\00"
@.str.13 = [14 x i8] c"/proc/net/tcp\00"
@.str.14 = [8 x i8] c"--disks\00"
@.str.15 = [61 x i8] c"The HDD size is %lu gigabytes, and has %lu gigabytes free.\0A\0A\00"
@.str.16 = [11 x i8] c"/bin/lsblk\00"
@.str.17 = [3 x i8] c"-d\00"
@.str.18 = [3 x i8] c"-S\00"
@.str.19 = [3 x i8] c"-n\00"
@str = [44 x i8] c"Printing the IP addresse(s) on the machine.\00"
@str.21 = [24 x i8] c"Printing the TCP table.\00"
@str.22 = [56 x i8] c"-----------------------------------------------------\0A\0A\00"
@str.23 = [27 x i8] c"This is the routing table.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [128 x i8]
%4 = alloca %struct.sysinfo
%5 = alloca %struct.statvfs
%6 = alloca [3 x i8*]
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%8 = bitcast %struct.sysinfo* %4 to i8*
%9 = call i32 @sysinfo(%struct.sysinfo* %4)
%10 = bitcast %struct.statvfs* %5 to i8*
%11 = call i32 @statvfs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %struct.statvfs* %5)
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = icmp eq i8* %13, null
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 (...) @menu()
br label %17
17: ; preds = %15, %2
%18 = icmp sgt i32 %0, 1
br i1 %18, label %19, label %74
19: ; preds = %17
%20 = load i8*, i8** %12
%21 = call i64 @strncmp(i8* %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.23, i64 0, i64 0))
%25 = bitcast [3 x i8*]* %6 to i8*
%26 = getelementptr inbounds [3 x i8*], [3 x i8*]* %6, i64 0, i64 0
%27 = call i32 @execvp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %26)
br label %28
28: ; preds = %19, %23
%29 = load i8*, i8** %12
%30 = call i64 @strncmp(i8* %29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 5)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %28
%33 = call i32 (...) @information()
%34 = call i8* (...) @gnu_get_libc_version()
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %34)
%36 = call i32 (...) @stuff()
br label %37
37: ; preds = %28, %32
%38 = load i8*, i8** %12
%39 = call i64 @strncmp(i8* %38, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 5)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = call i32 @gethostname(i8* %7, i32 128)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %7)
br label %44
44: ; preds = %37, %41
%45 = load i8*, i8** %12
%46 = call i64 @strncmp(i8* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 5)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %55
48: ; preds = %44
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.22, i64 0, i64 0))
%51 = call i32 (...) @iface()
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.21, i64 0, i64 0))
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.22, i64 0, i64 0))
%54 = call i32 @kernel(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 2)
br label %55
55: ; preds = %44, %48
%56 = load i8*, i8** %12
%57 = call i64 @strncmp(i8* %56, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i32 5)
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %74
59: ; preds = %55
%60 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %5, i64 0, i32 0
%61 = load i64, i64* %60
%62 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %5, i64 0, i32 1
%63 = load i64, i64* %62
%64 = mul i64 %63, %61
%65 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %5, i64 0, i32 2
%66 = load i64, i64* %65
%67 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %5, i64 0, i32 3
%68 = load i64, i64* %67
%69 = mul i64 %68, %66
%70 = udiv i64 %64, 1000000000
%71 = udiv i64 %69, 1000000000
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.15, i64 0, i64 0), i64 %70, i64 %71)
%73 = call i32 @execl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i32* null)
br label %74
74: ; preds = %17, %59, %55
ret i32 0
}