#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 *, int *);
int main() {
  int edad, diaact, mesact, anioact, dianaci, mesnaci, anionaci;
  printf("¿Cuál es la fecha actual?\n");
  printf("\nDía/Mes/Año. Ejemplo:(5/5/2015): ");
  scanf("%d/%d/%d", &diaact, &mesact, &anioact);
  if (diaact < 1) {
    printf("\nEl mes no tiene 0 días.\n");
    return 0;
  }
  if (diaact > 31) {
    printf("\nEl mes sólo tiene 31 días.\n");
    return 0;
  }
  if (mesact < 1) {
    printf("\nEl año no tiene 0 meses.\n");
    return 0;
  }
  if (mesact > 31) {
    printf("\nEl año sólo tiene 12 meses.\n");
    return 0;
  }
  if (anioact < 1000) {
    printf("\n¿Usted vive en la epoca de Matusalén?.\n");
    return 0;
  }
  printf("\n¿Cuál es tu fecha de nacimiento?\n");
  printf("\nDía/Mes/Año. Ejemplo:(5/5/1997): ");
  scanf("%d/%d/%d", &dianaci, &mesnaci, &anionaci);
  if (dianaci < 1) {
    printf("\nEl mes no tiene 0 días.\n");
    return 0;
  }
  if (diaact > 31) {
    printf("\nEl mes sólo tiene 31 días.\n");
    return 0;
  }
  if (mesact < 1) {
    printf("\nEl año no tiene 0 meses.\n");
    return 0;
  }
  if (mesact > 31) {
    printf("\nEl año sólo tiene 12 meses.\n");
    return 0;
  }
  if (anionaci < 1000) {
    printf("\n¿Usted nació antes de Cristo?.\n");
    return 0;
  }
  if (anionaci == anioact) {
    printf("\nUsted no lleva un año de haber nacido.\n");
    return 0;
  }
  if (anionaci != anioact) {
    edad = anioact - anionaci;
    if (mesact < mesnaci || diaact < dianaci) {
      edad--;
    }
  }
  if (anioact > 2015) {
    printf("\nUsted tendrá %d años de edad.\n", edad);
  }
  if (anioact == 2015) {
    printf("\nUsted tiene %d años de edad.\n", edad);
  }
  if (anioact < 2015) {
    printf("\nUsted tuvo %d años de edad.\n", edad);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
call   1040 <scanf@plt>
cmpl   $0x1,-0xc(%rbp)
jge    1187 <main+0x67>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
cmpl   $0x1f,-0xc(%rbp)
jle    11ab <main+0x8b>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
cmpl   $0x1,-0x10(%rbp)
jge    11cf <main+0xaf>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
cmpl   $0x1f,-0x10(%rbp)
jle    11f3 <main+0xd3>
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
cmpl   $0x3e8,-0x14(%rbp)
jge    121a <main+0xfa>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe05(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1040 <scanf@plt>
cmpl   $0x1,-0x18(%rbp)
jge    1272 <main+0x152>
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
cmpl   $0x1f,-0xc(%rbp)
jle    1296 <main+0x176>
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
cmpl   $0x1,-0x10(%rbp)
jge    12ba <main+0x19a>
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
cmpl   $0x1f,-0x10(%rbp)
jle    12de <main+0x1be>
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
cmpl   $0x3e8,-0x20(%rbp)
jge    1305 <main+0x1e5>
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    132b <main+0x20b>
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13c7 <main+0x2a7>
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     1366 <main+0x246>
mov    -0x14(%rbp),%eax
sub    -0x20(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jl     1358 <main+0x238>
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1361 <main+0x241>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1366 <main+0x246>
cmpl   $0x7df,-0x14(%rbp)
jle    1384 <main+0x264>
mov    -0x8(%rbp),%esi
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x7df,-0x14(%rbp)
jne    13a2 <main+0x282>
mov    -0x8(%rbp),%esi
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x7df,-0x14(%rbp)
jge    13c0 <main+0x2a0>
mov    -0x8(%rbp),%esi
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xf78(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   1050 <scanf@plt>
mov    0x10(%rsp),%eax
test   %eax,%eax
jle    1223 <main+0xf3>
cmp    $0x20,%eax
jb     1187 <main+0x57>
lea    0x1021(%rip),%rdi
jmp    1233 <main+0x103>
mov    0xc(%rsp),%eax
test   %eax,%eax
jle    122c <main+0xfc>
cmp    $0x20,%eax
jb     11a4 <main+0x74>
lea    0xfca(%rip),%rdi
jmp    1233 <main+0x103>
cmpl   $0x3e7,0x8(%rsp)
jg     11b7 <main+0x87>
lea    0xf8a(%rip),%rdi
jmp    1233 <main+0x103>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xe64(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe4d(%rip),%rdi
lea    0x1c(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x14(%rsp),%rcx
call   1050 <scanf@plt>
mov    0x1c(%rsp),%eax
test   %eax,%eax
jle    1223 <main+0xf3>
mov    0x10(%rsp),%edx
cmp    $0x20,%edx
jge    117b <main+0x4b>
mov    0xc(%rsp),%esi
test   %esi,%esi
jle    122c <main+0xfc>
cmp    $0x20,%esi
jae    1198 <main+0x68>
mov    0x14(%rsp),%edi
cmp    $0x3e7,%edi
jg     1240 <main+0x110>
lea    0xefc(%rip),%rdi
jmp    1233 <main+0x103>
lea    0xf97(%rip),%rdi
jmp    1233 <main+0x103>
lea    0xf55(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret
mov    0x8(%rsp),%ecx
mov    %ecx,%ebx
sub    %edi,%ebx
jne    1253 <main+0x123>
lea    0xea3(%rip),%rdi
jmp    1233 <main+0x103>
cmp    0x18(%rsp),%esi
setl   %sil
cmp    %eax,%edx
setl   %al
or     %sil,%al
movzbl %al,%eax
sub    %eax,%ebx
cmp    $0x7e0,%ecx
jl     1296 <main+0x166>
lea    0xddc(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%ecx
cmp    $0x7df,%ecx
je     129e <main+0x16e>
cmp    $0x7de,%ecx
jg     1238 <main+0x108>
jmp    12be <main+0x18e>
cmp    $0x7df,%ecx
jne    128c <main+0x15c>
lea    0xdd0(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%ecx
cmp    $0x7de,%ecx
jg     1238 <main+0x108>
lea    0xdd0(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1238 <main+0x108>

LLVM IR (-O0):
@.str = [29 x i8] c"\C2\BFCu\C3\A1l es la fecha actual?\0A\00"
@.str.1 = [37 x i8] c"\0AD\C3\ADa/Mes/A\C3\B1o. Ejemplo:(5/5/2015): \00"
@.str.2 = [9 x i8] c"%d/%d/%d\00"
@.str.3 = [27 x i8] c"\0AEl mes no tiene 0 d\C3\ADas.\0A\00"
@.str.4 = [31 x i8] c"\0AEl mes s\C3\B3lo tiene 31 d\C3\ADas.\0A\00"
@.str.5 = [28 x i8] c"\0AEl a\C3\B1o no tiene 0 meses.\0A\00"
@.str.6 = [32 x i8] c"\0AEl a\C3\B1o s\C3\B3lo tiene 12 meses.\0A\00"
@.str.7 = [43 x i8] c"\0A\C2\BFUsted vive en la epoca de Matusal\C3\A9n?.\0A\00"
@.str.8 = [37 x i8] c"\0A\C2\BFCu\C3\A1l es tu fecha de nacimiento?\0A\00"
@.str.9 = [37 x i8] c"\0AD\C3\ADa/Mes/A\C3\B1o. Ejemplo:(5/5/1997): \00"
@.str.10 = [35 x i8] c"\0A\C2\BFUsted naci\C3\B3 antes de Cristo?.\0A\00"
@.str.11 = [42 x i8] c"\0AUsted no lleva un a\C3\B1o de haber nacido.\0A\00"
@.str.12 = [34 x i8] c"\0AUsted tendr\C3\A1 %d a\C3\B1os de edad.\0A\00"
@.str.13 = [32 x i8] c"\0AUsted tiene %d a\C3\B1os de edad.\0A\00"
@.str.14 = [31 x i8] c"\0AUsted tuvo %d a\C3\B1os de edad.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %3, i32* %4, i32* %5)
%12 = load i32, i32* %3
%13 = icmp slt i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %108
16: ; preds = %0
%17 = load i32, i32* %3
%18 = icmp sgt i32 %17, 31
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %1
br label %108
21: ; preds = %16
%22 = load i32, i32* %4
%23 = icmp slt i32 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %1
br label %108
26: ; preds = %21
%27 = load i32, i32* %4
%28 = icmp sgt i32 %27, 31
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %1
br label %108
31: ; preds = %26
%32 = load i32, i32* %5
%33 = icmp slt i32 %32, 1000
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %1
br label %108
36: ; preds = %31
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%39 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %6, i32* %7, i32* %8)
%40 = load i32, i32* %6
%41 = icmp slt i32 %40, 1
br i1 %41, label %42, label %44
42: ; preds = %36
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %108
44: ; preds = %36
%45 = load i32, i32* %3
%46 = icmp sgt i32 %45, 31
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %1
br label %108
49: ; preds = %44
%50 = load i32, i32* %4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %1
br label %108
54: ; preds = %49
%55 = load i32, i32* %4
%56 = icmp sgt i32 %55, 31
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %1
br label %108
59: ; preds = %54
%60 = load i32, i32* %8
%61 = icmp slt i32 %60, 1000
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %1
br label %108
64: ; preds = %59
%65 = load i32, i32* %8
%66 = load i32, i32* %5
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %1
br label %108
70: ; preds = %64
%71 = load i32, i32* %8
%72 = load i32, i32* %5
%73 = icmp ne i32 %71, %72
br i1 %73, label %74, label %89
74: ; preds = %70
%75 = load i32, i32* %5
%76 = load i32, i32* %8
%77 = sub nsw i32 %75, %76
store i32 %77, i32* %2
%78 = load i32, i32* %4
%79 = load i32, i32* %7
%80 = icmp slt i32 %78, %79
br i1 %80, label %85, label %81
81: ; preds = %74
%82 = load i32, i32* %3
%83 = load i32, i32* %6
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %88
85: ; preds = %81, %74
%86 = load i32, i32* %2
%87 = add nsw i32 %86, -1
store i32 %87, i32* %2
br label %88
88: ; preds = %85, %81
br label %89
89: ; preds = %88, %70
%90 = load i32, i32* %5
%91 = icmp sgt i32 %90, 2015
br i1 %91, label %92, label %95
92: ; preds = %89
%93 = load i32, i32* %2
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i32 %93)
br label %95
95: ; preds = %92, %89
%96 = load i32, i32* %5
%97 = icmp eq i32 %96, 2015
br i1 %97, label %98, label %101
98: ; preds = %95
%99 = load i32, i32* %2
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i32 %99)
br label %101
101: ; preds = %98, %95
%102 = load i32, i32* %5
%103 = icmp slt i32 %102, 2015
br i1 %103, label %104, label %107
104: ; preds = %101
%105 = load i32, i32* %2
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i32 %105)
br label %107
107: ; preds = %104, %101
store i32 0, i32* %1
br label %108
108: ; preds = %107, %68, %62, %57, %52, %47, %42, %34, %29, %24, %19, %14
%109 = load i32, i32* %1
ret i32 %109
}

LLVM IR (-O2):
@.str.1 = [37 x i8] c"\0AD\C3\ADa/Mes/A\C3\B1o. Ejemplo:(5/5/2015): \00"
@.str.2 = [9 x i8] c"%d/%d/%d\00"
@.str.9 = [37 x i8] c"\0AD\C3\ADa/Mes/A\C3\B1o. Ejemplo:(5/5/1997): \00"
@.str.12 = [34 x i8] c"\0AUsted tendr\C3\A1 %d a\C3\B1os de edad.\0A\00"
@.str.13 = [32 x i8] c"\0AUsted tiene %d a\C3\B1os de edad.\0A\00"
@.str.14 = [31 x i8] c"\0AUsted tuvo %d a\C3\B1os de edad.\0A\00"
@str = [28 x i8] c"\C2\BFCu\C3\A1l es la fecha actual?\00"
@str.15 = [36 x i8] c"\0A\C2\BFCu\C3\A1l es tu fecha de nacimiento?\00"
@str.16 = [41 x i8] c"\0AUsted no lleva un a\C3\B1o de haber nacido.\00"
@str.17 = [34 x i8] c"\0A\C2\BFUsted naci\C3\B3 antes de Cristo?.\00"
@str.22 = [42 x i8] c"\0A\C2\BFUsted vive en la epoca de Matusal\C3\A9n?.\00"
@str.23 = [31 x i8] c"\0AEl a\C3\B1o s\C3\B3lo tiene 12 meses.\00"
@str.24 = [27 x i8] c"\0AEl a\C3\B1o no tiene 0 meses.\00"
@str.25 = [30 x i8] c"\0AEl mes s\C3\B3lo tiene 31 d\C3\ADas.\00"
@str.26 = [26 x i8] c"\0AEl mes no tiene 0 d\C3\ADas.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%16 = load i32, i32* %1
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %20
18: ; preds = %0
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.26, i64 0, i64 0))
br label %93
20: ; preds = %0
%21 = icmp ugt i32 %16, 31
br i1 %21, label %22, label %24
22: ; preds = %20
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.25, i64 0, i64 0))
br label %93
24: ; preds = %20
%25 = load i32, i32* %2
%26 = icmp slt i32 %25, 1
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.24, i64 0, i64 0))
br label %93
29: ; preds = %24
%30 = icmp ugt i32 %25, 31
br i1 %30, label %31, label %33
31: ; preds = %29
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.23, i64 0, i64 0))
br label %93
33: ; preds = %29
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 1000
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.22, i64 0, i64 0))
br label %93
38: ; preds = %33
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.15, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%41 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %4, i32* %5, i32* %6)
%42 = load i32, i32* %4
%43 = icmp slt i32 %42, 1
br i1 %43, label %44, label %46
44: ; preds = %38
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.26, i64 0, i64 0))
br label %93
46: ; preds = %38
%47 = load i32, i32* %1
%48 = icmp sgt i32 %47, 31
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.25, i64 0, i64 0))
br label %93
51: ; preds = %46
%52 = load i32, i32* %2
%53 = icmp slt i32 %52, 1
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.24, i64 0, i64 0))
br label %93
56: ; preds = %51
%57 = icmp ugt i32 %52, 31
br i1 %57, label %58, label %60
58: ; preds = %56
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.23, i64 0, i64 0))
br label %93
60: ; preds = %56
%61 = load i32, i32* %6
%62 = icmp slt i32 %61, 1000
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.17, i64 0, i64 0))
br label %93
65: ; preds = %60
%66 = load i32, i32* %3
%67 = icmp eq i32 %66, %61
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.16, i64 0, i64 0))
br label %93
70: ; preds = %65
%71 = sub nsw i32 %66, %61
%72 = load i32, i32* %5
%73 = icmp slt i32 %52, %72
%74 = icmp slt i32 %47, %42
%75 = select i1 %73, i1 true, i1 %74
%76 = sext i1 %75 to i32
%77 = add nsw i32 %71, %76
%78 = icmp sgt i32 %66, 2015
br i1 %78, label %79, label %82
79: ; preds = %70
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i32 %77)
%81 = load i32, i32* %3
br label %82
82: ; preds = %79, %70
%83 = phi i32 [ %81, %79 ], [ %66, %70 ]
%84 = icmp eq i32 %83, 2015
br i1 %84, label %85, label %88
85: ; preds = %82
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i32 %77)
%87 = load i32, i32* %3
br label %88
88: ; preds = %85, %82
%89 = phi i32 [ %87, %85 ], [ %83, %82 ]
%90 = icmp slt i32 %89, 2015
br i1 %90, label %91, label %93
91: ; preds = %88
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i32 %77)
br label %93
93: ; preds = %88, %91, %68, %63, %58, %54, %49, %44, %36, %31, %27, %22, %18
ret i32 0
}