#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 atoi(char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int check_scheduled_time(char *data) {
  int size, i_year, i_mon, i_day, i_hour, i_min, i_sec, val, leap_year;
  char year[5], mon[3], day[3], hour[3], min[3], sec[3];
  size = strlen(data);
  if (size != 14) {
    return -1;
  }
  strncpy(year, data, 4);
  year[4] = '\0';
  strncpy(mon, (data + 4), 2);
  mon[2] = '\0';
  strncpy(day, (data + 6), 2);
  day[2] = '\0';
  strncpy(hour, (data + 8), 2);
  hour[2] = '\0';
  strncpy(min, (data + 10), 2);
  min[2] = '\0';
  strncpy(sec, (data + 12), 2);
  sec[2] = '\0';
  i_year = atoi(year);
  i_mon = atoi(mon);
  i_day = atoi(day);
  i_hour = atoi(hour);
  i_min = atoi(min);
  i_sec = atoi(sec);
  if (i_year < 1970 || i_year > 2100) {
    return -1;
  }
  if (i_mon < 1 || i_mon > 12) {
    return -1;
  }
  if (i_day < 1 || i_day > 31) {
    return -1;
  }
  if (i_mon == 2) {
    if ((val = i_year % 4) == 0) {
      leap_year = 1;
      if ((val = i_year % 100) == 0) {
        leap_year = 0;
        if ((val = i_year % 400) == 0) {
          leap_year = 1;
        }
      }
    } else {
      leap_year = 0;
    }
    if (leap_year == 0 && i_day > 28) {
      return -1;
    }
    if (leap_year == 1 && i_day > 29) {
      return -1;
    }
  }
  if (i_mon == 4 || i_mon == 6 || i_mon == 9 || i_mon == 11) {
    if (i_day > 30) {
      return -1;
    }
  }
  if (i_hour < 0 || i_hour > 23) {
    return -1;
  }
  if (i_min < 0 || i_min > 59) {
    return -1;
  }
  if (i_sec < 0 || i_sec > 59) {
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<check_scheduled_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xe,-0x14(%rbp)
je     115e <check_scheduled_time+0x2e>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
lea    -0x39(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x35(%rbp)
lea    -0x3c(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x4,%rsi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x3a(%rbp)
lea    -0x3f(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x6,%rsi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x3d(%rbp)
lea    -0x42(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x40(%rbp)
lea    -0x45(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0xa,%rsi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x43(%rbp)
lea    -0x48(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0xc,%rsi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x46(%rbp)
lea    -0x39(%rbp),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x18(%rbp)
lea    -0x3c(%rbp),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x3f(%rbp),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x20(%rbp)
lea    -0x42(%rbp),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x24(%rbp)
lea    -0x45(%rbp),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x28(%rbp)
lea    -0x48(%rbp),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x7b2,-0x18(%rbp)
jl     1258 <check_scheduled_time+0x128>
cmpl   $0x834,-0x18(%rbp)
jle    1264 <check_scheduled_time+0x134>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
cmpl   $0x1,-0x1c(%rbp)
jl     1278 <check_scheduled_time+0x148>
cmpl   $0xc,-0x1c(%rbp)
jle    1284 <check_scheduled_time+0x154>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
cmpl   $0x1,-0x20(%rbp)
jl     1298 <check_scheduled_time+0x168>
cmpl   $0x1f,-0x20(%rbp)
jle    12a4 <check_scheduled_time+0x174>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
cmpl   $0x2,-0x1c(%rbp)
jne    135e <check_scheduled_time+0x22e>
mov    -0x18(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %edx,-0x30(%rbp)
cmp    $0x0,%edx
jne    1312 <check_scheduled_time+0x1e2>
movl   $0x1,-0x34(%rbp)
mov    -0x18(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x30(%rbp)
cmp    $0x0,%edx
jne    130d <check_scheduled_time+0x1dd>
movl   $0x0,-0x34(%rbp)
mov    -0x18(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
mov    %edx,-0x30(%rbp)
cmp    $0x0,%edx
jne    1308 <check_scheduled_time+0x1d8>
movl   $0x1,-0x34(%rbp)
jmp    130d <check_scheduled_time+0x1dd>
jmp    1319 <check_scheduled_time+0x1e9>
movl   $0x0,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    1339 <check_scheduled_time+0x209>
cmpl   $0x1c,-0x20(%rbp)
jle    1339 <check_scheduled_time+0x209>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
cmpl   $0x1,-0x34(%rbp)
jne    1359 <check_scheduled_time+0x229>
cmpl   $0x1d,-0x20(%rbp)
jle    1359 <check_scheduled_time+0x229>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
jmp    135e <check_scheduled_time+0x22e>
cmpl   $0x4,-0x1c(%rbp)
je     1386 <check_scheduled_time+0x256>
cmpl   $0x6,-0x1c(%rbp)
je     1386 <check_scheduled_time+0x256>
cmpl   $0x9,-0x1c(%rbp)
je     1386 <check_scheduled_time+0x256>
cmpl   $0xb,-0x1c(%rbp)
jne    13a1 <check_scheduled_time+0x271>
cmpl   $0x1e,-0x20(%rbp)
jle    139c <check_scheduled_time+0x26c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
jmp    13a1 <check_scheduled_time+0x271>
cmpl   $0x0,-0x24(%rbp)
jl     13b5 <check_scheduled_time+0x285>
cmpl   $0x17,-0x24(%rbp)
jle    13c1 <check_scheduled_time+0x291>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
cmpl   $0x0,-0x28(%rbp)
jl     13d5 <check_scheduled_time+0x2a5>
cmpl   $0x3b,-0x28(%rbp)
jle    13e1 <check_scheduled_time+0x2b1>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
cmpl   $0x0,-0x2c(%rbp)
jl     13f5 <check_scheduled_time+0x2c5>
cmpl   $0x3b,-0x2c(%rbp)
jle    1401 <check_scheduled_time+0x2d1>
movl   $0xffffffff,-0x4(%rbp)
jmp    1408 <check_scheduled_time+0x2d8>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_scheduled_time>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    $0xffffffff,%ecx
cmp    $0xe,%eax
jne    12cf <check_scheduled_time+0x19f>
lea    0x13(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x4,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x17(%rsp)
lea    0x4(%rbx),%rsi
lea    0x4(%rsp),%rdi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x6(%rsp)
lea    0x6(%rbx),%rsi
lea    0x10(%rsp),%r15
mov    %r15,%rdi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x12(%rsp)
lea    0x8(%rbx),%rsi
lea    0xd(%rsp),%r12
mov    %r12,%rdi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,0xf(%rsp)
lea    0xa(%rbx),%rsi
lea    0xa(%rsp),%r13
mov    %r13,%rdi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,0xc(%rsp)
add    $0xc,%rbx
lea    0x7(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x9(%rsp)
mov    %rbp,%rdi
call   1050 <atoi@plt>
mov    %eax,%ebp
lea    0x4(%rsp),%rdi
call   1050 <atoi@plt>
mov    %eax,%ebx
mov    %r15,%rdi
call   1050 <atoi@plt>
mov    %eax,%r15d
mov    %r12,%rdi
call   1050 <atoi@plt>
mov    %eax,%r12d
mov    %r13,%rdi
call   1050 <atoi@plt>
mov    %eax,%r13d
mov    %r14,%rdi
call   1050 <atoi@plt>
lea    -0x835(%rbp),%ecx
cmp    $0xffffff7d,%ecx
jb     12ca <check_scheduled_time+0x19a>
lea    -0xd(%rbx),%ecx
cmp    $0xfffffff4,%ecx
jb     12ca <check_scheduled_time+0x19a>
lea    -0x20(%r15),%ecx
cmp    $0xffffffe1,%ecx
jb     12ca <check_scheduled_time+0x19a>
cmp    $0x2,%ebx
jne    1293 <check_scheduled_time+0x163>
test   $0x3,%bpl
je     1272 <check_scheduled_time+0x142>
mov    $0x1,%dl
xor    %ecx,%ecx
test   %dl,%dl
je     1289 <check_scheduled_time+0x159>
cmp    $0x1c,%r15d
ja     12ca <check_scheduled_time+0x19a>
jmp    1289 <check_scheduled_time+0x159>
imul   $0x5c29,%ebp,%ecx
ror    $0x2,%cx
movzwl %cx,%edx
mov    $0x1,%cl
cmp    $0x28f,%edx
jbe    12e0 <check_scheduled_time+0x1b0>
test   %cl,%cl
je     1293 <check_scheduled_time+0x163>
cmp    $0x1d,%r15d
ja     12ca <check_scheduled_time+0x19a>
and    $0xfffffffd,%ebx
cmp    $0x4,%ebx
sete   %cl
cmp    $0x9,%ebx
sete   %dl
or     %cl,%dl
cmp    $0x1f,%r15d
setae  %cl
test   %cl,%dl
jne    12ca <check_scheduled_time+0x19a>
cmp    $0x17,%r12d
ja     12ca <check_scheduled_time+0x19a>
cmp    $0x3b,%r13d
mov    $0xffffffff,%ecx
ja     12cf <check_scheduled_time+0x19f>
xor    %ecx,%ecx
cmp    $0x3c,%eax
adc    $0xffffffff,%ecx
jmp    12cf <check_scheduled_time+0x19f>
mov    $0xffffffff,%ecx
mov    %ecx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movzwl %bp,%ecx
mov    %ecx,%edx
shr    $0x4,%edx
imul   $0xa3e,%edx,%edx
shr    $0x10,%edx
imul   $0x190,%edx,%edx
cmp    %dx,%cx
sete   %cl
setne  %dl
test   %dl,%dl
jne    126a <check_scheduled_time+0x13a>
jmp    1289 <check_scheduled_time+0x159>

LLVM IR (-O0):
define i32 @check_scheduled_time(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [5 x i8]
%14 = alloca [3 x i8]
%15 = alloca [3 x i8]
%16 = alloca [3 x i8]
%17 = alloca [3 x i8]
%18 = alloca [3 x i8]
store i8* %0, i8** %3
%19 = load i8*, i8** %3
%20 = call i32 @strlen(i8* %19)
store i32 %20, i32* %4
%21 = load i32, i32* %4
%22 = icmp ne i32 %21, 14
br i1 %22, label %23, label %24
23: ; preds = %1
store i32 -1, i32* %2
br label %159
24: ; preds = %1
%25 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 0
%26 = load i8*, i8** %3
%27 = call i32 @strncpy(i8* %25, i8* %26, i32 4)
%28 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 4
store i8 0, i8* %28
%29 = getelementptr inbounds [3 x i8], [3 x i8]* %14, i64 0, i64 0
%30 = load i8*, i8** %3
%31 = getelementptr inbounds i8, i8* %30, i64 4
%32 = call i32 @strncpy(i8* %29, i8* %31, i32 2)
%33 = getelementptr inbounds [3 x i8], [3 x i8]* %14, i64 0, i64 2
store i8 0, i8* %33
%34 = getelementptr inbounds [3 x i8], [3 x i8]* %15, i64 0, i64 0
%35 = load i8*, i8** %3
%36 = getelementptr inbounds i8, i8* %35, i64 6
%37 = call i32 @strncpy(i8* %34, i8* %36, i32 2)
%38 = getelementptr inbounds [3 x i8], [3 x i8]* %15, i64 0, i64 2
store i8 0, i8* %38
%39 = getelementptr inbounds [3 x i8], [3 x i8]* %16, i64 0, i64 0
%40 = load i8*, i8** %3
%41 = getelementptr inbounds i8, i8* %40, i64 8
%42 = call i32 @strncpy(i8* %39, i8* %41, i32 2)
%43 = getelementptr inbounds [3 x i8], [3 x i8]* %16, i64 0, i64 2
store i8 0, i8* %43
%44 = getelementptr inbounds [3 x i8], [3 x i8]* %17, i64 0, i64 0
%45 = load i8*, i8** %3
%46 = getelementptr inbounds i8, i8* %45, i64 10
%47 = call i32 @strncpy(i8* %44, i8* %46, i32 2)
%48 = getelementptr inbounds [3 x i8], [3 x i8]* %17, i64 0, i64 2
store i8 0, i8* %48
%49 = getelementptr inbounds [3 x i8], [3 x i8]* %18, i64 0, i64 0
%50 = load i8*, i8** %3
%51 = getelementptr inbounds i8, i8* %50, i64 12
%52 = call i32 @strncpy(i8* %49, i8* %51, i32 2)
%53 = getelementptr inbounds [3 x i8], [3 x i8]* %18, i64 0, i64 2
store i8 0, i8* %53
%54 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 0
%55 = call i32 @atoi(i8* %54)
store i32 %55, i32* %5
%56 = getelementptr inbounds [3 x i8], [3 x i8]* %14, i64 0, i64 0
%57 = call i32 @atoi(i8* %56)
store i32 %57, i32* %6
%58 = getelementptr inbounds [3 x i8], [3 x i8]* %15, i64 0, i64 0
%59 = call i32 @atoi(i8* %58)
store i32 %59, i32* %7
%60 = getelementptr inbounds [3 x i8], [3 x i8]* %16, i64 0, i64 0
%61 = call i32 @atoi(i8* %60)
store i32 %61, i32* %8
%62 = getelementptr inbounds [3 x i8], [3 x i8]* %17, i64 0, i64 0
%63 = call i32 @atoi(i8* %62)
store i32 %63, i32* %9
%64 = getelementptr inbounds [3 x i8], [3 x i8]* %18, i64 0, i64 0
%65 = call i32 @atoi(i8* %64)
store i32 %65, i32* %10
%66 = load i32, i32* %5
%67 = icmp slt i32 %66, 1970
br i1 %67, label %71, label %68
68: ; preds = %24
%69 = load i32, i32* %5
%70 = icmp sgt i32 %69, 2100
br i1 %70, label %71, label %72
71: ; preds = %68, %24
store i32 -1, i32* %2
br label %159
72: ; preds = %68
%73 = load i32, i32* %6
%74 = icmp slt i32 %73, 1
br i1 %74, label %78, label %75
75: ; preds = %72
%76 = load i32, i32* %6
%77 = icmp sgt i32 %76, 12
br i1 %77, label %78, label %79
78: ; preds = %75, %72
store i32 -1, i32* %2
br label %159
79: ; preds = %75
%80 = load i32, i32* %7
%81 = icmp slt i32 %80, 1
br i1 %81, label %85, label %82
82: ; preds = %79
%83 = load i32, i32* %7
%84 = icmp sgt i32 %83, 31
br i1 %84, label %85, label %86
85: ; preds = %82, %79
store i32 -1, i32* %2
br label %159
86: ; preds = %82
%87 = load i32, i32* %6
%88 = icmp eq i32 %87, 2
br i1 %88, label %89, label %120
89: ; preds = %86
%90 = load i32, i32* %5
%91 = srem i32 %90, 4
store i32 %91, i32* %11
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %104
93: ; preds = %89
store i32 1, i32* %12
%94 = load i32, i32* %5
%95 = srem i32 %94, 100
store i32 %95, i32* %11
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %103
97: ; preds = %93
store i32 0, i32* %12
%98 = load i32, i32* %5
%99 = srem i32 %98, 400
store i32 %99, i32* %11
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %97
store i32 1, i32* %12
br label %102
102: ; preds = %101, %97
br label %103
103: ; preds = %102, %93
br label %105
104: ; preds = %89
store i32 0, i32* %12
br label %105
105: ; preds = %104, %103
%106 = load i32, i32* %12
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %112
108: ; preds = %105
%109 = load i32, i32* %7
%110 = icmp sgt i32 %109, 28
br i1 %110, label %111, label %112
111: ; preds = %108
store i32 -1, i32* %2
br label %159
112: ; preds = %108, %105
%113 = load i32, i32* %12
%114 = icmp eq i32 %113, 1
br i1 %114, label %115, label %119
115: ; preds = %112
%116 = load i32, i32* %7
%117 = icmp sgt i32 %116, 29
br i1 %117, label %118, label %119
118: ; preds = %115
store i32 -1, i32* %2
br label %159
119: ; preds = %115, %112
br label %120
120: ; preds = %119, %86
%121 = load i32, i32* %6
%122 = icmp eq i32 %121, 4
br i1 %122, label %132, label %123
123: ; preds = %120
%124 = load i32, i32* %6
%125 = icmp eq i32 %124, 6
br i1 %125, label %132, label %126
126: ; preds = %123
%127 = load i32, i32* %6
%128 = icmp eq i32 %127, 9
br i1 %128, label %132, label %129
129: ; preds = %126
%130 = load i32, i32* %6
%131 = icmp eq i32 %130, 11
br i1 %131, label %132, label %137
132: ; preds = %129, %126, %123, %120
%133 = load i32, i32* %7
%134 = icmp sgt i32 %133, 30
br i1 %134, label %135, label %136
135: ; preds = %132
store i32 -1, i32* %2
br label %159
136: ; preds = %132
br label %137
137: ; preds = %136, %129
%138 = load i32, i32* %8
%139 = icmp slt i32 %138, 0
br i1 %139, label %143, label %140
140: ; preds = %137
%141 = load i32, i32* %8
%142 = icmp sgt i32 %141, 23
br i1 %142, label %143, label %144
143: ; preds = %140, %137
store i32 -1, i32* %2
br label %159
144: ; preds = %140
%145 = load i32, i32* %9
%146 = icmp slt i32 %145, 0
br i1 %146, label %150, label %147
147: ; preds = %144
%148 = load i32, i32* %9
%149 = icmp sgt i32 %148, 59
br i1 %149, label %150, label %151
150: ; preds = %147, %144
store i32 -1, i32* %2
br label %159
151: ; preds = %147
%152 = load i32, i32* %10
%153 = icmp slt i32 %152, 0
br i1 %153, label %157, label %154
154: ; preds = %151
%155 = load i32, i32* %10
%156 = icmp sgt i32 %155, 59
br i1 %156, label %157, label %158
157: ; preds = %154, %151
store i32 -1, i32* %2
br label %159
158: ; preds = %154
store i32 0, i32* %2
br label %159
159: ; preds = %158, %157, %150, %143, %135, %118, %111, %85, %78, %71, %23
%160 = load i32, i32* %2
ret i32 %160
}

LLVM IR (-O2):
define i32 @check_scheduled_time(i8* %0) {
%2 = alloca [5 x i8]
%3 = alloca [3 x i8]
%4 = alloca [3 x i8]
%5 = alloca [3 x i8]
%6 = alloca [3 x i8]
%7 = alloca [3 x i8]
%8 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [3 x i8], [3 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%14 = tail call i32 @strlen(i8* %0)
%15 = icmp eq i32 %14, 14
br i1 %15, label %16, label %84
16: ; preds = %1
%17 = call i32 @strncpy(i8* %8, i8* %0, i32 4)
%18 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 4
store i8 0, i8* %18
%19 = getelementptr inbounds i8, i8* %0, i64 4
%20 = call i32 @strncpy(i8* %9, i8* %19, i32 2)
%21 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 2
store i8 0, i8* %21
%22 = getelementptr inbounds i8, i8* %0, i64 6
%23 = call i32 @strncpy(i8* %10, i8* %22, i32 2)
%24 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 2
store i8 0, i8* %24
%25 = getelementptr inbounds i8, i8* %0, i64 8
%26 = call i32 @strncpy(i8* %11, i8* %25, i32 2)
%27 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 2
store i8 0, i8* %27
%28 = getelementptr inbounds i8, i8* %0, i64 10
%29 = call i32 @strncpy(i8* %12, i8* %28, i32 2)
%30 = getelementptr inbounds [3 x i8], [3 x i8]* %6, i64 0, i64 2
store i8 0, i8* %30
%31 = getelementptr inbounds i8, i8* %0, i64 12
%32 = call i32 @strncpy(i8* %13, i8* %31, i32 2)
%33 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 2
store i8 0, i8* %33
%34 = call i32 @atoi(i8* %8)
%35 = call i32 @atoi(i8* %9)
%36 = call i32 @atoi(i8* %10)
%37 = call i32 @atoi(i8* %11)
%38 = call i32 @atoi(i8* %12)
%39 = call i32 @atoi(i8* %13)
%40 = add i32 %34, -2101
%41 = icmp ult i32 %40, -131
%42 = add i32 %35, -13
%43 = icmp ult i32 %42, -12
%44 = select i1 %41, i1 true, i1 %43
%45 = add i32 %36, -32
%46 = icmp ult i32 %45, -31
%47 = select i1 %44, i1 true, i1 %46
br i1 %47, label %84, label %48
48: ; preds = %16
%49 = icmp eq i32 %35, 2
br i1 %49, label %50, label %70
50: ; preds = %48
%51 = and i32 %34, 3
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %61
53: ; preds = %50
%54 = trunc i32 %34 to i16
%55 = urem i16 %54, 100
%56 = icmp eq i16 %55, 0
br i1 %56, label %57, label %66
57: ; preds = %53
%58 = urem i16 %54, 400
%59 = icmp eq i16 %58, 0
%60 = xor i1 %59, true
br label %61
61: ; preds = %57, %50
%62 = phi i1 [ %60, %57 ], [ true, %50 ]
%63 = phi i1 [ %59, %57 ], [ false, %50 ]
%64 = icmp ugt i32 %36, 28
%65 = select i1 %62, i1 %64, i1 false
br i1 %65, label %84, label %66
66: ; preds = %53, %61
%67 = phi i1 [ %63, %61 ], [ true, %53 ]
%68 = icmp ugt i32 %36, 29
%69 = select i1 %67, i1 %68, i1 false
br i1 %69, label %84, label %70
70: ; preds = %66, %48
%71 = and i32 %35, -3
%72 = icmp eq i32 %71, 4
%73 = icmp eq i32 %71, 9
%74 = or i1 %73, %72
%75 = icmp ugt i32 %36, 30
%76 = select i1 %74, i1 %75, i1 false
%77 = icmp ugt i32 %37, 23
%78 = select i1 %76, i1 true, i1 %77
%79 = icmp ugt i32 %38, 59
%80 = select i1 %78, i1 true, i1 %79
br i1 %80, label %84, label %81
81: ; preds = %70
%82 = icmp ugt i32 %39, 59
%83 = sext i1 %82 to i32
br label %84
84: ; preds = %81, %70, %66, %61, %16, %1
%85 = phi i32 [ -1, %1 ], [ -1, %16 ], [ -1, %61 ], [ -1, %66 ], [ -1, %70 ], [ %83, %81 ]
ret i32 %85
}