#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 taskstats {
  char *ac_comm;
  scalar_t__ blkio_delay_total;
  scalar_t__ blkio_count;
  scalar_t__ write_syscalls;
  scalar_t__ read_syscalls;
  scalar_t__ write_char;
  scalar_t__ read_char;
  scalar_t__ hiwater_vm;
  scalar_t__ hiwater_rss;
  scalar_t__ ac_stime;
  scalar_t__ ac_utime;
  scalar_t__ ac_etime;
  scalar_t__ ac_exitcode;
  scalar_t__ ac_ppid;
  scalar_t__ ac_pid;
};
typedef int __u64;
typedef int __u32;

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int, int, int, int, int, int, int, int, int,
                          int, int, int, int, int, char *);
int /*<<< orphan*/ stdout;
void print_delayacct(struct taskstats *t) {
  printf("%u\t%u\t"
         "%u\t"
         "%u\t%u\t%u\t"
         "%u\t%u\t"
         "%u\t%u\t%u\t%u\t"
         "%u\t%u\t"
         "%s\n",
         (__u32)t->ac_pid, (__u32)t->ac_ppid, (__u32)t->ac_exitcode,
         (__u64)t->ac_etime, (__u64)t->ac_utime, (__u64)t->ac_stime,
         (__u64)t->hiwater_rss, (__u64)t->hiwater_vm, (__u64)t->read_char,
         (__u64)t->write_char, (__u64)t->read_syscalls,
         (__u64)t->write_syscalls, (__u64)t->blkio_count,
         (__u64)t->blkio_delay_total, t->ac_comm);
  fflush(stdout);
}


x86 assembly (clang, -O0):
<print_delayacct>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdi,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    0x70(%rax),%rax
mov    %eax,%esi
mov    -0x30(%rbp),%rax
mov    0x68(%rax),%rax
mov    %eax,%edx
mov    -0x30(%rbp),%rax
mov    0x60(%rax),%rax
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    0x58(%rax),%rax
mov    %eax,%r8d
mov    -0x30(%rbp),%rax
mov    0x50(%rax),%rax
mov    %eax,%r9d
mov    -0x30(%rbp),%rax
mov    0x48(%rax),%rax
mov    -0x30(%rbp),%rdi
mov    0x40(%rdi),%rdi
mov    %edi,-0x3c(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x38(%rdi),%rdi
mov    %edi,%r13d
mov    -0x30(%rbp),%rdi
mov    0x30(%rdi),%rdi
mov    %edi,%r12d
mov    -0x30(%rbp),%rdi
mov    0x28(%rdi),%rdi
mov    %edi,%r15d
mov    -0x30(%rbp),%rdi
mov    0x20(%rdi),%rdi
mov    %edi,%r14d
mov    -0x30(%rbp),%rdi
mov    0x18(%rdi),%rdi
mov    %edi,%ebx
mov    -0x30(%rbp),%rdi
mov    0x10(%rdi),%rdi
mov    %edi,%r11d
mov    -0x30(%rbp),%rdi
mov    0x8(%rdi),%rdi
mov    %edi,%r10d
mov    -0x30(%rbp),%rdi
mov    (%rdi),%rdi
mov    %rdi,-0x38(%rbp)
lea    0xe26(%rip),%rdi
mov    %eax,(%rsp)
mov    -0x3c(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0x38(%rbp),%rax
mov    %r13d,0x10(%rsp)
mov    %r12d,0x18(%rsp)
mov    %r15d,0x20(%rsp)
mov    %r14d,0x28(%rsp)
mov    %ebx,0x30(%rsp)
mov    %r11d,0x38(%rsp)
mov    %r10d,0x40(%rsp)
mov    %rax,0x48(%rsp)
call   1030 <printf@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_delayacct>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rax
mov    0x70(%rdi),%esi
mov    0x68(%rdi),%edx
mov    0x60(%rdi),%ecx
mov    0x58(%rdi),%r8d
mov    0x50(%rdi),%r9d
mov    0x48(%rdi),%edi
mov    %rdi,(%rsp)
mov    0x40(%rax),%r11d
mov    0x38(%rax),%r14d
mov    0x30(%rax),%r15d
mov    0x28(%rax),%r12d
mov    0x20(%rax),%r13d
mov    0x18(%rax),%ebx
mov    0x10(%rax),%ebp
mov    0x8(%rax),%r10d
lea    0xe95(%rip),%rdi
push   (%rax)
push   %r10
push   %rbp
push   %rbx
push   %r13
push   %r12
push   %r15
push   %r14
push   %r11
push   0x48(%rsp)
call   1030 <printf@plt>
add    $0x50,%rsp
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fflush@plt>

LLVM IR (-O0):
%struct.taskstats = type { i8*, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
@.str = [46 x i8] c"%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%s\0A\00"
@stdout = global i32 0
define void @print_delayacct(%struct.taskstats* %0) {
%2 = alloca %struct.taskstats*
store %struct.taskstats* %0, %struct.taskstats** %2
%3 = load %struct.taskstats*, %struct.taskstats** %2
%4 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %3, i32 0, i32 14
%5 = load i64, i64* %4
%6 = trunc i64 %5 to i32
%7 = load %struct.taskstats*, %struct.taskstats** %2
%8 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %7, i32 0, i32 13
%9 = load i64, i64* %8
%10 = trunc i64 %9 to i32
%11 = load %struct.taskstats*, %struct.taskstats** %2
%12 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %11, i32 0, i32 12
%13 = load i64, i64* %12
%14 = trunc i64 %13 to i32
%15 = load %struct.taskstats*, %struct.taskstats** %2
%16 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %15, i32 0, i32 11
%17 = load i64, i64* %16
%18 = trunc i64 %17 to i32
%19 = load %struct.taskstats*, %struct.taskstats** %2
%20 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %19, i32 0, i32 10
%21 = load i64, i64* %20
%22 = trunc i64 %21 to i32
%23 = load %struct.taskstats*, %struct.taskstats** %2
%24 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %23, i32 0, i32 9
%25 = load i64, i64* %24
%26 = trunc i64 %25 to i32
%27 = load %struct.taskstats*, %struct.taskstats** %2
%28 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %27, i32 0, i32 8
%29 = load i64, i64* %28
%30 = trunc i64 %29 to i32
%31 = load %struct.taskstats*, %struct.taskstats** %2
%32 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %31, i32 0, i32 7
%33 = load i64, i64* %32
%34 = trunc i64 %33 to i32
%35 = load %struct.taskstats*, %struct.taskstats** %2
%36 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %35, i32 0, i32 6
%37 = load i64, i64* %36
%38 = trunc i64 %37 to i32
%39 = load %struct.taskstats*, %struct.taskstats** %2
%40 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %39, i32 0, i32 5
%41 = load i64, i64* %40
%42 = trunc i64 %41 to i32
%43 = load %struct.taskstats*, %struct.taskstats** %2
%44 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %43, i32 0, i32 4
%45 = load i64, i64* %44
%46 = trunc i64 %45 to i32
%47 = load %struct.taskstats*, %struct.taskstats** %2
%48 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %47, i32 0, i32 3
%49 = load i64, i64* %48
%50 = trunc i64 %49 to i32
%51 = load %struct.taskstats*, %struct.taskstats** %2
%52 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %51, i32 0, i32 2
%53 = load i64, i64* %52
%54 = trunc i64 %53 to i32
%55 = load %struct.taskstats*, %struct.taskstats** %2
%56 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %55, i32 0, i32 1
%57 = load i64, i64* %56
%58 = trunc i64 %57 to i32
%59 = load %struct.taskstats*, %struct.taskstats** %2
%60 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %59, i32 0, i32 0
%61 = load i8*, i8** %60
%62 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %10, i32 %14, i32 %18, i32 %22, i32 %26, i32 %30, i32 %34, i32 %38, i32 %42, i32 %46, i32 %50, i32 %54, i32 %58, i8* %61)
%63 = load i32, i32* @stdout
%64 = call i32 @fflush(i32 %63)
ret void
}

LLVM IR (-O2):
%struct.taskstats = type { i8*, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
@.str = [46 x i8] c"%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%u\09%s\0A\00"
@stdout = global i32 0
define void @print_delayacct(%struct.taskstats* nocapture %0) {
%2 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 14
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
%5 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 13
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i32
%8 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 12
%9 = load i64, i64* %8
%10 = trunc i64 %9 to i32
%11 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 11
%12 = load i64, i64* %11
%13 = trunc i64 %12 to i32
%14 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 10
%15 = load i64, i64* %14
%16 = trunc i64 %15 to i32
%17 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 9
%18 = load i64, i64* %17
%19 = trunc i64 %18 to i32
%20 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 8
%21 = load i64, i64* %20
%22 = trunc i64 %21 to i32
%23 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 7
%24 = load i64, i64* %23
%25 = trunc i64 %24 to i32
%26 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 6
%27 = load i64, i64* %26
%28 = trunc i64 %27 to i32
%29 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 5
%30 = load i64, i64* %29
%31 = trunc i64 %30 to i32
%32 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 4
%33 = load i64, i64* %32
%34 = trunc i64 %33 to i32
%35 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 3
%36 = load i64, i64* %35
%37 = trunc i64 %36 to i32
%38 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 2
%39 = load i64, i64* %38
%40 = trunc i64 %39 to i32
%41 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 1
%42 = load i64, i64* %41
%43 = trunc i64 %42 to i32
%44 = getelementptr inbounds %struct.taskstats, %struct.taskstats* %0, i64 0, i32 0
%45 = load i8*, i8** %44
%46 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %7, i32 %10, i32 %13, i32 %16, i32 %19, i32 %22, i32 %25, i32 %28, i32 %31, i32 %34, i32 %37, i32 %40, i32 %43, i8* %45)
%47 = load i32, i32* @stdout
%48 = tail call i32 @fflush(i32 %47)
ret void
}