#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 stat {
  int st_mode;
  int /*<<< orphan*/ st_mtime;
  int /*<<< orphan*/ st_atime;
  int /*<<< orphan*/ st_ctime;
  scalar_t__ st_blocks;
  scalar_t__ st_size;
  scalar_t__ st_blksize;
  scalar_t__ st_gid;
  scalar_t__ st_uid;
  scalar_t__ st_nlink;
  scalar_t__ st_ino;
};

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ O_RDONLY;
#define S_IFBLK 134
#define S_IFCHR 133
#define S_IFDIR 132
#define S_IFIFO 131
#define S_IFLNK 130
int S_IFMT;
#define S_IFREG 129
#define S_IFSOCK 128
char *ctime(int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int fstat(int, struct stat *);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  struct stat sb;
  int fd = 0;
  if (argc != 2) {
    fprintf(stderr, "Usage: %s <pathname>\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  fd = open(argv[1], O_RDONLY);
  if (fstat(fd, &sb) == -1) {
    perror("stat");
    exit(EXIT_FAILURE);
  }
  printf("File type:                ");
  switch (sb.st_mode & S_IFMT) {
  case S_IFBLK:
    printf("block device\n");
    break;
  case S_IFCHR:
    printf("character device\n");
    break;
  case S_IFDIR:
    printf("directory\n");
    break;
  case S_IFIFO:
    printf("FIFO/pipe\n");
    break;
  case S_IFLNK:
    printf("symlink\n");
    break;
  case S_IFREG:
    printf("regular file\n");
    break;
  case S_IFSOCK:
    printf("socket\n");
    break;
  default:
    printf("unknown?\n");
    break;
  }
  printf("I-node number:            %ld\n", (long)sb.st_ino);
  printf("Mode:                     %lo (octal)\n", (unsigned long)sb.st_mode);
  printf("Link count:               %ld\n", (long)sb.st_nlink);
  printf("Ownership:                UID=%ld   GID=%ld\n", (long)sb.st_uid,
         (long)sb.st_gid);
  printf("Preferred I/O block size: %ld bytes\n", (long)sb.st_blksize);
  printf("File size:                %lld bytes\n", (long long)sb.st_size);
  printf("Blocks allocated:         %lld\n", (long long)sb.st_blocks);
  printf("Last status change:       %s", ctime(&sb.st_ctime));
  printf("Last file access:         %s", ctime(&sb.st_atime));
  printf("Last file modification:   %s", ctime(&sb.st_mtime));
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x5c(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11c1 <main+0x51>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe6e(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e0e(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2e18(%rip),%rax
mov    (%rax),%esi
call   1060 <open@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%edi
lea    -0x58(%rbp),%rsi
call   1090 <fstat@plt>
cmp    $0xffffffff,%eax
jne    1209 <main+0x99>
lea    0xe3c(%rip),%rdi
call   1070 <perror@plt>
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
lea    0xe27(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x58(%rbp),%eax
mov    0x2db7(%rip),%rcx
mov    (%rcx),%ecx
and    %ecx,%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x68(%rbp)
sub    $0x6,%eax
ja     12d0 <main+0x160>
mov    -0x68(%rbp),%rax
lea    0xdbe(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12de <main+0x16e>
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12de <main+0x16e>
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12de <main+0x16e>
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12de <main+0x16e>
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12de <main+0x16e>
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12de <main+0x16e>
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12de <main+0x16e>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x58(%rbp),%rsi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%rsi
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x48(%rbp),%rsi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x58(%rbp),%rdi
add    $0xc,%rdi
call   1030 <ctime@plt>
mov    %rax,%rsi
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x58(%rbp),%rdi
add    $0x8,%rdi
call   1030 <ctime@plt>
mov    %rax,%rsi
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x58(%rbp),%rdi
add    $0x4,%rdi
call   1030 <ctime@plt>
mov    %rax,%rsi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2bff(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
cmp    $0x2,%edi
jne    11bb <main+0x3b>
mov    0x8(%rsi),%rdi
mov    0x2e53(%rip),%rax
mov    (%rax),%esi
call   1070 <open@plt>
lea    0x8(%rsp),%rsi
mov    %eax,%edi
call   10a0 <fstat@plt>
cmp    $0xffffffff,%eax
jne    11e1 <main+0x61>
lea    0xe62(%rip),%rdi
call   1080 <perror@plt>
jmp    11d3 <main+0x53>
mov    0x2e0e(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xe32(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2dee(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
lea    0xe33(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movslq 0x8(%rsp),%rbx
mov    0x2ddd(%rip),%rax
mov    (%rax),%eax
and    %ebx,%eax
add    $0xffffff80,%eax
cmp    $0x6,%eax
ja     1219 <main+0x99>
cltq
lea    0xfd4(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1220 <main+0xa0>
lea    0xfb8(%rip),%rdi
call   1030 <puts@plt>
mov    0x48(%rsp),%rsi
lea    0xe05(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe16(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rsp),%rsi
lea    0xe27(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%rdx
mov    0x38(%rsp),%rsi
lea    0xe2e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%rsi
lea    0xe48(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%rsi
lea    0xe5a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%rsi
lea    0xe6d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rdi
call   1040 <ctime@plt>
lea    0xe75(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rdi
call   1040 <ctime@plt>
lea    0xe77(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rdi
call   1040 <ctime@plt>
lea    0xe79(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cbb(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.stat = type { i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64 }
@stderr = global i32 0
@.str = [22 x i8] c"Usage: %s <pathname>\0A\00"
@EXIT_FAILURE = global i32 0
@O_RDONLY = global i32 0
@.str.1 = [5 x i8] c"stat\00"
@.str.2 = [27 x i8] c"File type: \00"
@S_IFMT = global i32 0
@.str.3 = [14 x i8] c"block device\0A\00"
@.str.4 = [18 x i8] c"character device\0A\00"
@.str.5 = [11 x i8] c"directory\0A\00"
@.str.6 = [11 x i8] c"FIFO/pipe\0A\00"
@.str.7 = [9 x i8] c"symlink\0A\00"
@.str.8 = [14 x i8] c"regular file\0A\00"
@.str.9 = [8 x i8] c"socket\0A\00"
@.str.10 = [10 x i8] c"unknown?\0A\00"
@.str.11 = [31 x i8] c"I-node number: %ld\0A\00"
@.str.12 = [39 x i8] c"Mode: %lo (octal)\0A\00"
@.str.13 = [31 x i8] c"Link count: %ld\0A\00"
@.str.14 = [45 x i8] c"Ownership: UID=%ld GID=%ld\0A\00"
@.str.15 = [37 x i8] c"Preferred I/O block size: %ld bytes\0A\00"
@.str.16 = [38 x i8] c"File size: %lld bytes\0A\00"
@.str.17 = [32 x i8] c"Blocks allocated: %lld\0A\00"
@.str.18 = [29 x i8] c"Last status change: %s\00"
@.str.19 = [29 x i8] c"Last file access: %s\00"
@.str.20 = [29 x i8] c"Last file modification: %s\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.stat
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%8 = load i32, i32* %4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %18
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 0
%14 = load i8*, i8** %13
%15 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = load i32, i32* @EXIT_FAILURE
%17 = call i32 @exit(i32 %16)
unreachable
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = load i32, i32* @O_RDONLY
%23 = call i32 @open(i8* %21, i32 %22)
store i32 %23, i32* %7
%24 = load i32, i32* %7
%25 = call i32 @fstat(i32 %24, %struct.stat* %6)
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %31
27: ; preds = %18
%28 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32, i32* @EXIT_FAILURE
%30 = call i32 @exit(i32 %29)
unreachable
31: ; preds = %18
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%33 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%34 = load i32, i32* %33
%35 = load i32, i32* @S_IFMT
%36 = and i32 %34, %35
switch i32 %36, label %51 [
i32 134, label %37
i32 133, label %39
i32 132, label %41
i32 131, label %43
i32 130, label %45
i32 129, label %47
i32 128, label %49
]
37: ; preds = %31
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %53
39: ; preds = %31
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
br label %53
41: ; preds = %31
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %53
43: ; preds = %31
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %53
45: ; preds = %31
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %53
47: ; preds = %31
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %53
49: ; preds = %31
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %53
51: ; preds = %31
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
br label %53
53: ; preds = %51, %49, %47, %45, %43, %41, %39, %37
%54 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 10
%55 = load i64, i64* %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i64 %55)
%57 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%58 = load i32, i32* %57
%59 = sext i32 %58 to i64
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0), i64 %59)
%61 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 9
%62 = load i64, i64* %61
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i64 %62)
%64 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 8
%65 = load i64, i64* %64
%66 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 7
%67 = load i64, i64* %66
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0), i64 %65, i64 %67)
%69 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 6
%70 = load i64, i64* %69
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0), i64 %70)
%72 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 5
%73 = load i64, i64* %72
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i64 %73)
%75 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 4
%76 = load i64, i64* %75
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i64 %76)
%78 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 3
%79 = call i8* @ctime(i32* %78)
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* %79)
%81 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 2
%82 = call i8* @ctime(i32* %81)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0), i8* %82)
%84 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 1
%85 = call i8* @ctime(i32* %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0), i8* %85)
%87 = load i32, i32* @EXIT_SUCCESS
%88 = call i32 @exit(i32 %87)
unreachable
}

LLVM IR (-O2):
%struct.stat = type { i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64 }
@stderr = global i32 0
@.str = [22 x i8] c"Usage: %s <pathname>\0A\00"
@EXIT_FAILURE = global i32 0
@O_RDONLY = global i32 0
@.str.1 = [5 x i8] c"stat\00"
@.str.2 = [27 x i8] c"File type: \00"
@S_IFMT = global i32 0
@.str.11 = [31 x i8] c"I-node number: %ld\0A\00"
@.str.12 = [39 x i8] c"Mode: %lo (octal)\0A\00"
@.str.13 = [31 x i8] c"Link count: %ld\0A\00"
@.str.14 = [45 x i8] c"Ownership: UID=%ld GID=%ld\0A\00"
@.str.15 = [37 x i8] c"Preferred I/O block size: %ld bytes\0A\00"
@.str.16 = [38 x i8] c"File size: %lld bytes\0A\00"
@.str.17 = [32 x i8] c"Blocks allocated: %lld\0A\00"
@.str.18 = [29 x i8] c"Last status change: %s\00"
@.str.19 = [29 x i8] c"Last file access: %s\00"
@.str.20 = [29 x i8] c"Last file modification: %s\00"
@EXIT_SUCCESS = global i32 0
@str = [7 x i8] c"socket\00"
@str.21 = [13 x i8] c"regular file\00"
@str.22 = [8 x i8] c"symlink\00"
@str.23 = [10 x i8] c"FIFO/pipe\00"
@str.24 = [10 x i8] c"directory\00"
@str.25 = [17 x i8] c"character device\00"
@str.26 = [13 x i8] c"block device\00"
@str.27 = [9 x i8] c"unknown?\00"
@reltable.main = [7 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str to i64), i64 ptrtoint ([7 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @str.21 to i64), i64 ptrtoint ([7 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.22 to i64), i64 ptrtoint ([7 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str.23 to i64), i64 ptrtoint ([7 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str.24 to i64), i64 ptrtoint ([7 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @str.25 to i64), i64 ptrtoint ([7 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @str.26 to i64), i64 ptrtoint ([7 x i32]* @reltable.main to i64)) to i32)]
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = bitcast %struct.stat* %3 to i8*
%5 = icmp eq i32 %0, 2
br i1 %5, label %12, label %6
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %1
%9 = tail call i32 @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 = load i32, i32* @O_RDONLY
%16 = tail call i32 @open(i8* %14, i32 %15)
%17 = call i32 @fstat(i32 %16, %struct.stat* %3)
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %23
19: ; preds = %12
%20 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%21 = load i32, i32* @EXIT_FAILURE
%22 = tail call i32 @exit(i32 %21)
unreachable
23: ; preds = %12
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%25 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%26 = load i32, i32* %25
%27 = load i32, i32* @S_IFMT
%28 = and i32 %27, %26
%29 = add i32 %28, -128
%30 = icmp ult i32 %29, 7
br i1 %30, label %31, label %35
31: ; preds = %23
%32 = sext i32 %29 to i64
%33 = shl i64 %32, 2
%34 = call i8* @llvm.load.relative.i64(i8* bitcast ([7 x i32]* @reltable.main to i8*), i64 %33)
br label %35
35: ; preds = %23, %31
%36 = phi i8* [ %34, %31 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.27, i64 0, i64 0), %23 ]
%37 = tail call i32 @puts(i8* dereferenceable(1) %36)
%38 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 10
%39 = load i64, i64* %38
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i64 %39)
%41 = sext i32 %26 to i64
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0), i64 %41)
%43 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 9
%44 = load i64, i64* %43
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i64 %44)
%46 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 8
%47 = load i64, i64* %46
%48 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 7
%49 = load i64, i64* %48
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0), i64 %47, i64 %49)
%51 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 6
%52 = load i64, i64* %51
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0), i64 %52)
%54 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 5
%55 = load i64, i64* %54
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i64 %55)
%57 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 4
%58 = load i64, i64* %57
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i64 %58)
%60 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 3
%61 = call i8* @ctime(i32* %60)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* %61)
%63 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 2
%64 = call i8* @ctime(i32* %63)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 1
%67 = call i8* @ctime(i32* %66)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0), i8* %67)
%69 = load i32, i32* @EXIT_SUCCESS
%70 = call i32 @exit(i32 %69)
unreachable
}