#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 */
typedef scalar_t__ uint64_t;
struct timespec {
  int /*<<< orphan*/ tv_nsec;
  scalar_t__ tv_sec;
};
struct TYPE_4__ {
  scalar_t__ tv_nsec;
  void *tv_sec;
};
struct TYPE_3__ {
  int /*<<< orphan*/ tv_nsec;
  scalar_t__ tv_sec;
};
struct itimerspec {
  TYPE_2__ it_interval;
  TYPE_1__ it_value;
};
typedef int ssize_t;

/* Variables and functions */
int /*<<< orphan*/ CLOCK_MONOTONIC;
int /*<<< orphan*/ TFD_TIMER_ABSTIME;
void *atoi(char *);
int clock_gettime(int /*<<< orphan*/, struct timespec *);
int /*<<< orphan*/ err(int, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ print_elapsed_time();
int /*<<< orphan*/ printf(char *, ...);
int read(int, scalar_t__ *, int);
int /*<<< orphan*/ stderr;
int timerfd_create(int /*<<< orphan*/, int /*<<< orphan*/);
int timerfd_settime(int, int /*<<< orphan*/, struct itimerspec *,
                    int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  struct itimerspec new_value;
  int max_exp, fd;
  struct timespec now;
  uint64_t exp, tot_exp;
  ssize_t s;
  if ((argc != 2) && (argc != 4)) {
    fprintf(stderr, "%s init-secs [interval-secs max-exp]\n", argv[0]);
    return 1;
  }
  if (clock_gettime(CLOCK_MONOTONIC, &now) == -1)
    err(1, "clock_gettime");
  new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);
  new_value.it_value.tv_nsec = now.tv_nsec;
  if (argc == 2) {
    new_value.it_interval.tv_sec = 0;
    max_exp = 1;
  } else {
    new_value.it_interval.tv_sec = atoi(argv[2]);
    max_exp = atoi(argv[3]);
  }
  new_value.it_interval.tv_nsec = 0;
  fd = timerfd_create(CLOCK_MONOTONIC, 0);
  if (fd == -1)
    err(1, "timerfd_create");
  if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)
    err(1, "timerfd_settime");
  print_elapsed_time();
  printf("timer started\n");
  for (tot_exp = 0; tot_exp < (uint64_t)max_exp;) {
    s = read(fd, &exp, sizeof(uint64_t));
    if (s != sizeof(uint64_t))
      err(1, "read");
    tot_exp += exp;
    print_elapsed_time();
    printf("read: %llu; total=%llu\n", (unsigned long long)exp,
           (unsigned long long)tot_exp);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11e2 <main+0x52>
cmpl   $0x4,-0x8(%rbp)
je     11e2 <main+0x52>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe2f(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1372 <main+0x1e2>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
lea    -0x48(%rbp),%rsi
call   1030 <clock_gettime@plt>
cmp    $0xffffffff,%eax
jne    120e <main+0x7e>
mov    $0x1,%edi
lea    0xe1d(%rip),%rsi
call   1090 <err@plt>
mov    -0x40(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    -0x68(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1252 <main+0xc2>
movq   $0x0,-0x28(%rbp)
movl   $0x1,-0x34(%rbp)
jmp    1273 <main+0xe3>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <atoi@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x34(%rbp)
movq   $0x0,-0x30(%rbp)
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1080 <timerfd_create@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0xffffffff,-0x38(%rbp)
jne    12a9 <main+0x119>
mov    $0x1,%edi
lea    0xd90(%rip),%rsi
call   1090 <err@plt>
mov    -0x38(%rbp),%edi
mov    0x2d3d(%rip),%rax
mov    (%rax),%esi
lea    -0x30(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   10a0 <timerfd_settime@plt>
cmp    $0xffffffff,%eax
jne    12dc <main+0x14c>
mov    $0x1,%edi
lea    0xd6c(%rip),%rsi
call   1090 <err@plt>
mov    $0x0,%al
call   1040 <print_elapsed_time@plt>
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
movslq -0x34(%rbp),%rcx
cmp    %rcx,%rax
jge    136b <main+0x1db>
mov    -0x38(%rbp),%edi
lea    -0x50(%rbp),%rsi
mov    $0x8,%edx
call   1060 <read@plt>
mov    %eax,-0x5c(%rbp)
movslq -0x5c(%rbp),%rax
cmp    $0x8,%rax
je     133d <main+0x1ad>
mov    $0x1,%edi
lea    0xd2a(%rip),%rsi
call   1090 <err@plt>
mov    -0x50(%rbp),%rax
add    -0x58(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    $0x0,%al
call   1040 <print_elapsed_time@plt>
mov    -0x50(%rbp),%rsi
mov    -0x58(%rbp),%rdx
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12f9 <main+0x169>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r15
mov    %edi,%ebp
cmp    $0x2,%edi
je     11bd <main+0x1d>
cmp    $0x4,%ebp
jne    121b <main+0x7b>
mov    0x2e1c(%rip),%r14
mov    (%r14),%edi
lea    0x8(%rsp),%rsi
call   1040 <clock_gettime@plt>
cmp    $0xffffffff,%eax
jne    11e7 <main+0x47>
lea    0xe49(%rip),%rsi
mov    $0x1,%edi
call   10a0 <err@plt>
mov    0x10(%rsp),%rbx
mov    0x8(%r15),%rdi
call   10c0 <atoi@plt>
add    %rbx,%rax
mov    %rax,0x30(%rsp)
mov    0x8(%rsp),%eax
mov    %eax,0x28(%rsp)
cmp    $0x2,%ebp
jne    123d <main+0x9d>
movq   $0x0,0x20(%rsp)
mov    $0x1,%r15d
jmp    1257 <main+0xb7>
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
mov    (%r15),%rdx
lea    0xdd2(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%ebx
jmp    132d <main+0x18d>
mov    0x10(%r15),%rdi
call   10c0 <atoi@plt>
mov    %rax,0x20(%rsp)
mov    0x18(%r15),%rdi
call   10c0 <atoi@plt>
movslq %eax,%r15
movq   $0x0,0x18(%rsp)
mov    (%r14),%edi
xor    %esi,%esi
call   1090 <timerfd_create@plt>
mov    %eax,%r14d
cmp    $0xffffffff,%eax
jne    1283 <main+0xe3>
lea    0xdbb(%rip),%rsi
mov    $0x1,%edi
call   10a0 <err@plt>
mov    0x2d66(%rip),%rax
mov    (%rax),%esi
xor    %ebx,%ebx
lea    0x18(%rsp),%rdx
mov    %r14d,%edi
xor    %ecx,%ecx
call   10b0 <timerfd_settime@plt>
cmp    $0xffffffff,%eax
jne    12b3 <main+0x113>
lea    0xd9a(%rip),%rsi
mov    $0x1,%edi
call   10a0 <err@plt>
xor    %eax,%eax
call   1050 <print_elapsed_time@plt>
lea    0xdaf(%rip),%rdi
call   1030 <puts@plt>
test   %r15,%r15
jle    132d <main+0x18d>
xor    %ebp,%ebp
lea    0xd84(%rip),%r12
jmp    1305 <main+0x165>
cs nopw 0x0(%rax,%rax,1)
mov    (%rsp),%r13
add    %r13,%rbp
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <print_elapsed_time@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
cmp    %r15,%rbp
jge    132d <main+0x18d>
mov    %r14d,%edi
mov    %rsp,%rsi
mov    $0x8,%edx
call   1070 <read@plt>
cmp    $0x8,%eax
je     12e0 <main+0x140>
mov    $0x1,%edi
lea    0xd2d(%rip),%rsi
call   10a0 <err@plt>
jmp    12e0 <main+0x140>
mov    %ebx,%eax
add    $0x38,%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 { i64, i8* }
%struct.TYPE_3__ = type { i32, i64 }
%struct.timespec = type { i32, i64 }
@stderr = global i32 0
@.str = [38 x i8] c"%s init-secs [interval-secs max-exp]\0A\00"
@CLOCK_MONOTONIC = global i32 0
@.str.1 = [14 x i8] c"clock_gettime\00"
@.str.2 = [15 x i8] c"timerfd_create\00"
@TFD_TIMER_ABSTIME = global i32 0
@.str.3 = [16 x i8] c"timerfd_settime\00"
@.str.4 = [15 x i8] c"timer started\0A\00"
@.str.5 = [5 x i8] c"read\00"
@.str.6 = [24 x i8] c"read: %llu; total=%llu\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.itimerspec
%7 = alloca i32
%8 = alloca i32
%9 = alloca %struct.timespec
%10 = alloca i64
%11 = alloca i64
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %24
15: ; preds = %2
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, 4
br i1 %17, label %18, label %24
18: ; preds = %15
%19 = load i32, i32* @stderr
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %22)
store i32 1, i32* %3
br label %103
24: ; preds = %15, %2
%25 = load i32, i32* @CLOCK_MONOTONIC
%26 = call i32 @clock_gettime(i32 %25, %struct.timespec* %9)
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @err(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %30
30: ; preds = %28, %24
%31 = getelementptr inbounds %struct.timespec, %struct.timespec* %9, i32 0, i32 1
%32 = load i64, i64* %31
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 1
%35 = load i8*, i8** %34
%36 = call i8* @atoi(i8* %35)
%37 = getelementptr i8, i8* %36, i64 %32
%38 = ptrtoint i8* %37 to i64
%39 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %6, i32 0, i32 1
%40 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %39, i32 0, i32 1
store i64 %38, i64* %40
%41 = getelementptr inbounds %struct.timespec, %struct.timespec* %9, i32 0, i32 0
%42 = load i32, i32* %41
%43 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %6, i32 0, i32 1
%44 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %43, i32 0, i32 0
store i32 %42, i32* %44
%45 = load i32, i32* %4
%46 = icmp eq i32 %45, 2
br i1 %46, label %47, label %50
47: ; preds = %30
%48 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %6, i32 0, i32 0
%49 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %48, i32 0, i32 1
store i8* null, i8** %49
store i32 1, i32* %7
br label %62
50: ; preds = %30
%51 = load i8**, i8*** %5
%52 = getelementptr inbounds i8*, i8** %51, i64 2
%53 = load i8*, i8** %52
%54 = call i8* @atoi(i8* %53)
%55 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %6, i32 0, i32 0
%56 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %55, i32 0, i32 1
store i8* %54, i8** %56
%57 = load i8**, i8*** %5
%58 = getelementptr inbounds i8*, i8** %57, i64 3
%59 = load i8*, i8** %58
%60 = call i8* @atoi(i8* %59)
%61 = ptrtoint i8* %60 to i32
store i32 %61, i32* %7
br label %62
62: ; preds = %50, %47
%63 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %6, i32 0, i32 0
%64 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %63, i32 0, i32 0
store i64 0, i64* %64
%65 = load i32, i32* @CLOCK_MONOTONIC
%66 = call i32 @timerfd_create(i32 %65, i32 0)
store i32 %66, i32* %8
%67 = load i32, i32* %8
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %71
69: ; preds = %62
%70 = call i32 @err(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %71
71: ; preds = %69, %62
%72 = load i32, i32* %8
%73 = load i32, i32* @TFD_TIMER_ABSTIME
%74 = call i32 @timerfd_settime(i32 %72, i32 %73, %struct.itimerspec* %6, i32* null)
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %78
76: ; preds = %71
%77 = call i32 @err(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %78
78: ; preds = %76, %71
%79 = call i32 (...) @print_elapsed_time()
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
store i64 0, i64* %11
br label %81
81: ; preds = %94, %78
%82 = load i64, i64* %11
%83 = load i32, i32* %7
%84 = sext i32 %83 to i64
%85 = icmp slt i64 %82, %84
br i1 %85, label %86, label %102
86: ; preds = %81
%87 = load i32, i32* %8
%88 = call i32 @read(i32 %87, i64* %10, i32 8)
store i32 %88, i32* %12
%89 = load i32, i32* %12
%90 = sext i32 %89 to i64
%91 = icmp ne i64 %90, 8
br i1 %91, label %92, label %94
92: ; preds = %86
%93 = call i32 @err(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %94
94: ; preds = %92, %86
%95 = load i64, i64* %10
%96 = load i64, i64* %11
%97 = add nsw i64 %96, %95
store i64 %97, i64* %11
%98 = call i32 (...) @print_elapsed_time()
%99 = load i64, i64* %10
%100 = load i64, i64* %11
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i64 %99, i64 %100)
br label %81
102: ; preds = %81
store i32 0, i32* %3
br label %103
103: ; preds = %102, %18
%104 = load i32, i32* %3
ret i32 %104
}

LLVM IR (-O2):
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i64, i8* }
%struct.TYPE_3__ = type { i32, i64 }
%struct.timespec = type { i32, i64 }
@stderr = global i32 0
@.str = [38 x i8] c"%s init-secs [interval-secs max-exp]\0A\00"
@CLOCK_MONOTONIC = global i32 0
@.str.1 = [14 x i8] c"clock_gettime\00"
@.str.2 = [15 x i8] c"timerfd_create\00"
@TFD_TIMER_ABSTIME = global i32 0
@.str.3 = [16 x i8] c"timerfd_settime\00"
@.str.5 = [5 x i8] c"read\00"
@.str.6 = [24 x i8] c"read: %llu; total=%llu\0A\00"
@str = [14 x i8] c"timer started\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.itimerspec
%4 = alloca %struct.timespec
%5 = alloca i64
%6 = bitcast %struct.itimerspec* %3 to i8*
%7 = bitcast %struct.timespec* %4 to i8*
%8 = bitcast i64* %5 to i8*
switch i32 %0, label %9 [
i32 4, label %13
i32 2, label %13
]
9: ; preds = %2
%10 = load i32, i32* @stderr
%11 = load i8*, i8** %1
%12 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %11)
br label %75
13: ; preds = %2, %2
%14 = load i32, i32* @CLOCK_MONOTONIC
%15 = call i32 @clock_gettime(i32 %14, %struct.timespec* %4)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @err(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %13
%20 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i64 0, i32 1
%21 = load i64, i64* %20
%22 = getelementptr inbounds i8*, i8** %1, i64 1
%23 = load i8*, i8** %22
%24 = call i8* @atoi(i8* %23)
%25 = getelementptr i8, i8* %24, i64 %21
%26 = ptrtoint i8* %25 to i64
%27 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %3, i64 0, i32 1, i32 1
store i64 %26, i64* %27
%28 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i64 0, i32 0
%29 = load i32, i32* %28
%30 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %3, i64 0, i32 1, i32 0
store i32 %29, i32* %30
%31 = icmp eq i32 %0, 2
br i1 %31, label %32, label %34
32: ; preds = %19
%33 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %3, i64 0, i32 0, i32 1
store i8* null, i8** %33
br label %45
34: ; preds = %19
%35 = getelementptr inbounds i8*, i8** %1, i64 2
%36 = load i8*, i8** %35
%37 = call i8* @atoi(i8* %36)
%38 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %3, i64 0, i32 0, i32 1
store i8* %37, i8** %38
%39 = getelementptr inbounds i8*, i8** %1, i64 3
%40 = load i8*, i8** %39
%41 = call i8* @atoi(i8* %40)
%42 = ptrtoint i8* %41 to i64
%43 = shl i64 %42, 32
%44 = ashr exact i64 %43, 32
br label %45
45: ; preds = %34, %32
%46 = phi i64 [ 1, %32 ], [ %44, %34 ]
%47 = getelementptr inbounds %struct.itimerspec, %struct.itimerspec* %3, i64 0, i32 0, i32 0
store i64 0, i64* %47
%48 = load i32, i32* @CLOCK_MONOTONIC
%49 = call i32 @timerfd_create(i32 %48, i32 0)
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %53
51: ; preds = %45
%52 = call i32 @err(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %53
53: ; preds = %51, %45
%54 = load i32, i32* @TFD_TIMER_ABSTIME
%55 = call i32 @timerfd_settime(i32 %49, i32 %54, %struct.itimerspec* %3, i32* null)
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = call i32 @err(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %59
59: ; preds = %57, %53
%60 = call i32 (...) @print_elapsed_time()
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%62 = icmp sgt i64 %46, 0
br i1 %62, label %63, label %75
63: ; preds = %59, %69
%64 = phi i64 [ %71, %69 ], [ 0, %59 ]
%65 = call i32 @read(i32 %49, i64* %5, i32 8)
%66 = icmp eq i32 %65, 8
br i1 %66, label %69, label %67
67: ; preds = %63
%68 = call i32 @err(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %69
69: ; preds = %67, %63
%70 = load i64, i64* %5
%71 = add nsw i64 %70, %64
%72 = call i32 (...) @print_elapsed_time()
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i64 %70, i64 %71)
%74 = icmp slt i64 %71, %46
br i1 %74, label %63, label %75
75: ; preds = %69, %59, %9
%76 = phi i32 [ 1, %9 ], [ 0, %59 ], [ 0, %69 ]
ret i32 %76
}