#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 tm_year;
  int tm_mon;
  int tm_mday;
  int tm_hour;
  int tm_min;
  int tm_sec;
};
struct rtc_wkalrm {
  int enabled;
  scalar_t__ pending;
  TYPE_1__ time;
};
typedef int /*<<< orphan*/ alrm;

/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ RTC_WKALM_RD;
int /*<<< orphan*/ RTC_WKALM_SET;
int /*<<< orphan*/ close(int);
int ioctl(int, int /*<<< orphan*/, struct rtc_wkalrm *);
int /*<<< orphan*/ memset(struct rtc_wkalrm *, int /*<<< orphan*/, int);
int open(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int clear_rtc(void) {
  static const char rtc_path[] = "/dev/rtc0";
  int rtc_fd = -1;
  struct rtc_wkalrm alrm;
  if ((rtc_fd = open(rtc_path, O_RDONLY)) == -1) {
    printf("Failed to open %s: %m\n", rtc_path);
    return EXIT_FAILURE;
  }
  memset(&alrm, 0, sizeof(alrm));
  if (ioctl(rtc_fd, RTC_WKALM_RD, &alrm) == -1) {
    printf("Failed to read rtc alarms %s: %s: %m\n", rtc_path, "RTC_WKALM_RD");
    close(rtc_fd);
    return EXIT_FAILURE;
  }
  printf("Alarm was %s at %d.%d.%d %02d:%02d:%02d UTC\n",
         alrm.enabled ? "Enabled" : "Disabled", 1900 + alrm.time.tm_year,
         1 + alrm.time.tm_mon, alrm.time.tm_mday, alrm.time.tm_hour,
         alrm.time.tm_min, alrm.time.tm_sec);
  alrm.enabled = 1;
  alrm.pending = 0;
  if (ioctl(rtc_fd, RTC_WKALM_SET, &alrm) == -1)
    printf("Failed to enable rtc alarms %s: %s: %m\n", rtc_path,
           "RTC_WKALM_SET");
  alrm.enabled = 0;
  alrm.pending = 0;
  if (ioctl(rtc_fd, RTC_WKALM_SET, &alrm) == -1) {
    printf("Failed to clear rtc alarms %s: %s: %m\n", rtc_path,
           "RTC_WKALM_SET");
    close(rtc_fd);
    return EXIT_FAILURE;
  }
  close(rtc_fd);
  printf("RTC alarm cleared ok\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<clear_rtc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0xffffffff,-0x8(%rbp)
mov    0x2e82(%rip),%rax
mov    (%rax),%esi
lea    0xe91(%rip),%rdi
call   1070 <open@plt>
mov    %eax,-0x8(%rbp)
cmp    $0xffffffff,%eax
jne    11a6 <clear_rtc+0x56>
lea    0xe83(%rip),%rdi
lea    0xe72(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1322 <clear_rtc+0x1d2>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
mov    -0x8(%rbp),%edi
mov    0x2e00(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   1050 <ioctl@plt>
cmp    $0xffffffff,%eax
jne    1209 <clear_rtc+0xb9>
lea    0xe46(%rip),%rdi
lea    0xe1e(%rip),%rsi
lea    0xe5e(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
call   1060 <close@plt>
mov    0x2dd1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1322 <clear_rtc+0x1d2>
mov    -0x30(%rbp),%ecx
lea    0xe76(%rip),%rsi
lea    0xe67(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
mov    -0x20(%rbp),%edx
add    $0x76c,%edx
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
mov    -0x18(%rbp),%r8d
mov    -0x14(%rbp),%r9d
mov    -0x10(%rbp),%r10d
mov    -0xc(%rbp),%eax
lea    0xe0e(%rip),%rdi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2d72(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   1050 <ioctl@plt>
cmp    $0xffffffff,%eax
jne    129e <clear_rtc+0x14e>
lea    0xe09(%rip),%rdi
lea    0xd70(%rip),%rsi
lea    0xe23(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2d29(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
call   1050 <ioctl@plt>
cmp    $0xffffffff,%eax
jne    1300 <clear_rtc+0x1b0>
lea    0xdf6(%rip),%rdi
lea    0xd27(%rip),%rsi
lea    0xdda(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
call   1060 <close@plt>
mov    0x2cda(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1322 <clear_rtc+0x1d2>
mov    -0x8(%rbp),%edi
call   1060 <close@plt>
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cab(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clear_rtc>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    0x2e7a(%rip),%rax
mov    (%rax),%esi
lea    0xe89(%rip),%rdi
call   1080 <open@plt>
cmp    $0xffffffff,%eax
je     1288 <clear_rtc+0x128>
mov    %eax,%ebx
mov    %rsp,%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1050 <memset@plt>
mov    0x2e20(%rip),%rax
mov    (%rax),%esi
mov    %ebx,%edi
mov    %r14,%rdx
call   1060 <ioctl@plt>
cmp    $0xffffffff,%eax
je     129f <clear_rtc+0x13f>
cmpl   $0x0,(%rsp)
lea    0xec9(%rip),%rax
lea    0xeba(%rip),%rsi
cmove  %rax,%rsi
mov    $0x76c,%edx
add    0x10(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x18(%rsp),%r8d
add    $0x1,%ecx
mov    0x1c(%rsp),%r9d
mov    0x20(%rsp),%r10d
mov    0x24(%rsp),%r11d
lea    0xe5e(%rip),%rdi
xor    %eax,%eax
push   %r11
push   %r10
call   1040 <printf@plt>
add    $0x10,%rsp
movl   $0x1,(%rsp)
movq   $0x0,0x8(%rsp)
mov    0x2dc4(%rip),%r14
mov    (%r14),%esi
mov    %rsp,%rdx
mov    %ebx,%edi
call   1060 <ioctl@plt>
cmp    $0xffffffff,%eax
jne    124a <clear_rtc+0xea>
lea    0xe5d(%rip),%rdi
lea    0xdc4(%rip),%rsi
lea    0xe77(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,(%rsp)
movq   $0x0,0x8(%rsp)
mov    (%r14),%esi
mov    %rsp,%rdx
mov    %ebx,%edi
call   1060 <ioctl@plt>
cmp    $0xffffffff,%eax
je     12b6 <clear_rtc+0x156>
mov    %ebx,%edi
call   1070 <close@plt>
lea    0xe75(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d42(%rip),%rax
jmp    12e0 <clear_rtc+0x180>
lea    0xd7b(%rip),%rdi
lea    0xd6a(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12d9 <clear_rtc+0x179>
lea    0xd7b(%rip),%rdi
lea    0xd53(%rip),%rsi
lea    0xd93(%rip),%rdx
jmp    12cb <clear_rtc+0x16b>
lea    0xe0b(%rip),%rdi
lea    0xd3c(%rip),%rsi
lea    0xdef(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebx,%edi
call   1070 <close@plt>
mov    0x2cf0(%rip),%rax
mov    (%rax),%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.rtc_wkalrm = type { i32, i64, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32, i32, i32, i32, i32 }
@clear_rtc.rtc_path = internal constant [10 x i8] c"/dev/rtc0\00"
@O_RDONLY = global i32 0
@.str = [23 x i8] c"Failed to open %s: %m\0A\00"
@EXIT_FAILURE = global i32 0
@RTC_WKALM_RD = global i32 0
@.str.1 = [38 x i8] c"Failed to read rtc alarms %s: %s: %m\0A\00"
@.str.2 = [13 x i8] c"RTC_WKALM_RD\00"
@.str.3 = [45 x i8] c"Alarm was %s at %d.%d.%d %02d:%02d:%02d UTC\0A\00"
@.str.4 = [8 x i8] c"Enabled\00"
@.str.5 = [9 x i8] c"Disabled\00"
@RTC_WKALM_SET = global i32 0
@.str.6 = [40 x i8] c"Failed to enable rtc alarms %s: %s: %m\0A\00"
@.str.7 = [14 x i8] c"RTC_WKALM_SET\00"
@.str.8 = [39 x i8] c"Failed to clear rtc alarms %s: %s: %m\0A\00"
@.str.9 = [22 x i8] c"RTC alarm cleared ok\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @clear_rtc() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.rtc_wkalrm
store i32 -1, i32* %2
%4 = load i32, i32* @O_RDONLY
%5 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0), i32 %4)
store i32 %5, i32* %2
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0))
%9 = load i32, i32* @EXIT_FAILURE
store i32 %9, i32* %1
br label %73
10: ; preds = %0
%11 = call i32 @memset(%struct.rtc_wkalrm* %3, i32 0, i32 40)
%12 = load i32, i32* %2
%13 = load i32, i32* @RTC_WKALM_RD
%14 = call i32 @ioctl(i32 %12, i32 %13, %struct.rtc_wkalrm* %3)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %21
16: ; preds = %10
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32, i32* %2
%19 = call i32 @close(i32 %18)
%20 = load i32, i32* @EXIT_FAILURE
store i32 %20, i32* %1
br label %73
21: ; preds = %10
%22 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 0
%23 = load i32, i32* %22
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0)
%27 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 2
%28 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %27, i32 0, i32 0
%29 = load i32, i32* %28
%30 = add nsw i32 1900, %29
%31 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 2
%32 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %31, i32 0, i32 1
%33 = load i32, i32* %32
%34 = add nsw i32 1, %33
%35 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 2
%36 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %35, i32 0, i32 2
%37 = load i32, i32* %36
%38 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 2
%39 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %38, i32 0, i32 3
%40 = load i32, i32* %39
%41 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 2
%42 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %41, i32 0, i32 4
%43 = load i32, i32* %42
%44 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 2
%45 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %44, i32 0, i32 5
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), i8* %26, i32 %30, i32 %34, i32 %37, i32 %40, i32 %43, i32 %46)
%48 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 0
store i32 1, i32* %48
%49 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 1
store i64 0, i64* %49
%50 = load i32, i32* %2
%51 = load i32, i32* @RTC_WKALM_SET
%52 = call i32 @ioctl(i32 %50, i32 %51, %struct.rtc_wkalrm* %3)
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %56
54: ; preds = %21
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %56
56: ; preds = %54, %21
%57 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 0
store i32 0, i32* %57
%58 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %3, i32 0, i32 1
store i64 0, i64* %58
%59 = load i32, i32* %2
%60 = load i32, i32* @RTC_WKALM_SET
%61 = call i32 @ioctl(i32 %59, i32 %60, %struct.rtc_wkalrm* %3)
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %68
63: ; preds = %56
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%65 = load i32, i32* %2
%66 = call i32 @close(i32 %65)
%67 = load i32, i32* @EXIT_FAILURE
store i32 %67, i32* %1
br label %73
68: ; preds = %56
%69 = load i32, i32* %2
%70 = call i32 @close(i32 %69)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%72 = load i32, i32* @EXIT_SUCCESS
store i32 %72, i32* %1
br label %73
73: ; preds = %68, %63, %16, %7
%74 = load i32, i32* %1
ret i32 %74
}

LLVM IR (-O2):
%struct.rtc_wkalrm = type { i32, i64, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32, i32, i32, i32, i32 }
@clear_rtc.rtc_path = internal constant [10 x i8] c"/dev/rtc0\00"
@O_RDONLY = global i32 0
@.str = [23 x i8] c"Failed to open %s: %m\0A\00"
@EXIT_FAILURE = global i32 0
@RTC_WKALM_RD = global i32 0
@.str.1 = [38 x i8] c"Failed to read rtc alarms %s: %s: %m\0A\00"
@.str.2 = [13 x i8] c"RTC_WKALM_RD\00"
@.str.3 = [45 x i8] c"Alarm was %s at %d.%d.%d %02d:%02d:%02d UTC\0A\00"
@.str.4 = [8 x i8] c"Enabled\00"
@.str.5 = [9 x i8] c"Disabled\00"
@RTC_WKALM_SET = global i32 0
@.str.6 = [40 x i8] c"Failed to enable rtc alarms %s: %s: %m\0A\00"
@.str.7 = [14 x i8] c"RTC_WKALM_SET\00"
@.str.8 = [39 x i8] c"Failed to clear rtc alarms %s: %s: %m\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [21 x i8] c"RTC alarm cleared ok\00"
define i32 @clear_rtc() {
%1 = alloca %struct.rtc_wkalrm
%2 = bitcast %struct.rtc_wkalrm* %1 to i8*
%3 = load i32, i32* @O_RDONLY
%4 = tail call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0), i32 %3)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0))
br label %52
8: ; preds = %0
%9 = call i32 @memset(%struct.rtc_wkalrm* %1, i32 0, i32 40)
%10 = load i32, i32* @RTC_WKALM_RD
%11 = call i32 @ioctl(i32 %4, i32 %10, %struct.rtc_wkalrm* %1)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @close(i32 %4)
br label %52
16: ; preds = %8
%17 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %1, i64 0, i32 0
%18 = load i32, i32* %17
%19 = icmp eq i32 %18, 0
%20 = select i1 %19, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%21 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %1, i64 0, i32 2, i32 0
%22 = load i32, i32* %21
%23 = add nsw i32 %22, 1900
%24 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %1, i64 0, i32 2, i32 1
%25 = load i32, i32* %24
%26 = add nsw i32 %25, 1
%27 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %1, i64 0, i32 2, i32 2
%28 = load i32, i32* %27
%29 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %1, i64 0, i32 2, i32 3
%30 = load i32, i32* %29
%31 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %1, i64 0, i32 2, i32 4
%32 = load i32, i32* %31
%33 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %1, i64 0, i32 2, i32 5
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), i8* %20, i32 %23, i32 %26, i32 %28, i32 %30, i32 %32, i32 %34)
store i32 1, i32* %17
%36 = getelementptr inbounds %struct.rtc_wkalrm, %struct.rtc_wkalrm* %1, i64 0, i32 1
store i64 0, i64* %36
%37 = load i32, i32* @RTC_WKALM_SET
%38 = call i32 @ioctl(i32 %4, i32 %37, %struct.rtc_wkalrm* %1)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %42
40: ; preds = %16
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %42
42: ; preds = %40, %16
store i32 0, i32* %17
store i64 0, i64* %36
%43 = load i32, i32* @RTC_WKALM_SET
%44 = call i32 @ioctl(i32 %4, i32 %43, %struct.rtc_wkalrm* %1)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @clear_rtc.rtc_path, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%48 = call i32 @close(i32 %4)
br label %52
49: ; preds = %42
%50 = call i32 @close(i32 %4)
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
br label %52
52: ; preds = %49, %46, %13, %6
%53 = phi i32* [ @EXIT_FAILURE, %6 ], [ @EXIT_FAILURE, %13 ], [ @EXIT_FAILURE, %46 ], [ @EXIT_SUCCESS, %49 ]
%54 = load i32, i32* %53
ret i32 %54
}