#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 */

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int const, ...);
int /*<<< orphan*/ stderr;
void print_test_status(const int test_ret, const int test_errno) {
  if (test_ret == 0) {
    fprintf(stderr, "timerfd_settime() returned %d\n", test_ret);
  } else {
    fprintf(stderr, "timerfd_settime() returned %d and errno was set to %d\n",
            test_ret, test_errno);
  }
}


x86 assembly (clang, -O0):
<print_test_status>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1147 <print_test_status+0x37>
mov    0x2eb1(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xec5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1164 <print_test_status+0x54>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xec2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_test_status>:
mov    %edi,%edx
mov    0x2ec7(%rip),%rax
mov    (%rax),%edi
test   %edx,%edx
je     112f <print_test_status+0x1f>
mov    %esi,%ecx
lea    0xef7(%rip),%rsi
xor    %eax,%eax
jmp    1030 <fprintf@plt>
lea    0xeca(%rip),%rsi
xor    %edx,%edx
xor    %eax,%eax
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [31 x i8] c"timerfd_settime() returned %d\0A\00"
@.str.1 = [55 x i8] c"timerfd_settime() returned %d and errno was set to %d\0A\00"
define void @print_test_status(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = load i32, i32* %3
%10 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 %9)
br label %16
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %14)
br label %16
16: ; preds = %11, %7
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [31 x i8] c"timerfd_settime() returned %d\0A\00"
@.str.1 = [55 x i8] c"timerfd_settime() returned %d and errno was set to %d\0A\00"
define void @print_test_status(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 0
%4 = load i32, i32* @stderr
br i1 %3, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 0)
br label %9
7: ; preds = %2
%8 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i32 %0, i32 %1)
br label %9
9: ; preds = %7, %5
ret void
}