#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 */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ asctime(struct tm *);
int atoi(char *);
struct tm *localtime(int /*<<< orphan*/ *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, int /*<<< orphan*/);
char *strtok(char *, char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int get_date_time(int *dm, int *dd, int *wd, int *th, int *tm) {
  char *date_month, *date_day, *weekday, *time_hour, *time_min, *s;
  time_t rawtime;
  struct tm *timeinfo;
  time(&rawtime);
  timeinfo = localtime(&rawtime);
  strcpy(s, asctime(timeinfo));
  weekday = strtok(s, " ");
  date_month = strtok(NULL, " ");
  date_day = strtok(NULL, " ");
  time_hour = strtok(NULL, ":");
  time_min = strtok(NULL, ":");
  if (strcmp(weekday, "Mon") == 0)
    *wd = 0;
  else if (strcmp(weekday, "Tue") == 0)
    *wd = 1;
  else if (strcmp(weekday, "Wed") == 0)
    *wd = 2;
  else if (strcmp(weekday, "Thu") == 0)
    *wd = 3;
  else if (strcmp(weekday, "Fri") == 0)
    *wd = 4;
  else if (strcmp(weekday, "Sat") == 0)
    *wd = 5;
  else if (strcmp(weekday, "Sun") == 0)
    *wd = 6;
  else
    return 0;
  if (strcmp(date_month, "Jan") == 0)
    *dm = 1;
  else if (strcmp(date_month, "Feb") == 0)
    *dm = 2;
  else if (strcmp(date_month, "Mar") == 0)
    *dm = 3;
  else if (strcmp(date_month, "Apr") == 0)
    *dm = 4;
  else if (strcmp(date_month, "May") == 0)
    *dm = 5;
  else if (strcmp(date_month, "Jun") == 0)
    *dm = 6;
  else if (strcmp(date_month, "Jul") == 0)
    *dm = 7;
  else if (strcmp(date_month, "Aug") == 0)
    *dm = 8;
  else if (strcmp(date_month, "Sep") == 0)
    *dm = 9;
  else if (strcmp(date_month, "Oct") == 0)
    *dm = 10;
  else if (strcmp(date_month, "Nov") == 0)
    *dm = 11;
  else if (strcmp(date_month, "Dec") == 0)
    *dm = 12;
  else
    return 0;
  *dd = atoi(date_day);
  *th = atoi(time_hour);
  *tm = atoi(time_min);
  return 1;
}


x86 assembly (clang, -O0):
<get_date_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
lea    -0x64(%rbp),%rdi
call   1070 <time@plt>
lea    -0x64(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x70(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x70(%rbp),%rdi
call   1050 <asctime@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%esi
call   1040 <strcpy@plt>
mov    -0x60(%rbp),%rdi
lea    0xe34(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x48(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xe20(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x38(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xe0c(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x40(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdfa(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x50(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xde6(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xdd4(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    124e <get_date_time+0xde>
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
jmp    136e <get_date_time+0x1fe>
mov    -0x48(%rbp),%rdi
lea    0xdaf(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1277 <get_date_time+0x107>
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
jmp    1369 <get_date_time+0x1f9>
mov    -0x48(%rbp),%rdi
lea    0xd8a(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12a0 <get_date_time+0x130>
mov    -0x20(%rbp),%rax
movl   $0x2,(%rax)
jmp    1364 <get_date_time+0x1f4>
mov    -0x48(%rbp),%rdi
lea    0xd65(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12c9 <get_date_time+0x159>
mov    -0x20(%rbp),%rax
movl   $0x3,(%rax)
jmp    135f <get_date_time+0x1ef>
mov    -0x48(%rbp),%rdi
lea    0xd40(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12f2 <get_date_time+0x182>
mov    -0x20(%rbp),%rax
movl   $0x4,(%rax)
jmp    135a <get_date_time+0x1ea>
mov    -0x48(%rbp),%rdi
lea    0xd1b(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    131b <get_date_time+0x1ab>
mov    -0x20(%rbp),%rax
movl   $0x5,(%rax)
jmp    1355 <get_date_time+0x1e5>
mov    -0x48(%rbp),%rdi
lea    0xcf6(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1344 <get_date_time+0x1d4>
mov    -0x20(%rbp),%rax
movl   $0x6,(%rax)
jmp    1350 <get_date_time+0x1e0>
movl   $0x0,-0x4(%rbp)
jmp    15d7 <get_date_time+0x467>
jmp    1355 <get_date_time+0x1e5>
jmp    135a <get_date_time+0x1ea>
jmp    135f <get_date_time+0x1ef>
jmp    1364 <get_date_time+0x1f4>
jmp    1369 <get_date_time+0x1f9>
jmp    136e <get_date_time+0x1fe>
mov    -0x38(%rbp),%rdi
lea    0xca7(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1397 <get_date_time+0x227>
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
jmp    159d <get_date_time+0x42d>
mov    -0x38(%rbp),%rdi
lea    0xc82(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13c0 <get_date_time+0x250>
mov    -0x10(%rbp),%rax
movl   $0x2,(%rax)
jmp    1598 <get_date_time+0x428>
mov    -0x38(%rbp),%rdi
lea    0xc5d(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13e9 <get_date_time+0x279>
mov    -0x10(%rbp),%rax
movl   $0x3,(%rax)
jmp    1593 <get_date_time+0x423>
mov    -0x38(%rbp),%rdi
lea    0xc38(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1412 <get_date_time+0x2a2>
mov    -0x10(%rbp),%rax
movl   $0x4,(%rax)
jmp    158e <get_date_time+0x41e>
mov    -0x38(%rbp),%rdi
lea    0xc13(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    143b <get_date_time+0x2cb>
mov    -0x10(%rbp),%rax
movl   $0x5,(%rax)
jmp    1589 <get_date_time+0x419>
mov    -0x38(%rbp),%rdi
lea    0xbee(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1464 <get_date_time+0x2f4>
mov    -0x10(%rbp),%rax
movl   $0x6,(%rax)
jmp    1584 <get_date_time+0x414>
mov    -0x38(%rbp),%rdi
lea    0xbc9(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    148d <get_date_time+0x31d>
mov    -0x10(%rbp),%rax
movl   $0x7,(%rax)
jmp    157f <get_date_time+0x40f>
mov    -0x38(%rbp),%rdi
lea    0xba4(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    14b6 <get_date_time+0x346>
mov    -0x10(%rbp),%rax
movl   $0x8,(%rax)
jmp    157a <get_date_time+0x40a>
mov    -0x38(%rbp),%rdi
lea    0xb7f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    14df <get_date_time+0x36f>
mov    -0x10(%rbp),%rax
movl   $0x9,(%rax)
jmp    1575 <get_date_time+0x405>
mov    -0x38(%rbp),%rdi
lea    0xb5a(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1508 <get_date_time+0x398>
mov    -0x10(%rbp),%rax
movl   $0xa,(%rax)
jmp    1570 <get_date_time+0x400>
mov    -0x38(%rbp),%rdi
lea    0xb35(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1531 <get_date_time+0x3c1>
mov    -0x10(%rbp),%rax
movl   $0xb,(%rax)
jmp    156b <get_date_time+0x3fb>
mov    -0x38(%rbp),%rdi
lea    0xb10(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    155a <get_date_time+0x3ea>
mov    -0x10(%rbp),%rax
movl   $0xc,(%rax)
jmp    1566 <get_date_time+0x3f6>
movl   $0x0,-0x4(%rbp)
jmp    15d7 <get_date_time+0x467>
jmp    156b <get_date_time+0x3fb>
jmp    1570 <get_date_time+0x400>
jmp    1575 <get_date_time+0x405>
jmp    157a <get_date_time+0x40a>
jmp    157f <get_date_time+0x40f>
jmp    1584 <get_date_time+0x414>
jmp    1589 <get_date_time+0x419>
jmp    158e <get_date_time+0x41e>
jmp    1593 <get_date_time+0x423>
jmp    1598 <get_date_time+0x428>
jmp    159d <get_date_time+0x42d>
mov    -0x40(%rbp),%rdi
call   1090 <atoi@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x50(%rbp),%rdi
call   1090 <atoi@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x58(%rbp),%rdi
call   1090 <atoi@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_date_time>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r8,0x28(%rsp)
mov    %rcx,0x20(%rsp)
mov    %rdx,%r12
mov    %rsi,0x18(%rsp)
mov    %rdi,0x10(%rsp)
lea    0x34(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <time@plt>
mov    %rbx,%rdi
call   1030 <localtime@plt>
mov    %rax,%rdi
call   1050 <asctime@plt>
mov    %eax,%esi
call   1040 <strcpy@plt>
lea    0xe40(%rip),%rbx
mov    %rbx,%rsi
call   1080 <strtok@plt>
mov    %rax,%r13
xor    %r14d,%r14d
xor    %edi,%edi
mov    %rbx,%rsi
call   1080 <strtok@plt>
mov    %rax,%r15
xor    %edi,%edi
mov    %rbx,%rsi
call   1080 <strtok@plt>
mov    %rax,0x8(%rsp)
lea    0xe11(%rip),%rbx
xor    %edi,%edi
mov    %rbx,%rsi
call   1080 <strtok@plt>
mov    %rax,%rbp
xor    %edi,%edi
mov    %rbx,%rsi
call   1080 <strtok@plt>
mov    %rax,%rbx
lea    0xdf2(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12d2 <get_date_time+0x162>
lea    0xdde(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12ac <get_date_time+0x13c>
lea    0xdce(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12b4 <get_date_time+0x144>
lea    0xdbe(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12bc <get_date_time+0x14c>
lea    0xdae(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12c4 <get_date_time+0x154>
lea    0xd9e(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12cc <get_date_time+0x15c>
lea    0xd8e(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
jne    147a <get_date_time+0x30a>
mov    $0x6,%r14d
jmp    12d2 <get_date_time+0x162>
mov    $0x1,%r14d
jmp    12d2 <get_date_time+0x162>
mov    $0x2,%r14d
jmp    12d2 <get_date_time+0x162>
mov    $0x3,%r14d
jmp    12d2 <get_date_time+0x162>
mov    $0x4,%r14d
jmp    12d2 <get_date_time+0x162>
mov    $0x5,%r14d
mov    %r14d,(%r12)
lea    0xd43(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
mov    $0x1,%ecx
test   %rax,%rax
je     143f <get_date_time+0x2cf>
lea    0xd2a(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13fb <get_date_time+0x28b>
lea    0xd16(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1402 <get_date_time+0x292>
lea    0xd02(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1409 <get_date_time+0x299>
lea    0xcee(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1410 <get_date_time+0x2a0>
lea    0xcda(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1417 <get_date_time+0x2a7>
lea    0xcc6(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     141e <get_date_time+0x2ae>
lea    0xcb2(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1425 <get_date_time+0x2b5>
lea    0xc9e(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     142c <get_date_time+0x2bc>
lea    0xc8e(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1433 <get_date_time+0x2c3>
lea    0xc7e(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     143a <get_date_time+0x2ca>
lea    0xc6e(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
jne    147a <get_date_time+0x30a>
mov    $0xc,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0x2,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0x3,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0x4,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0x5,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0x6,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0x7,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0x8,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0x9,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0xa,%ecx
jmp    143f <get_date_time+0x2cf>
mov    $0xb,%ecx
mov    0x10(%rsp),%rax
mov    %ecx,(%rax)
mov    0x8(%rsp),%rdi
call   1090 <atoi@plt>
mov    0x18(%rsp),%rcx
mov    %eax,(%rcx)
mov    %rbp,%rdi
call   1090 <atoi@plt>
mov    0x20(%rsp),%rcx
mov    %eax,(%rcx)
mov    %rbx,%rdi
call   1090 <atoi@plt>
mov    0x28(%rsp),%rcx
mov    %eax,(%rcx)
mov    $0x1,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c":\00"
@.str.2 = [4 x i8] c"Mon\00"
@.str.3 = [4 x i8] c"Tue\00"
@.str.4 = [4 x i8] c"Wed\00"
@.str.5 = [4 x i8] c"Thu\00"
@.str.6 = [4 x i8] c"Fri\00"
@.str.7 = [4 x i8] c"Sat\00"
@.str.8 = [4 x i8] c"Sun\00"
@.str.9 = [4 x i8] c"Jan\00"
@.str.10 = [4 x i8] c"Feb\00"
@.str.11 = [4 x i8] c"Mar\00"
@.str.12 = [4 x i8] c"Apr\00"
@.str.13 = [4 x i8] c"May\00"
@.str.14 = [4 x i8] c"Jun\00"
@.str.15 = [4 x i8] c"Jul\00"
@.str.16 = [4 x i8] c"Aug\00"
@.str.17 = [4 x i8] c"Sep\00"
@.str.18 = [4 x i8] c"Oct\00"
@.str.19 = [4 x i8] c"Nov\00"
@.str.20 = [4 x i8] c"Dec\00"
define i32 @get_date_time(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4) {
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i32
%19 = alloca %struct.tm*
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i32* %4, i32** %11
%20 = call i32 @time(i32* %18)
%21 = call %struct.tm* @localtime(i32* %18)
store %struct.tm* %21, %struct.tm** %19
%22 = load i8*, i8** %17
%23 = load %struct.tm*, %struct.tm** %19
%24 = call i32 @asctime(%struct.tm* %23)
%25 = call i32 @strcpy(i8* %22, i32 %24)
%26 = load i8*, i8** %17
%27 = call i8* @strtok(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %27, i8** %14
%28 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %28, i8** %12
%29 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %29, i8** %13
%30 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %30, i8** %15
%31 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %31, i8** %16
%32 = load i8*, i8** %14
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %5
%36 = load i32*, i32** %9
store i32 0, i32* %36
br label %80
37: ; preds = %5
%38 = load i8*, i8** %14
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = load i32*, i32** %9
store i32 1, i32* %42
br label %79
43: ; preds = %37
%44 = load i8*, i8** %14
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load i32*, i32** %9
store i32 2, i32* %48
br label %78
49: ; preds = %43
%50 = load i8*, i8** %14
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = load i32*, i32** %9
store i32 3, i32* %54
br label %77
55: ; preds = %49
%56 = load i8*, i8** %14
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = load i32*, i32** %9
store i32 4, i32* %60
br label %76
61: ; preds = %55
%62 = load i8*, i8** %14
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = load i32*, i32** %9
store i32 5, i32* %66
br label %75
67: ; preds = %61
%68 = load i8*, i8** %14
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = load i32*, i32** %9
store i32 6, i32* %72
br label %74
73: ; preds = %67
store i32 0, i32* %6
br label %174
74: ; preds = %71
br label %75
75: ; preds = %74, %65
br label %76
76: ; preds = %75, %59
br label %77
77: ; preds = %76, %53
br label %78
78: ; preds = %77, %47
br label %79
79: ; preds = %78, %41
br label %80
80: ; preds = %79, %35
%81 = load i8*, i8** %12
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = load i32*, i32** %7
store i32 1, i32* %85
br label %164
86: ; preds = %80
%87 = load i8*, i8** %12
%88 = call i64 @strcmp(i8* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = load i32*, i32** %7
store i32 2, i32* %91
br label %163
92: ; preds = %86
%93 = load i8*, i8** %12
%94 = call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = load i32*, i32** %7
store i32 3, i32* %97
br label %162
98: ; preds = %92
%99 = load i8*, i8** %12
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %98
%103 = load i32*, i32** %7
store i32 4, i32* %103
br label %161
104: ; preds = %98
%105 = load i8*, i8** %12
%106 = call i64 @strcmp(i8* %105, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %104
%109 = load i32*, i32** %7
store i32 5, i32* %109
br label %160
110: ; preds = %104
%111 = load i8*, i8** %12
%112 = call i64 @strcmp(i8* %111, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%113 = icmp eq i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = load i32*, i32** %7
store i32 6, i32* %115
br label %159
116: ; preds = %110
%117 = load i8*, i8** %12
%118 = call i64 @strcmp(i8* %117, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%119 = icmp eq i64 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %116
%121 = load i32*, i32** %7
store i32 7, i32* %121
br label %158
122: ; preds = %116
%123 = load i8*, i8** %12
%124 = call i64 @strcmp(i8* %123, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %128
126: ; preds = %122
%127 = load i32*, i32** %7
store i32 8, i32* %127
br label %157
128: ; preds = %122
%129 = load i8*, i8** %12
%130 = call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %134
132: ; preds = %128
%133 = load i32*, i32** %7
store i32 9, i32* %133
br label %156
134: ; preds = %128
%135 = load i8*, i8** %12
%136 = call i64 @strcmp(i8* %135, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%137 = icmp eq i64 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %134
%139 = load i32*, i32** %7
store i32 10, i32* %139
br label %155
140: ; preds = %134
%141 = load i8*, i8** %12
%142 = call i64 @strcmp(i8* %141, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%143 = icmp eq i64 %142, 0
br i1 %143, label %144, label %146
144: ; preds = %140
%145 = load i32*, i32** %7
store i32 11, i32* %145
br label %154
146: ; preds = %140
%147 = load i8*, i8** %12
%148 = call i64 @strcmp(i8* %147, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%149 = icmp eq i64 %148, 0
br i1 %149, label %150, label %152
150: ; preds = %146
%151 = load i32*, i32** %7
store i32 12, i32* %151
br label %153
152: ; preds = %146
store i32 0, i32* %6
br label %174
153: ; preds = %150
br label %154
154: ; preds = %153, %144
br label %155
155: ; preds = %154, %138
br label %156
156: ; preds = %155, %132
br label %157
157: ; preds = %156, %126
br label %158
158: ; preds = %157, %120
br label %159
159: ; preds = %158, %114
br label %160
160: ; preds = %159, %108
br label %161
161: ; preds = %160, %102
br label %162
162: ; preds = %161, %96
br label %163
163: ; preds = %162, %90
br label %164
164: ; preds = %163, %84
%165 = load i8*, i8** %13
%166 = call i32 @atoi(i8* %165)
%167 = load i32*, i32** %8
store i32 %166, i32* %167
%168 = load i8*, i8** %15
%169 = call i32 @atoi(i8* %168)
%170 = load i32*, i32** %10
store i32 %169, i32* %170
%171 = load i8*, i8** %16
%172 = call i32 @atoi(i8* %171)
%173 = load i32*, i32** %11
store i32 %172, i32* %173
store i32 1, i32* %6
br label %174
174: ; preds = %164, %152, %73
%175 = load i32, i32* %6
ret i32 %175
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c":\00"
@.str.2 = [4 x i8] c"Mon\00"
@.str.3 = [4 x i8] c"Tue\00"
@.str.4 = [4 x i8] c"Wed\00"
@.str.5 = [4 x i8] c"Thu\00"
@.str.6 = [4 x i8] c"Fri\00"
@.str.7 = [4 x i8] c"Sat\00"
@.str.8 = [4 x i8] c"Sun\00"
@.str.9 = [4 x i8] c"Jan\00"
@.str.10 = [4 x i8] c"Feb\00"
@.str.11 = [4 x i8] c"Mar\00"
@.str.12 = [4 x i8] c"Apr\00"
@.str.13 = [4 x i8] c"May\00"
@.str.14 = [4 x i8] c"Jun\00"
@.str.15 = [4 x i8] c"Jul\00"
@.str.16 = [4 x i8] c"Aug\00"
@.str.17 = [4 x i8] c"Sep\00"
@.str.18 = [4 x i8] c"Oct\00"
@.str.19 = [4 x i8] c"Nov\00"
@.str.20 = [4 x i8] c"Dec\00"
define i32 @get_date_time(i32* nocapture writeonly %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4) {
%6 = alloca i32
%7 = bitcast i32* %6 to i8*
%8 = call i32 @time(i32* %6)
%9 = call %struct.tm* @localtime(i32* %6)
%10 = call i32 @asctime(%struct.tm* %9)
%11 = call i32 @strcpy(i8* undef, i32 %10)
%12 = call i8* @strtok(i8* undef, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %37, label %19
19: ; preds = %5
%20 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %37, label %22
22: ; preds = %19
%23 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %37, label %25
25: ; preds = %22
%26 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %37, label %28
28: ; preds = %25
%29 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %37, label %31
31: ; preds = %28
%32 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %31
%35 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %79
37: ; preds = %34, %31, %28, %25, %22, %19, %5
%38 = phi i32 [ 0, %5 ], [ 1, %19 ], [ 2, %22 ], [ 3, %25 ], [ 4, %28 ], [ 5, %31 ], [ 6, %34 ]
store i32 %38, i32* %2
%39 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %74, label %41
41: ; preds = %37
%42 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %74, label %44
44: ; preds = %41
%45 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %74, label %47
47: ; preds = %44
%48 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %74, label %50
50: ; preds = %47
%51 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %74, label %53
53: ; preds = %50
%54 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %74, label %56
56: ; preds = %53
%57 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %74, label %59
59: ; preds = %56
%60 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %74, label %62
62: ; preds = %59
%63 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %74, label %65
65: ; preds = %62
%66 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %74, label %68
68: ; preds = %65
%69 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %74, label %71
71: ; preds = %68
%72 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %79
74: ; preds = %71, %68, %65, %62, %59, %56, %53, %50, %47, %44, %41, %37
%75 = phi i32 [ 1, %37 ], [ 2, %41 ], [ 3, %44 ], [ 4, %47 ], [ 5, %50 ], [ 6, %53 ], [ 7, %56 ], [ 8, %59 ], [ 9, %62 ], [ 10, %65 ], [ 11, %68 ], [ 12, %71 ]
store i32 %75, i32* %0
%76 = call i32 @atoi(i8* %14)
store i32 %76, i32* %1
%77 = call i32 @atoi(i8* %15)
store i32 %77, i32* %3
%78 = call i32 @atoi(i8* %16)
store i32 %78, i32* %4
br label %79
79: ; preds = %71, %34, %74
%80 = phi i32 [ 1, %74 ], [ 0, %34 ], [ 0, %71 ]
ret i32 %80
}