#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 /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int val1 = 0;
  int val2 = 0;
  int result = 0;
  printf("It's time to test some data!");
  printf("\n Pick your first number:");
  scanf("%d", &val1);
  printf("\n Nice job! Now, pick your second number:");
  scanf("%d", &val2);
  printf("\n Great! Now here we go!");
  result = val1 == val2;
  printf("\n The result of %d == %d is %d", val1, val2, result);
  result = val1 != val2;
  printf("\n The result of %d != %d is %d", val1, val2, result);
  result = val1 > val2;
  printf("\n The result of %d > %d is %d", val1, val2, result);
  result = val1 < val2;
  printf("\n The result of %d < %d is %d", val1, val2, result);
  result = val1 >= val2;
  printf("\n The result of %d >= %d is %d", val1, val2, result);
  result = val1 <= val2;
  printf("\n The result of %d <= %d is %d", val1, val2, result);
  int yearborn = 0;
  int age = 0;
  printf("\n\n\n");
  printf("Alright! Let's go ahead and practice an if statement!");
  printf("\nPlease enter the year you were born in:");
  scanf("%d", &yearborn);
  age = 2014 - yearborn;
  printf("After calculations, you are %d years old.\n", age);
  if (age < 0) {
    printf("Good God Child, you haven't been born yet!");
  } else if (11 > age && age > 0) {
    printf("You are still a kid! Don't grow up too fast now...");
  } else if (age >= 11 && age < 16) {
    printf("My, you are getting older! Getting close to getting that driver's "
           "license!");
  } else if (age >= 16 && age < 18) {
    printf("You can drive, but you can't smoke. Sorry kid, gotta wait till you "
           "graduate high school");
  } else if (age >= 18 && age < 21) {
    printf("You can smoke, drive, fight in a war, go to jail, and pay taxes, "
           "but you can't drink legally. How many years left till 21?");
  } else if (age >= 21 && age < 30) {
    printf("Quarter-life crisis. Life blows right now. Sorry.");
  } else if (age >= 30 && age < 50) {
    printf("I've got kids, a wife, a house, and a car. How many days till "
           "retirement??");
  } else if (age >= 50 && age < 65) {
    printf("No, for real guys. How many days till retirement?");
  } else if (age >= 65 && age < 90) {
    printf("Retirement. Enjoy it-- you've earned it.");
  } else if (age >= 90) {
    printf("You are probably dead.");
  } else {
    printf("Happy first birthday, kiddo.");
  }
  printf("\n\n\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8a(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0x11a4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe26(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
mov    $0x7de,%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x18(%rbp)
jge    130d <main+0x1ed>
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14a1 <main+0x381>
mov    $0xb,%eax
cmp    -0x18(%rbp),%eax
jle    1338 <main+0x218>
cmpl   $0x0,-0x18(%rbp)
jle    1338 <main+0x218>
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    149c <main+0x37c>
cmpl   $0xb,-0x18(%rbp)
jl     135f <main+0x23f>
cmpl   $0x10,-0x18(%rbp)
jge    135f <main+0x23f>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1497 <main+0x377>
cmpl   $0x10,-0x18(%rbp)
jl     1386 <main+0x266>
cmpl   $0x12,-0x18(%rbp)
jge    1386 <main+0x266>
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1492 <main+0x372>
cmpl   $0x12,-0x18(%rbp)
jl     13ad <main+0x28d>
cmpl   $0x15,-0x18(%rbp)
jge    13ad <main+0x28d>
lea    0xf1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    148d <main+0x36d>
cmpl   $0x15,-0x18(%rbp)
jl     13d4 <main+0x2b4>
cmpl   $0x1e,-0x18(%rbp)
jge    13d4 <main+0x2b4>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1488 <main+0x368>
cmpl   $0x1e,-0x18(%rbp)
jl     13fb <main+0x2db>
cmpl   $0x32,-0x18(%rbp)
jge    13fb <main+0x2db>
lea    0xf7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1483 <main+0x363>
cmpl   $0x32,-0x18(%rbp)
jl     1422 <main+0x302>
cmpl   $0x41,-0x18(%rbp)
jge    1422 <main+0x302>
lea    0xf9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    147e <main+0x35e>
cmpl   $0x41,-0x18(%rbp)
jl     1449 <main+0x329>
cmpl   $0x5a,-0x18(%rbp)
jge    1449 <main+0x329>
lea    0xfaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1479 <main+0x359>
cmpl   $0x5a,-0x18(%rbp)
jl     1466 <main+0x346>
lea    0xfb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1474 <main+0x354>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1479 <main+0x359>
jmp    147e <main+0x35e>
jmp    1483 <main+0x363>
jmp    1488 <main+0x368>
jmp    148d <main+0x36d>
jmp    1492 <main+0x372>
jmp    1497 <main+0x377>
jmp    149c <main+0x37c>
jmp    14a1 <main+0x381>
lea    0xf9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
lea    0xeb4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf89(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xeca(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
sete   %cl
lea    0xec6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setne  %cl
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setg   %cl
lea    0xeca(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setl   %cl
lea    0xecb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setge  %cl
lea    0xecc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
xor    %ecx,%ecx
cmp    %edx,%esi
setle  %cl
lea    0xece(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0xc(%rsp)
lea    0x11ea(%rip),%rdi
call   1030 <puts@plt>
lea    0xecb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    0xc(%rsp),%ebx
lea    0xefd(%rip),%rdi
lea    -0x7de(%rbx),%esi
neg    %esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x7de,%ebx
jle    12b7 <main+0x187>
lea    0xf0a(%rip),%rdi
jmp    137a <main+0x24a>
cmp    $0x7d4,%ebx
jl     12d3 <main+0x1a3>
cmp    $0x7de,%ebx
je     12d3 <main+0x1a3>
lea    0xf19(%rip),%rdi
jmp    137a <main+0x24a>
lea    -0x7cf(%rbx),%eax
cmp    $0x5,%eax
jae    12ea <main+0x1ba>
lea    0xf35(%rip),%rdi
jmp    137a <main+0x24a>
lea    -0x7cd(%rbx),%eax
cmp    $0x2,%eax
jae    12fe <main+0x1ce>
lea    0xf69(%rip),%rdi
jmp    137a <main+0x24a>
lea    -0x7ca(%rbx),%eax
cmp    $0x3,%eax
jae    1312 <main+0x1e2>
lea    0xfad(%rip),%rdi
jmp    137a <main+0x24a>
lea    -0x7c1(%rbx),%eax
cmp    $0x9,%eax
jae    1326 <main+0x1f6>
lea    0x1014(%rip),%rdi
jmp    137a <main+0x24a>
lea    -0x7ad(%rbx),%eax
cmp    $0x14,%eax
jae    133a <main+0x20a>
lea    0x1032(%rip),%rdi
jmp    137a <main+0x24a>
lea    -0x79e(%rbx),%eax
cmp    $0xf,%eax
jae    134e <main+0x21e>
lea    0x1069(%rip),%rdi
jmp    137a <main+0x24a>
lea    -0x785(%rbx),%eax
cmp    $0x19,%eax
jae    1362 <main+0x232>
lea    0x1087(%rip),%rdi
jmp    137a <main+0x24a>
cmp    $0x785,%ebx
lea    0x10a1(%rip),%rax
lea    0x10b1(%rip),%rdi
cmovl  %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10bc(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"It's time to test some data!\00"
@.str.1 = [26 x i8] c"\0A Pick your first number:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [42 x i8] c"\0A Nice job! Now, pick your second number:\00"
@.str.4 = [25 x i8] c"\0A Great! Now here we go!\00"
@.str.5 = [31 x i8] c"\0A The result of %d == %d is %d\00"
@.str.6 = [31 x i8] c"\0A The result of %d != %d is %d\00"
@.str.7 = [30 x i8] c"\0A The result of %d > %d is %d\00"
@.str.8 = [30 x i8] c"\0A The result of %d < %d is %d\00"
@.str.9 = [31 x i8] c"\0A The result of %d >= %d is %d\00"
@.str.10 = [31 x i8] c"\0A The result of %d <= %d is %d\00"
@.str.11 = [4 x i8] c"\0A\0A\0A\00"
@.str.12 = [54 x i8] c"Alright! Let's go ahead and practice an if statement!\00"
@.str.13 = [41 x i8] c"\0APlease enter the year you were born in:\00"
@.str.14 = [43 x i8] c"After calculations, you are %d years old.\0A\00"
@.str.15 = [43 x i8] c"Good God Child, you haven't been born yet!\00"
@.str.16 = [51 x i8] c"You are still a kid! Don't grow up too fast now...\00"
@.str.17 = [75 x i8] c"My, you are getting older! Getting close to getting that driver's license!\00"
@.str.18 = [88 x i8] c"You can drive, but you can't smoke. Sorry kid, gotta wait till you graduate high school\00"
@.str.19 = [123 x i8] c"You can smoke, drive, fight in a war, go to jail, and pay taxes, but you can't drink legally. How many years left till 21?\00"
@.str.20 = [50 x i8] c"Quarter-life crisis. Life blows right now. Sorry.\00"
@.str.21 = [75 x i8] c"I've got kids, a wife, a house, and a car. How many days till retirement??\00"
@.str.22 = [50 x i8] c"No, for real guys. How many days till retirement?\00"
@.str.23 = [41 x i8] c"Retirement. Enjoy it-- you've earned it.\00"
@.str.24 = [23 x i8] c"You are probably dead.\00"
@.str.25 = [29 x i8] c"Happy first birthday, kiddo.\00"
@.str.26 = [5 x i8] c"\0A\0A\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = icmp eq i32 %13, %14
%16 = zext i1 %15 to i32
store i32 %16, i32* %4
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 %17, i32 %18, i32 %19)
%21 = load i32, i32* %2
%22 = load i32, i32* %3
%23 = icmp ne i32 %21, %22
%24 = zext i1 %23 to i32
store i32 %24, i32* %4
%25 = load i32, i32* %2
%26 = load i32, i32* %3
%27 = load i32, i32* %4
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 %25, i32 %26, i32 %27)
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = icmp sgt i32 %29, %30
%32 = zext i1 %31 to i32
store i32 %32, i32* %4
%33 = load i32, i32* %2
%34 = load i32, i32* %3
%35 = load i32, i32* %4
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %33, i32 %34, i32 %35)
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = icmp slt i32 %37, %38
%40 = zext i1 %39 to i32
store i32 %40, i32* %4
%41 = load i32, i32* %2
%42 = load i32, i32* %3
%43 = load i32, i32* %4
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 %41, i32 %42, i32 %43)
%45 = load i32, i32* %2
%46 = load i32, i32* %3
%47 = icmp sge i32 %45, %46
%48 = zext i1 %47 to i32
store i32 %48, i32* %4
%49 = load i32, i32* %2
%50 = load i32, i32* %3
%51 = load i32, i32* %4
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %49, i32 %50, i32 %51)
%53 = load i32, i32* %2
%54 = load i32, i32* %3
%55 = icmp sle i32 %53, %54
%56 = zext i1 %55 to i32
store i32 %56, i32* %4
%57 = load i32, i32* %2
%58 = load i32, i32* %3
%59 = load i32, i32* %4
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i32 %57, i32 %58, i32 %59)
store i32 0, i32* %5
store i32 0, i32* %6
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%64 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%65 = load i32, i32* %5
%66 = sub nsw i32 2014, %65
store i32 %66, i32* %6
%67 = load i32, i32* %6
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0), i32 %67)
%69 = load i32, i32* %6
%70 = icmp slt i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %0
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.15, i64 0, i64 0))
br label %153
73: ; preds = %0
%74 = load i32, i32* %6
%75 = icmp sgt i32 11, %74
br i1 %75, label %76, label %81
76: ; preds = %73
%77 = load i32, i32* %6
%78 = icmp sgt i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.16, i64 0, i64 0))
br label %152
81: ; preds = %76, %73
%82 = load i32, i32* %6
%83 = icmp sge i32 %82, 11
br i1 %83, label %84, label %89
84: ; preds = %81
%85 = load i32, i32* %6
%86 = icmp slt i32 %85, 16
br i1 %86, label %87, label %89
87: ; preds = %84
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.17, i64 0, i64 0))
br label %151
89: ; preds = %84, %81
%90 = load i32, i32* %6
%91 = icmp sge i32 %90, 16
br i1 %91, label %92, label %97
92: ; preds = %89
%93 = load i32, i32* %6
%94 = icmp slt i32 %93, 18
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.18, i64 0, i64 0))
br label %150
97: ; preds = %92, %89
%98 = load i32, i32* %6
%99 = icmp sge i32 %98, 18
br i1 %99, label %100, label %105
100: ; preds = %97
%101 = load i32, i32* %6
%102 = icmp slt i32 %101, 21
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.19, i64 0, i64 0))
br label %149
105: ; preds = %100, %97
%106 = load i32, i32* %6
%107 = icmp sge i32 %106, 21
br i1 %107, label %108, label %113
108: ; preds = %105
%109 = load i32, i32* %6
%110 = icmp slt i32 %109, 30
br i1 %110, label %111, label %113
111: ; preds = %108
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.20, i64 0, i64 0))
br label %148
113: ; preds = %108, %105
%114 = load i32, i32* %6
%115 = icmp sge i32 %114, 30
br i1 %115, label %116, label %121
116: ; preds = %113
%117 = load i32, i32* %6
%118 = icmp slt i32 %117, 50
br i1 %118, label %119, label %121
119: ; preds = %116
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.21, i64 0, i64 0))
br label %147
121: ; preds = %116, %113
%122 = load i32, i32* %6
%123 = icmp sge i32 %122, 50
br i1 %123, label %124, label %129
124: ; preds = %121
%125 = load i32, i32* %6
%126 = icmp slt i32 %125, 65
br i1 %126, label %127, label %129
127: ; preds = %124
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.22, i64 0, i64 0))
br label %146
129: ; preds = %124, %121
%130 = load i32, i32* %6
%131 = icmp sge i32 %130, 65
br i1 %131, label %132, label %137
132: ; preds = %129
%133 = load i32, i32* %6
%134 = icmp slt i32 %133, 90
br i1 %134, label %135, label %137
135: ; preds = %132
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.23, i64 0, i64 0))
br label %145
137: ; preds = %132, %129
%138 = load i32, i32* %6
%139 = icmp sge i32 %138, 90
br i1 %139, label %140, label %142
140: ; preds = %137
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0))
br label %144
142: ; preds = %137
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.25, i64 0, i64 0))
br label %144
144: ; preds = %142, %140
br label %145
145: ; preds = %144, %135
br label %146
146: ; preds = %145, %127
br label %147
147: ; preds = %146, %119
br label %148
148: ; preds = %147, %111
br label %149
149: ; preds = %148, %103
br label %150
150: ; preds = %149, %95
br label %151
151: ; preds = %150, %87
br label %152
152: ; preds = %151, %79
br label %153
153: ; preds = %152, %71
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"It's time to test some data!\00"
@.str.1 = [26 x i8] c"\0A Pick your first number:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [42 x i8] c"\0A Nice job! Now, pick your second number:\00"
@.str.4 = [25 x i8] c"\0A Great! Now here we go!\00"
@.str.5 = [31 x i8] c"\0A The result of %d == %d is %d\00"
@.str.6 = [31 x i8] c"\0A The result of %d != %d is %d\00"
@.str.7 = [30 x i8] c"\0A The result of %d > %d is %d\00"
@.str.8 = [30 x i8] c"\0A The result of %d < %d is %d\00"
@.str.9 = [31 x i8] c"\0A The result of %d >= %d is %d\00"
@.str.10 = [31 x i8] c"\0A The result of %d <= %d is %d\00"
@.str.12 = [54 x i8] c"Alright! Let's go ahead and practice an if statement!\00"
@.str.13 = [41 x i8] c"\0APlease enter the year you were born in:\00"
@.str.14 = [43 x i8] c"After calculations, you are %d years old.\0A\00"
@.str.15 = [43 x i8] c"Good God Child, you haven't been born yet!\00"
@.str.16 = [51 x i8] c"You are still a kid! Don't grow up too fast now...\00"
@.str.17 = [75 x i8] c"My, you are getting older! Getting close to getting that driver's license!\00"
@.str.18 = [88 x i8] c"You can drive, but you can't smoke. Sorry kid, gotta wait till you graduate high school\00"
@.str.19 = [123 x i8] c"You can smoke, drive, fight in a war, go to jail, and pay taxes, but you can't drink legally. How many years left till 21?\00"
@.str.20 = [50 x i8] c"Quarter-life crisis. Life blows right now. Sorry.\00"
@.str.21 = [75 x i8] c"I've got kids, a wife, a house, and a car. How many days till retirement??\00"
@.str.22 = [50 x i8] c"No, for real guys. How many days till retirement?\00"
@.str.23 = [41 x i8] c"Retirement. Enjoy it-- you've earned it.\00"
@.str.24 = [23 x i8] c"You are probably dead.\00"
@.str.25 = [29 x i8] c"Happy first birthday, kiddo.\00"
@str = [3 x i8] c"\0A\0A\00"
@str.27 = [4 x i8] c"\0A\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%5 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* %1
%13 = load i32, i32* %2
%14 = icmp eq i32 %12, %13
%15 = zext i1 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 %12, i32 %13, i32 %15)
%17 = load i32, i32* %1
%18 = load i32, i32* %2
%19 = icmp ne i32 %17, %18
%20 = zext i1 %19 to i32
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 %17, i32 %18, i32 %20)
%22 = load i32, i32* %1
%23 = load i32, i32* %2
%24 = icmp sgt i32 %22, %23
%25 = zext i1 %24 to i32
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %22, i32 %23, i32 %25)
%27 = load i32, i32* %1
%28 = load i32, i32* %2
%29 = icmp slt i32 %27, %28
%30 = zext i1 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 %27, i32 %28, i32 %30)
%32 = load i32, i32* %1
%33 = load i32, i32* %2
%34 = icmp sge i32 %32, %33
%35 = zext i1 %34 to i32
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %32, i32 %33, i32 %35)
%37 = load i32, i32* %1
%38 = load i32, i32* %2
%39 = icmp sle i32 %37, %38
%40 = zext i1 %39 to i32
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i32 %37, i32 %38, i32 %40)
%42 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%46 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%47 = load i32, i32* %3
%48 = sub nsw i32 2014, %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0), i32 %48)
%50 = icmp sgt i32 %47, 2014
br i1 %50, label %79, label %51
51: ; preds = %0
%52 = icmp sgt i32 %47, 2003
%53 = icmp ne i32 %47, 2014
%54 = and i1 %52, %53
br i1 %54, label %79, label %55
55: ; preds = %51
%56 = add i32 %47, -1999
%57 = icmp ult i32 %56, 5
br i1 %57, label %79, label %58
58: ; preds = %55
%59 = add i32 %47, -1997
%60 = icmp ult i32 %59, 2
br i1 %60, label %79, label %61
61: ; preds = %58
%62 = add i32 %47, -1994
%63 = icmp ult i32 %62, 3
br i1 %63, label %79, label %64
64: ; preds = %61
%65 = add i32 %47, -1985
%66 = icmp ult i32 %65, 9
br i1 %66, label %79, label %67
67: ; preds = %64
%68 = add i32 %47, -1965
%69 = icmp ult i32 %68, 20
br i1 %69, label %79, label %70
70: ; preds = %67
%71 = add i32 %47, -1950
%72 = icmp ult i32 %71, 15
br i1 %72, label %79, label %73
73: ; preds = %70
%74 = add i32 %47, -1925
%75 = icmp ult i32 %74, 25
br i1 %75, label %79, label %76
76: ; preds = %73
%77 = icmp slt i32 %47, 1925
%78 = select i1 %77, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.25, i64 0, i64 0)
br label %79
79: ; preds = %76, %73, %70, %67, %64, %61, %58, %55, %51, %0
%80 = phi i8* [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.15, i64 0, i64 0), %0 ], [ getelementptr inbounds ([51 x i8], [51 x i8]* @.str.16, i64 0, i64 0), %51 ], [ getelementptr inbounds ([75 x i8], [75 x i8]* @.str.17, i64 0, i64 0), %55 ], [ getelementptr inbounds ([88 x i8], [88 x i8]* @.str.18, i64 0, i64 0), %58 ], [ getelementptr inbounds ([123 x i8], [123 x i8]* @.str.19, i64 0, i64 0), %61 ], [ getelementptr inbounds ([50 x i8], [50 x i8]* @.str.20, i64 0, i64 0), %64 ], [ getelementptr inbounds ([75 x i8], [75 x i8]* @.str.21, i64 0, i64 0), %67 ], [ getelementptr inbounds ([50 x i8], [50 x i8]* @.str.22, i64 0, i64 0), %70 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.23, i64 0, i64 0), %73 ], [ %78, %76 ]
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %80)
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.27, i64 0, i64 0))
ret i32 0
}