#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_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ tv_usec;
  int /*<<< orphan*/ tv_sec;
};
struct rusage {
  int /*<<< orphan*/ ru_nivcsw;
  int /*<<< orphan*/ ru_nvcsw;
  int /*<<< orphan*/ ru_majflt;
  int /*<<< orphan*/ ru_minflt;
  TYPE_1__ ru_utime;
};
struct rlimit {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ RLIMIT_CORE;
int /*<<< orphan*/ RLIMIT_CPU;
int /*<<< orphan*/ RLIMIT_DATA;
int /*<<< orphan*/ RLIMIT_NOFILE;
int /*<<< orphan*/ RLIMIT_STACK;
int /*<<< orphan*/ RUSAGE_SELF;
scalar_t__ getrlimit(int /*<<< orphan*/, struct rlimit *);
scalar_t__ getrusage(int /*<<< orphan*/, struct rusage *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printLimits(char *, char *, struct rlimit *);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/, ...);
void IF_resUsage(void) {
  struct rusage R;
  struct rlimit L;
  if (getrusage(RUSAGE_SELF, &R) == 0) {
    printf("Temps processus                  : %ld.%.6ld\n", R.ru_utime.tv_sec,
           R.ru_utime.tv_usec);
    printf("Temps système                    : %ld.%.6ld\n", R.ru_utime.tv_sec,
           R.ru_utime.tv_usec);
    printf("Demandes de pages                : %ld\n", R.ru_minflt);
    printf("Nombre de fautes de pages        : %ld\n", R.ru_majflt);
    printf("Changts de contexte volontaires  : %ld\n", R.ru_nvcsw);
    printf("Changts de contexte involontaires: %ld\n", R.ru_nivcsw);
  } else
    perror("getrusage");
  if (getrlimit(RLIMIT_CORE, &L) == 0) {
    printLimits("CORE", "octets", &L);
  } else
    perror("getrlimit CORE");
  if (getrlimit(RLIMIT_CPU, &L) == 0) {
    printLimits("CPU", "sec.", &L);
  } else
    perror("getrlimit CPU");
  if (getrlimit(RLIMIT_DATA, &L) == 0) {
    printLimits("DATA", "pages", &L);
  } else
    perror("getrlimit DATA");
  if (getrlimit(RLIMIT_STACK, &L) == 0) {
    printLimits("STACK", "octets", &L);
  } else
    perror("getrlimit STACK");
  if (getrlimit(RLIMIT_NOFILE, &L) == 0) {
    printLimits("NOFILE", "file desc.", &L);
  } else
    perror("getrlimit NOFILE");
}


x86 assembly (clang, -O0):
<IF_resUsage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
lea    -0x18(%rbp),%rsi
call   1050 <getrusage@plt>
cmp    $0x0,%rax
jne    11e5 <IF_resUsage+0x95>
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11f1 <IF_resUsage+0xa1>
lea    0xf11(%rip),%rdi
call   1060 <perror@plt>
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
lea    -0x20(%rbp),%rsi
call   1070 <getrlimit@plt>
cmp    $0x0,%rax
jne    1229 <IF_resUsage+0xd9>
lea    0xf04(%rip),%rdi
lea    0xeec(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <printLimits@plt>
jmp    1235 <IF_resUsage+0xe5>
lea    0xede(%rip),%rdi
call   1060 <perror@plt>
mov    0x2d74(%rip),%rax
mov    (%rax),%edi
lea    -0x20(%rbp),%rsi
call   1070 <getrlimit@plt>
cmp    $0x0,%rax
jne    126d <IF_resUsage+0x11d>
lea    0xed4(%rip),%rdi
lea    0xebe(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <printLimits@plt>
jmp    1279 <IF_resUsage+0x129>
lea    0xeae(%rip),%rdi
call   1060 <perror@plt>
mov    0x2d68(%rip),%rax
mov    (%rax),%edi
lea    -0x20(%rbp),%rsi
call   1070 <getrlimit@plt>
cmp    $0x0,%rax
jne    12b1 <IF_resUsage+0x161>
lea    0xea4(%rip),%rdi
lea    0xe8d(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <printLimits@plt>
jmp    12bd <IF_resUsage+0x16d>
lea    0xe7e(%rip),%rdi
call   1060 <perror@plt>
mov    0x2d04(%rip),%rax
mov    (%rax),%edi
lea    -0x20(%rbp),%rsi
call   1070 <getrlimit@plt>
cmp    $0x0,%rax
jne    12f5 <IF_resUsage+0x1a5>
lea    0xe6f(%rip),%rdi
lea    0xe20(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <printLimits@plt>
jmp    1301 <IF_resUsage+0x1b1>
lea    0xe49(%rip),%rdi
call   1060 <perror@plt>
mov    0x2cd0(%rip),%rax
mov    (%rax),%edi
lea    -0x20(%rbp),%rsi
call   1070 <getrlimit@plt>
cmp    $0x0,%rax
jne    1339 <IF_resUsage+0x1e9>
lea    0xe46(%rip),%rdi
lea    0xe2a(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <printLimits@plt>
jmp    1345 <IF_resUsage+0x1f5>
lea    0xe20(%rip),%rdi
call   1060 <perror@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IF_resUsage>:
sub    $0x28,%rsp
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
lea    0x10(%rsp),%rsi
call   1050 <getrusage@plt>
test   %rax,%rax
jne    12e9 <IF_resUsage+0x199>
mov    0x20(%rsp),%edx
mov    0x24(%rsp),%esi
lea    0xe81(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x20(%rsp),%edx
mov    0x24(%rsp),%esi
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%rsp),%esi
lea    0xeb6(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rsp),%esi
lea    0xecc(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
lea    0xee2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rsp),%esi
lea    0xef8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1070 <getrlimit@plt>
test   %rax,%rax
jne    12fa <IF_resUsage+0x1aa>
lea    0xf11(%rip),%rdi
lea    0xef9(%rip),%rsi
lea    0x8(%rsp),%rdx
call   1040 <printLimits@plt>
mov    0x2d91(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1070 <getrlimit@plt>
test   %rax,%rax
jne    130b <IF_resUsage+0x1bb>
lea    0xef1(%rip),%rdi
lea    0xedb(%rip),%rsi
lea    0x8(%rsp),%rdx
call   1040 <printLimits@plt>
mov    0x2d95(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1070 <getrlimit@plt>
test   %rax,%rax
jne    131c <IF_resUsage+0x1cc>
lea    0xed1(%rip),%rdi
lea    0xeba(%rip),%rsi
lea    0x8(%rsp),%rdx
call   1040 <printLimits@plt>
mov    0x2d41(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1070 <getrlimit@plt>
test   %rax,%rax
jne    132d <IF_resUsage+0x1dd>
lea    0xeac(%rip),%rdi
lea    0xe5d(%rip),%rsi
lea    0x8(%rsp),%rdx
call   1040 <printLimits@plt>
mov    0x2d1d(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1070 <getrlimit@plt>
test   %rax,%rax
jne    133e <IF_resUsage+0x1ee>
lea    0xe97(%rip),%rdi
lea    0xe7b(%rip),%rsi
lea    0x8(%rsp),%rdx
call   1040 <printLimits@plt>
add    $0x28,%rsp
ret
lea    0xe0d(%rip),%rdi
call   1060 <perror@plt>
jmp    11e4 <IF_resUsage+0x94>
lea    0xe0d(%rip),%rdi
call   1060 <perror@plt>
jmp    1218 <IF_resUsage+0xc8>
lea    0xe10(%rip),%rdi
call   1060 <perror@plt>
jmp    124c <IF_resUsage+0xfc>
lea    0xe13(%rip),%rdi
call   1060 <perror@plt>
jmp    1280 <IF_resUsage+0x130>
lea    0xe11(%rip),%rdi
call   1060 <perror@plt>
jmp    12b4 <IF_resUsage+0x164>
lea    0xe1b(%rip),%rdi
call   1060 <perror@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
%struct.rusage = type { i32, i32, i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32 }
%struct.rlimit = type { i32 }
@RUSAGE_SELF = global i32 0
@.str = [46 x i8] c"Temps processus : %ld.%.6ld\0A\00"
@.str.1 = [47 x i8] c"Temps syst\C3\A8me : %ld.%.6ld\0A\00"
@.str.2 = [40 x i8] c"Demandes de pages : %ld\0A\00"
@.str.3 = [40 x i8] c"Nombre de fautes de pages : %ld\0A\00"
@.str.4 = [40 x i8] c"Changts de contexte volontaires : %ld\0A\00"
@.str.5 = [40 x i8] c"Changts de contexte involontaires: %ld\0A\00"
@.str.6 = [10 x i8] c"getrusage\00"
@RLIMIT_CORE = global i32 0
@.str.7 = [5 x i8] c"CORE\00"
@.str.8 = [7 x i8] c"octets\00"
@.str.9 = [15 x i8] c"getrlimit CORE\00"
@RLIMIT_CPU = global i32 0
@.str.10 = [4 x i8] c"CPU\00"
@.str.11 = [5 x i8] c"sec.\00"
@.str.12 = [14 x i8] c"getrlimit CPU\00"
@RLIMIT_DATA = global i32 0
@.str.13 = [5 x i8] c"DATA\00"
@.str.14 = [6 x i8] c"pages\00"
@.str.15 = [15 x i8] c"getrlimit DATA\00"
@RLIMIT_STACK = global i32 0
@.str.16 = [6 x i8] c"STACK\00"
@.str.17 = [16 x i8] c"getrlimit STACK\00"
@RLIMIT_NOFILE = global i32 0
@.str.18 = [7 x i8] c"NOFILE\00"
@.str.19 = [11 x i8] c"file desc.\00"
@.str.20 = [17 x i8] c"getrlimit NOFILE\00"
define void @IF_resUsage() {
%1 = alloca %struct.rusage
%2 = alloca %struct.rlimit
%3 = load i32, i32* @RUSAGE_SELF
%4 = call i64 @getrusage(i32 %3, %struct.rusage* %1)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %33
6: ; preds = %0
%7 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 4
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 1
%9 = load i32, i32* %8
%10 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 4
%11 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %10, i32 0, i32 0
%12 = load i32, i32* %11
%13 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %9, i32 %12)
%14 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 4
%15 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %14, i32 0, i32 1
%16 = load i32, i32* %15
%17 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 4
%18 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %17, i32 0, i32 0
%19 = load i32, i32* %18
%20 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i32 %16, i32 %19)
%21 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 3
%22 = load i32, i32* %21
%23 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%24 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 2
%25 = load i32, i32* %24
%26 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%27 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 1
%28 = load i32, i32* %27
%29 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 0
%31 = load i32, i32* %30
%32 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i32 %31)
br label %35
33: ; preds = %0
%34 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %35
35: ; preds = %33, %6
%36 = load i32, i32* @RLIMIT_CORE
%37 = call i64 @getrlimit(i32 %36, %struct.rlimit* %2)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 @printLimits(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), %struct.rlimit* %2)
br label %43
41: ; preds = %35
%42 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
br label %43
43: ; preds = %41, %39
%44 = load i32, i32* @RLIMIT_CPU
%45 = call i64 @getrlimit(i32 %44, %struct.rlimit* %2)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 @printLimits(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), %struct.rlimit* %2)
br label %51
49: ; preds = %43
%50 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %51
51: ; preds = %49, %47
%52 = load i32, i32* @RLIMIT_DATA
%53 = call i64 @getrlimit(i32 %52, %struct.rlimit* %2)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 @printLimits(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), %struct.rlimit* %2)
br label %59
57: ; preds = %51
%58 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
br label %59
59: ; preds = %57, %55
%60 = load i32, i32* @RLIMIT_STACK
%61 = call i64 @getrlimit(i32 %60, %struct.rlimit* %2)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 @printLimits(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), %struct.rlimit* %2)
br label %67
65: ; preds = %59
%66 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0))
br label %67
67: ; preds = %65, %63
%68 = load i32, i32* @RLIMIT_NOFILE
%69 = call i64 @getrlimit(i32 %68, %struct.rlimit* %2)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = call i32 @printLimits(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), %struct.rlimit* %2)
br label %75
73: ; preds = %67
%74 = call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0))
br label %75
75: ; preds = %73, %71
ret void
}

LLVM IR (-O2):
%struct.rusage = type { i32, i32, i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32 }
%struct.rlimit = type { i32 }
@RUSAGE_SELF = global i32 0
@.str = [46 x i8] c"Temps processus : %ld.%.6ld\0A\00"
@.str.1 = [47 x i8] c"Temps syst\C3\A8me : %ld.%.6ld\0A\00"
@.str.2 = [40 x i8] c"Demandes de pages : %ld\0A\00"
@.str.3 = [40 x i8] c"Nombre de fautes de pages : %ld\0A\00"
@.str.4 = [40 x i8] c"Changts de contexte volontaires : %ld\0A\00"
@.str.5 = [40 x i8] c"Changts de contexte involontaires: %ld\0A\00"
@.str.6 = [10 x i8] c"getrusage\00"
@RLIMIT_CORE = global i32 0
@.str.7 = [5 x i8] c"CORE\00"
@.str.8 = [7 x i8] c"octets\00"
@.str.9 = [15 x i8] c"getrlimit CORE\00"
@RLIMIT_CPU = global i32 0
@.str.10 = [4 x i8] c"CPU\00"
@.str.11 = [5 x i8] c"sec.\00"
@.str.12 = [14 x i8] c"getrlimit CPU\00"
@RLIMIT_DATA = global i32 0
@.str.13 = [5 x i8] c"DATA\00"
@.str.14 = [6 x i8] c"pages\00"
@.str.15 = [15 x i8] c"getrlimit DATA\00"
@RLIMIT_STACK = global i32 0
@.str.16 = [6 x i8] c"STACK\00"
@.str.17 = [16 x i8] c"getrlimit STACK\00"
@RLIMIT_NOFILE = global i32 0
@.str.18 = [7 x i8] c"NOFILE\00"
@.str.19 = [11 x i8] c"file desc.\00"
@.str.20 = [17 x i8] c"getrlimit NOFILE\00"
define void @IF_resUsage() {
%1 = alloca %struct.rusage
%2 = alloca %struct.rlimit
%3 = bitcast %struct.rusage* %1 to i8*
%4 = bitcast %struct.rlimit* %2 to i8*
%5 = load i32, i32* @RUSAGE_SELF
%6 = call i64 @getrusage(i32 %5, %struct.rusage* %1)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %29
8: ; preds = %0
%9 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i64 0, i32 4, i32 1
%10 = load i32, i32* %9
%11 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i64 0, i32 4, i32 0
%12 = load i32, i32* %11
%13 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %12)
%14 = load i32, i32* %9
%15 = load i32, i32* %11
%16 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0), i32 %14, i32 %15)
%17 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i64 0, i32 3
%18 = load i32, i32* %17
%19 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i64 0, i32 2
%21 = load i32, i32* %20
%22 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%23 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i64 0, i32 1
%24 = load i32, i32* %23
%25 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i32 %24)
%26 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i64 0, i32 0
%27 = load i32, i32* %26
%28 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i32 %27)
br label %31
29: ; preds = %0
%30 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %31
31: ; preds = %29, %8
%32 = load i32, i32* @RLIMIT_CORE
%33 = call i64 @getrlimit(i32 %32, %struct.rlimit* %2)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @printLimits(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), %struct.rlimit* %2)
br label %39
37: ; preds = %31
%38 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
br label %39
39: ; preds = %37, %35
%40 = load i32, i32* @RLIMIT_CPU
%41 = call i64 @getrlimit(i32 %40, %struct.rlimit* %2)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 @printLimits(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), %struct.rlimit* %2)
br label %47
45: ; preds = %39
%46 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %47
47: ; preds = %45, %43
%48 = load i32, i32* @RLIMIT_DATA
%49 = call i64 @getrlimit(i32 %48, %struct.rlimit* %2)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = call i32 @printLimits(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), %struct.rlimit* %2)
br label %55
53: ; preds = %47
%54 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
br label %55
55: ; preds = %53, %51
%56 = load i32, i32* @RLIMIT_STACK
%57 = call i64 @getrlimit(i32 %56, %struct.rlimit* %2)
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = call i32 @printLimits(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), %struct.rlimit* %2)
br label %63
61: ; preds = %55
%62 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0))
br label %63
63: ; preds = %61, %59
%64 = load i32, i32* @RLIMIT_NOFILE
%65 = call i64 @getrlimit(i32 %64, %struct.rlimit* %2)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 @printLimits(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), %struct.rlimit* %2)
br label %71
69: ; preds = %63
%70 = call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0))
br label %71
71: ; preds = %69, %67
ret void
}