#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 tv_sec;
  int tv_nsec;
};
struct TYPE_3__ {
  int tv_sec;
  int tv_nsec;
};
struct itimerspec {
  TYPE_2__ it_value;
  TYPE_1__ it_interval;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_REALTIME;
int EBADF;
int EFAULT;
int EINVAL;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ close(int);
int errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ print_test_status(int, int);
int /*<<< orphan*/ stderr;
char *strerror(int);
int timerfd_create(int /*<<< orphan*/, int /*<<< orphan*/);
int timerfd_settime(int, int /*<<< orphan*/, struct itimerspec *,
                    struct itimerspec *);
int main(int argc, char *argv[]) {
  struct itimerspec old;
  struct itimerspec new;
  int fd;
  int ret;
  fd = timerfd_create(CLOCK_REALTIME, 0);
  if (fd < 0) {
    fprintf(stderr, "timerfd_create() failed: %s (%d)\n", strerror(errno),
            errno);
    goto error;
  }
  ret = timerfd_settime(-1, 0, &new, NULL);
  print_test_status(ret, errno);
  assert(ret != 0 && (errno == EBADF || errno == EINVAL));
  ret = timerfd_settime(fd, 0, NULL, NULL);
  print_test_status(ret, errno);
  assert(ret != 0 && errno == EFAULT);
  new.it_interval.tv_sec = 1;
  new.it_interval.tv_nsec = 3;
  new.it_value.tv_sec = 2;
  new.it_value.tv_nsec = 4;
  ret = timerfd_settime(fd, 0, &new, NULL);
  print_test_status(ret, errno);
  assert(ret == 0);
  new.it_interval.tv_sec = 1;
  new.it_interval.tv_nsec = 3;
  new.it_value.tv_sec = 2;
  new.it_value.tv_nsec = 4;
  ret = timerfd_settime(fd, 0, &new, &old);
  print_test_status(ret, errno);
  assert(ret == 0);
  new.it_interval.tv_sec = 0;
  new.it_interval.tv_nsec = 0;
  new.it_value.tv_sec = 0;
  new.it_value.tv_nsec = 0;
  ret = timerfd_settime(fd, 0, &new, &old);
  print_test_status(ret, errno);
  assert(ret == 0);
  close(fd);
  return 0;
error:
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e33(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1070 <timerfd_create@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    11dd <main+0x6d>
mov    0x2e2e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x3c(%rbp),%edi
mov    %rax,%rdx
mov    0x2e06(%rip),%rax
mov    (%rax),%ecx
lea    0xe2d(%rip),%rsi
call   1060 <fprintf@plt>
jmp    13c2 <main+0x252>
mov    $0xffffffff,%edi
xor    %esi,%esi
lea    -0x30(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1080 <timerfd_settime@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    0x2dd2(%rip),%rax
mov    (%rax),%esi
call   1030 <print_test_status@plt>
xor    %eax,%eax
cmpl   $0x0,-0x38(%rbp)
mov    %al,-0x3d(%rbp)
je     124f <main+0xdf>
mov    0x2db5(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%al
mov    0x2d92(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x3e(%rbp)
je     1249 <main+0xd9>
mov    0x2d98(%rip),%rax
mov    (%rax),%eax
mov    0x2d87(%rip),%rcx
cmp    (%rcx),%eax
sete   %al
mov    %al,-0x3e(%rbp)
mov    -0x3e(%rbp),%al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    -0x34(%rbp),%edi
xor    %esi,%esi
xor    %eax,%eax
mov    %eax,%ecx
mov    %rcx,%rdx
call   1080 <timerfd_settime@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    0x2d56(%rip),%rax
mov    (%rax),%esi
call   1030 <print_test_status@plt>
xor    %eax,%eax
cmpl   $0x0,-0x38(%rbp)
mov    %al,-0x3f(%rbp)
je     12a8 <main+0x138>
mov    0x2d39(%rip),%rax
mov    (%rax),%eax
mov    0x2d58(%rip),%rcx
cmp    (%rcx),%eax
sete   %al
mov    %al,-0x3f(%rbp)
mov    -0x3f(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
movl   $0x1,-0x28(%rbp)
movl   $0x3,-0x24(%rbp)
movl   $0x2,-0x30(%rbp)
movl   $0x4,-0x2c(%rbp)
mov    -0x34(%rbp),%edi
xor    %esi,%esi
lea    -0x30(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1080 <timerfd_settime@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    0x2ce0(%rip),%rax
mov    (%rax),%esi
call   1030 <print_test_status@plt>
cmpl   $0x0,-0x38(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
movl   $0x1,-0x28(%rbp)
movl   $0x3,-0x24(%rbp)
movl   $0x2,-0x30(%rbp)
movl   $0x4,-0x2c(%rbp)
mov    -0x34(%rbp),%edi
xor    %esi,%esi
lea    -0x30(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1080 <timerfd_settime@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    0x2c8d(%rip),%rax
mov    (%rax),%esi
call   1030 <print_test_status@plt>
cmpl   $0x0,-0x38(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x34(%rbp),%edi
xor    %esi,%esi
lea    -0x30(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1080 <timerfd_settime@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    0x2c3a(%rip),%rax
mov    (%rax),%esi
call   1030 <print_test_status@plt>
cmpl   $0x0,-0x38(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    -0x34(%rbp),%edi
call   1040 <close@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c9 <main+0x259>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    0x2e3b(%rip),%rax
mov    (%rax),%edi
xor    %ebx,%ebx
xor    %esi,%esi
call   1070 <timerfd_create@plt>
test   %eax,%eax
js     12e4 <main+0x174>
mov    %eax,%r12d
mov    %rsp,%rdx
mov    $0xffffffff,%edi
xor    %esi,%esi
xor    %ecx,%ecx
call   1080 <timerfd_settime@plt>
mov    %eax,%ebp
mov    0x2e1b(%rip),%r13
mov    0x0(%r13),%esi
mov    %eax,%edi
call   1030 <print_test_status@plt>
test   %ebp,%ebp
je     11e5 <main+0x75>
mov    0x0(%r13),%eax
mov    0x2de9(%rip),%rcx
cmp    (%rcx),%eax
sete   %cl
mov    0x2ded(%rip),%rdx
cmp    (%rdx),%eax
sete   %al
or     %cl,%al
movzbl %al,%ebx
mov    %ebx,%edi
call   1050 <assert@plt>
mov    %r12d,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1080 <timerfd_settime@plt>
mov    %eax,%ebx
mov    0x0(%r13),%esi
mov    %eax,%edi
call   1030 <print_test_status@plt>
test   %ebx,%ebx
setne  %al
mov    0x0(%r13),%ecx
mov    0x2de1(%rip),%rdx
cmp    (%rdx),%ecx
sete   %cl
and    %al,%cl
movzbl %cl,%edi
call   1050 <assert@plt>
movabs $0x300000001,%rbp
mov    %rbp,0x8(%rsp)
movabs $0x400000002,%r14
mov    %r14,(%rsp)
mov    %rsp,%r15
mov    %r12d,%edi
xor    %esi,%esi
mov    %r15,%rdx
xor    %ecx,%ecx
call   1080 <timerfd_settime@plt>
mov    %eax,%ebx
mov    0x0(%r13),%esi
mov    %eax,%edi
call   1030 <print_test_status@plt>
xor    %edi,%edi
test   %ebx,%ebx
sete   %dil
call   1050 <assert@plt>
mov    %rbp,0x8(%rsp)
mov    %r14,(%rsp)
lea    0x18(%rsp),%rbx
mov    %r12d,%edi
xor    %esi,%esi
mov    %r15,%rdx
mov    %rbx,%rcx
call   1080 <timerfd_settime@plt>
mov    %eax,%ebp
mov    0x0(%r13),%esi
mov    %eax,%edi
call   1030 <print_test_status@plt>
xor    %edi,%edi
test   %ebp,%ebp
sete   %dil
call   1050 <assert@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
mov    %r12d,%edi
xor    %esi,%esi
mov    %r15,%rdx
mov    %rbx,%rcx
call   1080 <timerfd_settime@plt>
mov    %eax,%ebx
mov    0x0(%r13),%esi
mov    %eax,%edi
call   1030 <print_test_status@plt>
xor    %edi,%edi
test   %ebx,%ebx
sete   %dil
call   1050 <assert@plt>
mov    %r12d,%edi
call   1040 <close@plt>
xor    %eax,%eax
jmp    1315 <main+0x1a5>
mov    0x2ced(%rip),%rax
mov    (%rax),%ebx
mov    0x2cdc(%rip),%rbp
mov    0x0(%rbp),%edi
call   1090 <strerror@plt>
mov    0x0(%rbp),%ecx
lea    0xcfa(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1060 <fprintf@plt>
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32, i32 }
%struct.TYPE_3__ = type { i32, i32 }
@CLOCK_REALTIME = global i32 0
@stderr = global i32 0
@.str = [34 x i8] c"timerfd_create() failed: %s (%d)\0A\00"
@errno = global i32 0
@EBADF = global i32 0
@EINVAL = global i32 0
@EFAULT = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.itimerspec
%7 = alloca %struct.itimerspec
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* @CLOCK_REALTIME
%11 = call i32 @timerfd_create(i32 %10, i32 0)
store i32 %11, i32* %8
%12 = load i32, i32* %8
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = load i32, i32* @errno
%17 = call i8* @strerror(i32 %16)
%18 = load i32, i32* @errno
%19 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %17, i32 %18)
br label %109
20: ; preds = %2
%21 = call i32 @timerfd_settime(i32 -1, i32 0, %struct.itimerspec* %7, %struct.itimerspec* null)
store i32 %21, i32* %9
%22 = load i32, i32* %9
%23 = load i32, i32* @errno
%24 = call i32 @print_test_status(i32 %22, i32 %23)
%25 = load i32, i32* %9
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %37
27: ; preds = %20
%28 = load i32, i32* @errno
%29 = load i32, i32* @EBADF
%30 = icmp eq i32 %28, %29
br i1 %30, label %35, label %31
31: ; preds = %27
%32 = load i32, i32* @errno
%33 = load i32, i32* @EINVAL
%34 = icmp eq i32 %32, %33
br label %35
35: ; preds = %31, %27
%36 = phi i1 [ true, %27 ], [ %34, %31 ]
br label %37
37: ; preds = %35, %20
%38 = phi i1 [ false, %20 ], [ %36, %35 ]
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = load i32, i32* %8
%42 = call i32 @timerfd_settime(i32 %41, i32 0, %struct.itimerspec* null, %struct.itimerspec* null)
store i32 %42, i32* %9
%43 = load i32, i32* %9
%44 = load i32, i32* @errno
%45 = call i32 @print_test_status(i32 %43, i32 %44)
%46 = load i32, i32* %9
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %37
%49 = load i32, i32* @errno
%50 = load i32, i32* @EFAULT
%51 = icmp eq i32 %49, %50
br label %52
52: ; preds = %48, %37
%53 = phi i1 [ false, %37 ], [ %51, %48 ]
%54 = zext i1 %53 to i32
%55 = call i32 @assert(i32 %54)
%56 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 1
%57 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %56, i32 0, i32 0
store i32 1, i32* %57
%58 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 1
%59 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %58, i32 0, i32 1
store i32 3, i32* %59
%60 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%61 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %60, i32 0, i32 0
store i32 2, i32* %61
%62 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%63 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %62, i32 0, i32 1
store i32 4, i32* %63
%64 = load i32, i32* %8
%65 = call i32 @timerfd_settime(i32 %64, i32 0, %struct.itimerspec* %7, %struct.itimerspec* null)
store i32 %65, i32* %9
%66 = load i32, i32* %9
%67 = load i32, i32* @errno
%68 = call i32 @print_test_status(i32 %66, i32 %67)
%69 = load i32, i32* %9
%70 = icmp eq i32 %69, 0
%71 = zext i1 %70 to i32
%72 = call i32 @assert(i32 %71)
%73 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 1
%74 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %73, i32 0, i32 0
store i32 1, i32* %74
%75 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 1
%76 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %75, i32 0, i32 1
store i32 3, i32* %76
%77 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%78 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %77, i32 0, i32 0
store i32 2, i32* %78
%79 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%80 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %79, i32 0, i32 1
store i32 4, i32* %80
%81 = load i32, i32* %8
%82 = call i32 @timerfd_settime(i32 %81, i32 0, %struct.itimerspec* %7, %struct.itimerspec* %6)
store i32 %82, i32* %9
%83 = load i32, i32* %9
%84 = load i32, i32* @errno
%85 = call i32 @print_test_status(i32 %83, i32 %84)
%86 = load i32, i32* %9
%87 = icmp eq i32 %86, 0
%88 = zext i1 %87 to i32
%89 = call i32 @assert(i32 %88)
%90 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 1
%91 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %90, i32 0, i32 0
store i32 0, i32* %91
%92 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 1
%93 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %92, i32 0, i32 1
store i32 0, i32* %93
%94 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%95 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %94, i32 0, i32 0
store i32 0, i32* %95
%96 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%97 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %96, i32 0, i32 1
store i32 0, i32* %97
%98 = load i32, i32* %8
%99 = call i32 @timerfd_settime(i32 %98, i32 0, %struct.itimerspec* %7, %struct.itimerspec* %6)
store i32 %99, i32* %9
%100 = load i32, i32* %9
%101 = load i32, i32* @errno
%102 = call i32 @print_test_status(i32 %100, i32 %101)
%103 = load i32, i32* %9
%104 = icmp eq i32 %103, 0
%105 = zext i1 %104 to i32
%106 = call i32 @assert(i32 %105)
%107 = load i32, i32* %8
%108 = call i32 @close(i32 %107)
store i32 0, i32* %3
br label %110
109: ; preds = %14
store i32 1, i32* %3
br label %110
110: ; preds = %109, %52
%111 = load i32, i32* %3
ret i32 %111
}

LLVM IR (-O2):
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32, i32 }
%struct.TYPE_3__ = type { i32, i32 }
@CLOCK_REALTIME = global i32 0
@stderr = global i32 0
@.str = [34 x i8] c"timerfd_create() failed: %s (%d)\0A\00"
@errno = global i32 0
@EBADF = global i32 0
@EINVAL = global i32 0
@EFAULT = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.itimerspec
%4 = alloca %struct.itimerspec
%5 = bitcast %struct.itimerspec* %3 to i8*
%6 = bitcast %struct.itimerspec* %4 to i8*
%7 = load i32, i32* @CLOCK_REALTIME
%8 = tail call i32 @timerfd_create(i32 %7, i32 0)
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i32, i32* @errno
%13 = tail call i8* @strerror(i32 %12)
%14 = load i32, i32* @errno
%15 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %13, i32 %14)
br label %66
16: ; preds = %2
%17 = call i32 @timerfd_settime(i32 -1, i32 0, %struct.itimerspec* %4, %struct.itimerspec* null)
%18 = load i32, i32* @errno
%19 = call i32 @print_test_status(i32 %17, i32 %18)
%20 = icmp eq i32 %17, 0
br i1 %20, label %29, label %21
21: ; preds = %16
%22 = load i32, i32* @errno
%23 = load i32, i32* @EBADF
%24 = icmp eq i32 %22, %23
%25 = load i32, i32* @EINVAL
%26 = icmp eq i32 %22, %25
%27 = select i1 %24, i1 true, i1 %26
%28 = zext i1 %27 to i32
br label %29
29: ; preds = %21, %16
%30 = phi i32 [ 0, %16 ], [ %28, %21 ]
%31 = call i32 @assert(i32 %30)
%32 = call i32 @timerfd_settime(i32 %8, i32 0, %struct.itimerspec* null, %struct.itimerspec* null)
%33 = load i32, i32* @errno
%34 = call i32 @print_test_status(i32 %32, i32 %33)
%35 = icmp ne i32 %32, 0
%36 = load i32, i32* @errno
%37 = load i32, i32* @EFAULT
%38 = icmp eq i32 %36, %37
%39 = select i1 %35, i1 %38, i1 false
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
%42 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %4, i64 0, i32 1, i32 0
store i32 1, i32* %42
%43 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %4, i64 0, i32 1, i32 1
store i32 3, i32* %43
%44 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %4, i64 0, i32 0, i32 0
store i32 2, i32* %44
%45 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %4, i64 0, i32 0, i32 1
store i32 4, i32* %45
%46 = call i32 @timerfd_settime(i32 %8, i32 0, %struct.itimerspec* %4, %struct.itimerspec* null)
%47 = load i32, i32* @errno
%48 = call i32 @print_test_status(i32 %46, i32 %47)
%49 = icmp eq i32 %46, 0
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 %50)
store i32 1, i32* %42
store i32 3, i32* %43
store i32 2, i32* %44
store i32 4, i32* %45
%52 = call i32 @timerfd_settime(i32 %8, i32 0, %struct.itimerspec* %4, %struct.itimerspec* %3)
%53 = load i32, i32* @errno
%54 = call i32 @print_test_status(i32 %52, i32 %53)
%55 = icmp eq i32 %52, 0
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = bitcast %struct.itimerspec* %4 to i8*
%59 = call i32 @timerfd_settime(i32 %8, i32 0, %struct.itimerspec* %4, %struct.itimerspec* %3)
%60 = load i32, i32* @errno
%61 = call i32 @print_test_status(i32 %59, i32 %60)
%62 = icmp eq i32 %59, 0
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = call i32 @close(i32 %8)
br label %66
66: ; preds = %10, %29
%67 = phi i32 [ 1, %10 ], [ 0, %29 ]
ret i32 %67
}