#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 *, char *, int *, char *, int *);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char **argv) {
  int a, b, c;
  char d[2], e[2];
  printf("What kind of scanning formats you'd like to use date-month-year or "
         "date/month/year:\n");
  scanf("%2d %1s %2d %1s %4d", &a, d, &b, e, &c);
  if ((strcmp(d, e) == 0 && strcmp(d, "-") == 0) ||
      (strcmp(d, e) == 0 && strcmp(d, "/") == 0)) {
    if (a > 0 && a < 13 && b > 0 && b < 32) {
      char str[80];
      char a2[10];
      char b2[3];
      char c2[5];
      if (a == 1)
        strcpy(a2, "January ");
      if (a == 2)
        strcpy(a2, "February ");
      if (a == 3)
        strcpy(a2, "March ");
      if (a == 4)
        strcpy(a2, "April ");
      if (a == 5)
        strcpy(a2, "May ");
      if (a == 6)
        strcpy(a2, "June ");
      if (a == 7)
        strcpy(a2, "July ");
      if (a == 8)
        strcpy(a2, "August ");
      if (a == 9)
        strcpy(a2, "September ");
      if (a == 10)
        strcpy(a2, "October ");
      if (a == 11)
        strcpy(a2, "November ");
      if (a == 12)
        strcpy(a2, "December ");
      sprintf(b2, "%d", b);
      sprintf(c2, "%d", c);
      strcpy(str, a2);
      strcat(str, b2);
      strcat(str, ", ");
      strcat(str, c2);
      printf("%s\n", str);
    } else {
      printf("The input format isn't correct.\n");
    }
  } else {
    printf("The input format isn't correct.\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x1e(%rbp),%rdx
lea    -0x20(%rbp),%r8
lea    0xebf(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rcx
lea    -0x1c(%rbp),%r9
call   1060 <scanf@plt>
lea    -0x1e(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11d8 <main+0x78>
lea    -0x1e(%rbp),%rdi
lea    0xea0(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1209 <main+0xa9>
lea    -0x1e(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13f6 <main+0x296>
lea    -0x1e(%rbp),%rdi
lea    0xe71(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13f6 <main+0x296>
cmpl   $0x0,-0x14(%rbp)
jle    13e3 <main+0x283>
cmpl   $0xd,-0x14(%rbp)
jge    13e3 <main+0x283>
cmpl   $0x0,-0x18(%rbp)
jle    13e3 <main+0x283>
cmpl   $0x20,-0x18(%rbp)
jge    13e3 <main+0x283>
cmpl   $0x1,-0x14(%rbp)
jne    124b <main+0xeb>
lea    -0x7a(%rbp),%rdi
lea    0xe27(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x2,-0x14(%rbp)
jne    1265 <main+0x105>
lea    -0x7a(%rbp),%rdi
lea    0xe16(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x3,-0x14(%rbp)
jne    127f <main+0x11f>
lea    -0x7a(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x4,-0x14(%rbp)
jne    1299 <main+0x139>
lea    -0x7a(%rbp),%rdi
lea    0xdf3(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x5,-0x14(%rbp)
jne    12b3 <main+0x153>
lea    -0x7a(%rbp),%rdi
lea    0xde0(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x6,-0x14(%rbp)
jne    12cd <main+0x16d>
lea    -0x7a(%rbp),%rdi
lea    0xdcb(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x7,-0x14(%rbp)
jne    12e7 <main+0x187>
lea    -0x7a(%rbp),%rdi
lea    0xdb7(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x8,-0x14(%rbp)
jne    1301 <main+0x1a1>
lea    -0x7a(%rbp),%rdi
lea    0xda3(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x9,-0x14(%rbp)
jne    131b <main+0x1bb>
lea    -0x7a(%rbp),%rdi
lea    0xd91(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0xa,-0x14(%rbp)
jne    1335 <main+0x1d5>
lea    -0x7a(%rbp),%rdi
lea    0xd82(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0xb,-0x14(%rbp)
jne    134f <main+0x1ef>
lea    -0x7a(%rbp),%rdi
lea    0xd71(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0xc,-0x14(%rbp)
jne    1369 <main+0x209>
lea    -0x7a(%rbp),%rdi
lea    0xd61(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x7d(%rbp),%rdi
mov    -0x18(%rbp),%edx
lea    0xd58(%rip),%rsi
call   1080 <sprintf@plt>
lea    -0x82(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xd42(%rip),%rsi
call   1080 <sprintf@plt>
lea    -0x70(%rbp),%rdi
lea    -0x7a(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x70(%rbp),%rdi
lea    -0x7d(%rbp),%rsi
call   1070 <strcat@plt>
lea    -0x70(%rbp),%rdi
lea    0xd1b(%rip),%rsi
call   1070 <strcat@plt>
lea    -0x70(%rbp),%rdi
lea    -0x82(%rbp),%rsi
call   1070 <strcat@plt>
lea    -0x70(%rbp),%rsi
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13f1 <main+0x291>
lea    0xcef(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1404 <main+0x2a4>
lea    0xcdc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
lea    0xf0d(%rip),%rdi
call   1040 <puts@plt>
lea    0xe81(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x12(%rsp),%r14
lea    0x20(%rsp),%rcx
lea    0x1e(%rsp),%rbx
lea    0x24(%rsp),%r9
mov    %r14,%rdx
mov    %rbx,%r8
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    11c9 <main+0x69>
lea    0xe5a(%rip),%rsi
lea    0x12(%rsp),%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     11fb <main+0x9b>
lea    0x12(%rsp),%rdi
lea    0x1e(%rsp),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    1304 <main+0x1a4>
lea    0xe2e(%rip),%rsi
lea    0x12(%rsp),%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    1304 <main+0x1a4>
mov    0xc(%rsp),%eax
lea    -0x1(%rax),%ecx
cmp    $0xb,%ecx
ja     1304 <main+0x1a4>
mov    0x20(%rsp),%ecx
test   %ecx,%ecx
jle    1304 <main+0x1a4>
cmp    $0x1f,%ecx
jg     1304 <main+0x1a4>
cmp    $0x1,%eax
je     131f <main+0x1bf>
cmp    $0x2,%eax
je     133d <main+0x1dd>
cmp    $0x3,%eax
je     135b <main+0x1fb>
cmp    $0x4,%eax
je     1379 <main+0x219>
cmp    $0x5,%eax
je     1397 <main+0x237>
cmp    $0x6,%eax
je     13b5 <main+0x255>
cmp    $0x7,%eax
je     13d3 <main+0x273>
cmp    $0x8,%eax
je     13f1 <main+0x291>
cmp    $0x9,%eax
je     140f <main+0x2af>
cmp    $0xa,%eax
je     142d <main+0x2cd>
cmp    $0xb,%eax
je     144b <main+0x2eb>
cmp    $0xc,%eax
jne    1299 <main+0x139>
lea    0xde1(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x20(%rsp),%edx
lea    0xdd6(%rip),%rbx
lea    0x28(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <sprintf@plt>
mov    0x24(%rsp),%edx
lea    0x2b(%rsp),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
call   1080 <sprintf@plt>
lea    0x30(%rsp),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1070 <strcat@plt>
lea    0xd91(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1070 <strcat@plt>
mov    %rbx,%rdi
jmp    130b <main+0x1ab>
lea    0xdc9(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
lea    0xcf2(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0x2,%eax
jne    1232 <main+0xd2>
lea    0xcdd(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0x3,%eax
jne    123b <main+0xdb>
lea    0xcc9(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0x4,%eax
jne    1244 <main+0xe4>
lea    0xcb2(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0x5,%eax
jne    124d <main+0xed>
lea    0xc9b(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0x6,%eax
jne    1256 <main+0xf6>
lea    0xc82(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0x7,%eax
jne    125f <main+0xff>
lea    0xc6a(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0x8,%eax
jne    1268 <main+0x108>
lea    0xc52(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0x9,%eax
jne    1271 <main+0x111>
lea    0xc3c(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0xa,%eax
jne    127a <main+0x11a>
lea    0xc29(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0xb,%eax
jne    1283 <main+0x123>
lea    0xc14(%rip),%rsi
lea    0x14(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0xc(%rsp),%eax
cmp    $0xc,%eax
je     1288 <main+0x128>
jmp    1299 <main+0x139>

LLVM IR (-O0):
@.str = [85 x i8] c"What kind of scanning formats you'd like to use date-month-year or date/month/year:\0A\00"
@.str.1 = [20 x i8] c"%2d %1s %2d %1s %4d\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [2 x i8] c"/\00"
@.str.4 = [9 x i8] c"January \00"
@.str.5 = [10 x i8] c"February \00"
@.str.6 = [7 x i8] c"March \00"
@.str.7 = [7 x i8] c"April \00"
@.str.8 = [5 x i8] c"May \00"
@.str.9 = [6 x i8] c"June \00"
@.str.10 = [6 x i8] c"July \00"
@.str.11 = [8 x i8] c"August \00"
@.str.12 = [11 x i8] c"September \00"
@.str.13 = [9 x i8] c"October \00"
@.str.14 = [10 x i8] c"November \00"
@.str.15 = [10 x i8] c"December \00"
@.str.16 = [3 x i8] c"%d\00"
@.str.17 = [3 x i8] c", \00"
@.str.18 = [4 x i8] c"%s\0A\00"
@.str.19 = [33 x i8] c"The input format isn't correct.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [2 x i8]
%10 = alloca [2 x i8]
%11 = alloca [80 x i8]
%12 = alloca [10 x i8]
%13 = alloca [3 x i8]
%14 = alloca [5 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0))
%16 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%17 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%18 = call i32 @scanf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32* %6, i8* %16, i32* %7, i8* %17, i32* %8)
%19 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%20 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%21 = call i64 @strcmp(i8* %19, i8* %20)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %2
%24 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %36, label %27
27: ; preds = %23, %2
%28 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%29 = getelementptr inbounds [2 x i8], [2 x i8]* %10, i64 0, i64 0
%30 = call i64 @strcmp(i8* %28, i8* %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %143
32: ; preds = %27
%33 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %143
36: ; preds = %32, %23
%37 = load i32, i32* %6
%38 = icmp sgt i32 %37, 0
br i1 %38, label %39, label %140
39: ; preds = %36
%40 = load i32, i32* %6
%41 = icmp slt i32 %40, 13
br i1 %41, label %42, label %140
42: ; preds = %39
%43 = load i32, i32* %7
%44 = icmp sgt i32 %43, 0
br i1 %44, label %45, label %140
45: ; preds = %42
%46 = load i32, i32* %7
%47 = icmp slt i32 %46, 32
br i1 %47, label %48, label %140
48: ; preds = %45
%49 = load i32, i32* %6
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%53 = call i32 @strcpy(i8* %52, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %54
54: ; preds = %51, %48
%55 = load i32, i32* %6
%56 = icmp eq i32 %55, 2
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%59 = call i32 @strcpy(i8* %58, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %60
60: ; preds = %57, %54
%61 = load i32, i32* %6
%62 = icmp eq i32 %61, 3
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%65 = call i32 @strcpy(i8* %64, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %66
66: ; preds = %63, %60
%67 = load i32, i32* %6
%68 = icmp eq i32 %67, 4
br i1 %68, label %69, label %72
69: ; preds = %66
%70 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%71 = call i32 @strcpy(i8* %70, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %72
72: ; preds = %69, %66
%73 = load i32, i32* %6
%74 = icmp eq i32 %73, 5
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%77 = call i32 @strcpy(i8* %76, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %78
78: ; preds = %75, %72
%79 = load i32, i32* %6
%80 = icmp eq i32 %79, 6
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%83 = call i32 @strcpy(i8* %82, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
br label %84
84: ; preds = %81, %78
%85 = load i32, i32* %6
%86 = icmp eq i32 %85, 7
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%89 = call i32 @strcpy(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %90
90: ; preds = %87, %84
%91 = load i32, i32* %6
%92 = icmp eq i32 %91, 8
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%95 = call i32 @strcpy(i8* %94, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %96
96: ; preds = %93, %90
%97 = load i32, i32* %6
%98 = icmp eq i32 %97, 9
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%101 = call i32 @strcpy(i8* %100, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
br label %102
102: ; preds = %99, %96
%103 = load i32, i32* %6
%104 = icmp eq i32 %103, 10
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%107 = call i32 @strcpy(i8* %106, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
br label %108
108: ; preds = %105, %102
%109 = load i32, i32* %6
%110 = icmp eq i32 %109, 11
br i1 %110, label %111, label %114
111: ; preds = %108
%112 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%113 = call i32 @strcpy(i8* %112, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
br label %114
114: ; preds = %111, %108
%115 = load i32, i32* %6
%116 = icmp eq i32 %115, 12
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%119 = call i32 @strcpy(i8* %118, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
br label %120
120: ; preds = %117, %114
%121 = getelementptr inbounds [3 x i8], [3 x i8]* %13, i64 0, i64 0
%122 = load i32, i32* %7
%123 = call i32 @sprintf(i8* %121, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i32 %122)
%124 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%125 = load i32, i32* %8
%126 = call i32 @sprintf(i8* %124, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i32 %125)
%127 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%128 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%129 = call i32 @strcpy(i8* %127, i8* %128)
%130 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%131 = getelementptr inbounds [3 x i8], [3 x i8]* %13, i64 0, i64 0
%132 = call i32 @strcat(i8* %130, i8* %131)
%133 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%134 = call i32 @strcat(i8* %133, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%135 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%136 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%137 = call i32 @strcat(i8* %135, i8* %136)
%138 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* %138)
br label %142
140: ; preds = %45, %42, %39, %36
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.19, i64 0, i64 0))
br label %142
142: ; preds = %140, %120
br label %145
143: ; preds = %32, %27
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.19, i64 0, i64 0))
br label %145
145: ; preds = %143, %142
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [20 x i8] c"%2d %1s %2d %1s %4d\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [2 x i8] c"/\00"
@.str.4 = [9 x i8] c"January \00"
@.str.5 = [10 x i8] c"February \00"
@.str.6 = [7 x i8] c"March \00"
@.str.7 = [7 x i8] c"April \00"
@.str.8 = [5 x i8] c"May \00"
@.str.9 = [6 x i8] c"June \00"
@.str.10 = [6 x i8] c"July \00"
@.str.11 = [8 x i8] c"August \00"
@.str.12 = [11 x i8] c"September \00"
@.str.13 = [9 x i8] c"October \00"
@.str.14 = [10 x i8] c"November \00"
@.str.15 = [10 x i8] c"December \00"
@.str.16 = [3 x i8] c"%d\00"
@.str.17 = [3 x i8] c", \00"
@str = [84 x i8] c"What kind of scanning formats you'd like to use date-month-year or date/month/year:\00"
@str.21 = [32 x i8] c"The input format isn't correct.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [2 x i8]
%7 = alloca [2 x i8]
%8 = alloca [80 x i8]
%9 = alloca [10 x i8]
%10 = alloca [3 x i8]
%11 = alloca [5 x i8]
%12 = bitcast i32* %3 to i8*
%13 = bitcast i32* %4 to i8*
%14 = bitcast i32* %5 to i8*
%15 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32* %3, i8* %15, i32* %4, i8* %16, i32* %5)
%19 = call i64 @strcmp(i8* %15, i8* %16)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %2
%22 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %30, label %24
24: ; preds = %21, %2
%25 = call i64 @strcmp(i8* %15, i8* %16)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %125
27: ; preds = %24
%28 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %125
30: ; preds = %27, %21
%31 = load i32, i32* %3
%32 = add i32 %31, -1
%33 = icmp ult i32 %32, 12
%34 = load i32, i32* %4
%35 = icmp sgt i32 %34, 0
%36 = select i1 %33, i1 %35, i1 false
%37 = icmp slt i32 %34, 32
%38 = select i1 %36, i1 %37, i1 false
br i1 %38, label %39, label %123
39: ; preds = %30
%40 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%41 = getelementptr inbounds [10 x i8], [10 x i8]* %9, i64 0, i64 0
%42 = getelementptr inbounds [3 x i8], [3 x i8]* %10, i64 0, i64 0
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %11, i64 0, i64 0
%44 = icmp eq i32 %31, 1
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%47 = load i32, i32* %3
br label %48
48: ; preds = %45, %39
%49 = phi i32 [ %47, %45 ], [ %31, %39 ]
%50 = icmp eq i32 %49, 2
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%53 = load i32, i32* %3
br label %54
54: ; preds = %51, %48
%55 = phi i32 [ %53, %51 ], [ %49, %48 ]
%56 = icmp eq i32 %55, 3
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%59 = load i32, i32* %3
br label %60
60: ; preds = %57, %54
%61 = phi i32 [ %59, %57 ], [ %55, %54 ]
%62 = icmp eq i32 %61, 4
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%65 = load i32, i32* %3
br label %66
66: ; preds = %63, %60
%67 = phi i32 [ %65, %63 ], [ %61, %60 ]
%68 = icmp eq i32 %67, 5
br i1 %68, label %69, label %72
69: ; preds = %66
%70 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%71 = load i32, i32* %3
br label %72
72: ; preds = %69, %66
%73 = phi i32 [ %71, %69 ], [ %67, %66 ]
%74 = icmp eq i32 %73, 6
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%77 = load i32, i32* %3
br label %78
78: ; preds = %75, %72
%79 = phi i32 [ %77, %75 ], [ %73, %72 ]
%80 = icmp eq i32 %79, 7
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%83 = load i32, i32* %3
br label %84
84: ; preds = %81, %78
%85 = phi i32 [ %83, %81 ], [ %79, %78 ]
%86 = icmp eq i32 %85, 8
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%89 = load i32, i32* %3
br label %90
90: ; preds = %87, %84
%91 = phi i32 [ %89, %87 ], [ %85, %84 ]
%92 = icmp eq i32 %91, 9
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
%95 = load i32, i32* %3
br label %96
96: ; preds = %93, %90
%97 = phi i32 [ %95, %93 ], [ %91, %90 ]
%98 = icmp eq i32 %97, 10
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
%101 = load i32, i32* %3
br label %102
102: ; preds = %99, %96
%103 = phi i32 [ %101, %99 ], [ %97, %96 ]
%104 = icmp eq i32 %103, 11
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%107 = load i32, i32* %3
br label %108
108: ; preds = %105, %102
%109 = phi i32 [ %107, %105 ], [ %103, %102 ]
%110 = icmp eq i32 %109, 12
br i1 %110, label %111, label %113
111: ; preds = %108
%112 = call i32 @strcpy(i8* %41, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
br label %113
113: ; preds = %111, %108
%114 = load i32, i32* %4
%115 = call i32 @sprintf(i8* %42, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i32 %114)
%116 = load i32, i32* %5
%117 = call i32 @sprintf(i8* %43, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i32 %116)
%118 = call i32 @strcpy(i8* %40, i8* %41)
%119 = call i32 @strcat(i8* %40, i8* %42)
%120 = call i32 @strcat(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%121 = call i32 @strcat(i8* %40, i8* %43)
%122 = call i32 @puts(i8* %40)
br label %127
123: ; preds = %30
%124 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.21, i64 0, i64 0))
br label %127
125: ; preds = %27, %24
%126 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.21, i64 0, i64 0))
br label %127
127: ; preds = %113, %123, %125
ret i32 0
}