#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 */
double atof(char *);
int atoi(char *);
int /*<<< orphan*/ ffpmsg(char *);
scalar_t__ ffs2dt(char *, int *, int *, int *, int *);
scalar_t__ isdigit(int);
int /*<<< orphan*/ sprintf(char *, char *, double);
int strlen(char *);
int ffs2tm(char *datestr, int *year, int *month, int *day, int *hour,
           int *minute, double *second, int *status) {
  int slen;
  char errmsg[81];
  if (*status > 0)
    return (*status);
  if (!datestr) {
    ffpmsg("error: null input date string (ffs2tm)");
    return (*status = 420);
  }
  if (hour)
    *hour = 0;
  if (minute)
    *minute = 0;
  if (second)
    *second = 0.;
  if (datestr[2] == '/' || datestr[4] == '-') {
    if (ffs2dt(datestr, year, month, day, status) > 0)
      return (*status);
    slen = strlen(datestr);
    if (slen == 8 || slen == 10)
      return (*status);
    else if (slen < 19) {
      ffpmsg("input date string has illegal format:");
      ffpmsg(datestr);
      return (*status = 420);
    } else if (datestr[10] == 'T' && datestr[13] == ':' && datestr[16] == ':') {
      if (isdigit((int)datestr[11]) && isdigit((int)datestr[12]) &&
          isdigit((int)datestr[14]) && isdigit((int)datestr[15]) &&
          isdigit((int)datestr[17]) && isdigit((int)datestr[18])) {
        if (slen > 19 && datestr[19] != '.') {
          ffpmsg("input date string has illegal format:");
          ffpmsg(datestr);
          return (*status = 420);
        }
        if (hour)
          *hour = atoi(&datestr[11]);
        if (minute)
          *minute = atoi(&datestr[14]);
        if (second)
          *second = atof(&datestr[17]);
      } else {
        ffpmsg("input date string has illegal format:");
        ffpmsg(datestr);
        return (*status = 420);
      }
    }
  } else {
    if (year)
      *year = 0;
    if (month)
      *month = 0;
    if (day)
      *day = 0;
    if (datestr[2] == ':' && datestr[5] == ':') {
      if (isdigit((int)datestr[0]) && isdigit((int)datestr[1]) &&
          isdigit((int)datestr[3]) && isdigit((int)datestr[4]) &&
          isdigit((int)datestr[6]) && isdigit((int)datestr[7])) {
        if (hour)
          *hour = atoi(&datestr[0]);
        if (minute)
          *minute = atoi(&datestr[3]);
        if (second)
          *second = atof(&datestr[6]);
      } else {
        ffpmsg("input date string has illegal format:");
        ffpmsg(datestr);
        return (*status = 420);
      }
    } else {
      ffpmsg("input date string has illegal format:");
      ffpmsg(datestr);
      return (*status = 420);
    }
  }
  if (hour)
    if (*hour < 0 || *hour > 23) {
      sprintf(errmsg, "hour value is out of range 0 - 23: %d (ffs2tm)", *hour);
      ffpmsg(errmsg);
      return (*status = 420);
    }
  if (minute)
    if (*minute < 0 || *minute > 59) {
      sprintf(errmsg, "minute value is out of range 0 - 59: %d (ffs2tm)",
              *minute);
      ffpmsg(errmsg);
      return (*status = 420);
    }
  if (second)
    if (*second < 0 || *second >= 61.) {
      sprintf(errmsg, "second value is out of range 0 - 60.9999: %f (ffs2tm)",
              *second);
      ffpmsg(errmsg);
      return (*status = 420);
    }
  return (*status);
}


x86 assembly (clang, -O0):
<ffs2tm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
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    0x18(%rbp),%rax
cmpl   $0x0,(%rax)
jle    11b6 <ffs2tm+0x46>
mov    0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
cmpq   $0x0,-0x10(%rbp)
jne    11e3 <ffs2tm+0x73>
lea    0xe40(%rip),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
cmpq   $0x0,-0x30(%rbp)
je     11f8 <ffs2tm+0x88>
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
cmpq   $0x0,-0x38(%rbp)
je     120d <ffs2tm+0x9d>
mov    -0x38(%rbp),%rax
movl   $0x0,(%rax)
cmpq   $0x0,0x10(%rbp)
je     1223 <ffs2tm+0xb3>
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x2f,%eax
je     1245 <ffs2tm+0xd5>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x2d,%eax
jne    1480 <ffs2tm+0x310>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    0x18(%rbp),%r8
call   1040 <ffs2dt@plt>
cmp    $0x0,%rax
jle    1276 <ffs2tm+0x106>
mov    0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
mov    -0x10(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x8,-0x3c(%rbp)
je     1296 <ffs2tm+0x126>
cmpl   $0xa,-0x3c(%rbp)
jne    12a4 <ffs2tm+0x134>
mov    0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
cmpl   $0x13,-0x3c(%rbp)
jge    12d9 <ffs2tm+0x169>
lea    0xd7a(%rip),%rdi
call   1070 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
mov    -0x10(%rbp),%rax
movsbl 0xa(%rax),%eax
cmp    $0x54,%eax
jne    1471 <ffs2tm+0x301>
mov    -0x10(%rbp),%rax
movsbl 0xd(%rax),%eax
cmp    $0x3a,%eax
jne    1471 <ffs2tm+0x301>
mov    -0x10(%rbp),%rax
movsbl 0x10(%rax),%eax
cmp    $0x3a,%eax
jne    1471 <ffs2tm+0x301>
mov    -0x10(%rbp),%rax
movsbl 0xb(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1441 <ffs2tm+0x2d1>
mov    -0x10(%rbp),%rax
movsbl 0xc(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1441 <ffs2tm+0x2d1>
mov    -0x10(%rbp),%rax
movsbl 0xe(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1441 <ffs2tm+0x2d1>
mov    -0x10(%rbp),%rax
movsbl 0xf(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1441 <ffs2tm+0x2d1>
mov    -0x10(%rbp),%rax
movsbl 0x11(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1441 <ffs2tm+0x2d1>
mov    -0x10(%rbp),%rax
movsbl 0x12(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1441 <ffs2tm+0x2d1>
cmpl   $0x13,-0x3c(%rbp)
jle    13dc <ffs2tm+0x26c>
mov    -0x10(%rbp),%rax
movsbl 0x13(%rax),%eax
cmp    $0x2e,%eax
je     13dc <ffs2tm+0x26c>
lea    0xc77(%rip),%rdi
call   1070 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
cmpq   $0x0,-0x30(%rbp)
je     13fc <ffs2tm+0x28c>
mov    -0x10(%rbp),%rdi
add    $0xb,%rdi
call   1080 <atoi@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
cmpq   $0x0,-0x38(%rbp)
je     141c <ffs2tm+0x2ac>
mov    -0x10(%rbp),%rdi
add    $0xe,%rdi
call   1080 <atoi@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%rax
mov    %ecx,(%rax)
cmpq   $0x0,0x10(%rbp)
je     143c <ffs2tm+0x2cc>
mov    -0x10(%rbp),%rdi
add    $0x11,%rdi
call   1050 <atof@plt>
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    146c <ffs2tm+0x2fc>
lea    0xbe7(%rip),%rdi
call   1070 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
jmp    1471 <ffs2tm+0x301>
jmp    1476 <ffs2tm+0x306>
jmp    147b <ffs2tm+0x30b>
jmp    162b <ffs2tm+0x4bb>
cmpq   $0x0,-0x18(%rbp)
je     1495 <ffs2tm+0x325>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
cmpq   $0x0,-0x20(%rbp)
je     14aa <ffs2tm+0x33a>
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
cmpq   $0x0,-0x28(%rbp)
je     14bf <ffs2tm+0x34f>
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x3a,%eax
jne    15fb <ffs2tm+0x48b>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x3a,%eax
jne    15fb <ffs2tm+0x48b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     15cb <ffs2tm+0x45b>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     15cb <ffs2tm+0x45b>
mov    -0x10(%rbp),%rax
movsbl 0x3(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     15cb <ffs2tm+0x45b>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     15cb <ffs2tm+0x45b>
mov    -0x10(%rbp),%rax
movsbl 0x6(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     15cb <ffs2tm+0x45b>
mov    -0x10(%rbp),%rax
movsbl 0x7(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     15cb <ffs2tm+0x45b>
cmpq   $0x0,-0x30(%rbp)
je     1586 <ffs2tm+0x416>
mov    -0x10(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
cmpq   $0x0,-0x38(%rbp)
je     15a6 <ffs2tm+0x436>
mov    -0x10(%rbp),%rdi
add    $0x3,%rdi
call   1080 <atoi@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%rax
mov    %ecx,(%rax)
cmpq   $0x0,0x10(%rbp)
je     15c6 <ffs2tm+0x456>
mov    -0x10(%rbp),%rdi
add    $0x6,%rdi
call   1050 <atof@plt>
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    15f6 <ffs2tm+0x486>
lea    0xa5d(%rip),%rdi
call   1070 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
jmp    1626 <ffs2tm+0x4b6>
lea    0xa2d(%rip),%rdi
call   1070 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
jmp    162b <ffs2tm+0x4bb>
cmpq   $0x0,-0x30(%rbp)
je     1692 <ffs2tm+0x522>
mov    -0x30(%rbp),%rax
cmpl   $0x0,(%rax)
jl     1650 <ffs2tm+0x4e0>
mov    -0x30(%rbp),%rax
cmpl   $0x17,(%rax)
jle    168d <ffs2tm+0x51d>
lea    -0x90(%rbp),%rdi
mov    -0x30(%rbp),%rax
cvtsi2sdl (%rax),%xmm0
lea    0x9ef(%rip),%rsi
call   1090 <sprintf@plt>
lea    -0x90(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
jmp    1692 <ffs2tm+0x522>
cmpq   $0x0,-0x38(%rbp)
je     16f9 <ffs2tm+0x589>
mov    -0x38(%rbp),%rax
cmpl   $0x0,(%rax)
jl     16b7 <ffs2tm+0x547>
mov    -0x38(%rbp),%rax
cmpl   $0x3b,(%rax)
jle    16f4 <ffs2tm+0x584>
lea    -0x90(%rbp),%rdi
mov    -0x38(%rbp),%rax
cvtsi2sdl (%rax),%xmm0
lea    0x9b7(%rip),%rsi
call   1090 <sprintf@plt>
lea    -0x90(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
jmp    16f9 <ffs2tm+0x589>
cmpq   $0x0,0x10(%rbp)
je     1771 <ffs2tm+0x601>
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
ja     172f <ffs2tm+0x5bf>
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x8db(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     176c <ffs2tm+0x5fc>
lea    -0x90(%rbp),%rdi
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
lea    0x970(%rip),%rsi
call   1090 <sprintf@plt>
lea    -0x90(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    0x18(%rbp),%rax
movl   $0x1a4,(%rax)
movl   $0x1a4,-0x4(%rbp)
jmp    177a <ffs2tm+0x60a>
jmp    1771 <ffs2tm+0x601>
mov    0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffs2tm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    0x98(%rsp),%r14
mov    (%r14),%eax
test   %eax,%eax
jg     1306 <ffs2tm+0x196>
mov    %rdi,%rbx
test   %rdi,%rdi
je     1207 <ffs2tm+0x97>
mov    %r9,%r15
mov    %r8,%r12
test   %r8,%r8
je     11ac <ffs2tm+0x3c>
movl   $0x0,(%r12)
mov    0x90(%rsp),%r13
test   %r15,%r15
je     11c0 <ffs2tm+0x50>
movl   $0x0,(%r15)
test   %r13,%r13
je     11cd <ffs2tm+0x5d>
movq   $0x0,0x0(%r13)
cmpb   $0x2f,0x2(%rbx)
je     11d9 <ffs2tm+0x69>
cmpb   $0x2d,0x4(%rbx)
jne    1213 <ffs2tm+0xa3>
mov    %rbx,%rdi
mov    %r14,%r8
call   1040 <ffs2dt@plt>
test   %rax,%rax
jg     11ff <ffs2tm+0x8f>
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %eax,%ebp
and    $0xfffffffd,%eax
cmp    $0x8,%eax
jne    12e1 <ffs2tm+0x171>
mov    (%r14),%eax
jmp    1306 <ffs2tm+0x196>
lea    0xdfa(%rip),%rdi
jmp    12f5 <ffs2tm+0x185>
test   %rsi,%rsi
je     121e <ffs2tm+0xae>
movl   $0x0,(%rsi)
test   %rdx,%rdx
je     1229 <ffs2tm+0xb9>
movl   $0x0,(%rdx)
test   %rcx,%rcx
je     1234 <ffs2tm+0xc4>
movl   $0x0,(%rcx)
cmpb   $0x3a,0x2(%rbx)
jne    12e6 <ffs2tm+0x176>
cmpb   $0x3a,0x5(%rbx)
jne    12e6 <ffs2tm+0x176>
movsbl (%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0x1(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0x3(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0x4(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0x6(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0x7(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
test   %r12,%r12
je     12b0 <ffs2tm+0x140>
mov    %rbx,%rdi
call   1080 <atoi@plt>
mov    %eax,(%r12)
test   %r15,%r15
je     12c1 <ffs2tm+0x151>
lea    0x3(%rbx),%rdi
call   1080 <atoi@plt>
mov    %eax,(%r15)
test   %r13,%r13
je     13d3 <ffs2tm+0x263>
add    $0x6,%rbx
mov    %rbx,%rdi
call   1050 <atof@plt>
movsd  %xmm0,0x0(%r13)
jmp    13d3 <ffs2tm+0x263>
cmp    $0x12,%ebp
jg     1315 <ffs2tm+0x1a5>
lea    0xd42(%rip),%rdi
call   1070 <ffpmsg@plt>
mov    %rbx,%rdi
call   1070 <ffpmsg@plt>
movl   $0x1a4,(%r14)
mov    $0x1a4,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmpb   $0x54,0xa(%rbx)
jne    13d3 <ffs2tm+0x263>
cmpb   $0x3a,0xd(%rbx)
jne    13d3 <ffs2tm+0x263>
cmpb   $0x3a,0x10(%rbx)
jne    13d3 <ffs2tm+0x263>
movsbl 0xb(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0xc(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0xe(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0xf(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0x11(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
movsbl 0x12(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12e6 <ffs2tm+0x176>
cmp    $0x14,%ebp
jb     13a2 <ffs2tm+0x232>
cmpb   $0x2e,0x13(%rbx)
jne    12e6 <ffs2tm+0x176>
test   %r12,%r12
je     13b4 <ffs2tm+0x244>
lea    0xb(%rbx),%rdi
call   1080 <atoi@plt>
mov    %eax,(%r12)
test   %r15,%r15
je     13c5 <ffs2tm+0x255>
lea    0xe(%rbx),%rdi
call   1080 <atoi@plt>
mov    %eax,(%r15)
test   %r13,%r13
je     13d3 <ffs2tm+0x263>
add    $0x11,%rbx
jmp    12ce <ffs2tm+0x15e>
test   %r12,%r12
je     13f1 <ffs2tm+0x281>
mov    (%r12),%eax
cmp    $0x18,%eax
jb     13f1 <ffs2tm+0x281>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
lea    0xc66(%rip),%rsi
jmp    143c <ffs2tm+0x2cc>
test   %r15,%r15
je     140e <ffs2tm+0x29e>
mov    (%r15),%eax
cmp    $0x3c,%eax
jb     140e <ffs2tm+0x29e>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
lea    0xc78(%rip),%rsi
jmp    143c <ffs2tm+0x2cc>
test   %r13,%r13
je     11ff <ffs2tm+0x8f>
movsd  0x0(%r13),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
ja     1435 <ffs2tm+0x2c5>
ucomisd 0xbd1(%rip),%xmm0
jb     11ff <ffs2tm+0x8f>
lea    0xc79(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1090 <sprintf@plt>
jmp    12f2 <ffs2tm+0x182>

LLVM IR (-O0):
@.str = [39 x i8] c"error: null input date string (ffs2tm)\00"
@.str.1 = [38 x i8] c"input date string has illegal format:\00"
@.str.2 = [47 x i8] c"hour value is out of range 0 - 23: %d (ffs2tm)\00"
@.str.3 = [49 x i8] c"minute value is out of range 0 - 59: %d (ffs2tm)\00"
@.str.4 = [54 x i8] c"second value is out of range 0 - 60.9999: %f (ffs2tm)\00"
define i32 @ffs2tm(i8* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, double* %6, i32* %7) {
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca double*
%17 = alloca i32*
%18 = alloca i32
%19 = alloca [81 x i8]
store i8* %0, i8** %10
store i32* %1, i32** %11
store i32* %2, i32** %12
store i32* %3, i32** %13
store i32* %4, i32** %14
store i32* %5, i32** %15
store double* %6, double** %16
store i32* %7, i32** %17
%20 = load i32*, i32** %17
%21 = load i32, i32* %20
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %8
%24 = load i32*, i32** %17
%25 = load i32, i32* %24
store i32 %25, i32* %9
br label %368
26: ; preds = %8
%27 = load i8*, i8** %10
%28 = icmp ne i8* %27, null
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = call i32 @ffpmsg(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%31 = load i32*, i32** %17
store i32 420, i32* %31
store i32 420, i32* %9
br label %368
32: ; preds = %26
%33 = load i32*, i32** %14
%34 = icmp ne i32* %33, null
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = load i32*, i32** %14
store i32 0, i32* %36
br label %37
37: ; preds = %35, %32
%38 = load i32*, i32** %15
%39 = icmp ne i32* %38, null
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = load i32*, i32** %15
store i32 0, i32* %41
br label %42
42: ; preds = %40, %37
%43 = load double*, double** %16
%44 = icmp ne double* %43, null
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = load double*, double** %16
store double 0.000000e+00, double* %46
br label %47
47: ; preds = %45, %42
%48 = load i8*, i8** %10
%49 = getelementptr inbounds i8, i8* %48, i64 2
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 47
br i1 %52, label %59, label %53
53: ; preds = %47
%54 = load i8*, i8** %10
%55 = getelementptr inbounds i8, i8* %54, i64 4
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 45
br i1 %58, label %59, label %197
59: ; preds = %53, %47
%60 = load i8*, i8** %10
%61 = load i32*, i32** %11
%62 = load i32*, i32** %12
%63 = load i32*, i32** %13
%64 = load i32*, i32** %17
%65 = call i64 @ffs2dt(i8* %60, i32* %61, i32* %62, i32* %63, i32* %64)
%66 = icmp sgt i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %59
%68 = load i32*, i32** %17
%69 = load i32, i32* %68
store i32 %69, i32* %9
br label %368
70: ; preds = %59
%71 = load i8*, i8** %10
%72 = call i32 @strlen(i8* %71)
store i32 %72, i32* %18
%73 = load i32, i32* %18
%74 = icmp eq i32 %73, 8
br i1 %74, label %78, label %75
75: ; preds = %70
%76 = load i32, i32* %18
%77 = icmp eq i32 %76, 10
br i1 %77, label %78, label %81
78: ; preds = %75, %70
%79 = load i32*, i32** %17
%80 = load i32, i32* %79
store i32 %80, i32* %9
br label %368
81: ; preds = %75
%82 = load i32, i32* %18
%83 = icmp slt i32 %82, 19
br i1 %83, label %84, label %89
84: ; preds = %81
%85 = call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%86 = load i8*, i8** %10
%87 = call i32 @ffpmsg(i8* %86)
%88 = load i32*, i32** %17
store i32 420, i32* %88
store i32 420, i32* %9
br label %368
89: ; preds = %81
%90 = load i8*, i8** %10
%91 = getelementptr inbounds i8, i8* %90, i64 10
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 84
br i1 %94, label %95, label %194
95: ; preds = %89
%96 = load i8*, i8** %10
%97 = getelementptr inbounds i8, i8* %96, i64 13
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 58
br i1 %100, label %101, label %194
101: ; preds = %95
%102 = load i8*, i8** %10
%103 = getelementptr inbounds i8, i8* %102, i64 16
%104 = load i8, i8* %103
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 58
br i1 %106, label %107, label %194
107: ; preds = %101
%108 = load i8*, i8** %10
%109 = getelementptr inbounds i8, i8* %108, i64 11
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = call i64 @isdigit(i32 %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %188
114: ; preds = %107
%115 = load i8*, i8** %10
%116 = getelementptr inbounds i8, i8* %115, i64 12
%117 = load i8, i8* %116
%118 = sext i8 %117 to i32
%119 = call i64 @isdigit(i32 %118)
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %188
121: ; preds = %114
%122 = load i8*, i8** %10
%123 = getelementptr inbounds i8, i8* %122, i64 14
%124 = load i8, i8* %123
%125 = sext i8 %124 to i32
%126 = call i64 @isdigit(i32 %125)
%127 = icmp ne i64 %126, 0
br i1 %127, label %128, label %188
128: ; preds = %121
%129 = load i8*, i8** %10
%130 = getelementptr inbounds i8, i8* %129, i64 15
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = call i64 @isdigit(i32 %132)
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %188
135: ; preds = %128
%136 = load i8*, i8** %10
%137 = getelementptr inbounds i8, i8* %136, i64 17
%138 = load i8, i8* %137
%139 = sext i8 %138 to i32
%140 = call i64 @isdigit(i32 %139)
%141 = icmp ne i64 %140, 0
br i1 %141, label %142, label %188
142: ; preds = %135
%143 = load i8*, i8** %10
%144 = getelementptr inbounds i8, i8* %143, i64 18
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = call i64 @isdigit(i32 %146)
%148 = icmp ne i64 %147, 0
br i1 %148, label %149, label %188
149: ; preds = %142
%150 = load i32, i32* %18
%151 = icmp sgt i32 %150, 19
br i1 %151, label %152, label %163
152: ; preds = %149
%153 = load i8*, i8** %10
%154 = getelementptr inbounds i8, i8* %153, i64 19
%155 = load i8, i8* %154
%156 = sext i8 %155 to i32
%157 = icmp ne i32 %156, 46
br i1 %157, label %158, label %163
158: ; preds = %152
%159 = call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%160 = load i8*, i8** %10
%161 = call i32 @ffpmsg(i8* %160)
%162 = load i32*, i32** %17
store i32 420, i32* %162
store i32 420, i32* %9
br label %368
163: ; preds = %152, %149
%164 = load i32*, i32** %14
%165 = icmp ne i32* %164, null
br i1 %165, label %166, label %171
166: ; preds = %163
%167 = load i8*, i8** %10
%168 = getelementptr inbounds i8, i8* %167, i64 11
%169 = call i32 @atoi(i8* %168)
%170 = load i32*, i32** %14
store i32 %169, i32* %170
br label %171
171: ; preds = %166, %163
%172 = load i32*, i32** %15
%173 = icmp ne i32* %172, null
br i1 %173, label %174, label %179
174: ; preds = %171
%175 = load i8*, i8** %10
%176 = getelementptr inbounds i8, i8* %175, i64 14
%177 = call i32 @atoi(i8* %176)
%178 = load i32*, i32** %15
store i32 %177, i32* %178
br label %179
179: ; preds = %174, %171
%180 = load double*, double** %16
%181 = icmp ne double* %180, null
br i1 %181, label %182, label %187
182: ; preds = %179
%183 = load i8*, i8** %10
%184 = getelementptr inbounds i8, i8* %183, i64 17
%185 = call double @atof(i8* %184)
%186 = load double*, double** %16
store double %185, double* %186
br label %187
187: ; preds = %182, %179
br label %193
188: ; preds = %142, %135, %128, %121, %114, %107
%189 = call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%190 = load i8*, i8** %10
%191 = call i32 @ffpmsg(i8* %190)
%192 = load i32*, i32** %17
store i32 420, i32* %192
store i32 420, i32* %9
br label %368
193: ; preds = %187
br label %194
194: ; preds = %193, %101, %95, %89
br label %195
195: ; preds = %194
br label %196
196: ; preds = %195
br label %303
197: ; preds = %53
%198 = load i32*, i32** %11
%199 = icmp ne i32* %198, null
br i1 %199, label %200, label %202
200: ; preds = %197
%201 = load i32*, i32** %11
store i32 0, i32* %201
br label %202
202: ; preds = %200, %197
%203 = load i32*, i32** %12
%204 = icmp ne i32* %203, null
br i1 %204, label %205, label %207
205: ; preds = %202
%206 = load i32*, i32** %12
store i32 0, i32* %206
br label %207
207: ; preds = %205, %202
%208 = load i32*, i32** %13
%209 = icmp ne i32* %208, null
br i1 %209, label %210, label %212
210: ; preds = %207
%211 = load i32*, i32** %13
store i32 0, i32* %211
br label %212
212: ; preds = %210, %207
%213 = load i8*, i8** %10
%214 = getelementptr inbounds i8, i8* %213, i64 2
%215 = load i8, i8* %214
%216 = sext i8 %215 to i32
%217 = icmp eq i32 %216, 58
br i1 %217, label %218, label %297
218: ; preds = %212
%219 = load i8*, i8** %10
%220 = getelementptr inbounds i8, i8* %219, i64 5
%221 = load i8, i8* %220
%222 = sext i8 %221 to i32
%223 = icmp eq i32 %222, 58
br i1 %223, label %224, label %297
224: ; preds = %218
%225 = load i8*, i8** %10
%226 = getelementptr inbounds i8, i8* %225, i64 0
%227 = load i8, i8* %226
%228 = sext i8 %227 to i32
%229 = call i64 @isdigit(i32 %228)
%230 = icmp ne i64 %229, 0
br i1 %230, label %231, label %291
231: ; preds = %224
%232 = load i8*, i8** %10
%233 = getelementptr inbounds i8, i8* %232, i64 1
%234 = load i8, i8* %233
%235 = sext i8 %234 to i32
%236 = call i64 @isdigit(i32 %235)
%237 = icmp ne i64 %236, 0
br i1 %237, label %238, label %291
238: ; preds = %231
%239 = load i8*, i8** %10
%240 = getelementptr inbounds i8, i8* %239, i64 3
%241 = load i8, i8* %240
%242 = sext i8 %241 to i32
%243 = call i64 @isdigit(i32 %242)
%244 = icmp ne i64 %243, 0
br i1 %244, label %245, label %291
245: ; preds = %238
%246 = load i8*, i8** %10
%247 = getelementptr inbounds i8, i8* %246, i64 4
%248 = load i8, i8* %247
%249 = sext i8 %248 to i32
%250 = call i64 @isdigit(i32 %249)
%251 = icmp ne i64 %250, 0
br i1 %251, label %252, label %291
252: ; preds = %245
%253 = load i8*, i8** %10
%254 = getelementptr inbounds i8, i8* %253, i64 6
%255 = load i8, i8* %254
%256 = sext i8 %255 to i32
%257 = call i64 @isdigit(i32 %256)
%258 = icmp ne i64 %257, 0
br i1 %258, label %259, label %291
259: ; preds = %252
%260 = load i8*, i8** %10
%261 = getelementptr inbounds i8, i8* %260, i64 7
%262 = load i8, i8* %261
%263 = sext i8 %262 to i32
%264 = call i64 @isdigit(i32 %263)
%265 = icmp ne i64 %264, 0
br i1 %265, label %266, label %291
266: ; preds = %259
%267 = load i32*, i32** %14
%268 = icmp ne i32* %267, null
br i1 %268, label %269, label %274
269: ; preds = %266
%270 = load i8*, i8** %10
%271 = getelementptr inbounds i8, i8* %270, i64 0
%272 = call i32 @atoi(i8* %271)
%273 = load i32*, i32** %14
store i32 %272, i32* %273
br label %274
274: ; preds = %269, %266
%275 = load i32*, i32** %15
%276 = icmp ne i32* %275, null
br i1 %276, label %277, label %282
277: ; preds = %274
%278 = load i8*, i8** %10
%279 = getelementptr inbounds i8, i8* %278, i64 3
%280 = call i32 @atoi(i8* %279)
%281 = load i32*, i32** %15
store i32 %280, i32* %281
br label %282
282: ; preds = %277, %274
%283 = load double*, double** %16
%284 = icmp ne double* %283, null
br i1 %284, label %285, label %290
285: ; preds = %282
%286 = load i8*, i8** %10
%287 = getelementptr inbounds i8, i8* %286, i64 6
%288 = call double @atof(i8* %287)
%289 = load double*, double** %16
store double %288, double* %289
br label %290
290: ; preds = %285, %282
br label %296
291: ; preds = %259, %252, %245, %238, %231, %224
%292 = call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%293 = load i8*, i8** %10
%294 = call i32 @ffpmsg(i8* %293)
%295 = load i32*, i32** %17
store i32 420, i32* %295
store i32 420, i32* %9
br label %368
296: ; preds = %290
br label %302
297: ; preds = %218, %212
%298 = call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%299 = load i8*, i8** %10
%300 = call i32 @ffpmsg(i8* %299)
%301 = load i32*, i32** %17
store i32 420, i32* %301
store i32 420, i32* %9
br label %368
302: ; preds = %296
br label %303
303: ; preds = %302, %196
%304 = load i32*, i32** %14
%305 = icmp ne i32* %304, null
br i1 %305, label %306, label %324
306: ; preds = %303
%307 = load i32*, i32** %14
%308 = load i32, i32* %307
%309 = icmp slt i32 %308, 0
br i1 %309, label %314, label %310
310: ; preds = %306
%311 = load i32*, i32** %14
%312 = load i32, i32* %311
%313 = icmp sgt i32 %312, 23
br i1 %313, label %314, label %323
314: ; preds = %310, %306
%315 = getelementptr inbounds [81 x i8], [81 x i8]* %19, i64 0, i64 0
%316 = load i32*, i32** %14
%317 = load i32, i32* %316
%318 = sitofp i32 %317 to double
%319 = call i32 @sprintf(i8* %315, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), double %318)
%320 = getelementptr inbounds [81 x i8], [81 x i8]* %19, i64 0, i64 0
%321 = call i32 @ffpmsg(i8* %320)
%322 = load i32*, i32** %17
store i32 420, i32* %322
store i32 420, i32* %9
br label %368
323: ; preds = %310
br label %324
324: ; preds = %323, %303
%325 = load i32*, i32** %15
%326 = icmp ne i32* %325, null
br i1 %326, label %327, label %345
327: ; preds = %324
%328 = load i32*, i32** %15
%329 = load i32, i32* %328
%330 = icmp slt i32 %329, 0
br i1 %330, label %335, label %331
331: ; preds = %327
%332 = load i32*, i32** %15
%333 = load i32, i32* %332
%334 = icmp sgt i32 %333, 59
br i1 %334, label %335, label %344
335: ; preds = %331, %327
%336 = getelementptr inbounds [81 x i8], [81 x i8]* %19, i64 0, i64 0
%337 = load i32*, i32** %15
%338 = load i32, i32* %337
%339 = sitofp i32 %338 to double
%340 = call i32 @sprintf(i8* %336, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), double %339)
%341 = getelementptr inbounds [81 x i8], [81 x i8]* %19, i64 0, i64 0
%342 = call i32 @ffpmsg(i8* %341)
%343 = load i32*, i32** %17
store i32 420, i32* %343
store i32 420, i32* %9
br label %368
344: ; preds = %331
br label %345
345: ; preds = %344, %324
%346 = load double*, double** %16
%347 = icmp ne double* %346, null
br i1 %347, label %348, label %365
348: ; preds = %345
%349 = load double*, double** %16
%350 = load double, double* %349
%351 = fcmp olt double %350, 0.000000e+00
br i1 %351, label %356, label %352
352: ; preds = %348
%353 = load double*, double** %16
%354 = load double, double* %353
%355 = fcmp oge double %354, 6.100000e+01
br i1 %355, label %356, label %364
356: ; preds = %352, %348
%357 = getelementptr inbounds [81 x i8], [81 x i8]* %19, i64 0, i64 0
%358 = load double*, double** %16
%359 = load double, double* %358
%360 = call i32 @sprintf(i8* %357, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0), double %359)
%361 = getelementptr inbounds [81 x i8], [81 x i8]* %19, i64 0, i64 0
%362 = call i32 @ffpmsg(i8* %361)
%363 = load i32*, i32** %17
store i32 420, i32* %363
store i32 420, i32* %9
br label %368
364: ; preds = %352
br label %365
365: ; preds = %364, %345
%366 = load i32*, i32** %17
%367 = load i32, i32* %366
store i32 %367, i32* %9
br label %368
368: ; preds = %365, %356, %335, %314, %297, %291, %188, %158, %84, %78, %67, %29, %23
%369 = load i32, i32* %9
ret i32 %369
}

LLVM IR (-O2):
@.str = [39 x i8] c"error: null input date string (ffs2tm)\00"
@.str.1 = [38 x i8] c"input date string has illegal format:\00"
@.str.2 = [47 x i8] c"hour value is out of range 0 - 23: %d (ffs2tm)\00"
@.str.3 = [49 x i8] c"minute value is out of range 0 - 59: %d (ffs2tm)\00"
@.str.4 = [54 x i8] c"second value is out of range 0 - 60.9999: %f (ffs2tm)\00"
define i32 @ffs2tm(i8* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, double* %6, i32* %7) {
%9 = alloca [81 x i8]
%10 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%11 = load i32, i32* %7
%12 = icmp sgt i32 %11, 0
br i1 %12, label %210, label %13
13: ; preds = %8
%14 = icmp eq i8* %0, null
br i1 %14, label %15, label %17
15: ; preds = %13
%16 = tail call i32 @ffpmsg(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
store i32 420, i32* %7
br label %210
17: ; preds = %13
%18 = icmp eq i32* %4, null
br i1 %18, label %20, label %19
19: ; preds = %17
store i32 0, i32* %4
br label %20
20: ; preds = %19, %17
%21 = icmp eq i32* %5, null
br i1 %21, label %23, label %22
22: ; preds = %20
store i32 0, i32* %5
br label %23
23: ; preds = %22, %20
%24 = icmp eq double* %6, null
br i1 %24, label %26, label %25
25: ; preds = %23
store double 0.000000e+00, double* %6
br label %26
26: ; preds = %25, %23
%27 = getelementptr inbounds i8, i8* %0, i64 2
%28 = load i8, i8* %27
%29 = icmp eq i8 %28, 47
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = getelementptr inbounds i8, i8* %0, i64 4
%32 = load i8, i8* %31
%33 = icmp eq i8 %32, 45
br i1 %33, label %34, label %117
34: ; preds = %30, %26
%35 = tail call i64 @ffs2dt(i8* %0, i32* %1, i32* %2, i32* %3, i32* %7)
%36 = icmp sgt i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = load i32, i32* %7
br label %210
39: ; preds = %34
%40 = tail call i32 @strlen(i8* %0)
%41 = and i32 %40, -3
%42 = icmp eq i32 %41, 8
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = load i32, i32* %7
br label %210
45: ; preds = %39
%46 = icmp slt i32 %40, 19
br i1 %46, label %47, label %50
47: ; preds = %45
%48 = tail call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%49 = tail call i32 @ffpmsg(i8* %0)
store i32 420, i32* %7
br label %210
50: ; preds = %45
%51 = getelementptr inbounds i8, i8* %0, i64 10
%52 = load i8, i8* %51
%53 = icmp eq i8 %52, 84
br i1 %53, label %54, label %183
54: ; preds = %50
%55 = getelementptr inbounds i8, i8* %0, i64 13
%56 = load i8, i8* %55
%57 = icmp eq i8 %56, 58
br i1 %57, label %58, label %183
58: ; preds = %54
%59 = getelementptr inbounds i8, i8* %0, i64 16
%60 = load i8, i8* %59
%61 = icmp eq i8 %60, 58
br i1 %61, label %62, label %183
62: ; preds = %58
%63 = getelementptr inbounds i8, i8* %0, i64 11
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = tail call i64 @isdigit(i32 %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %114, label %68
68: ; preds = %62
%69 = getelementptr inbounds i8, i8* %0, i64 12
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = tail call i64 @isdigit(i32 %71)
%73 = icmp eq i64 %72, 0
br i1 %73, label %114, label %74
74: ; preds = %68
%75 = getelementptr inbounds i8, i8* %0, i64 14
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = tail call i64 @isdigit(i32 %77)
%79 = icmp eq i64 %78, 0
br i1 %79, label %114, label %80
80: ; preds = %74
%81 = getelementptr inbounds i8, i8* %0, i64 15
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = tail call i64 @isdigit(i32 %83)
%85 = icmp eq i64 %84, 0
br i1 %85, label %114, label %86
86: ; preds = %80
%87 = getelementptr inbounds i8, i8* %0, i64 17
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = tail call i64 @isdigit(i32 %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %114, label %92
92: ; preds = %86
%93 = getelementptr inbounds i8, i8* %0, i64 18
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = tail call i64 @isdigit(i32 %95)
%97 = icmp eq i64 %96, 0
br i1 %97, label %114, label %98
98: ; preds = %92
%99 = icmp ugt i32 %40, 19
br i1 %99, label %100, label %107
100: ; preds = %98
%101 = getelementptr inbounds i8, i8* %0, i64 19
%102 = load i8, i8* %101
%103 = icmp eq i8 %102, 46
br i1 %103, label %107, label %104
104: ; preds = %100
%105 = tail call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%106 = tail call i32 @ffpmsg(i8* %0)
store i32 420, i32* %7
br label %210
107: ; preds = %100, %98
br i1 %18, label %110, label %108
108: ; preds = %107
%109 = tail call i32 @atoi(i8* %63)
store i32 %109, i32* %4
br label %110
110: ; preds = %108, %107
br i1 %21, label %113, label %111
111: ; preds = %110
%112 = tail call i32 @atoi(i8* %75)
store i32 %112, i32* %5
br label %113
113: ; preds = %111, %110
br i1 %24, label %183, label %180
114: ; preds = %92, %86, %80, %74, %68, %62
%115 = tail call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%116 = tail call i32 @ffpmsg(i8* %0)
store i32 420, i32* %7
br label %210
117: ; preds = %30
%118 = icmp eq i32* %1, null
br i1 %118, label %120, label %119
119: ; preds = %117
store i32 0, i32* %1
br label %120
120: ; preds = %119, %117
%121 = icmp eq i32* %2, null
br i1 %121, label %123, label %122
122: ; preds = %120
store i32 0, i32* %2
br label %123
123: ; preds = %122, %120
%124 = icmp eq i32* %3, null
br i1 %124, label %126, label %125
125: ; preds = %123
store i32 0, i32* %3
br label %126
126: ; preds = %125, %123
%127 = load i8, i8* %27
%128 = icmp eq i8 %127, 58
br i1 %128, label %129, label %177
129: ; preds = %126
%130 = getelementptr inbounds i8, i8* %0, i64 5
%131 = load i8, i8* %130
%132 = icmp eq i8 %131, 58
br i1 %132, label %133, label %177
133: ; preds = %129
%134 = load i8, i8* %0
%135 = sext i8 %134 to i32
%136 = tail call i64 @isdigit(i32 %135)
%137 = icmp eq i64 %136, 0
br i1 %137, label %174, label %138
138: ; preds = %133
%139 = getelementptr inbounds i8, i8* %0, i64 1
%140 = load i8, i8* %139
%141 = sext i8 %140 to i32
%142 = tail call i64 @isdigit(i32 %141)
%143 = icmp eq i64 %142, 0
br i1 %143, label %174, label %144
144: ; preds = %138
%145 = getelementptr inbounds i8, i8* %0, i64 3
%146 = load i8, i8* %145
%147 = sext i8 %146 to i32
%148 = tail call i64 @isdigit(i32 %147)
%149 = icmp eq i64 %148, 0
br i1 %149, label %174, label %150
150: ; preds = %144
%151 = load i8, i8* %31
%152 = sext i8 %151 to i32
%153 = tail call i64 @isdigit(i32 %152)
%154 = icmp eq i64 %153, 0
br i1 %154, label %174, label %155
155: ; preds = %150
%156 = getelementptr inbounds i8, i8* %0, i64 6
%157 = load i8, i8* %156
%158 = sext i8 %157 to i32
%159 = tail call i64 @isdigit(i32 %158)
%160 = icmp eq i64 %159, 0
br i1 %160, label %174, label %161
161: ; preds = %155
%162 = getelementptr inbounds i8, i8* %0, i64 7
%163 = load i8, i8* %162
%164 = sext i8 %163 to i32
%165 = tail call i64 @isdigit(i32 %164)
%166 = icmp eq i64 %165, 0
br i1 %166, label %174, label %167
167: ; preds = %161
br i1 %18, label %170, label %168
168: ; preds = %167
%169 = tail call i32 @atoi(i8* %0)
store i32 %169, i32* %4
br label %170
170: ; preds = %168, %167
br i1 %21, label %173, label %171
171: ; preds = %170
%172 = tail call i32 @atoi(i8* %145)
store i32 %172, i32* %5
br label %173
173: ; preds = %171, %170
br i1 %24, label %183, label %180
174: ; preds = %161, %155, %150, %144, %138, %133
%175 = tail call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%176 = tail call i32 @ffpmsg(i8* %0)
store i32 420, i32* %7
br label %210
177: ; preds = %129, %126
%178 = tail call i32 @ffpmsg(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%179 = tail call i32 @ffpmsg(i8* %0)
store i32 420, i32* %7
br label %210
180: ; preds = %173, %113
%181 = phi i8* [ %87, %113 ], [ %156, %173 ]
%182 = tail call double @atof(i8* %181)
store double %182, double* %6
br label %183
183: ; preds = %180, %173, %50, %54, %58, %113
br i1 %18, label %191, label %184
184: ; preds = %183
%185 = load i32, i32* %4
%186 = icmp ugt i32 %185, 23
br i1 %186, label %187, label %191
187: ; preds = %184
%188 = sitofp i32 %185 to double
%189 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), double %188)
%190 = call i32 @ffpmsg(i8* %10)
store i32 420, i32* %7
br label %210
191: ; preds = %184, %183
br i1 %21, label %199, label %192
192: ; preds = %191
%193 = load i32, i32* %5
%194 = icmp ugt i32 %193, 59
br i1 %194, label %195, label %199
195: ; preds = %192
%196 = sitofp i32 %193 to double
%197 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), double %196)
%198 = call i32 @ffpmsg(i8* %10)
store i32 420, i32* %7
br label %210
199: ; preds = %192, %191
br i1 %24, label %208, label %200
200: ; preds = %199
%201 = load double, double* %6
%202 = fcmp uge double %201, 0.000000e+00
%203 = fcmp ult double %201, 6.100000e+01
%204 = and i1 %202, %203
br i1 %204, label %208, label %205
205: ; preds = %200
%206 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0), double %201)
%207 = call i32 @ffpmsg(i8* %10)
store i32 420, i32* %7
br label %210
208: ; preds = %200, %199
%209 = load i32, i32* %7
br label %210
210: ; preds = %8, %208, %205, %195, %187, %177, %174, %114, %104, %47, %43, %37, %15
%211 = phi i32 [ %38, %37 ], [ %44, %43 ], [ 420, %47 ], [ 420, %104 ], [ 420, %187 ], [ 420, %195 ], [ 420, %205 ], [ %209, %208 ], [ 420, %114 ], [ 420, %174 ], [ 420, %177 ], [ 420, %15 ], [ %11, %8 ]
ret i32 %211
}