#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 fstat(int, struct stat *);
int handle_zng(int);
int /*<<< orphan*/ printf(char *, ...);
int fstat_test(int fd, struct stat *buf) {
  int ret, save_errno;
  int passed;
  printf("fstat(): fd=%d, buf=0x%p\n", fd, buf);
  fflush(NULL);
  passed = handle_zng(ret = fstat(fd, 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 = %ld\n", buf->st_dev);
    printf("\t\tst_ino = %ld\n", buf->st_ino);
    printf("\t\tst_mode = 0x%x(0%o)\n", buf->st_mode, buf->st_mode);
    printf("\t\tst_nlink = %ld\n", buf->st_nlink);
    printf("\t\tst_uid = %d\n", buf->st_uid);
    printf("\t\tst_gid = %d\n", buf->st_gid);
    printf("\t\tst_rdev = %ld\n", buf->st_rdev);
    printf("\t\tst_size = %ld\n", buf->st_size);
    printf("\t\tst_atime = %ld\n", buf->st_atime);
    printf("\t\tst_mtime = %ld\n", buf->st_mtime);
    printf("\t\tst_ctime = %ld\n", buf->st_ctime);
    printf("\t\tst_blksize = %lu\n", buf->st_blksize);
    printf("\t\tst_blocks = %lu\n", buf->st_blocks);
    printf("\t\tret = %d\n", ret);
    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):
<fstat_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
lea    0xea3(%rip),%rdi
xor    %eax,%eax
mov    %eax,-0x24(%rbp)
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
mov    %eax,%edi
call   1050 <fflush@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <fstat@plt>
mov    %eax,%edi
mov    %edi,-0x14(%rbp)
call   1030 <handle_zng@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2e4f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
sub    $0xfffffffe,%eax
je     133c <fstat_test+0x1fc>
jmp    11aa <fstat_test+0x6a>
mov    -0x20(%rbp),%eax
sub    $0xffffffff,%eax
je     11cb <fstat_test+0x8b>
jmp    11bb <fstat_test+0x7b>
mov    -0x20(%rbp),%eax
test   %eax,%eax
je     11f8 <fstat_test+0xb8>
jmp    135b <fstat_test+0x21b>
mov    -0x14(%rbp),%esi
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <fflush@plt>
jmp    1375 <fstat_test+0x235>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xe30(%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    0xe24(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%esi
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%esi
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%esi
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%esi
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%esi
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%esi
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%esi
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%esi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%esi
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%esi
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <fflush@plt>
jmp    1375 <fstat_test+0x235>
mov    -0x14(%rbp),%esi
lea    0xdda(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <fflush@plt>
jmp    1375 <fstat_test+0x235>
mov    -0x1c(%rbp),%esi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <fflush@plt>
mov    -0x18(%rbp),%ecx
mov    0x2c61(%rip),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fstat_test>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe9d(%rip),%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1060 <fflush@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1070 <fstat@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1040 <handle_zng@plt>
mov    0x2e50(%rip),%r14
mov    (%r14),%r15d
cmp    $0xfffffffe,%eax
je     11b0 <fstat_test+0x60>
test   %eax,%eax
je     11c5 <fstat_test+0x75>
cmp    $0xffffffff,%eax
je     12a3 <fstat_test+0x153>
lea    0xf95(%rip),%rdi
mov    %eax,%esi
jmp    11b9 <fstat_test+0x69>
lea    0xf55(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12bf <fstat_test+0x16f>
mov    (%rbx),%esi
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rbx),%esi
lea    0xe57(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%edx
lea    0xe56(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rbx),%esi
lea    0xe5a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rbx),%esi
lea    0xe5b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rbx),%esi
lea    0xe59(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rbx),%esi
lea    0xe57(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rbx),%esi
lea    0xe57(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rbx),%esi
lea    0xe57(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rbx),%esi
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rbx),%esi
lea    0xe59(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rbx),%esi
lea    0xe5a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rbx),%esi
lea    0xe5d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd70(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1060 <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 = [26 x i8] c"fstat(): fd=%d, buf=0x%p\0A\00"
@errno = global i32 0
@.str.1 = [12 x i8] c"\09\09ret = %d\0A\00"
@.str.2 = [20 x i8] c"\09Succeeded Phase 1\0A\00"
@.str.3 = [16 x i8] c"\09\09st_dev = %ld\0A\00"
@.str.4 = [16 x i8] c"\09\09st_ino = %ld\0A\00"
@.str.5 = [23 x i8] c"\09\09st_mode = 0x%x(0%o)\0A\00"
@.str.6 = [18 x i8] c"\09\09st_nlink = %ld\0A\00"
@.str.7 = [15 x i8] c"\09\09st_uid = %d\0A\00"
@.str.8 = [15 x i8] c"\09\09st_gid = %d\0A\00"
@.str.9 = [17 x i8] c"\09\09st_rdev = %ld\0A\00"
@.str.10 = [17 x i8] c"\09\09st_size = %ld\0A\00"
@.str.11 = [18 x i8] c"\09\09st_atime = %ld\0A\00"
@.str.12 = [18 x i8] c"\09\09st_mtime = %ld\0A\00"
@.str.13 = [18 x i8] c"\09\09st_ctime = %ld\0A\00"
@.str.14 = [20 x i8] c"\09\09st_blksize = %lu\0A\00"
@.str.15 = [19 x i8] c"\09\09st_blocks = %lu\0A\00"
@.str.16 = [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00"
@.str.17 = [43 x i8] c"Internal syscalltester error: passed = %d\0A\00"
define i32 @fstat_test(i32 %0, %struct.stat* %1) {
%3 = alloca i32
%4 = alloca %struct.stat*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
store %struct.stat* %1, %struct.stat** %4
%8 = load i32, i32* %3
%9 = load %struct.stat*, %struct.stat** %4
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %8, %struct.stat* %9)
%11 = call i32 @fflush(i32* null)
%12 = load i32, i32* %3
%13 = load %struct.stat*, %struct.stat** %4
%14 = call i32 @fstat(i32 %12, %struct.stat* %13)
store i32 %14, i32* %5
%15 = call i32 @handle_zng(i32 %14)
store i32 %15, i32* %7
%16 = load i32, i32* @errno
store i32 %16, i32* %6
%17 = load i32, i32* %7
switch i32 %17, label %87 [
i32 -1, label %18
i32 0, label %23
i32 -2, label %83
]
18: ; preds = %2
%19 = load i32, i32* %5
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @fflush(i32* null)
br label %91
23: ; preds = %2
%24 = load %struct.stat*, %struct.stat** %4
%25 = getelementptr inbounds %struct.stat, %struct.stat* %24, i32 0, i32 0
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%28 = load %struct.stat*, %struct.stat** %4
%29 = getelementptr inbounds %struct.stat, %struct.stat* %28, i32 0, i32 1
%30 = load i32, i32* %29
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %30)
%32 = load %struct.stat*, %struct.stat** %4
%33 = getelementptr inbounds %struct.stat, %struct.stat* %32, i32 0, i32 2
%34 = load i32, i32* %33
%35 = load %struct.stat*, %struct.stat** %4
%36 = getelementptr inbounds %struct.stat, %struct.stat* %35, i32 0, i32 2
%37 = load i32, i32* %36
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %34, i32 %37)
%39 = load %struct.stat*, %struct.stat** %4
%40 = getelementptr inbounds %struct.stat, %struct.stat* %39, i32 0, i32 3
%41 = load i32, i32* %40
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %41)
%43 = load %struct.stat*, %struct.stat** %4
%44 = getelementptr inbounds %struct.stat, %struct.stat* %43, i32 0, i32 4
%45 = load i32, i32* %44
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %45)
%47 = load %struct.stat*, %struct.stat** %4
%48 = getelementptr inbounds %struct.stat, %struct.stat* %47, i32 0, i32 5
%49 = load i32, i32* %48
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %49)
%51 = load %struct.stat*, %struct.stat** %4
%52 = getelementptr inbounds %struct.stat, %struct.stat* %51, i32 0, i32 6
%53 = load i32, i32* %52
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %53)
%55 = load %struct.stat*, %struct.stat** %4
%56 = getelementptr inbounds %struct.stat, %struct.stat* %55, i32 0, i32 7
%57 = load i32, i32* %56
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i32 %57)
%59 = load %struct.stat*, %struct.stat** %4
%60 = getelementptr inbounds %struct.stat, %struct.stat* %59, i32 0, i32 8
%61 = load i32, i32* %60
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i32 %61)
%63 = load %struct.stat*, %struct.stat** %4
%64 = getelementptr inbounds %struct.stat, %struct.stat* %63, i32 0, i32 9
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i32 %65)
%67 = load %struct.stat*, %struct.stat** %4
%68 = getelementptr inbounds %struct.stat, %struct.stat* %67, i32 0, i32 10
%69 = load i32, i32* %68
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %69)
%71 = load %struct.stat*, %struct.stat** %4
%72 = getelementptr inbounds %struct.stat, %struct.stat* %71, i32 0, i32 11
%73 = load i32, i32* %72
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i32 %73)
%75 = load %struct.stat*, %struct.stat** %4
%76 = getelementptr inbounds %struct.stat, %struct.stat* %75, i32 0, i32 12
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), i32 %77)
%79 = load i32, i32* %5
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %79)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%82 = call i32 @fflush(i32* null)
br label %91
83: ; preds = %2
%84 = load i32, i32* %5
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.16, i64 0, i64 0), i32 %84)
%86 = call i32 @fflush(i32* null)
br label %91
87: ; preds = %2
%88 = load i32, i32* %7
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.17, i64 0, i64 0), i32 %88)
%90 = call i32 @fflush(i32* null)
br label %91
91: ; preds = %87, %83, %23, %18
%92 = load i32, i32* %6
store i32 %92, i32* @errno
%93 = load i32, i32* %5
ret i32 %93
}

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