#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*/ tmd_tomorrow;
typedef int /*<<< orphan*/ tmd_today;
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_year;
  int tm_mday;
  int tm_hour;
  int tm_min;
  int tm_sec;
  int tm_yday;
  scalar_t__ tm_mon;
};

/* Variables and functions */
int /*<<< orphan*/ gmtime_r(int /*<<< orphan*/ *, struct tm *);
int /*<<< orphan*/ memset(struct tm *, int /*<<< orphan*/, int);
int /*<<< orphan*/ mktime(struct tm *);
double potm(double);
double potm_minute(double, int);
void fpom(int year, double utcoffset, double *ffms, double *fnms) {
  time_t tt;
  struct tm GMT, tmd_today, tmd_tomorrow;
  double days_today, days_tomorrow, today, tomorrow;
  int cnt, d;
  int yeardays;
  int olddir, newdir;
  double *pfnms, *pffms, t;
  pfnms = fnms;
  pffms = ffms;
  memset(&tmd_today, 0, sizeof(tmd_today));
  tmd_today.tm_year = year - 1900;
  tmd_today.tm_mon = 0;
  tmd_today.tm_mday = -1;
  tmd_today.tm_hour = 23;
  tmd_today.tm_min = 59;
  tmd_today.tm_sec = 59;
  memset(&tmd_tomorrow, 0, sizeof(tmd_tomorrow));
  tmd_tomorrow.tm_year = year - 1900;
  tmd_tomorrow.tm_mon = 0;
  tmd_tomorrow.tm_mday = 0;
  tmd_tomorrow.tm_hour = 0;
  tmd_tomorrow.tm_min = 0;
  tmd_tomorrow.tm_sec = 1;
  tt = mktime(&tmd_today);
  gmtime_r(&tt, &GMT);
  yeardays = 0;
  for (cnt = 85; cnt < GMT.tm_year; ++cnt)
    yeardays += ((((1900 + cnt) % 4) == 0 && ((1900 + cnt) % 100) != 0) ||
                 ((1900 + cnt) % 400) == 0)
                    ? 366
                    : 365;
  days_today =
      (GMT.tm_yday + 1) +
      ((GMT.tm_hour + (GMT.tm_min / (60.0)) + (GMT.tm_sec / (60.0 * 60.0))) /
       (24.0));
  days_today += yeardays;
  tt = mktime(&tmd_tomorrow);
  gmtime_r(&tt, &GMT);
  yeardays = 0;
  for (cnt = 85; cnt < GMT.tm_year; ++cnt)
    yeardays += ((((1900 + cnt) % 4) == 0 && ((1900 + cnt) % 100) != 0) ||
                 ((1900 + cnt) % 400) == 0)
                    ? 366
                    : 365;
  days_tomorrow =
      (GMT.tm_yday + 1) +
      ((GMT.tm_hour + (GMT.tm_min / (60.0)) + (GMT.tm_sec / (60.0 * 60.0))) /
       (24.0));
  days_tomorrow += yeardays;
  today = potm(days_today);
  tomorrow = potm(days_tomorrow);
  olddir = today > tomorrow ? -1 : +1;
  yeardays =
      1 + (((((year) % 4) == 0 && ((year) % 100) != 0) || ((year) % 400) == 0)
               ? 366
               : 365);
  for (d = 0; d <= yeardays; d++) {
    today = potm(days_today);
    tomorrow = potm(days_tomorrow);
    newdir = today > tomorrow ? -1 : +1;
    if (olddir != newdir) {
      t = potm_minute(days_today - 1, olddir) + utcoffset / (24.0);
      if (olddir == -1 && newdir == +1) {
        *pfnms = d - 1 + t;
        pfnms++;
      } else if (olddir == +1 && newdir == -1) {
        *pffms = d - 1 + t;
        pffms++;
      }
    }
    olddir = newdir;
    days_today++;
    days_tomorrow++;
  }
  *pffms = -1;
  *pfnms = -1;
}


x86 assembly (clang, -O0):
<fpom>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0xd0(%rbp)
lea    -0x68(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
mov    -0x4(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x68(%rbp)
movq   $0x0,-0x50(%rbp)
movl   $0xffffffff,-0x64(%rbp)
movl   $0x17,-0x60(%rbp)
movl   $0x3b,-0x5c(%rbp)
movl   $0x3b,-0x58(%rbp)
lea    -0x88(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
mov    -0x4(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x88(%rbp)
movq   $0x0,-0x70(%rbp)
movl   $0x0,-0x84(%rbp)
movl   $0x0,-0x80(%rbp)
movl   $0x0,-0x7c(%rbp)
movl   $0x1,-0x78(%rbp)
lea    -0x68(%rbp),%rdi
call   1070 <mktime@plt>
mov    %eax,-0x24(%rbp)
lea    -0x24(%rbp),%rdi
lea    -0x48(%rbp),%rsi
call   1040 <gmtime_r@plt>
movl   $0x0,-0xb4(%rbp)
movl   $0x55,-0xac(%rbp)
mov    -0xac(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    12d9 <fpom+0x189>
mov    -0xac(%rbp),%eax
add    $0x76c,%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1284 <fpom+0x134>
mov    -0xac(%rbp),%eax
add    $0x76c,%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0xd9(%rbp)
jne    12a3 <fpom+0x153>
mov    -0xac(%rbp),%eax
add    $0x76c,%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
mov    %al,-0xd9(%rbp)
mov    -0xd9(%rbp),%dl
mov    $0x16d,%eax
mov    $0x16e,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    1235 <fpom+0xe5>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
cvtsi2sdl -0x40(%rbp),%xmm1
cvtsi2sdl -0x3c(%rbp),%xmm2
movsd  0xd1b(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
cvtsi2sdl -0x38(%rbp),%xmm2
movsd  0xcfe(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
movsd  0xce6(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
cvtsi2sdl -0xb4(%rbp),%xmm0
ff
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
lea    -0x88(%rbp),%rdi
call   1070 <mktime@plt>
mov    %eax,-0x24(%rbp)
lea    -0x24(%rbp),%rdi
lea    -0x48(%rbp),%rsi
call   1040 <gmtime_r@plt>
movl   $0x0,-0xb4(%rbp)
movl   $0x55,-0xac(%rbp)
mov    -0xac(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    1416 <fpom+0x2c6>
mov    -0xac(%rbp),%eax
add    $0x76c,%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    13c1 <fpom+0x271>
mov    -0xac(%rbp),%eax
add    $0x76c,%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0xda(%rbp)
jne    13e0 <fpom+0x290>
mov    -0xac(%rbp),%eax
add    $0x76c,%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
mov    %al,-0xda(%rbp)
mov    -0xda(%rbp),%dl
mov    $0x16d,%eax
mov    $0x16e,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    1372 <fpom+0x222>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
cvtsi2sdl -0x40(%rbp),%xmm1
cvtsi2sdl -0x3c(%rbp),%xmm2
movsd  0xbde(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
cvtsi2sdl -0x38(%rbp),%xmm2
movsd  0xbc1(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
movsd  0xba9(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
cvtsi2sdl -0xb4(%rbp),%xmm0
ff
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
call   1060 <potm@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
call   1060 <potm@plt>
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm1
ff
mov    $0x1,%eax
mov    $0xffffffff,%ecx
ucomisd %xmm1,%xmm0
cmova  %ecx,%eax
mov    %eax,-0xb8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1500 <fpom+0x3b0>
mov    -0x4(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0xdb(%rbp)
jne    1517 <fpom+0x3c7>
mov    -0x4(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
mov    %al,-0xdb(%rbp)
mov    -0xdb(%rbp),%dl
mov    $0x16d,%eax
mov    $0x16e,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
movl   $0x0,-0xb0(%rbp)
mov    -0xb0(%rbp),%eax
cmp    -0xb4(%rbp),%eax
jg     16e8 <fpom+0x598>
movsd  -0x90(%rbp),%xmm0
ff
call   1060 <potm@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
call   1060 <potm@plt>
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm1
ff
mov    $0x1,%eax
mov    $0xffffffff,%ecx
ucomisd %xmm1,%xmm0
cmova  %ecx,%eax
mov    %eax,-0xbc(%rbp)
mov    -0xb8(%rbp),%eax
cmp    -0xbc(%rbp),%eax
je     1698 <fpom+0x548>
movsd  -0x90(%rbp),%xmm0
ff
movsd  0xa5b(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0xb8(%rbp),%edi
call   1030 <potm_minute@plt>
movsd  -0x10(%rbp),%xmm1
movsd  0xa1f(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
cmpl   $0xffffffff,-0xb8(%rbp)
jne    1642 <fpom+0x4f2>
cmpl   $0x1,-0xbc(%rbp)
jne    1642 <fpom+0x4f2>
mov    -0xb0(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
addsd  -0xd8(%rbp),%xmm0
ff
mov    -0xc8(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0xc8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xc8(%rbp)
jmp    1693 <fpom+0x543>
cmpl   $0x1,-0xb8(%rbp)
jne    168e <fpom+0x53e>
cmpl   $0xffffffff,-0xbc(%rbp)
jne    168e <fpom+0x53e>
mov    -0xb0(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
addsd  -0xd8(%rbp),%xmm0
ff
mov    -0xd0(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0xd0(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xd0(%rbp)
jmp    1693 <fpom+0x543>
jmp    1698 <fpom+0x548>
mov    -0xbc(%rbp),%eax
mov    %eax,-0xb8(%rbp)
movsd  0x974(%rip),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0x95c(%rip),%xmm0
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
jmp    1540 <fpom+0x3f0>
mov    -0xd0(%rbp),%rax
movsd  0x921(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0xc8(%rbp),%rax
movsd  0x90e(%rip),%xmm0
movsd  %xmm0,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fpom>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rdx,%r12
mov    %rsi,%r14
movsd  %xmm0,0x28(%rsp)
mov    %edi,%ebx
lea    0x78(%rsp),%r13
xor    %r15d,%r15d
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
mov    %rbx,0x20(%rsp)
lea    -0x76c(%rbx),%ebp
mov    %ebp,0x78(%rsp)
movq   $0x0,0x90(%rsp)
movaps 0xe58(%rip),%xmm0
movups %xmm0,0x7c(%rsp)
lea    0x58(%rsp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
mov    %ebp,0x58(%rsp)
movq   $0x0,0x70(%rsp)
movdqa 0xe3d(%rip),%xmm0
movdqu %xmm0,0x5c(%rsp)
mov    %r13,%rdi
call   1070 <mktime@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x38(%rsp),%rsi
call   1040 <gmtime_r@plt>
mov    0x38(%rsp),%ebp
pxor   %xmm0,%xmm0
movq   %xmm0,0x10(%rsp)
pxor   %xmm0,%xmm0
cmp    $0x56,%ebp
jl     140c <fpom+0x2bc>
lea    -0x55(%rbp),%edx
mov    $0x55,%ecx
cmp    $0x8,%edx
jb     139d <fpom+0x24d>
mov    %edx,%esi
and    $0xfffffff8,%esi
lea    0x55(%rsi),%ecx
movdqa 0xdf0(%rip),%xmm0
movdqa 0xdf7(%rip),%xmm12
movdqa 0xe1f(%rip),%xmm5
movdqa 0xe26(%rip),%xmm14
movdqa 0xe2d(%rip),%xmm11
movdqa 0xe34(%rip),%xmm15
pcmpeqd %xmm10,%xmm10
movdqa 0xe37(%rip),%xmm7
movdqa 0xe3e(%rip),%xmm13
mov    %esi,%edi
pxor   %xmm2,%xmm2
pxor   %xmm3,%xmm3
nopl   0x0(%rax)
movdqa %xmm0,%xmm1
pmuludq %xmm12,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pshufd $0xf5,%xmm0,%xmm6
pmuludq %xmm12,%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm6,%xmm1
movdqa %xmm1,%xmm6
paddd  0xda3(%rip),%xmm6
movdqa %xmm6,%xmm4
psrld  $0x2,%xmm4
movdqa %xmm6,%xmm9
pslld  $0x1e,%xmm9
por    %xmm4,%xmm9
paddd  %xmm11,%xmm1
movdqa %xmm1,%xmm4
psrld  $0x2,%xmm4
movdqa %xmm1,%xmm8
pslld  $0x1e,%xmm8
por    %xmm4,%xmm8
movdqa %xmm0,%xmm4
pand   0xd50(%rip),%xmm4
pcmpeqd 0xdd8(%rip),%xmm4
pxor   %xmm5,%xmm9
pcmpgtd %xmm14,%xmm9
pxor   %xmm5,%xmm8
pcmpgtd %xmm14,%xmm8
pand   %xmm4,%xmm9
pand   %xmm4,%xmm8
movdqa %xmm6,%xmm4
psrld  $0x4,%xmm4
pslld  $0x1c,%xmm6
por    %xmm4,%xmm6
pxor   %xmm5,%xmm6
pcmpgtd %xmm15,%xmm6
pxor   %xmm10,%xmm6
por    %xmm9,%xmm6
psubd  %xmm6,%xmm2
movdqa %xmm1,%xmm4
psrld  $0x4,%xmm4
pslld  $0x1c,%xmm1
por    %xmm4,%xmm1
pxor   %xmm5,%xmm1
pcmpgtd %xmm15,%xmm1
pxor   %xmm10,%xmm1
por    %xmm8,%xmm1
psubd  %xmm1,%xmm3
paddd  %xmm7,%xmm2
paddd  %xmm7,%xmm3
paddd  %xmm13,%xmm0
add    $0xfffffff8,%edi
jne    1280 <fpom+0x130>
paddd  %xmm2,%xmm3
pshufd $0xee,%xmm3,%xmm0
paddd  %xmm3,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%r15d
cmp    %esi,%edx
je     1404 <fpom+0x2b4>
lea    0x76c(%rcx),%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %edx,%esi
imul   $0x51eb851f,%rsi,%rsi
mov    %rsi,%rdi
shr    $0x27,%rdi
imul   $0xfffffe70,%edi,%edi
shr    $0x25,%rsi
imul   $0xffffff9c,%esi,%esi
test   $0x3,%cl
sete   %al
add    %ecx,%esi
cmp    $0xfffff894,%esi
setne  %bl
and    %al,%bl
add    %ecx,%edi
cmp    $0xfffff894,%edi
sete   %al
or     %bl,%al
movzbl %al,%eax
add    %eax,%r15d
add    $0x16d,%r15d
add    $0x1,%ecx
add    $0x1,%edx
cmp    %ecx,%ebp
jne    13b0 <fpom+0x260>
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
mov    0x4c(%rsp),%eax
add    $0x1,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
xorps  %xmm2,%xmm2
cvtsi2sdl 0x40(%rsp),%xmm2
xorps  %xmm3,%xmm3
cvtsi2sdl 0x44(%rsp),%xmm3
divsd  0xcac(%rip),%xmm3
xorps  %xmm4,%xmm4
cvtsi2sdl 0x48(%rsp),%xmm4
addsd  %xmm2,%xmm3
divsd  0xc9f(%rip),%xmm4
addsd  %xmm3,%xmm4
divsd  0xc9b(%rip),%xmm4
addsd  %xmm1,%xmm4
addsd  %xmm0,%xmm4
movsd  %xmm4,(%rsp)
lea    0x58(%rsp),%rdi
call   1070 <mktime@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x38(%rsp),%rsi
call   1040 <gmtime_r@plt>
mov    0x38(%rsp),%r8d
cmp    $0x56,%r8d
jl     1690 <fpom+0x540>
lea    -0x55(%r8),%edx
cmp    $0x8,%edx
jae    14a3 <fpom+0x353>
mov    $0x55,%ecx
xor    %edi,%edi
jmp    161c <fpom+0x4cc>
mov    %edx,%esi
and    $0xfffffff8,%esi
lea    0x55(%rsi),%ecx
movdqa 0xb6d(%rip),%xmm0
movdqa 0xb74(%rip),%xmm12
movdqa 0xb9c(%rip),%xmm5
movdqa 0xba3(%rip),%xmm14
movdqa 0xbaa(%rip),%xmm11
movdqa 0xbb1(%rip),%xmm15
pcmpeqd %xmm10,%xmm10
movdqa 0xbb4(%rip),%xmm7
movdqa 0xbbb(%rip),%xmm13
mov    %esi,%edi
xorpd  %xmm2,%xmm2
xorpd  %xmm3,%xmm3
nop
movdqa %xmm0,%xmm1
pmuludq %xmm12,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pshufd $0xf5,%xmm0,%xmm6
pmuludq %xmm12,%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm6,%xmm1
movdqa %xmm1,%xmm6
paddd  0xb23(%rip),%xmm6
movdqa %xmm6,%xmm4
psrld  $0x2,%xmm4
movdqa %xmm6,%xmm9
pslld  $0x1e,%xmm9
por    %xmm4,%xmm9
paddd  %xmm11,%xmm1
movdqa %xmm1,%xmm4
psrld  $0x2,%xmm4
movdqa %xmm1,%xmm8
pslld  $0x1e,%xmm8
por    %xmm4,%xmm8
movdqa %xmm0,%xmm4
pand   0xad0(%rip),%xmm4
pcmpeqd 0xb58(%rip),%xmm4
pxor   %xmm5,%xmm9
pcmpgtd %xmm14,%xmm9
pxor   %xmm5,%xmm8
pcmpgtd %xmm14,%xmm8
pand   %xmm4,%xmm9
pand   %xmm4,%xmm8
movdqa %xmm6,%xmm4
psrld  $0x4,%xmm4
pslld  $0x1c,%xmm6
por    %xmm4,%xmm6
pxor   %xmm5,%xmm6
pcmpgtd %xmm15,%xmm6
pxor   %xmm10,%xmm6
por    %xmm9,%xmm6
psubd  %xmm6,%xmm2
movdqa %xmm1,%xmm4
psrld  $0x4,%xmm4
pslld  $0x1c,%xmm1
por    %xmm4,%xmm1
pxor   %xmm5,%xmm1
pcmpgtd %xmm15,%xmm1
pxor   %xmm10,%xmm1
por    %xmm8,%xmm1
psubd  %xmm1,%xmm3
paddd  %xmm7,%xmm2
paddd  %xmm7,%xmm3
paddd  %xmm13,%xmm0
add    $0xfffffff8,%edi
jne    1500 <fpom+0x3b0>
paddd  %xmm2,%xmm3
pshufd $0xee,%xmm3,%xmm0
paddd  %xmm3,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%edi
cmp    %esi,%edx
je     1683 <fpom+0x533>
lea    0x76c(%rcx),%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %edx,%esi
imul   $0x51eb851f,%rsi,%rbp
mov    %rbp,%rsi
shr    $0x27,%rsi
imul   $0xfffffe70,%esi,%esi
shr    $0x25,%rbp
imul   $0xffffff9c,%ebp,%ebp
test   $0x3,%cl
sete   %bl
add    %ecx,%ebp
cmp    $0xfffff894,%ebp
setne  %al
and    %bl,%al
add    %ecx,%esi
cmp    $0xfffff894,%esi
sete   %bl
or     %al,%bl
movzbl %bl,%eax
add    %eax,%edi
add    $0x16d,%edi
add    $0x1,%ecx
add    $0x1,%edx
cmp    %ecx,%r8d
jne    1630 <fpom+0x4e0>
xorps  %xmm0,%xmm0
cvtsi2sd %edi,%xmm0
movsd  %xmm0,0x10(%rsp)
mov    0x4c(%rsp),%eax
add    $0x1,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
cvtdq2pd 0x44(%rsp),%xmm2
xorps  %xmm1,%xmm1
cvtsi2sdl 0x40(%rsp),%xmm1
divpd  0xa0b(%rip),%xmm2
addsd  %xmm2,%xmm1
unpckhpd %xmm2,%xmm2
addsd  %xmm1,%xmm2
divsd  0xa27(%rip),%xmm2
addsd  %xmm0,%xmm2
addsd  0x10(%rsp),%xmm2
movapd %xmm2,0x10(%rsp)
movsd  (%rsp),%xmm0
call   1060 <potm@plt>
movsd  %xmm0,0x30(%rsp)
movapd 0x10(%rsp),%xmm0
call   1060 <potm@plt>
xor    %eax,%eax
movsd  0x30(%rsp),%xmm1
ucomisd %xmm0,%xmm1
setbe  %al
mov    0x20(%rsp),%rsi
test   $0x3,%sil
jne    1734 <fpom+0x5e4>
movslq %esi,%rcx
imul   $0x51eb851f,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
mov    %esi,%edx
mov    $0x170,%r13d
sub    %ecx,%edx
jne    1753 <fpom+0x603>
imul   $0xc28f5c29,%esi,%ecx
add    $0x51eb850,%ecx
ror    $0x4,%ecx
cmp    $0xa3d70b,%ecx
mov    $0x16f,%r13d
adc    $0x0,%r13d
lea    (%rax,%rax,1),%r15d
add    $0xffffffff,%r15d
movsd  0x28(%rsp),%xmm0
divsd  0x987(%rip),%xmm0
movsd  %xmm0,0x28(%rsp)
neg    %r13d
mov    $0xffffffff,%ebx
movsd  (%rsp),%xmm0
movapd 0x10(%rsp),%xmm1
jmp    17d7 <fpom+0x687>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r12)
add    $0x8,%r12
movsd  (%rsp),%xmm0
movapd 0x10(%rsp),%xmm1
movsd  0x948(%rip),%xmm2
addsd  %xmm2,%xmm0
addsd  %xmm2,%xmm1
lea    (%rbx,%r13,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
cmp    $0xffffffff,%eax
je     1882 <fpom+0x732>
movapd %xmm1,0x10(%rsp)
mov    %r15d,%ebp
movsd  %xmm0,(%rsp)
call   1060 <potm@plt>
movsd  %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
call   1060 <potm@plt>
movsd  0x20(%rsp),%xmm1
xor    %eax,%eax
ucomisd %xmm0,%xmm1
setbe  %al
lea    (%rax,%rax,1),%r15d
add    $0xffffffff,%r15d
cmp    %r15d,%ebp
je     17a5 <fpom+0x655>
movapd %xmm0,%xmm2
movsd  (%rsp),%xmm0
addsd  0x8d0(%rip),%xmm0
mov    %ebp,%edi
movsd  %xmm2,0x30(%rsp)
call   1030 <potm_minute@plt>
movsd  0x30(%rsp),%xmm2
movsd  0x20(%rsp),%xmm1
addsd  0x28(%rsp),%xmm0
cmp    $0xffffffff,%ebp
jne    1856 <fpom+0x706>
ucomisd %xmm2,%xmm1
jbe    1790 <fpom+0x640>
cmp    $0x1,%ebp
jne    17a5 <fpom+0x655>
ucomisd %xmm2,%xmm1
jbe    17a5 <fpom+0x655>
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r14)
add    $0x8,%r14
jmp    17a5 <fpom+0x655>
movabs $0xbff0000000000000,%rax
mov    %rax,(%r14)
mov    %rax,(%r12)
add    $0x98,%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, i64 }
define void @fpom(i32 %0, double %1, double* %2, double* %3) {
%5 = alloca i32
%6 = alloca double
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca %struct.tm
%11 = alloca %struct.tm
%12 = alloca %struct.tm
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca double*
%23 = alloca double*
%24 = alloca double
store i32 %0, i32* %5
store double %1, double* %6
store double* %2, double** %7
store double* %3, double** %8
%25 = load double*, double** %8
store double* %25, double** %22
%26 = load double*, double** %7
store double* %26, double** %23
%27 = call i32 @memset(%struct.tm* %11, i32 0, i32 32)
%28 = load i32, i32* %5
%29 = sub nsw i32 %28, 1900
%30 = getelementptr inbounds %struct.tm, %struct.tm* %11, i32 0, i32 0
store i32 %29, i32* %30
%31 = getelementptr inbounds %struct.tm, %struct.tm* %11, i32 0, i32 6
store i64 0, i64* %31
%32 = getelementptr inbounds %struct.tm, %struct.tm* %11, i32 0, i32 1
store i32 -1, i32* %32
%33 = getelementptr inbounds %struct.tm, %struct.tm* %11, i32 0, i32 2
store i32 23, i32* %33
%34 = getelementptr inbounds %struct.tm, %struct.tm* %11, i32 0, i32 3
store i32 59, i32* %34
%35 = getelementptr inbounds %struct.tm, %struct.tm* %11, i32 0, i32 4
store i32 59, i32* %35
%36 = call i32 @memset(%struct.tm* %12, i32 0, i32 32)
%37 = load i32, i32* %5
%38 = sub nsw i32 %37, 1900
%39 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 0
store i32 %38, i32* %39
%40 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 6
store i64 0, i64* %40
%41 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 1
store i32 0, i32* %41
%42 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 2
store i32 0, i32* %42
%43 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 3
store i32 0, i32* %43
%44 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 4
store i32 1, i32* %44
%45 = call i32 @mktime(%struct.tm* %11)
store i32 %45, i32* %9
%46 = call i32 @gmtime_r(i32* %9, %struct.tm* %10)
store i32 0, i32* %19
store i32 85, i32* %17
br label %47
47: ; preds = %73, %4
%48 = load i32, i32* %17
%49 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 0
%50 = load i32, i32* %49
%51 = icmp slt i32 %48, %50
br i1 %51, label %52, label %76
52: ; preds = %47
%53 = load i32, i32* %17
%54 = add nsw i32 1900, %53
%55 = srem i32 %54, 4
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %52
%58 = load i32, i32* %17
%59 = add nsw i32 1900, %58
%60 = srem i32 %59, 100
%61 = icmp ne i32 %60, 0
br i1 %61, label %67, label %62
62: ; preds = %57, %52
%63 = load i32, i32* %17
%64 = add nsw i32 1900, %63
%65 = srem i32 %64, 400
%66 = icmp eq i32 %65, 0
br label %67
67: ; preds = %62, %57
%68 = phi i1 [ true, %57 ], [ %66, %62 ]
%69 = zext i1 %68 to i64
%70 = select i1 %68, i32 366, i32 365
%71 = load i32, i32* %19
%72 = add nsw i32 %71, %70
store i32 %72, i32* %19
br label %73
73: ; preds = %67
%74 = load i32, i32* %17
%75 = add nsw i32 %74, 1
store i32 %75, i32* %17
br label %47
76: ; preds = %47
%77 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 5
%78 = load i32, i32* %77
%79 = add nsw i32 %78, 1
%80 = sitofp i32 %79 to double
%81 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 2
%82 = load i32, i32* %81
%83 = sitofp i32 %82 to double
%84 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 3
%85 = load i32, i32* %84
%86 = sitofp i32 %85 to double
%87 = fdiv double %86, 6.000000e+01
%88 = fadd double %83, %87
%89 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 4
%90 = load i32, i32* %89
%91 = sitofp i32 %90 to double
%92 = fdiv double %91, 3.600000e+03
%93 = fadd double %88, %92
%94 = fdiv double %93, 2.400000e+01
%95 = fadd double %80, %94
store double %95, double* %13
%96 = load i32, i32* %19
%97 = sitofp i32 %96 to double
%98 = load double, double* %13
%99 = fadd double %98, %97
store double %99, double* %13
%100 = call i32 @mktime(%struct.tm* %12)
store i32 %100, i32* %9
%101 = call i32 @gmtime_r(i32* %9, %struct.tm* %10)
store i32 0, i32* %19
store i32 85, i32* %17
br label %102
102: ; preds = %128, %76
%103 = load i32, i32* %17
%104 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 0
%105 = load i32, i32* %104
%106 = icmp slt i32 %103, %105
br i1 %106, label %107, label %131
107: ; preds = %102
%108 = load i32, i32* %17
%109 = add nsw i32 1900, %108
%110 = srem i32 %109, 4
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %117
112: ; preds = %107
%113 = load i32, i32* %17
%114 = add nsw i32 1900, %113
%115 = srem i32 %114, 100
%116 = icmp ne i32 %115, 0
br i1 %116, label %122, label %117
117: ; preds = %112, %107
%118 = load i32, i32* %17
%119 = add nsw i32 1900, %118
%120 = srem i32 %119, 400
%121 = icmp eq i32 %120, 0
br label %122
122: ; preds = %117, %112
%123 = phi i1 [ true, %112 ], [ %121, %117 ]
%124 = zext i1 %123 to i64
%125 = select i1 %123, i32 366, i32 365
%126 = load i32, i32* %19
%127 = add nsw i32 %126, %125
store i32 %127, i32* %19
br label %128
128: ; preds = %122
%129 = load i32, i32* %17
%130 = add nsw i32 %129, 1
store i32 %130, i32* %17
br label %102
131: ; preds = %102
%132 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 5
%133 = load i32, i32* %132
%134 = add nsw i32 %133, 1
%135 = sitofp i32 %134 to double
%136 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 2
%137 = load i32, i32* %136
%138 = sitofp i32 %137 to double
%139 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 3
%140 = load i32, i32* %139
%141 = sitofp i32 %140 to double
%142 = fdiv double %141, 6.000000e+01
%143 = fadd double %138, %142
%144 = getelementptr inbounds %struct.tm, %struct.tm* %10, i32 0, i32 4
%145 = load i32, i32* %144
%146 = sitofp i32 %145 to double
%147 = fdiv double %146, 3.600000e+03
%148 = fadd double %143, %147
%149 = fdiv double %148, 2.400000e+01
%150 = fadd double %135, %149
store double %150, double* %14
%151 = load i32, i32* %19
%152 = sitofp i32 %151 to double
%153 = load double, double* %14
%154 = fadd double %153, %152
store double %154, double* %14
%155 = load double, double* %13
%156 = call double @potm(double %155)
store double %156, double* %15
%157 = load double, double* %14
%158 = call double @potm(double %157)
store double %158, double* %16
%159 = load double, double* %15
%160 = load double, double* %16
%161 = fcmp ogt double %159, %160
%162 = zext i1 %161 to i64
%163 = select i1 %161, i32 -1, i32 1
store i32 %163, i32* %20
%164 = load i32, i32* %5
%165 = srem i32 %164, 4
%166 = icmp eq i32 %165, 0
br i1 %166, label %167, label %171
167: ; preds = %131
%168 = load i32, i32* %5
%169 = srem i32 %168, 100
%170 = icmp ne i32 %169, 0
br i1 %170, label %175, label %171
171: ; preds = %167, %131
%172 = load i32, i32* %5
%173 = srem i32 %172, 400
%174 = icmp eq i32 %173, 0
br label %175
175: ; preds = %171, %167
%176 = phi i1 [ true, %167 ], [ %174, %171 ]
%177 = zext i1 %176 to i64
%178 = select i1 %176, i32 366, i32 365
%179 = add nsw i32 1, %178
store i32 %179, i32* %19
store i32 0, i32* %18
br label %180
180: ; preds = %242, %175
%181 = load i32, i32* %18
%182 = load i32, i32* %19
%183 = icmp sle i32 %181, %182
br i1 %183, label %184, label %245
184: ; preds = %180
%185 = load double, double* %13
%186 = call double @potm(double %185)
store double %186, double* %15
%187 = load double, double* %14
%188 = call double @potm(double %187)
store double %188, double* %16
%189 = load double, double* %15
%190 = load double, double* %16
%191 = fcmp ogt double %189, %190
%192 = zext i1 %191 to i64
%193 = select i1 %191, i32 -1, i32 1
store i32 %193, i32* %21
%194 = load i32, i32* %20
%195 = load i32, i32* %21
%196 = icmp ne i32 %194, %195
br i1 %196, label %197, label %236
197: ; preds = %184
%198 = load double, double* %13
%199 = fsub double %198, 1.000000e+00
%200 = load i32, i32* %20
%201 = call double @potm_minute(double %199, i32 %200)
%202 = load double, double* %6
%203 = fdiv double %202, 2.400000e+01
%204 = fadd double %201, %203
store double %204, double* %24
%205 = load i32, i32* %20
%206 = icmp eq i32 %205, -1
br i1 %206, label %207, label %219
207: ; preds = %197
%208 = load i32, i32* %21
%209 = icmp eq i32 %208, 1
br i1 %209, label %210, label %219
210: ; preds = %207
%211 = load i32, i32* %18
%212 = sub nsw i32 %211, 1
%213 = sitofp i32 %212 to double
%214 = load double, double* %24
%215 = fadd double %213, %214
%216 = load double*, double** %22
store double %215, double* %216
%217 = load double*, double** %22
%218 = getelementptr inbounds double, double* %217, i32 1
store double* %218, double** %22
br label %235
219: ; preds = %207, %197
%220 = load i32, i32* %20
%221 = icmp eq i32 %220, 1
br i1 %221, label %222, label %234
222: ; preds = %219
%223 = load i32, i32* %21
%224 = icmp eq i32 %223, -1
br i1 %224, label %225, label %234
225: ; preds = %222
%226 = load i32, i32* %18
%227 = sub nsw i32 %226, 1
%228 = sitofp i32 %227 to double
%229 = load double, double* %24
%230 = fadd double %228, %229
%231 = load double*, double** %23
store double %230, double* %231
%232 = load double*, double** %23
%233 = getelementptr inbounds double, double* %232, i32 1
store double* %233, double** %23
br label %234
234: ; preds = %225, %222, %219
br label %235
235: ; preds = %234, %210
br label %236
236: ; preds = %235, %184
%237 = load i32, i32* %21
store i32 %237, i32* %20
%238 = load double, double* %13
%239 = fadd double %238, 1.000000e+00
store double %239, double* %13
%240 = load double, double* %14
%241 = fadd double %240, 1.000000e+00
store double %241, double* %14
br label %242
242: ; preds = %236
%243 = load i32, i32* %18
%244 = add nsw i32 %243, 1
store i32 %244, i32* %18
br label %180
245: ; preds = %180
%246 = load double*, double** %23
store double -1.000000e+00, double* %246
%247 = load double*, double** %22
store double -1.000000e+00, double* %247
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i32, i32, i32, i64 }
define void @fpom(i32 %0, double %1, double* nocapture writeonly %2, double* nocapture writeonly %3) {
%5 = alloca i32
%6 = alloca %struct.tm
%7 = alloca %struct.tm
%8 = alloca %struct.tm
%9 = bitcast i32* %5 to i8*
%10 = bitcast %struct.tm* %6 to i8*
%11 = bitcast %struct.tm* %7 to i8*
%12 = bitcast %struct.tm* %8 to i8*
%13 = call i32 @memset(%struct.tm* %7, i32 0, i32 32)
%14 = add nsw i32 %0, -1900
%15 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 0
store i32 %14, i32* %15
%16 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 6
store i64 0, i64* %16
%17 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 1
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 -1, i32 23, i32 59, i32 59>, <4 x i32>* %18
%19 = call i32 @memset(%struct.tm* %8, i32 0, i32 32)
%20 = getelementptr inbounds %struct.tm, %struct.tm* %8, i64 0, i32 0
store i32 %14, i32* %20
%21 = getelementptr inbounds %struct.tm, %struct.tm* %8, i64 0, i32 6
store i64 0, i64* %21
%22 = getelementptr inbounds %struct.tm, %struct.tm* %8, i64 0, i32 1
%23 = bitcast i32* %22 to <4 x i32>*
store <4 x i32> <i32 0, i32 0, i32 0, i32 1>, <4 x i32>* %23
%24 = call i32 @mktime(%struct.tm* %7)
store i32 %24, i32* %5
%25 = call i32 @gmtime_r(i32* %5, %struct.tm* %6)
%26 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 0
%27 = load i32, i32* %26
%28 = icmp sgt i32 %27, 85
br i1 %28, label %29, label %91
29: ; preds = %4
%30 = add i32 %27, -85
%31 = icmp ult i32 %30, 8
br i1 %31, label %69, label %32
32: ; preds = %29
%33 = and i32 %30, -8
%34 = add i32 %33, 85
br label %35
35: ; preds = %35, %32
%36 = phi i32 [ 0, %32 ], [ %62, %35 ]
%37 = phi <4 x i32> [ zeroinitializer, %32 ], [ %60, %35 ]
%38 = phi <4 x i32> [ zeroinitializer, %32 ], [ %61, %35 ]
%39 = phi <4 x i32> [ <i32 85, i32 86, i32 87, i32 88>, %32 ], [ %63, %35 ]
%40 = add nuw nsw <4 x i32> %39, <i32 1900, i32 1900, i32 1900, i32 1900>
%41 = add <4 x i32> %39, <i32 1904, i32 1904, i32 1904, i32 1904>
%42 = and <4 x i32> %39, <i32 3, i32 3, i32 3, i32 3>
%43 = and <4 x i32> %39, <i32 3, i32 3, i32 3, i32 3>
%44 = icmp eq <4 x i32> %42, zeroinitializer
%45 = icmp eq <4 x i32> %43, zeroinitializer
%46 = urem <4 x i32> %40, <i32 100, i32 100, i32 100, i32 100>
%47 = urem <4 x i32> %41, <i32 100, i32 100, i32 100, i32 100>
%48 = icmp ne <4 x i32> %46, zeroinitializer
%49 = icmp ne <4 x i32> %47, zeroinitializer
%50 = select <4 x i1> %44, <4 x i1> %48, <4 x i1> zeroinitializer
%51 = select <4 x i1> %45, <4 x i1> %49, <4 x i1> zeroinitializer
%52 = urem <4 x i32> %40, <i32 400, i32 400, i32 400, i32 400>
%53 = urem <4 x i32> %41, <i32 400, i32 400, i32 400, i32 400>
%54 = icmp eq <4 x i32> %52, zeroinitializer
%55 = icmp eq <4 x i32> %53, zeroinitializer
%56 = select <4 x i1> %50, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %54
%57 = select <4 x i1> %51, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %55
%58 = select <4 x i1> %56, <4 x i32> <i32 366, i32 366, i32 366, i32 366>, <4 x i32> <i32 365, i32 365, i32 365, i32 365>
%59 = select <4 x i1> %57, <4 x i32> <i32 366, i32 366, i32 366, i32 366>, <4 x i32> <i32 365, i32 365, i32 365, i32 365>
%60 = add <4 x i32> %58, %37
%61 = add <4 x i32> %59, %38
%62 = add nuw i32 %36, 8
%63 = add <4 x i32> %39, <i32 8, i32 8, i32 8, i32 8>
%64 = icmp eq i32 %62, %33
br i1 %64, label %65, label %35
65: ; preds = %35
%66 = add <4 x i32> %61, %60
%67 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %66)
%68 = icmp eq i32 %30, %33
br i1 %68, label %88, label %69
69: ; preds = %29, %65
%70 = phi i32 [ 0, %29 ], [ %67, %65 ]
%71 = phi i32 [ 85, %29 ], [ %34, %65 ]
br label %72
72: ; preds = %69, %72
%73 = phi i32 [ %85, %72 ], [ %70, %69 ]
%74 = phi i32 [ %86, %72 ], [ %71, %69 ]
%75 = add nuw nsw i32 %74, 1900
%76 = and i32 %74, 3
%77 = icmp eq i32 %76, 0
%78 = urem i32 %75, 100
%79 = icmp ne i32 %78, 0
%80 = select i1 %77, i1 %79, i1 false
%81 = urem i32 %75, 400
%82 = icmp eq i32 %81, 0
%83 = select i1 %80, i1 true, i1 %82
%84 = select i1 %83, i32 366, i32 365
%85 = add nuw nsw i32 %84, %73
%86 = add nuw nsw i32 %74, 1
%87 = icmp eq i32 %86, %27
br i1 %87, label %88, label %72
88: ; preds = %72, %65
%89 = phi i32 [ %67, %65 ], [ %85, %72 ]
%90 = sitofp i32 %89 to double
br label %91
91: ; preds = %88, %4
%92 = phi double [ 0.000000e+00, %4 ], [ %90, %88 ]
%93 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 5
%94 = load i32, i32* %93
%95 = add nsw i32 %94, 1
%96 = sitofp i32 %95 to double
%97 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 2
%98 = load i32, i32* %97
%99 = sitofp i32 %98 to double
%100 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 3
%101 = load i32, i32* %100
%102 = sitofp i32 %101 to double
%103 = fdiv double %102, 6.000000e+01
%104 = fadd double %103, %99
%105 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 4
%106 = load i32, i32* %105
%107 = sitofp i32 %106 to double
%108 = fdiv double %107, 3.600000e+03
%109 = fadd double %104, %108
%110 = fdiv double %109, 2.400000e+01
%111 = fadd double %110, %96
%112 = fadd double %111, %92
%113 = call i32 @mktime(%struct.tm* %8)
store i32 %113, i32* %5
%114 = call i32 @gmtime_r(i32* %5, %struct.tm* %6)
%115 = load i32, i32* %26
%116 = icmp sgt i32 %115, 85
br i1 %116, label %117, label %179
117: ; preds = %91
%118 = add i32 %115, -85
%119 = icmp ult i32 %118, 8
br i1 %119, label %157, label %120
120: ; preds = %117
%121 = and i32 %118, -8
%122 = add i32 %121, 85
br label %123
123: ; preds = %123, %120
%124 = phi i32 [ 0, %120 ], [ %150, %123 ]
%125 = phi <4 x i32> [ zeroinitializer, %120 ], [ %148, %123 ]
%126 = phi <4 x i32> [ zeroinitializer, %120 ], [ %149, %123 ]
%127 = phi <4 x i32> [ <i32 85, i32 86, i32 87, i32 88>, %120 ], [ %151, %123 ]
%128 = add nuw nsw <4 x i32> %127, <i32 1900, i32 1900, i32 1900, i32 1900>
%129 = add <4 x i32> %127, <i32 1904, i32 1904, i32 1904, i32 1904>
%130 = and <4 x i32> %127, <i32 3, i32 3, i32 3, i32 3>
%131 = and <4 x i32> %127, <i32 3, i32 3, i32 3, i32 3>
%132 = icmp eq <4 x i32> %130, zeroinitializer
%133 = icmp eq <4 x i32> %131, zeroinitializer
%134 = urem <4 x i32> %128, <i32 100, i32 100, i32 100, i32 100>
%135 = urem <4 x i32> %129, <i32 100, i32 100, i32 100, i32 100>
%136 = icmp ne <4 x i32> %134, zeroinitializer
%137 = icmp ne <4 x i32> %135, zeroinitializer
%138 = select <4 x i1> %132, <4 x i1> %136, <4 x i1> zeroinitializer
%139 = select <4 x i1> %133, <4 x i1> %137, <4 x i1> zeroinitializer
%140 = urem <4 x i32> %128, <i32 400, i32 400, i32 400, i32 400>
%141 = urem <4 x i32> %129, <i32 400, i32 400, i32 400, i32 400>
%142 = icmp eq <4 x i32> %140, zeroinitializer
%143 = icmp eq <4 x i32> %141, zeroinitializer
%144 = select <4 x i1> %138, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %142
%145 = select <4 x i1> %139, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %143
%146 = select <4 x i1> %144, <4 x i32> <i32 366, i32 366, i32 366, i32 366>, <4 x i32> <i32 365, i32 365, i32 365, i32 365>
%147 = select <4 x i1> %145, <4 x i32> <i32 366, i32 366, i32 366, i32 366>, <4 x i32> <i32 365, i32 365, i32 365, i32 365>
%148 = add <4 x i32> %146, %125
%149 = add <4 x i32> %147, %126
%150 = add nuw i32 %124, 8
%151 = add <4 x i32> %127, <i32 8, i32 8, i32 8, i32 8>
%152 = icmp eq i32 %150, %121
br i1 %152, label %153, label %123
153: ; preds = %123
%154 = add <4 x i32> %149, %148
%155 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %154)
%156 = icmp eq i32 %118, %121
br i1 %156, label %176, label %157
157: ; preds = %117, %153
%158 = phi i32 [ 0, %117 ], [ %155, %153 ]
%159 = phi i32 [ 85, %117 ], [ %122, %153 ]
br label %160
160: ; preds = %157, %160
%161 = phi i32 [ %173, %160 ], [ %158, %157 ]
%162 = phi i32 [ %174, %160 ], [ %159, %157 ]
%163 = add nuw nsw i32 %162, 1900
%164 = and i32 %162, 3
%165 = icmp eq i32 %164, 0
%166 = urem i32 %163, 100
%167 = icmp ne i32 %166, 0
%168 = select i1 %165, i1 %167, i1 false
%169 = urem i32 %163, 400
%170 = icmp eq i32 %169, 0
%171 = select i1 %168, i1 true, i1 %170
%172 = select i1 %171, i32 366, i32 365
%173 = add nuw nsw i32 %172, %161
%174 = add nuw nsw i32 %162, 1
%175 = icmp eq i32 %174, %115
br i1 %175, label %176, label %160
176: ; preds = %160, %153
%177 = phi i32 [ %155, %153 ], [ %173, %160 ]
%178 = sitofp i32 %177 to double
br label %179
179: ; preds = %176, %91
%180 = phi double [ 0.000000e+00, %91 ], [ %178, %176 ]
%181 = load i32, i32* %93
%182 = add nsw i32 %181, 1
%183 = sitofp i32 %182 to double
%184 = load i32, i32* %97
%185 = sitofp i32 %184 to double
%186 = bitcast i32* %100 to <2 x i32>*
%187 = load <2 x i32>, <2 x i32>* %186
%188 = sitofp <2 x i32> %187 to <2 x double>
%189 = fdiv <2 x double> %188, <double 6.000000e+01, double 3.600000e+03>
%190 = extractelement <2 x double> %189, i64 0
%191 = fadd double %190, %185
%192 = extractelement <2 x double> %189, i64 1
%193 = fadd double %191, %192
%194 = fdiv double %193, 2.400000e+01
%195 = fadd double %194, %183
%196 = fadd double %195, %180
%197 = call double @potm(double %112)
%198 = call double @potm(double %196)
%199 = fcmp ogt double %197, %198
%200 = select i1 %199, i32 -1, i32 1
%201 = and i32 %0, 3
%202 = icmp ne i32 %201, 0
%203 = srem i32 %0, 100
%204 = icmp eq i32 %203, 0
%205 = or i1 %202, %204
br i1 %205, label %206, label %210
206: ; preds = %179
%207 = srem i32 %0, 400
%208 = icmp eq i32 %207, 0
%209 = select i1 %208, i32 368, i32 367
br label %210
210: ; preds = %179, %206
%211 = phi i32 [ %209, %206 ], [ 368, %179 ]
%212 = fdiv double %1, 2.400000e+01
br label %213
213: ; preds = %210, %245
%214 = phi double [ %112, %210 ], [ %248, %245 ]
%215 = phi double* [ %2, %210 ], [ %247, %245 ]
%216 = phi double* [ %3, %210 ], [ %246, %245 ]
%217 = phi double [ %196, %210 ], [ %249, %245 ]
%218 = phi i32 [ %200, %210 ], [ %223, %245 ]
%219 = phi i32 [ 0, %210 ], [ %250, %245 ]
%220 = call double @potm(double %214)
%221 = call double @potm(double %217)
%222 = fcmp ogt double %220, %221
%223 = select i1 %222, i32 -1, i32 1
%224 = icmp eq i32 %218, %223
br i1 %224, label %245, label %225
225: ; preds = %213
%226 = fadd double %214, -1.000000e+00
%227 = call double @potm_minute(double %226, i32 %218)
%228 = fadd double %212, %227
%229 = icmp eq i32 %218, -1
%230 = xor i1 %222, true
%231 = select i1 %229, i1 %230, i1 false
br i1 %231, label %232, label %237
232: ; preds = %225
%233 = add nsw i32 %219, -1
%234 = sitofp i32 %233 to double
%235 = fadd double %228, %234
store double %235, double* %216
%236 = getelementptr inbounds double, double* %216, i64 1
br label %245
237: ; preds = %225
%238 = icmp eq i32 %218, 1
%239 = select i1 %238, i1 %222, i1 false
br i1 %239, label %240, label %245
240: ; preds = %237
%241 = add nsw i32 %219, -1
%242 = sitofp i32 %241 to double
%243 = fadd double %228, %242
store double %243, double* %215
%244 = getelementptr inbounds double, double* %215, i64 1
br label %245
245: ; preds = %232, %240, %237, %213
%246 = phi double* [ %236, %232 ], [ %216, %240 ], [ %216, %237 ], [ %216, %213 ]
%247 = phi double* [ %215, %232 ], [ %244, %240 ], [ %215, %237 ], [ %215, %213 ]
%248 = fadd double %214, 1.000000e+00
%249 = fadd double %217, 1.000000e+00
%250 = add nuw nsw i32 %219, 1
%251 = icmp eq i32 %250, %211
br i1 %251, label %252, label %213
252: ; preds = %245
store double -1.000000e+00, double* %247
store double -1.000000e+00, double* %246
ret void
}