#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*/ tm;
struct tm {
  int tm_mon;
  int tm_mday;
  int tm_year;
};

/* Variables and functions */
int /*<<< orphan*/ LC_ALL;
int /*<<< orphan*/ memset(struct tm *, char, int);
int /*<<< orphan*/ printf(char *, char *, int, int, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ *setlocale(int /*<<< orphan*/, char *);
char *strptime(char const *, char *, struct tm *);
int do_test(void) {
  int result = 0;
  if (setlocale(LC_ALL, "vi_VN.TCVN5712-1") == NULL) {
    puts("cannot set locale");
    return 1;
  }
  struct tm tm;
  memset(&tm, '\0', sizeof(tm));
  static const char s[] =
      "\x54\x68\xb8\x6e\x67\x20\x6d\xad\xea\x69\x20\x6d\xe9\x74\0";
  char *r = strptime(s, "%b", &tm);
  printf("r = %p, r-s = %tu, tm.tm_mon = %d\n", r, r - s, tm.tm_mon);
  result = r == NULL || r - s != 14 || tm.tm_mon != 10;
  if (setlocale(LC_ALL, "ja_JP.UTF-8") == NULL) {
    puts("cannot set locale");
    return 1;
  }
  static const char s2[] =
      "\x32\x35\x20\x30\x36\x20\xe5\xb9\xb3\xe6\x88\x90\x32\x30\0";
  memset(&tm, '\0', sizeof(tm));
  r = strptime(s2, "%d %m %EC%Ey", &tm);
  printf(
      "r = %p, r-s2 = %tu, tm.tm_mday = %d, tm.tm_mon = %d, tm.tm_year = %d\n",
      r, r - s2, tm.tm_mday, tm.tm_mon, tm.tm_year);
  result |= (r == NULL || r - s2 != 14 || tm.tm_mday != 25 || tm.tm_mon != 5 ||
             tm.tm_year != 108);
  static const char s3[] =
      "\x32\x35\x20\x30\x36\x20\xe5\xb9\xb3\xe6\x88\x90\x32\x30\xe5\xb9\xb4\0";
  memset(&tm, '\0', sizeof(tm));
  r = strptime(s3, "%d %m %EY", &tm);
  printf(
      "r = %p, r-s3 = %tu, tm.tm_mday = %d, tm.tm_mon = %d, tm.tm_year = %d\n",
      r, r - s3, tm.tm_mday, tm.tm_mon, tm.tm_year);
  result |= (r == NULL || r - s3 != 17 || tm.tm_mday != 25 || tm.tm_mon != 5 ||
             tm.tm_year != 108);
  return result;
}


x86 assembly (clang, -O0):
<do_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x8(%rbp)
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
lea    0xe91(%rip),%rsi
call   1060 <setlocale@plt>
cmp    $0x0,%rax
jne    1196 <do_test+0x46>
lea    0xe8c(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    13db <do_test+0x28b>
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    0xf53(%rip),%rdi
lea    0xe6f(%rip),%rsi
lea    -0x18(%rbp),%rdx
call   1070 <strptime@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rax
lea    0xf30(%rip),%rcx
sub    %rcx,%rax
mov    %eax,%edx
mov    -0x18(%rbp),%ecx
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%al
cmpq   $0x0,-0x20(%rbp)
mov    %al,-0x21(%rbp)
je     121d <do_test+0xcd>
mov    -0x20(%rbp),%rcx
lea    0xeff(%rip),%rax
sub    %rax,%rcx
mov    $0x1,%al
cmp    $0xe,%rcx
mov    %al,-0x21(%rbp)
jne    121d <do_test+0xcd>
cmpl   $0xa,-0x18(%rbp)
setne  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    0x2db1(%rip),%rax
mov    (%rax),%edi
lea    0xe11(%rip),%rsi
call   1060 <setlocale@plt>
cmp    $0x0,%rax
jne    125f <do_test+0x10f>
lea    0xdc3(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    13db <do_test+0x28b>
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    0xe9a(%rip),%rdi
lea    0xdd8(%rip),%rsi
lea    -0x18(%rbp),%rdx
call   1070 <strptime@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rax
lea    0xe77(%rip),%rcx
sub    %rcx,%rax
mov    %eax,%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x10(%rbp),%r9d
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%al
cmpq   $0x0,-0x20(%rbp)
mov    %al,-0x22(%rbp)
je     130c <do_test+0x1bc>
mov    -0x20(%rbp),%rcx
lea    0xe3e(%rip),%rax
sub    %rax,%rcx
mov    $0x1,%al
cmp    $0xe,%rcx
mov    %al,-0x22(%rbp)
jne    130c <do_test+0x1bc>
mov    $0x1,%al
cmpl   $0x19,-0x14(%rbp)
mov    %al,-0x22(%rbp)
jne    130c <do_test+0x1bc>
mov    $0x1,%al
cmpl   $0x5,-0x18(%rbp)
mov    %al,-0x22(%rbp)
jne    130c <do_test+0x1bc>
cmpl   $0x6c,-0x10(%rbp)
setne  %al
mov    %al,-0x22(%rbp)
mov    -0x22(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    0xdef(%rip),%rdi
lea    0xd70(%rip),%rsi
lea    -0x18(%rbp),%rdx
call   1070 <strptime@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rax
lea    0xdcc(%rip),%rcx
sub    %rcx,%rax
mov    %eax,%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x10(%rbp),%r9d
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%al
cmpq   $0x0,-0x20(%rbp)
mov    %al,-0x23(%rbp)
je     13c7 <do_test+0x277>
mov    -0x20(%rbp),%rcx
lea    0xd93(%rip),%rax
sub    %rax,%rcx
mov    $0x1,%al
cmp    $0x11,%rcx
mov    %al,-0x23(%rbp)
jne    13c7 <do_test+0x277>
mov    $0x1,%al
cmpl   $0x19,-0x14(%rbp)
mov    %al,-0x23(%rbp)
jne    13c7 <do_test+0x277>
mov    $0x1,%al
cmpl   $0x5,-0x18(%rbp)
mov    %al,-0x23(%rbp)
jne    13c7 <do_test+0x277>
cmpl   $0x6c,-0x10(%rbp)
setne  %al
mov    %al,-0x23(%rbp)
mov    -0x23(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_test>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    0x2e7d(%rip),%r15
mov    (%r15),%edi
lea    0xe93(%rip),%rsi
call   1060 <setlocale@plt>
test   %rax,%rax
je     130f <do_test+0x1bf>
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    0xf6c(%rip),%r14
lea    0xe88(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1070 <strptime@plt>
mov    %rax,%rbp
mov    %rax,%rbx
sub    %r14,%rbx
mov    (%rsp),%ecx
lea    0xe6d(%rip),%rdi
mov    %rax,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
test   %rbp,%rbp
sete   %bpl
cmp    $0xe,%rbx
setne  %bl
cmpl   $0xa,(%rsp)
setne  %r14b
mov    (%r15),%edi
lea    0xe64(%rip),%rsi
call   1060 <setlocale@plt>
test   %rax,%rax
je     130f <do_test+0x1bf>
or     %bl,%bpl
or     %r14b,%bpl
movzbl %bpl,%r15d
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    0xefa(%rip),%rbp
lea    0xe38(%rip),%rsi
mov    %rbp,%rdi
mov    %rbx,%rdx
call   1070 <strptime@plt>
mov    %rax,%rbx
mov    %rax,%r14
sub    %rbp,%r14
mov    (%rsp),%r8d
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%r9d
lea    0xe1d(%rip),%rdi
mov    %rax,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%r12d
mov    $0x1,%ebp
test   %rbx,%rbx
je     128f <do_test+0x13f>
mov    $0x1,%ebp
cmp    $0xe,%r14
jne    128f <do_test+0x13f>
cmpl   $0x19,0x4(%rsp)
mov    $0x1,%ebp
jne    128f <do_test+0x13f>
cmpl   $0x5,(%rsp)
mov    $0x1,%ebp
jne    128f <do_test+0x13f>
xor    %ebp,%ebp
cmpl   $0x6c,0x8(%rsp)
setne  %bpl
or     %r15d,%ebp
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    0xe75(%rip),%r14
lea    0xdf6(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1070 <strptime@plt>
mov    %rax,%r15
mov    %rax,%rbx
sub    %r14,%rbx
mov    (%rsp),%r8d
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%r9d
lea    0xdd8(%rip),%rdi
mov    %rax,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
test   %r15,%r15
je     130a <do_test+0x1ba>
cmp    $0x11,%rbx
jne    130a <do_test+0x1ba>
cmpl   $0x19,0x4(%rsp)
jne    130a <do_test+0x1ba>
cmpl   $0x5,(%rsp)
jne    130a <do_test+0x1ba>
xor    %r12d,%r12d
cmpl   $0x6c,0x8(%rsp)
setne  %r12b
or     %r12d,%ebp
jmp    1320 <do_test+0x1d0>
lea    0xcfb(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32 }
@LC_ALL = global i32 0
@.str = [17 x i8] c"vi_VN.TCVN5712-1\00"
@.str.1 = [18 x i8] c"cannot set locale\00"
@do_test.s = internal constant [16 x i8] c"Th\B8ng m\AD\EAi m\E9t\00\00"
@.str.2 = [3 x i8] c"%b\00"
@.str.3 = [35 x i8] c"r = %p, r-s = %tu, tm.tm_mon = %d\0A\00"
@.str.4 = [12 x i8] c"ja_JP.UTF-8\00"
@do_test.s2 = internal constant [16 x i8] c"25 06 \E5\B9\B3\E6\88\9020\00\00"
@.str.5 = [13 x i8] c"%d %m %EC%Ey\00"
@.str.6 = [70 x i8] c"r = %p, r-s2 = %tu, tm.tm_mday = %d, tm.tm_mon = %d, tm.tm_year = %d\0A\00"
@do_test.s3 = internal constant [19 x i8] c"25 06 \E5\B9\B3\E6\88\9020\E5\B9\B4\00\00"
@.str.7 = [10 x i8] c"%d %m %EY\00"
@.str.8 = [70 x i8] c"r = %p, r-s3 = %tu, tm.tm_mday = %d, tm.tm_mon = %d, tm.tm_year = %d\0A\00"
define i32 @do_test() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.tm
%4 = alloca i8*
store i32 0, i32* %2
%5 = load i32, i32* @LC_ALL
%6 = call i32* @setlocale(i32 %5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %118
10: ; preds = %0
%11 = call i32 @memset(%struct.tm* %3, i8 signext 0, i32 12)
%12 = call i8* @strptime(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @do_test.s, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %3)
store i8* %12, i8** %4
%13 = load i8*, i8** %4
%14 = load i8*, i8** %4
%15 = ptrtoint i8* %14 to i64
%16 = sub i64 %15, ptrtoint ([16 x i8]* @do_test.s to i64)
%17 = trunc i64 %16 to i32
%18 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 0
%19 = load i32, i32* %18
%20 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* %13, i32 %17, i32 %19)
%21 = load i8*, i8** %4
%22 = icmp eq i8* %21, null
br i1 %22, label %32, label %23
23: ; preds = %10
%24 = load i8*, i8** %4
%25 = ptrtoint i8* %24 to i64
%26 = sub i64 %25, ptrtoint ([16 x i8]* @do_test.s to i64)
%27 = icmp ne i64 %26, 14
br i1 %27, label %32, label %28
28: ; preds = %23
%29 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 0
%30 = load i32, i32* %29
%31 = icmp ne i32 %30, 10
br label %32
32: ; preds = %28, %23, %10
%33 = phi i1 [ true, %23 ], [ true, %10 ], [ %31, %28 ]
%34 = zext i1 %33 to i32
store i32 %34, i32* %2
%35 = load i32, i32* @LC_ALL
%36 = call i32* @setlocale(i32 %35, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp eq i32* %36, null
br i1 %37, label %38, label %40
38: ; preds = %32
%39 = call i32 @puts(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %118
40: ; preds = %32
%41 = call i32 @memset(%struct.tm* %3, i8 signext 0, i32 12)
%42 = call i8* @strptime(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @do_test.s2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %3)
store i8* %42, i8** %4
%43 = load i8*, i8** %4
%44 = load i8*, i8** %4
%45 = ptrtoint i8* %44 to i64
%46 = sub i64 %45, ptrtoint ([16 x i8]* @do_test.s2 to i64)
%47 = trunc i64 %46 to i32
%48 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 1
%49 = load i32, i32* %48
%50 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 0
%51 = load i32, i32* %50
%52 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 2
%53 = load i32, i32* %52
%54 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i64 0, i64 0), i8* %43, i32 %47, i32 %49, i32 %51, i32 %53)
%55 = load i8*, i8** %4
%56 = icmp eq i8* %55, null
br i1 %56, label %74, label %57
57: ; preds = %40
%58 = load i8*, i8** %4
%59 = ptrtoint i8* %58 to i64
%60 = sub i64 %59, ptrtoint ([16 x i8]* @do_test.s2 to i64)
%61 = icmp ne i64 %60, 14
br i1 %61, label %74, label %62
62: ; preds = %57
%63 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 1
%64 = load i32, i32* %63
%65 = icmp ne i32 %64, 25
br i1 %65, label %74, label %66
66: ; preds = %62
%67 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 0
%68 = load i32, i32* %67
%69 = icmp ne i32 %68, 5
br i1 %69, label %74, label %70
70: ; preds = %66
%71 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 2
%72 = load i32, i32* %71
%73 = icmp ne i32 %72, 108
br label %74
74: ; preds = %70, %66, %62, %57, %40
%75 = phi i1 [ true, %66 ], [ true, %62 ], [ true, %57 ], [ true, %40 ], [ %73, %70 ]
%76 = zext i1 %75 to i32
%77 = load i32, i32* %2
%78 = or i32 %77, %76
store i32 %78, i32* %2
%79 = call i32 @memset(%struct.tm* %3, i8 signext 0, i32 12)
%80 = call i8* @strptime(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @do_test.s3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %struct.tm* %3)
store i8* %80, i8** %4
%81 = load i8*, i8** %4
%82 = load i8*, i8** %4
%83 = ptrtoint i8* %82 to i64
%84 = sub i64 %83, ptrtoint ([19 x i8]* @do_test.s3 to i64)
%85 = trunc i64 %84 to i32
%86 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 1
%87 = load i32, i32* %86
%88 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 0
%89 = load i32, i32* %88
%90 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 2
%91 = load i32, i32* %90
%92 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0), i8* %81, i32 %85, i32 %87, i32 %89, i32 %91)
%93 = load i8*, i8** %4
%94 = icmp eq i8* %93, null
br i1 %94, label %112, label %95
95: ; preds = %74
%96 = load i8*, i8** %4
%97 = ptrtoint i8* %96 to i64
%98 = sub i64 %97, ptrtoint ([19 x i8]* @do_test.s3 to i64)
%99 = icmp ne i64 %98, 17
br i1 %99, label %112, label %100
100: ; preds = %95
%101 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 1
%102 = load i32, i32* %101
%103 = icmp ne i32 %102, 25
br i1 %103, label %112, label %104
104: ; preds = %100
%105 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 0
%106 = load i32, i32* %105
%107 = icmp ne i32 %106, 5
br i1 %107, label %112, label %108
108: ; preds = %104
%109 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 2
%110 = load i32, i32* %109
%111 = icmp ne i32 %110, 108
br label %112
112: ; preds = %108, %104, %100, %95, %74
%113 = phi i1 [ true, %104 ], [ true, %100 ], [ true, %95 ], [ true, %74 ], [ %111, %108 ]
%114 = zext i1 %113 to i32
%115 = load i32, i32* %2
%116 = or i32 %115, %114
store i32 %116, i32* %2
%117 = load i32, i32* %2
store i32 %117, i32* %1
br label %118
118: ; preds = %112, %38, %8
%119 = load i32, i32* %1
ret i32 %119
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32 }
@LC_ALL = global i32 0
@.str = [17 x i8] c"vi_VN.TCVN5712-1\00"
@.str.1 = [18 x i8] c"cannot set locale\00"
@do_test.s = internal constant [16 x i8] c"Th\B8ng m\AD\EAi m\E9t\00\00"
@.str.2 = [3 x i8] c"%b\00"
@.str.3 = [35 x i8] c"r = %p, r-s = %tu, tm.tm_mon = %d\0A\00"
@.str.4 = [12 x i8] c"ja_JP.UTF-8\00"
@do_test.s2 = internal constant [16 x i8] c"25 06 \E5\B9\B3\E6\88\9020\00\00"
@.str.5 = [13 x i8] c"%d %m %EC%Ey\00"
@.str.6 = [70 x i8] c"r = %p, r-s2 = %tu, tm.tm_mday = %d, tm.tm_mon = %d, tm.tm_year = %d\0A\00"
@do_test.s3 = internal constant [19 x i8] c"25 06 \E5\B9\B3\E6\88\9020\E5\B9\B4\00\00"
@.str.7 = [10 x i8] c"%d %m %EY\00"
@.str.8 = [70 x i8] c"r = %p, r-s3 = %tu, tm.tm_mday = %d, tm.tm_mon = %d, tm.tm_year = %d\0A\00"
define i32 @do_test() {
%1 = alloca %struct.tm
%2 = load i32, i32* @LC_ALL
%3 = tail call i32* @setlocale(i32 %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %84
7: ; preds = %0
%8 = bitcast %struct.tm* %1 to i8*
%9 = call i32 @memset(%struct.tm* %1, i8 signext 0, i32 12)
%10 = call i8* @strptime(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @do_test.s, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %1)
%11 = ptrtoint i8* %10 to i64
%12 = sub i64 %11, ptrtoint ([16 x i8]* @do_test.s to i64)
%13 = trunc i64 %12 to i32
%14 = getelementptr inbounds %struct.tm, %struct.tm* %1, i64 0, i32 0
%15 = load i32, i32* %14
%16 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* %10, i32 %13, i32 %15)
%17 = icmp eq i8* %10, null
%18 = icmp ne i64 %12, 14
%19 = load i32, i32* %14
%20 = icmp ne i32 %19, 10
%21 = or i1 %17, %18
%22 = select i1 %21, i1 true, i1 %20
%23 = zext i1 %22 to i32
%24 = load i32, i32* @LC_ALL
%25 = call i32* @setlocale(i32 %24, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %29
27: ; preds = %7
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %82
29: ; preds = %7
%30 = call i32 @memset(%struct.tm* %1, i8 signext 0, i32 12)
%31 = call i8* @strptime(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @do_test.s2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %1)
%32 = ptrtoint i8* %31 to i64
%33 = sub i64 %32, ptrtoint ([16 x i8]* @do_test.s2 to i64)
%34 = trunc i64 %33 to i32
%35 = getelementptr inbounds %struct.tm, %struct.tm* %1, i64 0, i32 1
%36 = load i32, i32* %35
%37 = load i32, i32* %14
%38 = getelementptr inbounds %struct.tm, %struct.tm* %1, i64 0, i32 2
%39 = load i32, i32* %38
%40 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i64 0, i64 0), i8* %31, i32 %34, i32 %36, i32 %37, i32 %39)
%41 = icmp eq i8* %31, null
br i1 %41, label %54, label %42
42: ; preds = %29
%43 = icmp ne i64 %33, 14
%44 = load i32, i32* %35
%45 = icmp ne i32 %44, 25
%46 = select i1 %43, i1 true, i1 %45
%47 = load i32, i32* %14
%48 = icmp ne i32 %47, 5
%49 = select i1 %46, i1 true, i1 %48
br i1 %49, label %54, label %50
50: ; preds = %42
%51 = load i32, i32* %38
%52 = icmp ne i32 %51, 108
%53 = zext i1 %52 to i32
br label %54
54: ; preds = %50, %42, %29
%55 = phi i32 [ 1, %42 ], [ 1, %29 ], [ %53, %50 ]
%56 = or i32 %55, %23
%57 = call i32 @memset(%struct.tm* %1, i8 signext 0, i32 12)
%58 = call i8* @strptime(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @do_test.s3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %struct.tm* %1)
%59 = ptrtoint i8* %58 to i64
%60 = sub i64 %59, ptrtoint ([19 x i8]* @do_test.s3 to i64)
%61 = trunc i64 %60 to i32
%62 = load i32, i32* %35
%63 = load i32, i32* %14
%64 = load i32, i32* %38
%65 = call i32 (i8*, i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0), i8* %58, i32 %61, i32 %62, i32 %63, i32 %64)
%66 = icmp eq i8* %58, null
br i1 %66, label %79, label %67
67: ; preds = %54
%68 = icmp ne i64 %60, 17
%69 = load i32, i32* %35
%70 = icmp ne i32 %69, 25
%71 = select i1 %68, i1 true, i1 %70
%72 = load i32, i32* %14
%73 = icmp ne i32 %72, 5
%74 = select i1 %71, i1 true, i1 %73
br i1 %74, label %79, label %75
75: ; preds = %67
%76 = load i32, i32* %38
%77 = icmp ne i32 %76, 108
%78 = zext i1 %77 to i32
br label %79
79: ; preds = %75, %67, %54
%80 = phi i32 [ 1, %67 ], [ 1, %54 ], [ %78, %75 ]
%81 = or i32 %56, %80
br label %82
82: ; preds = %79, %27
%83 = phi i32 [ 1, %27 ], [ %81, %79 ]
br label %84
84: ; preds = %82, %5
%85 = phi i32 [ 1, %5 ], [ %83, %82 ]
ret i32 %85
}