#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 statvfs {
  char *f_bsize;
  char *f_frsize;
  char *f_blocks;
  char *f_bfree;
  char *f_bavail;
  char *f_files;
  char *f_ffree;
  char *f_favail;
  char *f_fsid;
  char *f_namemax;
  int f_flag;
};

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int EXIT_SUCCESS;
int ST_NOSUID;
int ST_RDONLY;
int errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
char *malloc(size_t);
int /*<<< orphan*/ printf(char *, char *, char *);
int statvfs(char *, struct statvfs *);
int /*<<< orphan*/ stdout;
char *strerror(int);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, size_t);
int main(int argc, char *argv[]) {
  char *pathname = NULL;
  size_t len = 0;
  int my_err = 0;
  errno = 0;
  struct statvfs device;
  if (argc != 2) {
    fprintf(stdout, "Usage: %s 'pathname'\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  len = strlen(argv[1]) + 1;
  pathname = malloc(len * sizeof(char));
  strncpy(pathname, argv[1], len);
  if (statvfs(pathname, &device) == -1) {
    my_err = errno;
    fprintf(stdout, "Err.%d statvfs(); %s\n", my_err, strerror(errno));
    exit(EXIT_FAILURE);
  }
  printf("%31s: %s\n", "file system", pathname);
  printf("%31s: %lu (byte)\n", "fs block size", device.f_bsize);
  printf("%31s: %lu (byte)\n", "fundamental fs block size", device.f_frsize);
  printf("%31s: %lu\n", "total number of blocks", device.f_blocks);
  printf("%31s: %lu\n", "total number of free blocks", device.f_bfree);
  printf("%31s: %lu\n", "number of free blocks available", device.f_bavail);
  printf("%31s: %lu\n", "total number of i-nodes", device.f_files);
  printf("%31s: %lu\n", "total number of free i-nodes", device.f_ffree);
  printf("%31s: %lu\n", "number of i-nodes available", device.f_favail);
  printf("%31s: %lu\n", "File System ID", device.f_fsid);
  printf("%31s: %lu\n", "Maximum length of filenames", device.f_namemax);
  printf("%31s: %s\n", "flags (Read only)",
         (device.f_flag & ST_RDONLY) == ST_RDONLY ? "yes" : "no");
  printf("%31s: %s\n", "flags (No Suid)",
         (device.f_flag & ST_NOSUID) == ST_NOSUID ? "yes" : "no");
  free(pathname);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    0x2e09(%rip),%rax
movl   $0x0,(%rax)
cmpl   $0x2,-0x8(%rbp)
je     1203 <main+0x73>
mov    0x2de2(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe12(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <strlen@plt>
add    $0x1,%eax
cltq
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
shl    $0x0,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x20(%rbp),%rdx
call   1040 <strncpy@plt>
mov    -0x18(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1090 <statvfs@plt>
cmp    $0xffffffff,%eax
jne    12b2 <main+0x122>
mov    0x2d74(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2d58(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x88(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    0x2d50(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x88(%rbp),%edi
mov    -0x84(%rbp),%edx
mov    %rax,%rcx
lea    0xd79(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d1d(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    -0x18(%rbp),%rdx
lea    0xd6f(%rip),%rdi
lea    0xd72(%rip),%rsi
call   1060 <printf@plt>
mov    -0x80(%rbp),%rdx
lea    0xd6e(%rip),%rdi
lea    0xd85(%rip),%rsi
call   1060 <printf@plt>
mov    -0x78(%rbp),%rdx
lea    0xd57(%rip),%rdi
lea    0xd62(%rip),%rsi
call   1060 <printf@plt>
mov    -0x70(%rbp),%rdx
lea    0xd6c(%rip),%rdi
lea    0xd70(%rip),%rsi
call   1060 <printf@plt>
mov    -0x68(%rbp),%rdx
lea    0xd55(%rip),%rdi
lea    0xd70(%rip),%rsi
call   1060 <printf@plt>
mov    -0x60(%rbp),%rdx
lea    0xd3e(%rip),%rdi
lea    0xd75(%rip),%rsi
call   1060 <printf@plt>
mov    -0x58(%rbp),%rdx
lea    0xd27(%rip),%rdi
lea    0xd7e(%rip),%rsi
call   1060 <printf@plt>
mov    -0x50(%rbp),%rdx
lea    0xd10(%rip),%rdi
lea    0xd7f(%rip),%rsi
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdx
lea    0xcf9(%rip),%rdi
lea    0xd85(%rip),%rsi
call   1060 <printf@plt>
mov    -0x40(%rbp),%rdx
lea    0xce2(%rip),%rdi
lea    0xd8a(%rip),%rsi
call   1060 <printf@plt>
mov    -0x38(%rbp),%rdx
lea    0xccb(%rip),%rdi
lea    0xd82(%rip),%rsi
call   1060 <printf@plt>
mov    -0x30(%rbp),%ecx
mov    0x2c1f(%rip),%rax
and    (%rax),%ecx
mov    0x2c16(%rip),%rax
mov    (%rax),%esi
lea    0xd93(%rip),%rdx
lea    0xd88(%rip),%rax
cmp    %esi,%ecx
cmove  %rax,%rdx
lea    0xc4d(%rip),%rdi
lea    0xd62(%rip),%rsi
call   1060 <printf@plt>
mov    -0x30(%rbp),%ecx
mov    0x2bf3(%rip),%rax
and    (%rax),%ecx
mov    0x2bea(%rip),%rax
mov    (%rax),%esi
lea    0xd57(%rip),%rdx
lea    0xd4c(%rip),%rax
cmp    %esi,%ecx
cmove  %rax,%rdx
lea    0xc11(%rip),%rdi
lea    0xd3f(%rip),%rsi
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    0x2b81(%rip),%rax
mov    (%rax),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x60,%rsp
mov    %rsi,%r14
mov    0x2e2a(%rip),%rbp
movl   $0x0,0x0(%rbp)
cmp    $0x2,%edi
jne    1356 <main+0x1c6>
mov    0x8(%r14),%rdi
call   1050 <strlen@plt>
add    $0x1,%eax
movslq %eax,%rbx
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,%r15
mov    0x8(%r14),%rsi
mov    %rax,%rdi
mov    %rbx,%rdx
call   1040 <strncpy@plt>
lea    0x8(%rsp),%rsi
mov    %r15,%rdi
call   1090 <statvfs@plt>
cmp    $0xffffffff,%eax
je     1372 <main+0x1e2>
lea    0xe30(%rip),%r14
lea    0xe33(%rip),%rsi
mov    %r14,%rdi
mov    %r15,%rdx
call   1060 <printf@plt>
mov    0x8(%rsp),%rdx
lea    0xe28(%rip),%rbx
lea    0xe3f(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x10(%rsp),%rdx
lea    0xe1f(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x18(%rsp),%rdx
lea    0xe25(%rip),%rbx
lea    0xe29(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x20(%rsp),%rdx
lea    0xe2c(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x28(%rsp),%rdx
lea    0xe34(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x30(%rsp),%rdx
lea    0xe40(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x38(%rsp),%rdx
lea    0xe44(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x40(%rsp),%rdx
lea    0xe4d(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x48(%rsp),%rdx
lea    0xe55(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x50(%rsp),%rdx
lea    0xe50(%rip),%rsi
mov    %rbx,%rdi
call   1060 <printf@plt>
mov    0x58(%rsp),%ebp
mov    0x2ce9(%rip),%rax
not    %ebp
mov    (%rax),%eax
and    %ebp,%eax
lea    0xe5e(%rip),%r12
lea    0xe5b(%rip),%rbx
mov    %rbx,%rdx
cmove  %r12,%rdx
lea    0xe37(%rip),%rsi
mov    %r14,%rdi
call   1060 <printf@plt>
mov    0x2cc8(%rip),%rax
and    (%rax),%ebp
cmove  %r12,%rbx
lea    0xe34(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1060 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x2c71(%rip),%rax
mov    (%rax),%eax
add    $0x60,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c63(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xc97(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    139a <main+0x20a>
mov    0x0(%rbp),%ebx
mov    0x2c44(%rip),%rax
mov    (%rax),%ebp
mov    %ebx,%edi
call   10b0 <strerror@plt>
lea    0xc8a(%rip),%rsi
mov    %ebp,%edi
mov    %ebx,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2c27(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
%struct.statvfs = type { i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i32 }
@errno = global i32 0
@stdout = global i32 0
@.str = [22 x i8] c"Usage: %s 'pathname'\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [22 x i8] c"Err.%d statvfs(); %s\0A\00"
@.str.2 = [10 x i8] c"%31s: %s\0A\00"
@.str.3 = [12 x i8] c"file system\00"
@.str.4 = [18 x i8] c"%31s: %lu (byte)\0A\00"
@.str.5 = [14 x i8] c"fs block size\00"
@.str.6 = [26 x i8] c"fundamental fs block size\00"
@.str.7 = [11 x i8] c"%31s: %lu\0A\00"
@.str.8 = [23 x i8] c"total number of blocks\00"
@.str.9 = [28 x i8] c"total number of free blocks\00"
@.str.10 = [32 x i8] c"number of free blocks available\00"
@.str.11 = [24 x i8] c"total number of i-nodes\00"
@.str.12 = [29 x i8] c"total number of free i-nodes\00"
@.str.13 = [28 x i8] c"number of i-nodes available\00"
@.str.14 = [15 x i8] c"File System ID\00"
@.str.15 = [28 x i8] c"Maximum length of filenames\00"
@.str.16 = [18 x i8] c"flags (Read only)\00"
@ST_RDONLY = global i32 0
@.str.17 = [4 x i8] c"yes\00"
@.str.18 = [3 x i8] c"no\00"
@.str.19 = [16 x i8] c"flags (No Suid)\00"
@ST_NOSUID = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca %struct.statvfs
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i64 0, i64* %7
store i32 0, i32* %8
store i32 0, i32* @errno
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %20
12: ; preds = %2
%13 = load i32, i32* @stdout
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = load i32, i32* @EXIT_FAILURE
%19 = call i32 @exit(i32 %18)
unreachable
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @strlen(i8* %23)
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
store i64 %26, i64* %7
%27 = load i64, i64* %7
%28 = mul i64 %27, 1
%29 = call i8* @malloc(i64 %28)
store i8* %29, i8** %6
%30 = load i8*, i8** %6
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = load i64, i64* %7
%35 = call i32 @strncpy(i8* %30, i8* %33, i64 %34)
%36 = load i8*, i8** %6
%37 = call i32 @statvfs(i8* %36, %struct.statvfs* %9)
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %48
39: ; preds = %20
%40 = load i32, i32* @errno
store i32 %40, i32* %8
%41 = load i32, i32* @stdout
%42 = load i32, i32* %8
%43 = load i32, i32* @errno
%44 = call i8* @strerror(i32 %43)
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %42, i8* %44)
%46 = load i32, i32* @EXIT_FAILURE
%47 = call i32 @exit(i32 %46)
unreachable
48: ; preds = %20
%49 = load i8*, i8** %6
%50 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %49)
%51 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 0
%52 = load i8*, i8** %51
%53 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* %52)
%54 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 1
%55 = load i8*, i8** %54
%56 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %55)
%57 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 2
%58 = load i8*, i8** %57
%59 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* %58)
%60 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 3
%61 = load i8*, i8** %60
%62 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* %61)
%63 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 4
%64 = load i8*, i8** %63
%65 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 5
%67 = load i8*, i8** %66
%68 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i8* %67)
%69 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 6
%70 = load i8*, i8** %69
%71 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i8* %70)
%72 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 7
%73 = load i8*, i8** %72
%74 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i8* %73)
%75 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 8
%76 = load i8*, i8** %75
%77 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i8* %76)
%78 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 9
%79 = load i8*, i8** %78
%80 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i8* %79)
%81 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 10
%82 = load i32, i32* %81
%83 = load i32, i32* @ST_RDONLY
%84 = and i32 %82, %83
%85 = load i32, i32* @ST_RDONLY
%86 = icmp eq i32 %84, %85
%87 = zext i1 %86 to i64
%88 = select i1 %86, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0)
%89 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i8* %88)
%90 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %9, i32 0, i32 10
%91 = load i32, i32* %90
%92 = load i32, i32* @ST_NOSUID
%93 = and i32 %91, %92
%94 = load i32, i32* @ST_NOSUID
%95 = icmp eq i32 %93, %94
%96 = zext i1 %95 to i64
%97 = select i1 %95, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0)
%98 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8* %97)
%99 = load i8*, i8** %6
%100 = call i32 @free(i8* %99)
%101 = load i32, i32* @EXIT_SUCCESS
ret i32 %101
}

LLVM IR (-O2):
%struct.statvfs = type { i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i32 }
@errno = global i32 0
@stdout = global i32 0
@.str = [22 x i8] c"Usage: %s 'pathname'\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [22 x i8] c"Err.%d statvfs(); %s\0A\00"
@.str.2 = [10 x i8] c"%31s: %s\0A\00"
@.str.3 = [12 x i8] c"file system\00"
@.str.4 = [18 x i8] c"%31s: %lu (byte)\0A\00"
@.str.5 = [14 x i8] c"fs block size\00"
@.str.6 = [26 x i8] c"fundamental fs block size\00"
@.str.7 = [11 x i8] c"%31s: %lu\0A\00"
@.str.8 = [23 x i8] c"total number of blocks\00"
@.str.9 = [28 x i8] c"total number of free blocks\00"
@.str.10 = [32 x i8] c"number of free blocks available\00"
@.str.11 = [24 x i8] c"total number of i-nodes\00"
@.str.12 = [29 x i8] c"total number of free i-nodes\00"
@.str.13 = [28 x i8] c"number of i-nodes available\00"
@.str.14 = [15 x i8] c"File System ID\00"
@.str.15 = [28 x i8] c"Maximum length of filenames\00"
@.str.16 = [18 x i8] c"flags (Read only)\00"
@ST_RDONLY = global i32 0
@.str.17 = [4 x i8] c"yes\00"
@.str.18 = [3 x i8] c"no\00"
@.str.19 = [16 x i8] c"flags (No Suid)\00"
@ST_NOSUID = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.statvfs
store i32 0, i32* @errno
%4 = bitcast %struct.statvfs* %3 to i8*
%5 = icmp eq i32 %0, 2
br i1 %5, label %12, label %6
6: ; preds = %2
%7 = load i32, i32* @stdout
%8 = load i8*, i8** %1
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = load i32, i32* @EXIT_FAILURE
%11 = tail call i32 @exit(i32 %10)
unreachable
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32 @strlen(i8* %14)
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = tail call i8* @malloc(i64 %17)
%19 = load i8*, i8** %13
%20 = tail call i32 @strncpy(i8* %18, i8* %19, i64 %17)
%21 = call i32 @statvfs(i8* %18, %struct.statvfs* %3)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %30
23: ; preds = %12
%24 = load i32, i32* @errno
%25 = load i32, i32* @stdout
%26 = tail call i8* @strerror(i32 %24)
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %24, i8* %26)
%28 = load i32, i32* @EXIT_FAILURE
%29 = tail call i32 @exit(i32 %28)
unreachable
30: ; preds = %12
%31 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%32 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 0
%33 = load i8*, i8** %32
%34 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 1
%36 = load i8*, i8** %35
%37 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %36)
%38 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 2
%39 = load i8*, i8** %38
%40 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* %39)
%41 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 3
%42 = load i8*, i8** %41
%43 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* %42)
%44 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 4
%45 = load i8*, i8** %44
%46 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0), i8* %45)
%47 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 5
%48 = load i8*, i8** %47
%49 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i8* %48)
%50 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 6
%51 = load i8*, i8** %50
%52 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i8* %51)
%53 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 7
%54 = load i8*, i8** %53
%55 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i8* %54)
%56 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 8
%57 = load i8*, i8** %56
%58 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i8* %57)
%59 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 9
%60 = load i8*, i8** %59
%61 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i8* %60)
%62 = getelementptr inbounds %struct.statvfs, %struct.statvfs* %3, i64 0, i32 10
%63 = load i32, i32* %62
%64 = load i32, i32* @ST_RDONLY
%65 = and i32 %64, %63
%66 = icmp eq i32 %65, %64
%67 = select i1 %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0)
%68 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i8* %67)
%69 = load i32, i32* @ST_NOSUID
%70 = and i32 %69, %63
%71 = icmp eq i32 %70, %69
%72 = select i1 %71, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0)
%73 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8* %72)
%74 = tail call i32 @free(i8* %18)
%75 = load i32, i32* @EXIT_SUCCESS
ret i32 %75
}