#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 isLeapYear(int);
int /*<<< orphan*/ printf(char *, int);
void startShowAllLeapYear(int start, int page) {
  if (page == 100)
    return;
  if (isLeapYear(start) == 1)
    printf("- %d is a leap year!\n", start);
  startShowAllLeapYear(++start, ++page);
}


x86 assembly (clang, -O0):
<startShowAllLeapYear>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jne    114d <startShowAllLeapYear+0x1d>
jmp    1184 <startShowAllLeapYear+0x54>
mov    -0x4(%rbp),%edi
call   1050 <isLeapYear@plt>
cmp    $0x1,%eax
jne    116d <startShowAllLeapYear+0x3d>
mov    -0x4(%rbp),%esi
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x4(%rbp)
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x8(%rbp)
call   1040 <startShowAllLeapYear@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<startShowAllLeapYear>:
push   %rbp
push   %r14
push   %rbx
cmp    $0x64,%esi
jne    112e <startShowAllLeapYear+0xe>
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %esi,%ebx
mov    %edi,%ebp
add    $0xffffff9c,%ebx
lea    0xec4(%rip),%r14
jmp    1147 <startShowAllLeapYear+0x27>
xchg   %ax,%ax
add    $0x1,%ebp
inc    %ebx
je     1129 <startShowAllLeapYear+0x9>
mov    %ebp,%edi
call   1040 <isLeapYear@plt>
cmp    $0x1,%eax
jne    1140 <startShowAllLeapYear+0x20>
mov    %r14,%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
jmp    1140 <startShowAllLeapYear+0x20>

LLVM IR (-O0):
@.str = [22 x i8] c"- %d is a leap year!\0A\00"
define void @startShowAllLeapYear(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = icmp eq i32 %5, 100
br i1 %6, label %7, label %8
7: ; preds = %2
br label %20
8: ; preds = %2
%9 = load i32, i32* %3
%10 = call i32 @isLeapYear(i32 %9)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load i32, i32* %3
%14 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %13)
br label %15
15: ; preds = %12, %8
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
store i32 %17, i32* %3
%18 = load i32, i32* %4
%19 = add nsw i32 %18, 1
store i32 %19, i32* %4
br label %20
20: ; preds = %15, %7
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"- %d is a leap year!\0A\00"
define void @startShowAllLeapYear(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 100
br i1 %3, label %15, label %4
4: ; preds = %2, %11
%5 = phi i32 [ %13, %11 ], [ %1, %2 ]
%6 = phi i32 [ %12, %11 ], [ %0, %2 ]
%7 = tail call i32 @isLeapYear(i32 %6)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %6)
br label %11
11: ; preds = %9, %4
%12 = add nsw i32 %6, 1
%13 = add nsw i32 %5, 1
%14 = icmp eq i32 %13, 100
br i1 %14, label %15, label %4
15: ; preds = %11, %2
ret void
}