#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 *);
scalar_t__ wfile_eitherslash(char);
int /*<<< orphan*/ wfile_noslash(char *, int /*<<< orphan*/ *);
int parse_zipline(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;
  i = 0;
  (*attr) = 0;
  if (!nexttoken(tbuf, buf, &i))
    return (0);
  if (!is_a_number(tbuf))
    return (0);
  (*size) = atof(tbuf);
  if (!nexttoken(tbuf, buf, &i) || !nexttoken(tbuf, buf, &i) ||
      !nexttoken(tbuf, buf, &i) || !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 (strlen(&buf[i]) <= 0)
    return (0);
  strcpy(filename, &buf[i]);
  if (wfile_eitherslash(filename[strlen(filename) - 1])) {
    if (!dirstoo)
      return (0);
    (*attr) |= 0x0002;
    wfile_noslash(filename, NULL);
  }
  return (-1);
}


x86 assembly (clang, -O0):
<parse_zipline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%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)
movl   $0x0,-0x444(%rbp)
mov    0x20(%rbp),%rax
movl   $0x0,(%rax)
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10b0 <nexttoken@plt>
cmp    $0x0,%eax
jne    1216 <parse_zipline+0x76>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
lea    -0x240(%rbp),%rdi
call   1090 <is_a_number@plt>
cmp    $0x0,%eax
jne    1237 <parse_zipline+0x97>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
lea    -0x240(%rbp),%rdi
call   1040 <atof@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10b0 <nexttoken@plt>
cmp    $0x0,%eax
je     12cb <parse_zipline+0x12b>
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10b0 <nexttoken@plt>
cmp    $0x0,%eax
je     12cb <parse_zipline+0x12b>
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10b0 <nexttoken@plt>
cmp    $0x0,%eax
je     12cb <parse_zipline+0x12b>
lea    -0x240(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x444(%rbp),%rdx
call   10b0 <nexttoken@plt>
cmp    $0x0,%eax
jne    12d7 <parse_zipline+0x137>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
lea    -0x240(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x6,%eax
jl     1301 <parse_zipline+0x161>
lea    -0x240(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0xa,%eax
jle    130d <parse_zipline+0x16d>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
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   10b0 <nexttoken@plt>
cmp    $0x0,%eax
jne    134c <parse_zipline+0x1ac>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
lea    -0x240(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x3,%eax
jl     137e <parse_zipline+0x1de>
lea    -0x240(%rbp),%rdi
lea    0xc91(%rip),%rsi
call   1080 <in_string@plt>
cmp    $0x0,%rax
jge    138a <parse_zipline+0x1ea>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
lea    -0x440(%rbp),%rdi
lea    0xc6a(%rip),%rsi
call   10a0 <strcat@plt>
lea    -0x440(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   10a0 <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   10b0 <nexttoken@plt>
cmp    $0x0,%eax
jne    1440 <parse_zipline+0x2a0>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
mov    -0x10(%rbp),%rdi
movslq -0x444(%rbp),%rax
add    %rax,%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
jg     1468 <parse_zipline+0x2c8>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
mov    0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x444(%rbp),%rax
add    %rax,%rsi
call   1030 <strcpy@plt>
mov    0x28(%rbp),%rax
mov    %rax,-0x468(%rbp)
mov    0x28(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x468(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%edi
call   1050 <wfile_eitherslash@plt>
cmp    $0x0,%rax
je     14e3 <parse_zipline+0x343>
cmpl   $0x0,0x30(%rbp)
jne    14cb <parse_zipline+0x32b>
movl   $0x0,-0x4(%rbp)
jmp    14ea <parse_zipline+0x34a>
mov    0x20(%rbp),%rax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    %ecx,(%rax)
mov    0x28(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   10c0 <wfile_noslash@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_zipline>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
mov    %r9,%r15
mov    %r8,0x28(%rsp)
mov    %rcx,%rbx
mov    %rdx,%rbp
mov    %rsi,%r14
mov    %rdi,%r13
mov    0x480(%rsp),%rax
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rax)
lea    0x30(%rsp),%rdi
lea    0x4(%rsp),%rdx
mov    %r13,%rsi
call   10b0 <nexttoken@plt>
xor    %r12d,%r12d
test   %eax,%eax
je     1401 <parse_zipline+0x261>
lea    0x30(%rsp),%rdi
call   1090 <is_a_number@plt>
test   %eax,%eax
je     1401 <parse_zipline+0x261>
mov    %r15,0x20(%rsp)
lea    0x30(%rsp),%r15
mov    %r15,%rdi
call   1040 <atof@plt>
movsd  %xmm0,(%r14)
lea    0x4(%rsp),%rdx
mov    %r15,%rdi
mov    %r13,%rsi
call   10b0 <nexttoken@plt>
test   %eax,%eax
je     1401 <parse_zipline+0x261>
lea    0x30(%rsp),%rdi
lea    0x4(%rsp),%rdx
mov    %r13,%rsi
call   10b0 <nexttoken@plt>
test   %eax,%eax
je     1401 <parse_zipline+0x261>
lea    0x30(%rsp),%rdi
lea    0x4(%rsp),%rdx
mov    %r13,%rsi
call   10b0 <nexttoken@plt>
test   %eax,%eax
je     1401 <parse_zipline+0x261>
lea    0x30(%rsp),%rdi
lea    0x4(%rsp),%rdx
mov    %r13,%rsi
call   10b0 <nexttoken@plt>
test   %eax,%eax
je     1401 <parse_zipline+0x261>
lea    0x30(%rsp),%rdi
call   1060 <strlen@plt>
cmp    $0x6,%eax
jl     1401 <parse_zipline+0x261>
lea    0x30(%rsp),%rdi
call   1060 <strlen@plt>
cmp    $0xa,%eax
jg     1401 <parse_zipline+0x261>
lea    0x230(%rsp),%rdi
lea    0x30(%rsp),%r14
mov    %r14,%rsi
call   1030 <strcpy@plt>
lea    0x4(%rsp),%rdx
mov    %r14,%rdi
mov    %r13,%rsi
call   10b0 <nexttoken@plt>
test   %eax,%eax
je     1401 <parse_zipline+0x261>
lea    0x30(%rsp),%rdi
call   1060 <strlen@plt>
cmp    $0x3,%eax
jl     1401 <parse_zipline+0x261>
lea    0xd0c(%rip),%rsi
lea    0x30(%rsp),%rdi
call   1080 <in_string@plt>
test   %rax,%rax
js     1401 <parse_zipline+0x261>
lea    0xcf4(%rip),%rsi
lea    0x230(%rsp),%r14
mov    %r14,%rdi
call   10a0 <strcat@plt>
lea    0x30(%rsp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
call   10a0 <strcat@plt>
lea    0x8(%rsp),%rdi
mov    %r14,%rsi
call   1070 <structtm_from_datetime@plt>
mov    $0x76c,%eax
add    0x8(%rsp),%eax
mov    0x28(%rsp),%rcx
mov    %eax,(%rcx)
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0x0(%rbp)
mov    0x10(%rsp),%eax
mov    %eax,(%rbx)
mov    0x14(%rsp),%eax
mov    0x20(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x18(%rsp),%eax
mov    0x470(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x1c(%rsp),%eax
mov    0x478(%rsp),%rcx
mov    %eax,(%rcx)
lea    0x4(%rsp),%rdx
mov    %r15,%rdi
mov    %r13,%rsi
call   10b0 <nexttoken@plt>
test   %eax,%eax
je     1401 <parse_zipline+0x261>
movslq 0x4(%rsp),%rdi
add    %r13,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    1401 <parse_zipline+0x261>
mov    0x488(%rsp),%r14
movslq 0x4(%rsp),%rax
add    %rax,%r13
mov    %r14,%rdi
mov    %r13,%rsi
call   1030 <strcpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
cltq
movsbl -0x1(%rax,%r14,1),%edi
call   1050 <wfile_eitherslash@plt>
test   %rax,%rax
je     13fb <parse_zipline+0x25b>
cmpl   $0x0,0x490(%rsp)
je     1401 <parse_zipline+0x261>
mov    0x480(%rsp),%rax
orb    $0x2,(%rax)
mov    %r14,%rdi
xor    %esi,%esi
call   10c0 <wfile_noslash@plt>
mov    $0xffffffff,%r12d
mov    %r12d,%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_zipline(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
store i32 0, i32* %26
%28 = load i32*, i32** %21
store i32 0, i32* %28
%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 %158
34: ; preds = %11
%35 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%36 = call i32 @is_a_number(i8* %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %39, label %38
38: ; preds = %34
store i32 0, i32* %12
br label %158
39: ; preds = %34
%40 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%41 = call double @atof(i8* %40)
%42 = load double*, double** %14
store double %41, double* %42
%43 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%44 = load i8*, i8** %13
%45 = call i32 @nexttoken(i8* %43, i8* %44, i32* %26)
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %62
47: ; preds = %39
%48 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%49 = load i8*, i8** %13
%50 = call i32 @nexttoken(i8* %48, i8* %49, i32* %26)
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %47
%53 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%54 = load i8*, i8** %13
%55 = call i32 @nexttoken(i8* %53, i8* %54, i32* %26)
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %52
%58 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%59 = load i8*, i8** %13
%60 = call i32 @nexttoken(i8* %58, i8* %59, i32* %26)
%61 = icmp ne i32 %60, 0
br i1 %61, label %63, label %62
62: ; preds = %57, %52, %47, %39
store i32 0, i32* %12
br label %158
63: ; preds = %57
%64 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%65 = call i32 @strlen(i8* %64)
%66 = icmp slt i32 %65, 6
br i1 %66, label %71, label %67
67: ; preds = %63
%68 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%69 = call i32 @strlen(i8* %68)
%70 = icmp sgt i32 %69, 10
br i1 %70, label %71, label %72
71: ; preds = %67, %63
store i32 0, i32* %12
br label %158
72: ; preds = %67
%73 = getelementptr inbounds [512 x i8], [512 x i8]* %25, i64 0, i64 0
%74 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%75 = call i32 @strcpy(i8* %73, i8* %74)
%76 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%77 = load i8*, i8** %13
%78 = call i32 @nexttoken(i8* %76, i8* %77, i32* %26)
%79 = icmp ne i32 %78, 0
br i1 %79, label %81, label %80
80: ; preds = %72
store i32 0, i32* %12
br label %158
81: ; preds = %72
%82 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%83 = call i32 @strlen(i8* %82)
%84 = icmp slt i32 %83, 3
br i1 %84, label %89, label %85
85: ; preds = %81
%86 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%87 = call i64 @in_string(i8* %86, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%88 = icmp slt i64 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %85, %81
store i32 0, i32* %12
br label %158
90: ; preds = %85
%91 = getelementptr inbounds [512 x i8], [512 x i8]* %25, i64 0, i64 0
%92 = call i32 @strcat(i8* %91, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%93 = getelementptr inbounds [512 x i8], [512 x i8]* %25, i64 0, i64 0
%94 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%95 = call i32 @strcat(i8* %93, i8* %94)
%96 = getelementptr inbounds [512 x i8], [512 x i8]* %25, i64 0, i64 0
%97 = call i32 @structtm_from_datetime(%struct.tm* %27, i8* %96)
%98 = getelementptr inbounds %struct.tm, %struct.tm* %27, i32 0, i32 0
%99 = load i32, i32* %98
%100 = add nsw i32 %99, 1900
%101 = load i32*, i32** %17
store i32 %100, i32* %101
%102 = getelementptr inbounds %struct.tm, %struct.tm* %27, i32 0, i32 1
%103 = load i32, i32* %102
%104 = add nsw i32 %103, 1
%105 = load i32*, i32** %15
store i32 %104, i32* %105
%106 = getelementptr inbounds %struct.tm, %struct.tm* %27, i32 0, i32 2
%107 = load i32, i32* %106
%108 = load i32*, i32** %16
store i32 %107, i32* %108
%109 = getelementptr inbounds %struct.tm, %struct.tm* %27, i32 0, i32 3
%110 = load i32, i32* %109
%111 = load i32*, i32** %18
store i32 %110, i32* %111
%112 = getelementptr inbounds %struct.tm, %struct.tm* %27, i32 0, i32 4
%113 = load i32, i32* %112
%114 = load i32*, i32** %19
store i32 %113, i32* %114
%115 = getelementptr inbounds %struct.tm, %struct.tm* %27, i32 0, i32 5
%116 = load i32, i32* %115
%117 = load i32*, i32** %20
store i32 %116, i32* %117
%118 = getelementptr inbounds [512 x i8], [512 x i8]* %24, i64 0, i64 0
%119 = load i8*, i8** %13
%120 = call i32 @nexttoken(i8* %118, i8* %119, i32* %26)
%121 = icmp ne i32 %120, 0
br i1 %121, label %123, label %122
122: ; preds = %90
store i32 0, i32* %12
br label %158
123: ; preds = %90
%124 = load i8*, i8** %13
%125 = load i32, i32* %26
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, i8* %124, i64 %126
%128 = call i32 @strlen(i8* %127)
%129 = icmp sle i32 %128, 0
br i1 %129, label %130, label %131
130: ; preds = %123
store i32 0, i32* %12
br label %158
131: ; preds = %123
%132 = load i8*, i8** %22
%133 = load i8*, i8** %13
%134 = load i32, i32* %26
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, i8* %133, i64 %135
%137 = call i32 @strcpy(i8* %132, i8* %136)
%138 = load i8*, i8** %22
%139 = load i8*, i8** %22
%140 = call i32 @strlen(i8* %139)
%141 = sub nsw i32 %140, 1
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i8, i8* %138, i64 %142
%144 = load i8, i8* %143
%145 = call i64 @wfile_eitherslash(i8 signext %144)
%146 = icmp ne i64 %145, 0
br i1 %146, label %147, label %157
147: ; preds = %131
%148 = load i32, i32* %23
%149 = icmp ne i32 %148, 0
br i1 %149, label %151, label %150
150: ; preds = %147
store i32 0, i32* %12
br label %158
151: ; preds = %147
%152 = load i32*, i32** %21
%153 = load i32, i32* %152
%154 = or i32 %153, 2
store i32 %154, i32* %152
%155 = load i8*, i8** %22
%156 = call i32 @wfile_noslash(i8* %155, i32* null)
br label %157
157: ; preds = %151, %131
store i32 -1, i32* %12
br label %158
158: ; preds = %157, %150, %130, %122, %89, %80, %71, %62, %38, %33
%159 = load i32, i32* %12
ret i32 %159
}

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_zipline(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* %14
store i32 0, i32* %8
%20 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%21 = icmp eq i32 %20, 0
br i1 %21, label %98, label %22
22: ; preds = %11
%23 = call i32 @is_a_number(i8* %16)
%24 = icmp eq i32 %23, 0
br i1 %24, label %98, label %25
25: ; preds = %22
%26 = call double @atof(i8* %16)
store double %26, double* %1
%27 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%28 = icmp eq i32 %27, 0
br i1 %28, label %98, label %29
29: ; preds = %25
%30 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%31 = icmp eq i32 %30, 0
br i1 %31, label %98, label %32
32: ; preds = %29
%33 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%34 = icmp eq i32 %33, 0
br i1 %34, label %98, label %35
35: ; preds = %32
%36 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%37 = icmp eq i32 %36, 0
br i1 %37, label %98, label %38
38: ; preds = %35
%39 = call i32 @strlen(i8* %16)
%40 = icmp slt i32 %39, 6
br i1 %40, label %98, label %41
41: ; preds = %38
%42 = call i32 @strlen(i8* %16)
%43 = icmp sgt i32 %42, 10
br i1 %43, label %98, label %44
44: ; preds = %41
%45 = call i32 @strcpy(i8* %17, i8* %16)
%46 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%47 = icmp eq i32 %46, 0
br i1 %47, label %98, label %48
48: ; preds = %44
%49 = call i32 @strlen(i8* %16)
%50 = icmp slt i32 %49, 3
br i1 %50, label %98, label %51
51: ; preds = %48
%52 = call i64 @in_string(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%53 = icmp slt i64 %52, 0
br i1 %53, label %98, label %54
54: ; preds = %51
%55 = call i32 @strcat(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%56 = call i32 @strcat(i8* %17, i8* %16)
%57 = call i32 @structtm_from_datetime(%struct.tm* %15, i8* %17)
%58 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 0
%59 = load i32, i32* %58
%60 = add nsw i32 %59, 1900
store i32 %60, i32* %4
%61 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 1
%62 = load i32, i32* %61
%63 = add nsw i32 %62, 1
store i32 %63, i32* %2
%64 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 2
%65 = load i32, i32* %64
store i32 %65, i32* %3
%66 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 3
%67 = load i32, i32* %66
store i32 %67, i32* %5
%68 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 4
%69 = load i32, i32* %68
store i32 %69, i32* %6
%70 = getelementptr inbounds %struct.tm, %struct.tm* %15, i64 0, i32 5
%71 = load i32, i32* %70
store i32 %71, i32* %7
%72 = call i32 @nexttoken(i8* %16, i8* %0, i32* %14)
%73 = icmp eq i32 %72, 0
br i1 %73, label %98, label %74
74: ; preds = %54
%75 = load i32, i32* %14
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %0, i64 %76
%78 = call i32 @strlen(i8* %77)
%79 = icmp slt i32 %78, 1
br i1 %79, label %98, label %80
80: ; preds = %74
%81 = load i32, i32* %14
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, i8* %0, i64 %82
%84 = call i32 @strcpy(i8* %9, i8* %83)
%85 = call i32 @strlen(i8* %9)
%86 = add nsw i32 %85, -1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, i8* %9, i64 %87
%89 = load i8, i8* %88
%90 = call i64 @wfile_eitherslash(i8 signext %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %98, label %92
92: ; preds = %80
%93 = icmp eq i32 %10, 0
br i1 %93, label %98, label %94
94: ; preds = %92
%95 = load i32, i32* %8
%96 = or i32 %95, 2
store i32 %96, i32* %8
%97 = call i32 @wfile_noslash(i8* %9, i32* null)
br label %98
98: ; preds = %80, %94, %92, %74, %54, %48, %51, %44, %38, %41, %25, %29, %32, %35, %22, %11
%99 = phi i32 [ 0, %11 ], [ 0, %22 ], [ 0, %35 ], [ 0, %32 ], [ 0, %29 ], [ 0, %25 ], [ 0, %41 ], [ 0, %38 ], [ 0, %44 ], [ 0, %51 ], [ 0, %48 ], [ 0, %54 ], [ 0, %74 ], [ 0, %92 ], [ -1, %94 ], [ -1, %80 ]
ret i32 %99
}