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

/* Variables and functions */
int TFD_TIMER_ABSTIME;
int abs(long long);
scalar_t__ check_skip(int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ ksft_test_result_error(char *, int);
int /*<<< orphan*/ ksft_test_result_fail(char *, int, long long);
int /*<<< orphan*/ ksft_test_result_pass(char *, int);
scalar_t__ tclock_gettime(int, struct timespec *);
int timerfd_create(int, int /*<<< orphan*/);
scalar_t__ timerfd_gettime(int, struct itimerspec *);
scalar_t__ timerfd_settime(int, int, struct itimerspec *, int /*<<< orphan*/ *);
int run_test(int clockid, struct timespec now) {
  struct itimerspec new_value;
  long long elapsed;
  int fd, i;
  if (check_skip(clockid))
    return 0;
  if (tclock_gettime(clockid, &now))
    return ({
      ksft_test_result_error("clock_gettime(%d)"
                             ": %m"
                             "\n",
                             clockid);
      -1;
    });
  for (i = 0; i < 2; i++) {
    int flags = 0;
    new_value.it_value.tv_sec = 3600;
    new_value.it_value.tv_nsec = 0;
    new_value.it_interval.tv_sec = 1;
    new_value.it_interval.tv_nsec = 0;
    if (i == 1) {
      new_value.it_value.tv_sec += now.tv_sec;
      new_value.it_value.tv_nsec += now.tv_nsec;
    }
    fd = timerfd_create(clockid, 0);
    if (fd == -1)
      return ({
        ksft_test_result_error("timerfd_create(%d)"
                               ": %m"
                               "\n",
                               clockid);
        -1;
      });
    if (i == 1)
      flags |= TFD_TIMER_ABSTIME;
    if (timerfd_settime(fd, flags, &new_value, NULL))
      return ({
        ksft_test_result_error("timerfd_settime(%d)"
                               ": %m"
                               "\n",
                               clockid);
        -1;
      });
    if (timerfd_gettime(fd, &new_value))
      return ({
        ksft_test_result_error("timerfd_gettime(%d)"
                               ": %m"
                               "\n",
                               clockid);
        -1;
      });
    elapsed = new_value.it_value.tv_sec;
    if (abs(elapsed - 3600) > 60) {
      ksft_test_result_fail("clockid: %d elapsed: %lld\n", clockid, elapsed);
      return 1;
    }
    close(fd);
  }
  ksft_test_result_pass("clockid=%d\n", clockid);
  return 0;
}


x86 assembly (clang, -O0):
<run_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %edi,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
call   1050 <check_skip@plt>
cmp    $0x0,%rax
je     11d1 <run_test+0x31>
movl   $0x0,-0x4(%rbp)
jmp    1394 <run_test+0x1f4>
mov    -0x1c(%rbp),%edi
lea    -0x18(%rbp),%rsi
call   10b0 <tclock_gettime@plt>
cmp    $0x0,%rax
je     1208 <run_test+0x68>
mov    -0x1c(%rbp),%esi
lea    0xe0f(%rip),%rdi
call   1070 <ksft_test_result_error@plt>
movl   $0xffffffff,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1394 <run_test+0x1f4>
movl   $0x0,-0x50(%rbp)
cmpl   $0x2,-0x50(%rbp)
jge    137e <run_test+0x1de>
movl   $0x0,-0x58(%rbp)
movl   $0xe10,-0x40(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0x1,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
cmpl   $0x1,-0x50(%rbp)
jne    1262 <run_test+0xc2>
mov    -0x10(%rbp),%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x1c(%rbp),%edi
xor    %esi,%esi
call   1090 <timerfd_create@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0xffffffff,-0x4c(%rbp)
jne    129a <run_test+0xfa>
mov    -0x1c(%rbp),%esi
lea    0xd94(%rip),%rdi
call   1070 <ksft_test_result_error@plt>
movl   $0xffffffff,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1394 <run_test+0x1f4>
cmpl   $0x1,-0x50(%rbp)
jne    12b3 <run_test+0x113>
mov    0x2d45(%rip),%rax
mov    (%rax),%eax
or     -0x58(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x58(%rbp),%esi
lea    -0x40(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   10a0 <timerfd_settime@plt>
cmp    $0x0,%rax
je     12f1 <run_test+0x151>
mov    -0x1c(%rbp),%esi
lea    0xd55(%rip),%rdi
call   1070 <ksft_test_result_error@plt>
movl   $0xffffffff,-0x60(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1394 <run_test+0x1f4>
mov    -0x4c(%rbp),%edi
lea    -0x40(%rbp),%rsi
call   10c0 <timerfd_gettime@plt>
cmp    $0x0,%rax
je     1328 <run_test+0x188>
mov    -0x1c(%rbp),%esi
lea    0xd37(%rip),%rdi
call   1070 <ksft_test_result_error@plt>
movl   $0xffffffff,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1394 <run_test+0x1f4>
movslq -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
sub    $0xe10,%rdi
call   1040 <abs@plt>
cmp    $0x3c,%eax
jle    1368 <run_test+0x1c8>
mov    -0x1c(%rbp),%esi
mov    -0x48(%rbp),%rdx
lea    0xd0a(%rip),%rdi
call   1080 <ksft_test_result_fail@plt>
movl   $0x1,-0x4(%rbp)
jmp    1394 <run_test+0x1f4>
mov    -0x4c(%rbp),%edi
call   1060 <close@plt>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    120f <run_test+0x6f>
mov    -0x1c(%rbp),%esi
lea    0xcf4(%rip),%rdi
call   1030 <ksft_test_result_pass@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_test>:
push   %rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %edi,%ebx
mov    %rsi,0x20(%rsp)
mov    %rdx,0x28(%rsp)
call   1050 <check_skip@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
jne    11e7 <run_test+0x47>
lea    0x20(%rsp),%rsi
mov    %ebx,%edi
call   10b0 <tclock_gettime@plt>
test   %rax,%rax
je     11f0 <run_test+0x50>
lea    0xe25(%rip),%rdi
mov    %ebx,%esi
call   1070 <ksft_test_result_error@plt>
mov    $0xffffffff,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
movl   $0xe10,(%rsp)
movq   $0x0,0x8(%rsp)
movl   $0x1,0x10(%rsp)
movq   $0x0,0x18(%rsp)
mov    %ebx,%edi
xor    %esi,%esi
call   1090 <timerfd_create@plt>
cmp    $0xffffffff,%eax
je     132d <run_test+0x18d>
mov    %eax,%ebp
mov    %rsp,%rdx
mov    %eax,%edi
xor    %esi,%esi
xor    %ecx,%ecx
call   10a0 <timerfd_settime@plt>
test   %rax,%rax
je     1241 <run_test+0xa1>
lea    0xdf0(%rip),%rdi
jmp    11db <run_test+0x3b>
mov    %rsp,%rsi
mov    %ebp,%edi
call   10c0 <timerfd_gettime@plt>
test   %rax,%rax
je     1259 <run_test+0xb9>
lea    0xdf1(%rip),%rdi
jmp    11db <run_test+0x3b>
movslq (%rsp),%r14
lea    -0xe10(%r14),%rdi
call   1040 <abs@plt>
cmp    $0x3d,%eax
jl     1289 <run_test+0xe9>
lea    0xdec(%rip),%rdi
mov    %ebx,%esi
mov    %r14,%rdx
call   1080 <ksft_test_result_fail@plt>
mov    $0x1,%eax
jmp    11e7 <run_test+0x47>
mov    %ebp,%edi
call   1060 <close@plt>
movl   $0x1,0x10(%rsp)
mov    $0xe10,%eax
add    0x28(%rsp),%eax
movq   $0x0,0x18(%rsp)
mov    %eax,(%rsp)
mov    0x20(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    %ebx,%edi
xor    %esi,%esi
call   1090 <timerfd_create@plt>
cmp    $0xffffffff,%eax
je     132d <run_test+0x18d>
mov    %eax,%ebp
mov    0x2d22(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
mov    %ebp,%edi
xor    %ecx,%ecx
call   10a0 <timerfd_settime@plt>
test   %rax,%rax
jne    1238 <run_test+0x98>
mov    %rsp,%rsi
mov    %ebp,%edi
call   10c0 <timerfd_gettime@plt>
test   %rax,%rax
jne    1250 <run_test+0xb0>
movslq (%rsp),%r14
lea    -0xe10(%r14),%rdi
call   1040 <abs@plt>
cmp    $0x3c,%eax
jg     126e <run_test+0xce>
mov    %ebp,%edi
call   1060 <close@plt>
lea    0xd5d(%rip),%rdi
mov    %ebx,%esi
call   1030 <ksft_test_result_pass@plt>
xor    %eax,%eax
jmp    11e7 <run_test+0x47>
lea    0xce3(%rip),%rdi
jmp    11db <run_test+0x3b>

LLVM IR (-O0):
%struct.timespec = type { i64, i64 }
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32, i64 }
%struct.TYPE_3__ = type { i32, i64 }
@.str = [23 x i8] c"clock_gettime(%d): %m\0A\00"
@.str.1 = [24 x i8] c"timerfd_create(%d): %m\0A\00"
@TFD_TIMER_ABSTIME = global i32 0
@.str.2 = [25 x i8] c"timerfd_settime(%d): %m\0A\00"
@.str.3 = [25 x i8] c"timerfd_gettime(%d): %m\0A\00"
@.str.4 = [27 x i8] c"clockid: %d elapsed: %lld\0A\00"
@.str.5 = [12 x i8] c"clockid=%d\0A\00"
define i32 @run_test(i32 %0, i64 %1, i64 %2) {
%4 = alloca i32
%5 = alloca %struct.timespec
%6 = alloca i32
%7 = alloca %struct.itimerspec
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = bitcast %struct.timespec* %5 to { i64, i64 }*
%17 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %16, i32 0, i32 0
store i64 %1, i64* %17
%18 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %16, i32 0, i32 1
store i64 %2, i64* %18
store i32 %0, i32* %6
%19 = load i32, i32* %6
%20 = call i64 @check_skip(i32 %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %3
store i32 0, i32* %4
br label %116
23: ; preds = %3
%24 = load i32, i32* %6
%25 = call i64 @tclock_gettime(i32 %24, %struct.timespec* %5)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %23
%28 = load i32, i32* %6
%29 = call i32 @ksft_test_result_error(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %28)
store i32 -1, i32* %11
%30 = load i32, i32* %11
store i32 %30, i32* %4
br label %116
31: ; preds = %23
store i32 0, i32* %10
br label %32
32: ; preds = %110, %31
%33 = load i32, i32* %10
%34 = icmp slt i32 %33, 2
br i1 %34, label %35, label %113
35: ; preds = %32
store i32 0, i32* %12
%36 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%37 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %36, i32 0, i32 0
store i32 3600, i32* %37
%38 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%39 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %38, i32 0, i32 1
store i64 0, i64* %39
%40 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 1
%41 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %40, i32 0, i32 0
store i32 1, i32* %41
%42 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 1
%43 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %42, i32 0, i32 1
store i64 0, i64* %43
%44 = load i32, i32* %10
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %61
46: ; preds = %35
%47 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i32 0, i32 1
%48 = load i64, i64* %47
%49 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%50 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %49, i32 0, i32 0
%51 = load i32, i32* %50
%52 = sext i32 %51 to i64
%53 = add nsw i64 %52, %48
%54 = trunc i64 %53 to i32
store i32 %54, i32* %50
%55 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i32 0, i32 0
%56 = load i64, i64* %55
%57 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%58 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %57, i32 0, i32 1
%59 = load i64, i64* %58
%60 = add nsw i64 %59, %56
store i64 %60, i64* %58
br label %61
61: ; preds = %46, %35
%62 = load i32, i32* %6
%63 = call i32 @timerfd_create(i32 %62, i32 0)
store i32 %63, i32* %9
%64 = load i32, i32* %9
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %70
66: ; preds = %61
%67 = load i32, i32* %6
%68 = call i32 @ksft_test_result_error(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %67)
store i32 -1, i32* %13
%69 = load i32, i32* %13
store i32 %69, i32* %4
br label %116
70: ; preds = %61
%71 = load i32, i32* %10
%72 = icmp eq i32 %71, 1
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = load i32, i32* @TFD_TIMER_ABSTIME
%75 = load i32, i32* %12
%76 = or i32 %75, %74
store i32 %76, i32* %12
br label %77
77: ; preds = %73, %70
%78 = load i32, i32* %9
%79 = load i32, i32* %12
%80 = call i64 @timerfd_settime(i32 %78, i32 %79, %struct.itimerspec* %7, i32* null)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %77
%83 = load i32, i32* %6
%84 = call i32 @ksft_test_result_error(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %83)
store i32 -1, i32* %14
%85 = load i32, i32* %14
store i32 %85, i32* %4
br label %116
86: ; preds = %77
%87 = load i32, i32* %9
%88 = call i64 @timerfd_gettime(i32 %87, %struct.itimerspec* %7)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %94
90: ; preds = %86
%91 = load i32, i32* %6
%92 = call i32 @ksft_test_result_error(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %91)
store i32 -1, i32* %15
%93 = load i32, i32* %15
store i32 %93, i32* %4
br label %116
94: ; preds = %86
%95 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %7, i32 0, i32 0
%96 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %95, i32 0, i32 0
%97 = load i32, i32* %96
%98 = sext i32 %97 to i64
store i64 %98, i64* %8
%99 = load i64, i64* %8
%100 = sub nsw i64 %99, 3600
%101 = call i32 @abs(i64 %100)
%102 = icmp sgt i32 %101, 60
br i1 %102, label %103, label %107
103: ; preds = %94
%104 = load i32, i32* %6
%105 = load i64, i64* %8
%106 = call i32 @ksft_test_result_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %104, i64 %105)
store i32 1, i32* %4
br label %116
107: ; preds = %94
%108 = load i32, i32* %9
%109 = call i32 @close(i32 %108)
br label %110
110: ; preds = %107
%111 = load i32, i32* %10
%112 = add nsw i32 %111, 1
store i32 %112, i32* %10
br label %32
113: ; preds = %32
%114 = load i32, i32* %6
%115 = call i32 @ksft_test_result_pass(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %114)
store i32 0, i32* %4
br label %116
116: ; preds = %113, %103, %90, %82, %66, %27, %22
%117 = load i32, i32* %4
ret i32 %117
}

LLVM IR (-O2):
%struct.timespec = type { i64, i64 }
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32, i64 }
%struct.TYPE_3__ = type { i32, i64 }
@.str = [23 x i8] c"clock_gettime(%d): %m\0A\00"
@.str.1 = [24 x i8] c"timerfd_create(%d): %m\0A\00"
@TFD_TIMER_ABSTIME = global i32 0
@.str.2 = [25 x i8] c"timerfd_settime(%d): %m\0A\00"
@.str.3 = [25 x i8] c"timerfd_gettime(%d): %m\0A\00"
@.str.4 = [27 x i8] c"clockid: %d elapsed: %lld\0A\00"
@.str.5 = [12 x i8] c"clockid=%d\0A\00"
define i32 @run_test(i32 %0, i64 %1, i64 %2) {
%4 = alloca %struct.timespec
%5 = alloca %struct.itimerspec
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i64 0, i32 0
store i64 %1, i64* %6
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i64 0, i32 1
store i64 %2, i64* %7
%8 = bitcast %struct.itimerspec* %5 to i8*
%9 = tail call i64 @check_skip(i32 %0)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %68
11: ; preds = %3
%12 = call i64 @tclock_gettime(i32 %0, %struct.timespec* %4)
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = call i32 @ksft_test_result_error(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %68
16: ; preds = %11
%17 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %5, i64 0, i32 0, i32 0
%18 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %5, i64 0, i32 0, i32 1
%19 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %5, i64 0, i32 1, i32 0
%20 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %5, i64 0, i32 1, i32 1
store i32 3600, i32* %17
store i64 0, i64* %18
store i32 1, i32* %19
store i64 0, i64* %20
%21 = call i32 @timerfd_create(i32 %0, i32 0)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %44, %16
%24 = call i32 @ksft_test_result_error(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %0)
br label %68
25: ; preds = %16
%26 = call i64 @timerfd_settime(i32 %21, i32 0, %struct.itimerspec* %5, i32* null)
%27 = icmp eq i64 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %52, %25
%29 = call i32 @ksft_test_result_error(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %0)
br label %68
30: ; preds = %25
%31 = call i64 @timerfd_gettime(i32 %21, %struct.itimerspec* %5)
%32 = icmp eq i64 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %56, %30
%34 = call i32 @ksft_test_result_error(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %0)
br label %68
35: ; preds = %30
%36 = load i32, i32* %17
%37 = sext i32 %36 to i64
%38 = add nsw i64 %37, -3600
%39 = call i32 @abs(i64 %38)
%40 = icmp sgt i32 %39, 60
br i1 %40, label %41, label %44
41: ; preds = %59, %35
%42 = phi i64 [ %61, %59 ], [ %37, %35 ]
%43 = call i32 @ksft_test_result_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %0, i64 %42)
br label %68
44: ; preds = %35
%45 = call i32 @close(i32 %21)
store i32 1, i32* %19
store i64 0, i64* %20
%46 = load i64, i64* %7
%47 = trunc i64 %46 to i32
%48 = add i32 %47, 3600
store i32 %48, i32* %17
%49 = load i64, i64* %6
store i64 %49, i64* %18
%50 = call i32 @timerfd_create(i32 %0, i32 0)
%51 = icmp eq i32 %50, -1
br i1 %51, label %23, label %52
52: ; preds = %44
%53 = load i32, i32* @TFD_TIMER_ABSTIME
%54 = call i64 @timerfd_settime(i32 %50, i32 %53, %struct.itimerspec* %5, i32* null)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %28
56: ; preds = %52
%57 = call i64 @timerfd_gettime(i32 %50, %struct.itimerspec* %5)
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %33
59: ; preds = %56
%60 = load i32, i32* %17
%61 = sext i32 %60 to i64
%62 = add nsw i64 %61, -3600
%63 = call i32 @abs(i64 %62)
%64 = icmp sgt i32 %63, 60
br i1 %64, label %41, label %65
65: ; preds = %59
%66 = call i32 @close(i32 %50)
%67 = call i32 @ksft_test_result_pass(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %0)
br label %68
68: ; preds = %23, %28, %33, %41, %3, %65, %14
%69 = phi i32 [ -1, %14 ], [ 0, %65 ], [ 0, %3 ], [ -1, %23 ], [ -1, %28 ], [ -1, %33 ], [ 1, %41 ]
ret i32 %69
}