#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_dev;
  int st_ino;
  int st_mode;
  int st_nlink;
  int st_uid;
  int st_gid;
  int st_rdev;
  int st_size;
  int st_atime;
  int st_mtime;
  int st_ctime;
  int st_blksize;
  int st_blocks;
};

/* Variables and functions */
int errno;
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int handle_zng(int);
int lstat(char *, struct stat *);
int /*<<< orphan*/ printf(char *, ...);
int lstat_test(char *path, struct stat *buf) {
  int ret, save_errno;
  int passed;
  printf("lstat(): path=%s\n", (((path) == NULL) ? "(null)" : (path)));
  fflush(NULL);
  passed = handle_zng(ret = lstat(path, buf));
  save_errno = errno;
  switch (passed) {
  case -1:
    printf("\t\tret = %d\n", ret);
    printf("\tSucceeded Phase 1\n");
    fflush(NULL);
    break;
  case 0:
    printf("\t\tst_dev = %u\n", buf->st_dev);
    printf("\t\tst_ino = %u\n", buf->st_ino);
    printf("\t\tst_mode = 0x%x(0%o)\n", buf->st_mode, buf->st_mode);
    printf("\t\tst_nlink = %u\n", buf->st_nlink);
    printf("\t\tst_uid = %u\n", buf->st_uid);
    printf("\t\tst_gid = %u\n", buf->st_gid);
    printf("\t\tst_rdev = %u\n", buf->st_rdev);
    printf("\t\tst_size = %u\n", buf->st_size);
    printf("\t\tst_atime = %u\n", buf->st_atime);
    printf("\t\tst_mtime = %u\n", buf->st_mtime);
    printf("\t\tst_ctime = %u\n", buf->st_ctime);
    printf("\t\tst_blksize = %lu\n", buf->st_blksize);
    printf("\t\tst_blocks = %lu\n", buf->st_blocks);
    printf("\tSucceeded Phase 1\n");
    fflush(NULL);
    break;
  case -2:
    printf("\tFailed Phase 1: returned undefined value! "
           "ret = %d\n",
           ret);
    fflush(NULL);
    break;
  default:
    printf("Internal syscalltester error: passed = %d\n", passed);
    fflush(NULL);
    break;
  }
  errno = save_errno;
  return ret;
}


x86 assembly (clang, -O0):
<lstat_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    116b <lstat_test+0x2b>
lea    0xeb0(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    1173 <lstat_test+0x33>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
lea    0xe82(%rip),%rdi
xor    %eax,%eax
mov    %eax,-0x30(%rbp)
call   1040 <printf@plt>
mov    -0x30(%rbp),%eax
mov    %eax,%edi
call   1060 <fflush@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <lstat@plt>
mov    %eax,%edi
mov    %edi,-0x14(%rbp)
call   1030 <handle_zng@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2e2d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
sub    $0xfffffffe,%eax
je     134d <lstat_test+0x20d>
jmp    11cc <lstat_test+0x8c>
mov    -0x2c(%rbp),%eax
sub    $0xffffffff,%eax
je     11ed <lstat_test+0xad>
jmp    11dd <lstat_test+0x9d>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
je     121a <lstat_test+0xda>
jmp    136c <lstat_test+0x22c>
mov    -0x14(%rbp),%esi
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <fflush@plt>
jmp    1386 <lstat_test+0x246>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%esi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%edx
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%esi
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%esi
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%esi
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%esi
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%esi
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%esi
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%esi
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%esi
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%esi
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%esi
lea    0xdda(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <fflush@plt>
jmp    1386 <lstat_test+0x246>
mov    -0x14(%rbp),%esi
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <fflush@plt>
jmp    1386 <lstat_test+0x246>
mov    -0x1c(%rbp),%esi
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <fflush@plt>
mov    -0x18(%rbp),%ecx
mov    0x2c50(%rip),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lstat_test>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%rbp
test   %rdi,%rdi
lea    0xeab(%rip),%rsi
cmovne %rdi,%rsi
lea    0xe8e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1070 <fflush@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <lstat@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1040 <handle_zng@plt>
mov    0x2e45(%rip),%r14
mov    (%r14),%r15d
cmp    $0xfffffffe,%eax
je     11be <lstat_test+0x6e>
test   %eax,%eax
je     11cc <lstat_test+0x7c>
cmp    $0xffffffff,%eax
jne    12b8 <lstat_test+0x168>
lea    0xe62(%rip),%rdi
mov    %ebp,%esi
jmp    12a3 <lstat_test+0x153>
lea    0xf3e(%rip),%rdi
mov    %ebp,%esi
jmp    12c1 <lstat_test+0x171>
mov    (%rbx),%esi
lea    0xe50(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rbx),%esi
lea    0xe4e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%edx
lea    0xe4c(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rbx),%esi
lea    0xe50(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rbx),%esi
lea    0xe50(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rbx),%esi
lea    0xe4e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rbx),%esi
lea    0xe4c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rbx),%esi
lea    0xe4b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rbx),%esi
lea    0xe4a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rbx),%esi
lea    0xe4a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rbx),%esi
lea    0xe4a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rbx),%esi
lea    0xe4a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rbx),%esi
lea    0xe4d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1030 <puts@plt>
jmp    12c8 <lstat_test+0x178>
lea    0xe79(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1070 <fflush@plt>
mov    %r15d,(%r14)
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.stat = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@.str = [18 x i8] c"lstat(): path=%s\0A\00"
@.str.1 = [7 x i8] c"(null)\00"
@errno = global i32 0
@.str.2 = [12 x i8] c"\09\09ret = %d\0A\00"
@.str.3 = [20 x i8] c"\09Succeeded Phase 1\0A\00"
@.str.4 = [15 x i8] c"\09\09st_dev = %u\0A\00"
@.str.5 = [15 x i8] c"\09\09st_ino = %u\0A\00"
@.str.6 = [23 x i8] c"\09\09st_mode = 0x%x(0%o)\0A\00"
@.str.7 = [17 x i8] c"\09\09st_nlink = %u\0A\00"
@.str.8 = [15 x i8] c"\09\09st_uid = %u\0A\00"
@.str.9 = [15 x i8] c"\09\09st_gid = %u\0A\00"
@.str.10 = [16 x i8] c"\09\09st_rdev = %u\0A\00"
@.str.11 = [16 x i8] c"\09\09st_size = %u\0A\00"
@.str.12 = [17 x i8] c"\09\09st_atime = %u\0A\00"
@.str.13 = [17 x i8] c"\09\09st_mtime = %u\0A\00"
@.str.14 = [17 x i8] c"\09\09st_ctime = %u\0A\00"
@.str.15 = [20 x i8] c"\09\09st_blksize = %lu\0A\00"
@.str.16 = [19 x i8] c"\09\09st_blocks = %lu\0A\00"
@.str.17 = [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00"
@.str.18 = [43 x i8] c"Internal syscalltester error: passed = %d\0A\00"
define i32 @lstat_test(i8* %0, %struct.stat* %1) {
%3 = alloca i8*
%4 = alloca %struct.stat*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
store %struct.stat* %1, %struct.stat** %4
%8 = load i8*, i8** %3
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
br label %13
11: ; preds = %2
%12 = load i8*, i8** %3
br label %13
13: ; preds = %11, %10
%14 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), %10 ], [ %12, %11 ]
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = call i32 @fflush(i32* null)
%17 = load i8*, i8** %3
%18 = load %struct.stat*, %struct.stat** %4
%19 = call i32 @lstat(i8* %17, %struct.stat* %18)
store i32 %19, i32* %5
%20 = call i32 @handle_zng(i32 %19)
store i32 %20, i32* %7
%21 = load i32, i32* @errno
store i32 %21, i32* %6
%22 = load i32, i32* %7
switch i32 %22, label %90 [
i32 -1, label %23
i32 0, label %28
i32 -2, label %86
]
23: ; preds = %13
%24 = load i32, i32* %5
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %24)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%27 = call i32 @fflush(i32* null)
br label %94
28: ; preds = %13
%29 = load %struct.stat*, %struct.stat** %4
%30 = getelementptr inbounds %struct.stat, %struct.stat* %29, i32 0, i32 0
%31 = load i32, i32* %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%33 = load %struct.stat*, %struct.stat** %4
%34 = getelementptr inbounds %struct.stat, %struct.stat* %33, i32 0, i32 1
%35 = load i32, i32* %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 %35)
%37 = load %struct.stat*, %struct.stat** %4
%38 = getelementptr inbounds %struct.stat, %struct.stat* %37, i32 0, i32 2
%39 = load i32, i32* %38
%40 = load %struct.stat*, %struct.stat** %4
%41 = getelementptr inbounds %struct.stat, %struct.stat* %40, i32 0, i32 2
%42 = load i32, i32* %41
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %39, i32 %42)
%44 = load %struct.stat*, %struct.stat** %4
%45 = getelementptr inbounds %struct.stat, %struct.stat* %44, i32 0, i32 3
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %46)
%48 = load %struct.stat*, %struct.stat** %4
%49 = getelementptr inbounds %struct.stat, %struct.stat* %48, i32 0, i32 4
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %50)
%52 = load %struct.stat*, %struct.stat** %4
%53 = getelementptr inbounds %struct.stat, %struct.stat* %52, i32 0, i32 5
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %54)
%56 = load %struct.stat*, %struct.stat** %4
%57 = getelementptr inbounds %struct.stat, %struct.stat* %56, i32 0, i32 6
%58 = load i32, i32* %57
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %58)
%60 = load %struct.stat*, %struct.stat** %4
%61 = getelementptr inbounds %struct.stat, %struct.stat* %60, i32 0, i32 7
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 %62)
%64 = load %struct.stat*, %struct.stat** %4
%65 = getelementptr inbounds %struct.stat, %struct.stat* %64, i32 0, i32 8
%66 = load i32, i32* %65
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i32 %66)
%68 = load %struct.stat*, %struct.stat** %4
%69 = getelementptr inbounds %struct.stat, %struct.stat* %68, i32 0, i32 9
%70 = load i32, i32* %69
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i32 %70)
%72 = load %struct.stat*, %struct.stat** %4
%73 = getelementptr inbounds %struct.stat, %struct.stat* %72, i32 0, i32 10
%74 = load i32, i32* %73
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0), i32 %74)
%76 = load %struct.stat*, %struct.stat** %4
%77 = getelementptr inbounds %struct.stat, %struct.stat* %76, i32 0, i32 11
%78 = load i32, i32* %77
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i32 %78)
%80 = load %struct.stat*, %struct.stat** %4
%81 = getelementptr inbounds %struct.stat, %struct.stat* %80, i32 0, i32 12
%82 = load i32, i32* %81
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), i32 %82)
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%85 = call i32 @fflush(i32* null)
br label %94
86: ; preds = %13
%87 = load i32, i32* %5
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0), i32 %87)
%89 = call i32 @fflush(i32* null)
br label %94
90: ; preds = %13
%91 = load i32, i32* %7
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0), i32 %91)
%93 = call i32 @fflush(i32* null)
br label %94
94: ; preds = %90, %86, %28, %23
%95 = load i32, i32* %6
store i32 %95, i32* @errno
%96 = load i32, i32* %5
ret i32 %96
}

LLVM IR (-O2):
%struct.stat = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@.str = [18 x i8] c"lstat(): path=%s\0A\00"
@.str.1 = [7 x i8] c"(null)\00"
@errno = global i32 0
@.str.2 = [12 x i8] c"\09\09ret = %d\0A\00"
@.str.4 = [15 x i8] c"\09\09st_dev = %u\0A\00"
@.str.5 = [15 x i8] c"\09\09st_ino = %u\0A\00"
@.str.6 = [23 x i8] c"\09\09st_mode = 0x%x(0%o)\0A\00"
@.str.7 = [17 x i8] c"\09\09st_nlink = %u\0A\00"
@.str.8 = [15 x i8] c"\09\09st_uid = %u\0A\00"
@.str.9 = [15 x i8] c"\09\09st_gid = %u\0A\00"
@.str.10 = [16 x i8] c"\09\09st_rdev = %u\0A\00"
@.str.11 = [16 x i8] c"\09\09st_size = %u\0A\00"
@.str.12 = [17 x i8] c"\09\09st_atime = %u\0A\00"
@.str.13 = [17 x i8] c"\09\09st_mtime = %u\0A\00"
@.str.14 = [17 x i8] c"\09\09st_ctime = %u\0A\00"
@.str.15 = [20 x i8] c"\09\09st_blksize = %lu\0A\00"
@.str.16 = [19 x i8] c"\09\09st_blocks = %lu\0A\00"
@.str.17 = [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00"
@.str.18 = [43 x i8] c"Internal syscalltester error: passed = %d\0A\00"
@str.19 = [19 x i8] c"\09Succeeded Phase 1\00"
define i32 @lstat_test(i8* %0, %struct.stat* nocapture %1) {
%3 = icmp eq i8* %0, null
%4 = select i1 %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %0
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = tail call i32 @fflush(i32* null)
%7 = tail call i32 @lstat(i8* %0, %struct.stat* %1)
%8 = tail call i32 @handle_zng(i32 %7)
%9 = load i32, i32* @errno
switch i32 %8, label %56 [
i32 -1, label %10
i32 0, label %13
i32 -2, label %54
]
10: ; preds = %2
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.19, i64 0, i64 0))
br label %58
13: ; preds = %2
%14 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 0
%15 = load i32, i32* %14
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %15)
%17 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 1
%18 = load i32, i32* %17
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 2
%21 = load i32, i32* %20
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i32 %21, i32 %21)
%23 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 3
%24 = load i32, i32* %23
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %24)
%26 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 4
%27 = load i32, i32* %26
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %27)
%29 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 5
%30 = load i32, i32* %29
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %30)
%32 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 6
%33 = load i32, i32* %32
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %33)
%35 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 7
%36 = load i32, i32* %35
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 8
%39 = load i32, i32* %38
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 9
%42 = load i32, i32* %41
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 10
%45 = load i32, i32* %44
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 11
%48 = load i32, i32* %47
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 12
%51 = load i32, i32* %50
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), i32 %51)
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.19, i64 0, i64 0))
br label %58
54: ; preds = %2
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0), i32 %7)
br label %58
56: ; preds = %2
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0), i32 %8)
br label %58
58: ; preds = %56, %54, %13, %10
%59 = tail call i32 @fflush(i32* null)
store i32 %9, i32* @errno
ret i32 %7
}