#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 attendanceSheetCreater(char *, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char **);
int crTablmain() {
  int retCode = 0;
  char month[3] = "";
  char yearAS[3] = "";
  printf("SHEETCRT:: Please Enter Month For Which attendanceSheet is to be "
         "created:");
  scanf("%s", &month);
  printf("SHEETCRT:: Please Enter Year for which attendanceSheet is to be "
         "created:");
  scanf("%s", &yearAS);
  retCode = attendanceSheetCreater(month, yearAS);
  return 0;
}


x86 assembly (clang, -O0):
<crTablmain>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x7(%rbp),%rdi
xor    %esi,%esi
mov    $0x3,%edx
call   1050 <memset@plt>
lea    -0xa(%rbp),%rdi
xor    %esi,%esi
mov    $0x3,%edx
call   1050 <memset@plt>
lea    0xe8a(%rip),%rdi
call   1040 <printf@plt>
lea    -0x7(%rbp),%rsi
lea    0xec4(%rip),%rdi
call   1060 <scanf@plt>
lea    0xebb(%rip),%rdi
call   1040 <printf@plt>
lea    -0xa(%rbp),%rsi
lea    0xea8(%rip),%rdi
call   1060 <scanf@plt>
lea    -0x7(%rbp),%rdi
lea    -0xa(%rbp),%rsi
call   1030 <attendanceSheetCreater@plt>
mov    %eax,-0x4(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crTablmain>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movb   $0x0,0xe(%rsp)
movw   $0x0,0xc(%rsp)
movb   $0x0,0xa(%rsp)
movw   $0x0,0x8(%rsp)
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
lea    0xee6(%rip),%r15
lea    0xc(%rsp),%r14
mov    %r15,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
lea    0x8(%rsp),%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <attendanceSheetCreater@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [74 x i8] c"SHEETCRT:: Please Enter Month For Which attendanceSheet is to be created:\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [73 x i8] c"SHEETCRT:: Please Enter Year for which attendanceSheet is to be created:\00"
define i32 @crTablmain() {
%1 = alloca i32
%2 = alloca [3 x i8]
%3 = alloca [3 x i8]
store i32 0, i32* %1
%4 = bitcast [3 x i8]* %2 to i8*
%5 = bitcast [3 x i8]* %3 to i8*
%6 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
%7 = bitcast [3 x i8]* %2 to i8**
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0))
%10 = bitcast [3 x i8]* %3 to i8**
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %10)
%12 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%13 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%14 = call i32 @attendanceSheetCreater(i8* %12, i8* %13)
store i32 %14, i32* %1
ret i32 0
}

LLVM IR (-O2):
@.str = [74 x i8] c"SHEETCRT:: Please Enter Month For Which attendanceSheet is to be created:\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [73 x i8] c"SHEETCRT:: Please Enter Year for which attendanceSheet is to be created:\00"
define i32 @crTablmain() {
%1 = alloca [3 x i8]
%2 = alloca [3 x i8]
%3 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
%6 = bitcast [3 x i8]* %1 to i8**
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %6)
%8 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0))
%9 = bitcast [3 x i8]* %2 to i8**
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %9)
%11 = call i32 @attendanceSheetCreater(i8* %3, i8* %4)
ret i32 0
}