#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 */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  int /*<<< orphan*/ tv_usec;
  int /*<<< orphan*/ tv_sec;
};
struct TYPE_3__ {
  int /*<<< orphan*/ tv_usec;
  int /*<<< orphan*/ tv_sec;
};
struct rusage {
  int /*<<< orphan*/ ru_nivcsw;
  int /*<<< orphan*/ ru_nvcsw;
  int /*<<< orphan*/ ru_nsignals;
  int /*<<< orphan*/ ru_msgrcv;
  int /*<<< orphan*/ ru_msgsnd;
  int /*<<< orphan*/ ru_oublock;
  int /*<<< orphan*/ ru_inblock;
  int /*<<< orphan*/ ru_nswap;
  int /*<<< orphan*/ ru_majflt;
  int /*<<< orphan*/ ru_minflt;
  int /*<<< orphan*/ ru_isrss;
  int /*<<< orphan*/ ru_idrss;
  int /*<<< orphan*/ ru_ixrss;
  int /*<<< orphan*/ ru_maxrss;
  TYPE_2__ ru_stime;
  TYPE_1__ ru_utime;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/, ...);
int show_rusage2(struct rusage *ru) {
  printf("%ld.%ld\t", ru->ru_utime.tv_sec, ru->ru_utime.tv_usec);
  printf("%ld.%ld\t", ru->ru_stime.tv_sec, ru->ru_stime.tv_usec);
  printf("%-5ld\t", ru->ru_maxrss);
  printf("%-5ld\t", ru->ru_ixrss);
  printf("%-5ld\t", ru->ru_idrss);
  printf("%-5ld\t", ru->ru_isrss);
  printf("%-5ld\t", ru->ru_minflt);
  printf("%-5ld\t", ru->ru_majflt);
  printf("%-5ld\t", ru->ru_nswap);
  printf("%-5ld\t", ru->ru_inblock);
  printf("%-5ld\t", ru->ru_oublock);
  printf("%-5ld\t", ru->ru_msgsnd);
  printf("%-5ld\t", ru->ru_msgrcv);
  printf("%-5ld\t", ru->ru_nsignals);
  printf("%-5ld\t", ru->ru_nvcsw);
  printf("%-5ld\n", ru->ru_nivcsw);
}


x86 assembly (clang, -O0):
<show_rusage2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x44(%rax),%esi
mov    -0x10(%rbp),%rax
mov    0x40(%rax),%edx
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x3c(%rax),%esi
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%edx
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x34(%rax),%esi
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%esi
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x2c(%rax),%esi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%esi
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x24(%rax),%esi
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x1c(%rax),%esi
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%esi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x14(%rax),%esi
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%esi
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%esi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xdab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_rusage2>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x40(%rdi),%edx
mov    0x44(%rdi),%esi
lea    0xedc(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x38(%rbx),%edx
mov    0x3c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x34(%rbx),%esi
lea    0xec1(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x30(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x28(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x24(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x20(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rbx),%esi
lea    0xe19(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.rusage = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32, i32 }
%struct.TYPE_3__ = type { i32, i32 }
@.str = [9 x i8] c"%ld.%ld\09\00"
@.str.1 = [7 x i8] c"%-5ld\09\00"
@.str.2 = [7 x i8] c"%-5ld\0A\00"
define i32 @show_rusage2(%struct.rusage* %0) {
%2 = alloca i32
%3 = alloca %struct.rusage*
store %struct.rusage* %0, %struct.rusage** %3
%4 = load %struct.rusage*, %struct.rusage** %3
%5 = getelementptr inbounds %struct.rusage, %struct.rusage* %4, i32 0, i32 15
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %5, i32 0, i32 1
%7 = load i32, i32* %6
%8 = load %struct.rusage*, %struct.rusage** %3
%9 = getelementptr inbounds %struct.rusage, %struct.rusage* %8, i32 0, i32 15
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %9, i32 0, i32 0
%11 = load i32, i32* %10
%12 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %11)
%13 = load %struct.rusage*, %struct.rusage** %3
%14 = getelementptr inbounds %struct.rusage, %struct.rusage* %13, i32 0, i32 14
%15 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %14, i32 0, i32 1
%16 = load i32, i32* %15
%17 = load %struct.rusage*, %struct.rusage** %3
%18 = getelementptr inbounds %struct.rusage, %struct.rusage* %17, i32 0, i32 14
%19 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %18, i32 0, i32 0
%20 = load i32, i32* %19
%21 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %20)
%22 = load %struct.rusage*, %struct.rusage** %3
%23 = getelementptr inbounds %struct.rusage, %struct.rusage* %22, i32 0, i32 13
%24 = load i32, i32* %23
%25 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %24)
%26 = load %struct.rusage*, %struct.rusage** %3
%27 = getelementptr inbounds %struct.rusage, %struct.rusage* %26, i32 0, i32 12
%28 = load i32, i32* %27
%29 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %28)
%30 = load %struct.rusage*, %struct.rusage** %3
%31 = getelementptr inbounds %struct.rusage, %struct.rusage* %30, i32 0, i32 11
%32 = load i32, i32* %31
%33 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%34 = load %struct.rusage*, %struct.rusage** %3
%35 = getelementptr inbounds %struct.rusage, %struct.rusage* %34, i32 0, i32 10
%36 = load i32, i32* %35
%37 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = load %struct.rusage*, %struct.rusage** %3
%39 = getelementptr inbounds %struct.rusage, %struct.rusage* %38, i32 0, i32 9
%40 = load i32, i32* %39
%41 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %40)
%42 = load %struct.rusage*, %struct.rusage** %3
%43 = getelementptr inbounds %struct.rusage, %struct.rusage* %42, i32 0, i32 8
%44 = load i32, i32* %43
%45 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %44)
%46 = load %struct.rusage*, %struct.rusage** %3
%47 = getelementptr inbounds %struct.rusage, %struct.rusage* %46, i32 0, i32 7
%48 = load i32, i32* %47
%49 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %48)
%50 = load %struct.rusage*, %struct.rusage** %3
%51 = getelementptr inbounds %struct.rusage, %struct.rusage* %50, i32 0, i32 6
%52 = load i32, i32* %51
%53 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%54 = load %struct.rusage*, %struct.rusage** %3
%55 = getelementptr inbounds %struct.rusage, %struct.rusage* %54, i32 0, i32 5
%56 = load i32, i32* %55
%57 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %56)
%58 = load %struct.rusage*, %struct.rusage** %3
%59 = getelementptr inbounds %struct.rusage, %struct.rusage* %58, i32 0, i32 4
%60 = load i32, i32* %59
%61 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %60)
%62 = load %struct.rusage*, %struct.rusage** %3
%63 = getelementptr inbounds %struct.rusage, %struct.rusage* %62, i32 0, i32 3
%64 = load i32, i32* %63
%65 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %64)
%66 = load %struct.rusage*, %struct.rusage** %3
%67 = getelementptr inbounds %struct.rusage, %struct.rusage* %66, i32 0, i32 2
%68 = load i32, i32* %67
%69 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %68)
%70 = load %struct.rusage*, %struct.rusage** %3
%71 = getelementptr inbounds %struct.rusage, %struct.rusage* %70, i32 0, i32 1
%72 = load i32, i32* %71
%73 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %72)
%74 = load %struct.rusage*, %struct.rusage** %3
%75 = getelementptr inbounds %struct.rusage, %struct.rusage* %74, i32 0, i32 0
%76 = load i32, i32* %75
%77 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %76)
%78 = load i32, i32* %2
ret i32 %78
}

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