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

/* Variables and functions */
double atof(char *);
scalar_t__ in_string(char *, char *);
int /*<<< orphan*/ is_a_number(char *);
int /*<<< orphan*/ nexttoken(char *, char *, int *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ structtm_from_datetime(struct tm *, char *);
char tolower(char);
int /*<<< orphan*/ wfile_slash_this_way(char *, char);
int parse_7zline(char *buf, double *size, int *month, int *day, int *year,
                 int *hour, int *minute, int *second, int *attr, char *filename,
                 int dirstoo) {
  char tbuf[512];
  char dbuf[512];
  int i;
  struct tm date;
  (*attr) = 0;
  i = 0;
  if (!nexttoken(tbuf, buf, &i))
    return (0);
  if (strlen(tbuf) < 6 || strlen(tbuf) > 10)
    return (0);
  strcpy(dbuf, tbuf);
  if (!nexttoken(tbuf, buf, &i))
    return (0);
  if (strlen(tbuf) < 3 || in_string(tbuf, ":") < 0)
    return (0);
  strcat(dbuf, " ");
  strcat(dbuf, tbuf);
  structtm_from_datetime(&date, dbuf);
  (*year) = date.tm_year + 1900;
  (*month) = date.tm_mon + 1;
  (*day) = date.tm_mday;
  (*hour) = date.tm_hour;
  (*minute) = date.tm_min;
  (*second) = date.tm_sec;
  if (!nexttoken(tbuf, buf, &i))
    return (0);
  if (tolower(tbuf[0]) == 'd') {
    if (!dirstoo)
      return (0);
    (*attr) = (*attr) | 0x0002;
  }
  if (!nexttoken(tbuf, buf, &i))
    return (0);
  if (!is_a_number(tbuf))
    return (0);
  (*size) = atof(tbuf);
  if (i < 52)
    if (!nexttoken(tbuf, buf, &i))
      return (0);
  if (strlen(&buf[i]) <= 0)
    return (0);
  strcpy(filename, &buf[i]);
  wfile_slash_this_way(filename, '/');
  return (-1);
}


x86 assembly (clang, -O0):
<parse_7zline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    0x20(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x0,-0x444(%rbp)
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10c0 <nexttoken@plt>
cmp    $0x0,%eax
jne    1216 <parse_7zline+0x76>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
lea    -0x240(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x6,%eax
jl     1240 <parse_7zline+0xa0>
lea    -0x240(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0xa,%eax
jle    124c <parse_7zline+0xac>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
lea    -0x440(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10c0 <nexttoken@plt>
cmp    $0x0,%eax
jne    128b <parse_7zline+0xeb>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
lea    -0x240(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x3,%eax
jl     12bd <parse_7zline+0x11d>
lea    -0x240(%rbp),%rdi
lea    0xd52(%rip),%rsi
call   1080 <in_string@plt>
cmp    $0x0,%rax
jge    12c9 <parse_7zline+0x129>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
lea    -0x440(%rbp),%rdi
lea    0xd2b(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0x440(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   10b0 <strcat@plt>
lea    -0x440(%rbp),%rsi
lea    -0x460(%rbp),%rdi
call   1070 <structtm_from_datetime@plt>
mov    -0x460(%rbp),%ecx
add    $0x76c,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x45c(%rbp),%ecx
add    $0x1,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x458(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x454(%rbp),%ecx
mov    -0x38(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x450(%rbp),%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x44c(%rbp),%ecx
mov    0x18(%rbp),%rax
mov    %ecx,(%rax)
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10c0 <nexttoken@plt>
cmp    $0x0,%eax
jne    137f <parse_7zline+0x1df>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
movsbl -0x240(%rbp),%edi
call   1090 <tolower@plt>
movsbl %al,%eax
cmp    $0x64,%eax
jne    13bc <parse_7zline+0x21c>
cmpl   $0x0,0x30(%rbp)
jne    13ad <parse_7zline+0x20d>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
mov    0x20(%rbp),%rax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    0x20(%rbp),%rax
mov    %ecx,(%rax)
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10c0 <nexttoken@plt>
cmp    $0x0,%eax
jne    13e8 <parse_7zline+0x248>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
lea    -0x240(%rbp),%rdi
call   10a0 <is_a_number@plt>
cmp    $0x0,%eax
jne    1409 <parse_7zline+0x269>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
lea    -0x240(%rbp),%rdi
call   1040 <atof@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x34,-0x444(%rbp)
jge    145b <parse_7zline+0x2bb>
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10c0 <nexttoken@plt>
cmp    $0x0,%eax
jne    1456 <parse_7zline+0x2b6>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
jmp    145b <parse_7zline+0x2bb>
mov    -0x10(%rbp),%rdi
movslq -0x444(%rbp),%rax
add    %rax,%rdi
call   1050 <strlen@plt>
cmp    $0x0,%eax
jg     1483 <parse_7zline+0x2e3>
movl   $0x0,-0x4(%rbp)
jmp    14af <parse_7zline+0x30f>
mov    0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x444(%rbp),%rax
add    %rax,%rsi
call   1030 <strcpy@plt>
mov    0x28(%rbp),%rdi
mov    $0x2f,%esi
call   1060 <wfile_slash_this_way@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_7zline>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
mov    %r9,%r15
mov    %r8,%r14
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,0x28(%rsp)
mov    %rdi,%rbx
mov    0x480(%rsp),%rax
movl   $0x0,(%rax)
movl   $0x0,0xc(%rsp)
lea    0x30(%rsp),%rdi
lea    0xc(%rsp),%rdx
mov    %rbx,%rsi
call   10c0 <nexttoken@plt>
xor    %ebp,%ebp
test   %eax,%eax
je     13cb <parse_7zline+0x22b>
lea    0x30(%rsp),%rdi
call   1050 <strlen@plt>
cmp    $0x6,%eax
jl     13cb <parse_7zline+0x22b>
lea    0x30(%rsp),%rdi
call   1050 <strlen@plt>
cmp    $0xa,%eax
jg     13cb <parse_7zline+0x22b>
lea    0x230(%rsp),%rdi
lea    0x30(%rsp),%rsi
call   1030 <strcpy@plt>
lea    0xc(%rsp),%rdx
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   10c0 <nexttoken@plt>
test   %eax,%eax
je     13cb <parse_7zline+0x22b>
lea    0x30(%rsp),%rdi
call   1050 <strlen@plt>
cmp    $0x3,%eax
jl     13cb <parse_7zline+0x22b>
lea    0xd9d(%rip),%rsi
lea    0x30(%rsp),%rdi
call   1080 <in_string@plt>
test   %rax,%rax
js     13cb <parse_7zline+0x22b>
lea    0xd85(%rip),%rsi
lea    0x230(%rsp),%rdi
call   10b0 <strcat@plt>
lea    0x30(%rsp),%rsi
lea    0x230(%rsp),%rdi
call   10b0 <strcat@plt>
lea    0x10(%rsp),%rdi
lea    0x230(%rsp),%rsi
call   1070 <structtm_from_datetime@plt>
mov    $0x76c,%eax
add    0x10(%rsp),%eax
mov    %eax,(%r14)
mov    0x14(%rsp),%eax
add    $0x1,%eax
mov    %eax,0x0(%r13)
mov    0x18(%rsp),%eax
mov    %eax,(%r12)
mov    0x1c(%rsp),%eax
mov    %eax,(%r15)
mov    0x20(%rsp),%eax
mov    0x470(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x24(%rsp),%eax
mov    0x478(%rsp),%rcx
mov    %eax,(%rcx)
lea    0xc(%rsp),%rdx
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
call   10c0 <nexttoken@plt>
test   %eax,%eax
je     13cb <parse_7zline+0x22b>
movsbl 0x30(%rsp),%edi
call   1090 <tolower@plt>
cmp    $0x64,%al
jne    1331 <parse_7zline+0x191>
cmpl   $0x0,0x490(%rsp)
je     13cb <parse_7zline+0x22b>
mov    0x480(%rsp),%rax
orb    $0x2,(%rax)
lea    0x30(%rsp),%rdi
lea    0xc(%rsp),%rdx
mov    %rbx,%rsi
call   10c0 <nexttoken@plt>
test   %eax,%eax
je     13cb <parse_7zline+0x22b>
lea    0x30(%rsp),%rdi
call   10a0 <is_a_number@plt>
test   %eax,%eax
je     13cb <parse_7zline+0x22b>
lea    0x30(%rsp),%rdi
call   1040 <atof@plt>
mov    0x28(%rsp),%rax
movsd  %xmm0,(%rax)
mov    0xc(%rsp),%eax
cmp    $0x33,%eax
jg     138f <parse_7zline+0x1ef>
lea    0x30(%rsp),%rdi
lea    0xc(%rsp),%rdx
mov    %rbx,%rsi
call   10c0 <nexttoken@plt>
test   %eax,%eax
je     13cb <parse_7zline+0x22b>
mov    0xc(%rsp),%eax
movslq %eax,%rdi
add    %rbx,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    13cb <parse_7zline+0x22b>
mov    0x488(%rsp),%rbp
movslq 0xc(%rsp),%rax
add    %rax,%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    $0x2f,%esi
call   1060 <wfile_slash_this_way@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0x438,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
@.str = [2 x i8] c":\00"
@.str.1 = [2 x i8] c" \00"
define i32 @parse_7zline(i8* %0, double* nocapture writeonly %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5, i32* nocapture writeonly %6, i32* nocapture writeonly %7, i32* nocapture %8, i8* %9, i32 %10) {
%12 = alloca [512 x i8]
%13 = alloca [512 x i8]
%14 = alloca i32
%15 = alloca %struct.tm
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%17 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%18 = bitcast i32* %14 to i8*
%19 = bitcast %struct.tm* %15 to i8*
store i32 0, i32* %8
store i32 0, i32* %14
%20 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%21 = icmp eq i32 %20, 0
br i1 %21, label %94, label %22
22: ; preds = %11
%23 = call i32 @strlen(i8* %16)
%24 = icmp slt i32 %23, 6
br i1 %24, label %94, label %25
25: ; preds = %22
%26 = call i32 @strlen(i8* %16)
%27 = icmp sgt i32 %26, 10
br i1 %27, label %94, label %28
28: ; preds = %25
%29 = call i32 @strcpy(i8* %17, i8* %16)
%30 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%31 = icmp eq i32 %30, 0
br i1 %31, label %94, label %32
32: ; preds = %28
%33 = call i32 @strlen(i8* %16)
%34 = icmp slt i32 %33, 3
br i1 %34, label %94, label %35
35: ; preds = %32
%36 = call i64 @in_string(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%37 = icmp slt i64 %36, 0
br i1 %37, label %94, label %38
38: ; preds = %35
%39 = call i32 @strcat(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 @strcat(i8* %17, i8* %16)
%41 = call i32 @structtm_from_datetime(%struct.tm* %15, i8* %17)
%42 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 0
%43 = load i32, i32* %42
%44 = add nsw i32 %43, 1900
store i32 %44, i32* %4
%45 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 1
%46 = load i32, i32* %45
%47 = add nsw i32 %46, 1
store i32 %47, i32* %2
%48 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 2
%49 = load i32, i32* %48
store i32 %49, i32* %3
%50 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 3
%51 = load i32, i32* %50
store i32 %51, i32* %5
%52 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 4
%53 = load i32, i32* %52
store i32 %53, i32* %6
%54 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 5
%55 = load i32, i32* %54
store i32 %55, i32* %7
%56 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%57 = icmp eq i32 %56, 0
br i1 %57, label %94, label %58
58: ; preds = %38
%59 = load i8, i8* %16
%60 = call signext i8 @tolower(i8 signext %59)
%61 = icmp eq i8 %60, 100
br i1 %61, label %62, label %67
62: ; preds = %58
%63 = icmp eq i32 %10, 0
br i1 %63, label %94, label %64
64: ; preds = %62
%65 = load i32, i32* %8
%66 = or i32 %65, 2
store i32 %66, i32* %8
br label %67
67: ; preds = %64, %58
%68 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%69 = icmp eq i32 %68, 0
br i1 %69, label %94, label %70
70: ; preds = %67
%71 = call i32 @is_a_number(i8* %16)
%72 = icmp eq i32 %71, 0
br i1 %72, label %94, label %73
73: ; preds = %70
%74 = call double @atof(i8* %16)
store double %74, double* %1
%75 = load i32, i32* %14
%76 = icmp slt i32 %75, 52
br i1 %76, label %77, label %82
77: ; preds = %73
%78 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%79 = icmp eq i32 %78, 0
br i1 %79, label %94, label %80
80: ; preds = %77
%81 = load i32, i32* %14
br label %82
82: ; preds = %80, %73
%83 = phi i32 [ %81, %80 ], [ %75, %73 ]
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, i8* %0, i64 %84
%86 = call i32 @strlen(i8* %85)
%87 = icmp slt i32 %86, 1
br i1 %87, label %94, label %88
88: ; preds = %82
%89 = load i32, i32* %14
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, i8* %0, i64 %90
%92 = call i32 @strcpy(i8* %9, i8* %91)
%93 = call i32 @wfile_slash_this_way(i8* %9, i8 signext 47)
br label %94
94: ; preds = %82, %77, %70, %67, %62, %38, %32, %35, %28, %22, %25, %11, %88
%95 = phi i32 [ -1, %88 ], [ 0, %11 ], [ 0, %25 ], [ 0, %22 ], [ 0, %28 ], [ 0, %35 ], [ 0, %32 ], [ 0, %38 ], [ 0, %62 ], [ 0, %67 ], [ 0, %70 ], [ 0, %77 ], [ 0, %82 ]
ret i32 %95
}