#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 stat {
  int dummy;
};
struct dirent {
  char *d_name;
};
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ *opendir(char *);
int /*<<< orphan*/ printf(char *, ...);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ sscanf(char *, char *, ...);
scalar_t__ stat(char *, struct stat *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int CheckPt_Latest(char *FileNameFull, int buffersize, const double Vx,
                   const double Vy, const double Vz, const double T) {
  if (buffersize < 0) {
    printf("ERROR Buffer size less than 0 Buffer: %d!\n", buffersize);
    return -1;
  }
  if (T < 0) {
    printf("ERROR Temperature negative\n");
    return -1;
  }
  struct stat st;
  char FileName[256];
  char FileEx[20];
  char CheckNum[30];
  char CheckVx[30] = "";
  char CheckVy[30] = "";
  char CheckVz[30] = "";
  char CheckT[30] = "";
  double ChVx;
  double ChVy;
  double ChVz;
  double ChT;
  char FileNameKeep[256];
  int len;
  int stop1;
  int stop2;
  int stop3;
  int stop4;
  int stop5;
  int i;
  int CheckFileExist;
  int num;
  int keep;
  FileName[0] = '\0';
  FileNameFull[0] = '\0';
  CheckFileExist = 0;
  ChVx = 0.0;
  ChVy = 0.0;
  ChVz = 0.0;
  ChT = 0.0;
  if (stat("CHECKPOINT", &st) == 0) {
    DIR *d;
    struct dirent *dir;
    d = opendir("CHECKPOINT");
    if (d) {
      num = 0;
      keep = 0;
      while ((dir = readdir(d)) != NULL) {
        strcpy(FileName, dir->d_name);
        len = strlen(FileName);
        if (len > 4) {
          for (i = 4; i >= 0; i--) {
            FileEx[4 - i] = FileName[len - i];
          }
          FileEx[4] = '\0';
          if (strcmp(FileEx, "ckpt\0") == 0) {
            i = 0;
            while (FileName[len - 5 - i] != 'R') {
              i++;
            }
            stop1 = i;
            for (i = 0; i < (stop1 - 1); i++) {
              CheckNum[i] = FileName[len - (5 + stop1) + (i + 1)];
            }
            CheckNum[stop1 - 1] = '\0';
            sscanf(CheckNum, "%d", &num);
            i = 0;
            while (FileName[len - 5 - stop1 - i] != 'z') {
              i++;
            }
            stop2 = i;
            for (i = 0; i < (stop2 - 1); i++) {
              CheckVz[i] = FileName[len - (5 + stop1 + stop2) + (i + 1)];
            }
            CheckVz[stop2 - 1] = '\0';
            sscanf(CheckVz, "%lf", &ChVz);
            i = 0;
            while (FileName[len - (5 + stop1 + stop2 + i)] != 'y') {
              i++;
            }
            stop3 = i;
            for (i = 0; i < (stop3 - 2); i++) {
              CheckVy[i] =
                  FileName[len - (5 + stop1 + stop2 + stop3) + (i + 1)];
            }
            CheckVz[stop3 - 1] = '\0';
            sscanf(CheckVy, "%lf", &ChVy);
            i = 0;
            while (FileName[len - (5 + stop1 + stop2 + stop3 + i)] != 'x') {
              i++;
            }
            stop4 = i;
            for (i = 0; i < (stop4 - 2); i++) {
              CheckVx[i] =
                  FileName[len - (5 + stop1 + stop2 + stop3 + stop4) + (i + 1)];
            }
            CheckVz[stop4 - 1] = '\0';
            sscanf(CheckVx, "%lf", &ChVx);
            i = 0;
            while (FileName[len - (5 + stop1 + stop2 + stop3 + stop4 + i)] !=
                   'T') {
              i++;
            }
            stop5 = i;
            for (i = 0; i < (stop5 - 2); i++) {
              CheckT[i] =
                  FileName[len - (5 + stop1 + stop2 + stop3 + stop4 + stop5) +
                           (i + 1)];
            }
            CheckVz[stop5 - 1] = '\0';
            sscanf(CheckT, "%lf", &ChT);
            if (num > keep && ChT == T && ChVx == Vx && ChVy == Vy &&
                ChVz == Vz) {
              CheckFileExist = 1;
              keep = num;
              strcpy(FileNameKeep, FileName);
            }
          }
        }
      }
      closedir(d);
    }
  } else {
    printf("ERROR CHECKPOINT directory not found\n");
    return -1;
  }
  if (CheckFileExist == 1) {
    printf("FileNameKeep %s\n", FileNameKeep);
    if (buffersize < len) {
      printf("Value of len %d value of buffersize %d\n", len, buffersize);
      printf("ERROR Buffersize is to small!\n");
      return -1;
    }
    strncpy(FileNameFull, FileNameKeep, buffersize - 1);
    return keep;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<CheckPt_Latest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x360,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
movsd  %xmm2,-0x30(%rbp)
movsd  %xmm3,-0x38(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    11fd <CheckPt_Latest+0x4d>
mov    -0x14(%rbp),%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1a21 <CheckPt_Latest+0x871>
xorps  %xmm0,%xmm0
ucomisd -0x38(%rbp),%xmm0
jbe    1225 <CheckPt_Latest+0x75>
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1a21 <CheckPt_Latest+0x871>
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1080 <memset@plt>
lea    -0x1c0(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1080 <memset@plt>
lea    -0x1e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1080 <memset@plt>
lea    -0x200(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1080 <memset@plt>
movb   $0x0,-0x140(%rbp)
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
movl   $0x0,-0x340(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x208(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x210(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x218(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x220(%rbp)
ff
lea    0xd8b(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jne    197a <CheckPt_Latest+0x7ca>
lea    0xd71(%rip),%rdi
call   1050 <opendir@plt>
mov    %rax,-0x350(%rbp)
cmpq   $0x0,-0x350(%rbp)
je     1975 <CheckPt_Latest+0x7c5>
movl   $0x0,-0x344(%rbp)
movl   $0x0,-0x348(%rbp)
mov    -0x350(%rbp),%rdi
call   10c0 <readdir@plt>
mov    %rax,-0x358(%rbp)
cmp    $0x0,%rax
je     1969 <CheckPt_Latest+0x7b9>
lea    -0x140(%rbp),%rdi
mov    -0x358(%rbp),%rax
mov    (%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x140(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x324(%rbp)
cmpl   $0x4,-0x324(%rbp)
jle    1964 <CheckPt_Latest+0x7b4>
movl   $0x4,-0x33c(%rbp)
cmpl   $0x0,-0x33c(%rbp)
jl     13aa <CheckPt_Latest+0x1fa>
mov    -0x324(%rbp),%eax
sub    -0x33c(%rbp),%eax
cltq
mov    -0x140(%rbp,%rax,1),%cl
mov    $0x4,%eax
sub    -0x33c(%rbp),%eax
cltq
mov    %cl,-0x160(%rbp,%rax,1)
mov    -0x33c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x33c(%rbp)
jmp    1360 <CheckPt_Latest+0x1b0>
movb   $0x0,-0x15c(%rbp)
lea    -0x160(%rbp),%rdi
lea    0xd18(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    195f <CheckPt_Latest+0x7af>
movl   $0x0,-0x33c(%rbp)
mov    -0x324(%rbp),%eax
sub    $0x5,%eax
sub    -0x33c(%rbp),%eax
cltq
movsbl -0x140(%rbp,%rax,1),%eax
ff
cmp    $0x52,%eax
je     140e <CheckPt_Latest+0x25e>
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    13d8 <CheckPt_Latest+0x228>
mov    -0x33c(%rbp),%eax
mov    %eax,-0x328(%rbp)
movl   $0x0,-0x33c(%rbp)
mov    -0x33c(%rbp),%eax
mov    -0x328(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1482 <CheckPt_Latest+0x2d2>
mov    -0x324(%rbp),%eax
mov    -0x328(%rbp),%ecx
add    $0x5,%ecx
sub    %ecx,%eax
mov    -0x33c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x140(%rbp,%rax,1),%cl
movslq -0x33c(%rbp),%rax
mov    %cl,-0x180(%rbp,%rax,1)
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    1424 <CheckPt_Latest+0x274>
mov    -0x328(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x180(%rbp,%rax,1)
lea    -0x180(%rbp),%rdi
lea    0xbaf(%rip),%rsi
lea    -0x344(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x33c(%rbp)
mov    -0x324(%rbp),%eax
sub    $0x5,%eax
sub    -0x328(%rbp),%eax
sub    -0x33c(%rbp),%eax
cltq
movsbl -0x140(%rbp,%rax,1),%eax
ff
cmp    $0x7a,%eax
je     14f7 <CheckPt_Latest+0x347>
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    14bb <CheckPt_Latest+0x30b>
mov    -0x33c(%rbp),%eax
mov    %eax,-0x32c(%rbp)
movl   $0x0,-0x33c(%rbp)
mov    -0x33c(%rbp),%eax
mov    -0x32c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1571 <CheckPt_Latest+0x3c1>
mov    -0x324(%rbp),%eax
mov    -0x328(%rbp),%ecx
add    $0x5,%ecx
add    -0x32c(%rbp),%ecx
sub    %ecx,%eax
mov    -0x33c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x140(%rbp,%rax,1),%cl
movslq -0x33c(%rbp),%rax
mov    %cl,-0x1e0(%rbp,%rax,1)
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    150d <CheckPt_Latest+0x35d>
mov    -0x32c(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1e0(%rbp,%rax,1)
lea    -0x1e0(%rbp),%rdi
lea    0xac3(%rip),%rsi
lea    -0x218(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x33c(%rbp)
mov    -0x324(%rbp),%eax
mov    -0x328(%rbp),%ecx
add    $0x5,%ecx
add    -0x32c(%rbp),%ecx
add    -0x33c(%rbp),%ecx
sub    %ecx,%eax
cltq
movsbl -0x140(%rbp,%rax,1),%eax
ff
cmp    $0x79,%eax
je     15ee <CheckPt_Latest+0x43e>
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    15aa <CheckPt_Latest+0x3fa>
mov    -0x33c(%rbp),%eax
mov    %eax,-0x330(%rbp)
movl   $0x0,-0x33c(%rbp)
mov    -0x33c(%rbp),%eax
mov    -0x330(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    166e <CheckPt_Latest+0x4be>
mov    -0x324(%rbp),%eax
mov    -0x328(%rbp),%ecx
add    $0x5,%ecx
add    -0x32c(%rbp),%ecx
add    -0x330(%rbp),%ecx
sub    %ecx,%eax
mov    -0x33c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x140(%rbp,%rax,1),%cl
movslq -0x33c(%rbp),%rax
mov    %cl,-0x1c0(%rbp,%rax,1)
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    1604 <CheckPt_Latest+0x454>
mov    -0x330(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1e0(%rbp,%rax,1)
lea    -0x1c0(%rbp),%rdi
lea    0x9c6(%rip),%rsi
lea    -0x210(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x33c(%rbp)
mov    -0x324(%rbp),%eax
mov    -0x328(%rbp),%ecx
add    $0x5,%ecx
add    -0x32c(%rbp),%ecx
add    -0x330(%rbp),%ecx
add    -0x33c(%rbp),%ecx
sub    %ecx,%eax
cltq
movsbl -0x140(%rbp,%rax,1),%eax
ff
cmp    $0x78,%eax
je     16f1 <CheckPt_Latest+0x541>
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    16a7 <CheckPt_Latest+0x4f7>
mov    -0x33c(%rbp),%eax
mov    %eax,-0x334(%rbp)
movl   $0x0,-0x33c(%rbp)
mov    -0x33c(%rbp),%eax
mov    -0x334(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    1777 <CheckPt_Latest+0x5c7>
mov    -0x324(%rbp),%eax
mov    -0x328(%rbp),%ecx
add    $0x5,%ecx
add    -0x32c(%rbp),%ecx
add    -0x330(%rbp),%ecx
add    -0x334(%rbp),%ecx
sub    %ecx,%eax
mov    -0x33c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x140(%rbp,%rax,1),%cl
movslq -0x33c(%rbp),%rax
mov    %cl,-0x1a0(%rbp,%rax,1)
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    1707 <CheckPt_Latest+0x557>
mov    -0x334(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1e0(%rbp,%rax,1)
lea    -0x1a0(%rbp),%rdi
lea    0x8bd(%rip),%rsi
lea    -0x208(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x33c(%rbp)
mov    -0x324(%rbp),%eax
mov    -0x328(%rbp),%ecx
add    $0x5,%ecx
add    -0x32c(%rbp),%ecx
add    -0x330(%rbp),%ecx
add    -0x334(%rbp),%ecx
add    -0x33c(%rbp),%ecx
sub    %ecx,%eax
cltq
movsbl -0x140(%rbp,%rax,1),%eax
ff
cmp    $0x54,%eax
je     1800 <CheckPt_Latest+0x650>
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    17b0 <CheckPt_Latest+0x600>
mov    -0x33c(%rbp),%eax
mov    %eax,-0x338(%rbp)
movl   $0x0,-0x33c(%rbp)
mov    -0x33c(%rbp),%eax
mov    -0x338(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    188c <CheckPt_Latest+0x6dc>
mov    -0x324(%rbp),%eax
mov    -0x328(%rbp),%ecx
add    $0x5,%ecx
add    -0x32c(%rbp),%ecx
add    -0x330(%rbp),%ecx
add    -0x334(%rbp),%ecx
add    -0x338(%rbp),%ecx
sub    %ecx,%eax
mov    -0x33c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x140(%rbp,%rax,1),%cl
movslq -0x33c(%rbp),%rax
mov    %cl,-0x200(%rbp,%rax,1)
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    1816 <CheckPt_Latest+0x666>
mov    -0x338(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1e0(%rbp,%rax,1)
lea    -0x200(%rbp),%rdi
lea    0x7a8(%rip),%rsi
lea    -0x220(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
mov    -0x344(%rbp),%eax
cmp    -0x348(%rbp),%eax
jle    195a <CheckPt_Latest+0x7aa>
movsd  -0x220(%rbp),%xmm0
ff
ucomisd -0x38(%rbp),%xmm0
jne    195a <CheckPt_Latest+0x7aa>
jp     195a <CheckPt_Latest+0x7aa>
movsd  -0x208(%rbp),%xmm0
ff
ucomisd -0x20(%rbp),%xmm0
jne    195a <CheckPt_Latest+0x7aa>
jp     195a <CheckPt_Latest+0x7aa>
movsd  -0x210(%rbp),%xmm0
ff
ucomisd -0x28(%rbp),%xmm0
jne    195a <CheckPt_Latest+0x7aa>
jp     195a <CheckPt_Latest+0x7aa>
movsd  -0x218(%rbp),%xmm0
ff
ucomisd -0x30(%rbp),%xmm0
jne    195a <CheckPt_Latest+0x7aa>
jp     195a <CheckPt_Latest+0x7aa>
movl   $0x1,-0x340(%rbp)
mov    -0x344(%rbp),%eax
mov    %eax,-0x348(%rbp)
lea    -0x320(%rbp),%rdi
lea    -0x140(%rbp),%rsi
call   1040 <strcpy@plt>
jmp    195f <CheckPt_Latest+0x7af>
jmp    1964 <CheckPt_Latest+0x7b4>
jmp    1304 <CheckPt_Latest+0x154>
mov    -0x350(%rbp),%rdi
call   1090 <closedir@plt>
jmp    1994 <CheckPt_Latest+0x7e4>
lea    0x6d8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1a21 <CheckPt_Latest+0x871>
cmpl   $0x1,-0x340(%rbp)
jne    1a1a <CheckPt_Latest+0x86a>
lea    -0x320(%rbp),%rsi
lea    0x6d0(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x324(%rbp),%eax
jge    19f6 <CheckPt_Latest+0x846>
mov    -0x324(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0x6bb(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0x6d5(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1a21 <CheckPt_Latest+0x871>
mov    -0x10(%rbp),%rdi
lea    -0x320(%rbp),%rsi
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
call   1030 <strncpy@plt>
mov    -0x348(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1a21 <CheckPt_Latest+0x871>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x360,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CheckPt_Latest>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x398,%rsp
mov    %esi,%ebx
test   %esi,%esi
js     11ed <CheckPt_Latest+0x2d>
xorpd  %xmm4,%xmm4
ucomisd %xmm3,%xmm4
jbe    1202 <CheckPt_Latest+0x42>
lea    0xed1(%rip),%rdi
jmp    12ca <CheckPt_Latest+0x10a>
lea    0xe0c(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    12cf <CheckPt_Latest+0x10f>
mov    %rdi,%rbp
movsd  %xmm0,0x110(%rsp)
movsd  %xmm1,0x108(%rsp)
movsd  %xmm2,0xf8(%rsp)
movsd  %xmm3,0x118(%rsp)
xorpd  %xmm0,%xmm0
movupd %xmm0,0x27e(%rsp)
movapd %xmm0,0x270(%rsp)
movupd %xmm0,0x25e(%rsp)
movapd %xmm0,0x250(%rsp)
movupd %xmm0,0x4e(%rsp)
movapd %xmm0,0x40(%rsp)
movupd %xmm0,0x23e(%rsp)
movapd %xmm0,0x230(%rsp)
movb   $0x0,0x130(%rsp)
movb   $0x0,(%rdi)
movq   $0x0,0xa8(%rsp)
movq   $0x0,0xa0(%rsp)
movq   $0x0,0x98(%rsp)
movq   $0x0,0x90(%rsp)
lea    0xd7a(%rip),%rdi
lea    0x128(%rsp),%rsi
call   10b0 <stat@plt>
test   %rax,%rax
je     12e8 <CheckPt_Latest+0x128>
lea    0xdac(%rip),%rdi
call   1050 <puts@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0x398,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rbp,0xe8(%rsp)
mov    %ebx,0x84(%rsp)
lea    0xd2d(%rip),%rdi
call   1060 <opendir@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     12d4 <CheckPt_Latest+0x114>
mov    %rax,%r12
movl   $0x0,0x34(%rsp)
mov    %rax,%rdi
call   10d0 <readdir@plt>
test   %rax,%rax
je     1ef4 <CheckPt_Latest+0xd34>
lea    0x12c(%rsp),%r15
lea    0x130(%rsp),%rbp
lea    0xd0(%rsp),%r13
movl   $0x0,0x14(%rsp)
movl   $0x0,0x30(%rsp)
mov    %r12,0x60(%rsp)
jmp    1374 <CheckPt_Latest+0x1b4>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rbp
mov    %r12,%rdi
call   10d0 <readdir@plt>
test   %rax,%rax
je     1e9f <CheckPt_Latest+0xcdf>
mov    (%rax),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
call   1070 <strlen@plt>
mov    %eax,%ebx
cmp    $0x5,%eax
mov    %rbx,0x8(%rsp)
jl     1363 <CheckPt_Latest+0x1a3>
mov    %rbp,%r14
mov    %ebx,%ebp
mov    0x4(%r15,%rbp,1),%al
mov    %al,0xd4(%rsp)
mov    (%r15,%rbp,1),%eax
mov    %eax,0xd0(%rsp)
movb   $0x0,0xd4(%rsp)
mov    %r13,%rdi
lea    0xd13(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1360 <CheckPt_Latest+0x1a0>
mov    %rbp,0x20(%rsp)
lea    -0x5(%rbx),%r9d
mov    $0xffffffff,%edx
mov    $0x5,%esi
mov    $0x3,%r15d
movabs $0x400000000,%rbx
xor    %r12d,%r12d
movabs $0x100000000,%r8
nopl   0x0(%rax,%rax,1)
mov    %r12,%r14
mov    %edx,%r11d
mov    %rbx,%rcx
mov    %esi,%eax
mov    %r9d,%edi
sub    %r14d,%edi
movslq %edi,%rbp
add    $0x1,%r12
lea    0x1(%r11),%edx
add    %r8,%rbx
lea    0x1(%rax),%esi
add    $0x1,%r15d
cmpb   $0x52,0x130(%rsp,%rbp,1)
52
jne    1400 <CheckPt_Latest+0x240>
mov    %rcx,0x70(%rsp)
mov    %rax,0x100(%rsp)
lea    -0x1(%r14),%r8d
cmp    $0x2,%r14d
jb     1579 <CheckPt_Latest+0x3b9>
cmp    $0x2,%r8d
mov    $0x1,%esi
cmovge %r8d,%esi
cmp    $0x8,%esi
jae    1afe <CheckPt_Latest+0x93e>
xor    %r9d,%r9d
mov    %r9,%rcx
not    %rcx
add    %rsi,%rcx
test   $0x3,%sil
je     14c0 <CheckPt_Latest+0x300>
mov    0x8(%rsp),%rdx
sub    %r14d,%edx
add    %r9d,%edx
add    $0xfffffffc,%edx
cmp    $0x2,%r11d
mov    $0x1,%esi
cmovge %r11d,%esi
and    $0x3,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq %edx,%rdx
movzbl 0x130(%rsp,%rdx,1),%ebx
mov    %bl,0xb0(%rsp,%r9,1)
add    $0x1,%r9
add    $0x1,%edx
add    $0xffffffffffffffff,%rsi
jne    14a0 <CheckPt_Latest+0x2e0>
cmp    $0x3,%rcx
jb     1579 <CheckPt_Latest+0x3b9>
cmp    $0x2,%r11d
mov    $0x1,%eax
cmovl  %eax,%r11d
mov    %r14,%rdx
not    %rdx
mov    0x20(%rsp),%rax
lea    (%rdx,%rax,1),%rsi
mov    0x8(%rsp),%rax
lea    -0x1(%rax),%edi
add    %rdx,%rdi
lea    -0x2(%rax),%ebx
add    %rdx,%rbx
lea    -0x3(%rax),%ecx
add    %rdx,%rcx
lea    0xb3(%rsp),%rdx
cs nopw 0x0(%rax,%rax,1)
nop
lea    (%r9,%rcx,1),%ebp
movslq %ebp,%rbp
movzbl 0x130(%rsp,%rbp,1),%eax
mov    %al,-0x3(%rdx,%r9,1)
lea    (%rbx,%r9,1),%eax
cltq
movzbl 0x130(%rsp,%rax,1),%eax
mov    %al,-0x2(%rdx,%r9,1)
lea    (%rdi,%r9,1),%eax
cltq
movzbl 0x130(%rsp,%rax,1),%eax
mov    %al,-0x1(%rdx,%r9,1)
lea    (%rsi,%r9,1),%eax
cltq
movzbl 0x130(%rsp,%rax,1),%eax
mov    %al,(%rdx,%r9,1)
add    $0xfffffffffffffffc,%r11
add    $0x4,%rsi
add    $0x4,%rdx
add    $0x4,%rdi
add    $0x4,%rbx
add    $0x4,%rcx
cmp    %r11,%r9
jne    1510 <CheckPt_Latest+0x350>
mov    %r15,0xf0(%rsp)
movslq %r8d,%rax
movb   $0x0,0xb0(%rsp,%rax,1)
lea    0xb0(%rsp),%rdi
lea    0xa9b(%rip),%rsi
lea    0x34(%rsp),%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
mov    0x8(%rsp),%rbp
lea    -0x3(%rbp),%ecx
lea    -0x1(%rbp),%edi
lea    -0x2(%rbp),%esi
lea    -0x4(%rbp),%edx
mov    %edx,%eax
mov    %r12,0x88(%rsp)
sub    %r12d,%eax
cltq
add    %rsp,%rax
add    $0x130,%rax
mov    %rax,0x120(%rsp)
sub    %r14d,%edx
mov    %rcx,0x68(%rsp)
sub    %r14d,%ecx
mov    %rcx,0x78(%rsp)
mov    %rsi,%rcx
sub    %r14,%rsi
add    $0xfffffffffffffffe,%rsi
mov    %rsi,0x38(%rsp)
mov    %rdi,%rsi
sub    %r14,%rdi
add    $0xfffffffffffffffe,%rdi
mov    %rdi,0x28(%rsp)
mov    0x20(%rsp),%rdi
mov    %rdi,%rax
sub    %r14,%rax
add    $0xfffffffffffffffe,%rax
mov    %rax,0x18(%rsp)
lea    0x1(%rbp),%r12d
sub    %r14,%r12
add    $0xfffffffffffffffe,%r12
mov    $0xfffffffe,%r9d
mov    %rdi,%r14
xor    %eax,%eax
mov    0x70(%rsp),%rdi
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rax,%rbp
mov    %edx,%ebx
mov    0x78(%rsp),%r15
mov    0x38(%rsp),%r10
mov    0x28(%rsp),%r8
mov    0x18(%rsp),%r11
mov    %r12,%r13
movabs $0x100000000,%rax
add    %rax,%rdi
lea    -0x1(%rbp),%rax
add    $0x1,%r9d
addq   $0xffffffffffffffff,0x68(%rsp)
add    $0xffffffffffffffff,%r14
add    $0xffffffffffffffff,%rsi
add    $0xffffffffffffffff,%rcx
lea    -0x1(%rbx),%edx
mov    %edx,0x70(%rsp)
lea    -0x1(%r15),%edx
mov    %rdx,0x78(%rsp)
lea    -0x1(%r10),%rdx
mov    %rdx,0x38(%rsp)
lea    -0x1(%r8),%rdx
mov    %rdx,0x28(%rsp)
lea    -0x1(%r11),%rdx
mov    %rdx,0x18(%rsp)
add    $0xffffffffffffffff,%r12
mov    0x120(%rsp),%rdx
cmpb   $0x7a,(%rdx,%rbp,1)
mov    0x70(%rsp),%edx
jne    1640 <CheckPt_Latest+0x480>
mov    %rbx,0x28(%rsp)
mov    %r15,0x38(%rsp)
mov    %eax,%ecx
not    %ecx
mov    $0xfffffffffffffffe,%rbx
sub    %rax,%rbx
cmp    $0x2,%ecx
movabs $0xffffffff00000000,%r12
ff ff ff
mov    0x8(%rsp),%rcx
mov    %rax,%r14
jb     17fd <CheckPt_Latest+0x63d>
mov    %r11,%rdi
cmp    $0x2,%ebx
mov    $0x1,%r11d
cmovge %ebx,%r11d
cmp    $0x8,%r11d
jae    1b30 <CheckPt_Latest+0x970>
xor    %r9d,%r9d
mov    %r9,%rax
not    %rax
add    %r11,%rax
test   $0x3,%r11b
je     176d <CheckPt_Latest+0x5ad>
mov    0x28(%rsp),%rsi
add    %r9d,%esi
mov    %ebp,%ecx
not    %ecx
cmp    $0x2,%ecx
mov    $0x1,%edx
cmovl  %edx,%ecx
and    $0x3,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq %esi,%rsi
movzbl 0x130(%rsp,%rsi,1),%edx
mov    %dl,0x40(%rsp,%r9,1)
add    $0x1,%r9
add    $0x1,%esi
add    $0xffffffffffffffff,%rcx
jne    1750 <CheckPt_Latest+0x590>
cmp    $0x3,%rax
jb     17fd <CheckPt_Latest+0x63d>
mov    %ebp,%eax
not    %eax
cmp    $0x2,%eax
mov    $0x1,%ecx
cmovl  %ecx,%eax
lea    0x43(%rsp),%rdx
nopl   0x0(%rax,%rax,1)
lea    (%r9,%r10,1),%ecx
movslq %ecx,%rcx
movzbl 0x130(%rsp,%rcx,1),%ecx
mov    %cl,-0x3(%rdx,%r9,1)
lea    (%r8,%r9,1),%ecx
movslq %ecx,%rcx
movzbl 0x130(%rsp,%rcx,1),%ecx
mov    %cl,-0x2(%rdx,%r9,1)
lea    (%rdi,%r9,1),%ecx
movslq %ecx,%rcx
movzbl 0x130(%rsp,%rcx,1),%ecx
mov    %cl,-0x1(%rdx,%r9,1)
lea    0x0(%r13,%r9,1),%ecx
movslq %ecx,%rcx
movzbl 0x130(%rsp,%rcx,1),%ecx
mov    %cl,(%rdx,%r9,1)
add    $0x4,%r10
add    $0x4,%r8
add    $0x4,%rdi
add    $0x4,%r13
add    $0xfffffffffffffffc,%rax
add    $0x4,%rdx
cmp    %rax,%r9
jne    1790 <CheckPt_Latest+0x5d0>
mov    %r14,%r13
movslq %ebx,%rax
movb   $0x0,0x40(%rsp,%rax,1)
lea    0x40(%rsp),%rdi
lea    0x825(%rip),%rsi
lea    0x98(%rsp),%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
mov    0x100(%rsp),%rax
sub    %ebp,%eax
movslq %eax,%rbp
mov    0x20(%rsp),%rax
add    %rsp,%rax
add    $0x130,%rax
sub    %rbp,%rax
shl    $0x20,%rbp
add    %r12,%rbp
xor    %ecx,%ecx
movabs $0xfffffffe00000000,%rbx
ff ff ff
movabs $0x100000000,%rdx
mov    0x38(%rsp),%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %esi,%r14d
add    %rdx,%rbx
add    %rdx,%rbp
cmpb   $0x79,(%rax,%rcx,1)
lea    -0x1(%rcx),%rcx
lea    -0x1(%r14),%esi
jne    1870 <CheckPt_Latest+0x6b0>
mov    %ecx,%eax
not    %eax
cmp    $0x3,%eax
jb     18dc <CheckPt_Latest+0x71c>
mov    $0xfffffffd,%edx
sub    %ecx,%edx
mov    0x20(%rsp),%rax
shl    $0x20,%rax
mov    0xf0(%rsp),%rcx
sub    %r13d,%ecx
shl    $0x20,%rcx
sub    %rcx,%rax
sub    %rbx,%rax
sar    $0x20,%rax
lea    (%rsp,%rax,1),%rsi
add    $0x130,%rsi
cmp    $0x2,%edx
mov    $0x1,%eax
cmovl  %eax,%edx
lea    0x250(%rsp),%rdi
call   10c0 <memcpy@plt>
sar    $0x20,%rbx
movb   $0x0,0x40(%rsp,%rbx,1)
lea    0x250(%rsp),%rdi
lea    0x745(%rip),%rsi
lea    0xa0(%rsp),%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
sar    $0x20,%rbp
xor    %ecx,%ecx
mov    0x20(%rsp),%rdx
xchg   %ax,%ax
mov    %rcx,%rbx
add    %rbp,%rcx
mov    %rdx,%rax
sub    %rcx,%rax
lea    0x1(%rbx),%rcx
cmpb   $0x78,0x130(%rsp,%rax,1)
78
jne    1910 <CheckPt_Latest+0x750>
cmp    $0x3,%ebx
jb     196a <CheckPt_Latest+0x7aa>
lea    -0x2(%rbx),%edx
shl    $0x20,%rax
movabs $0x100000000,%rcx
add    %rcx,%rax
sar    $0x20,%rax
lea    (%rsp,%rax,1),%rsi
add    $0x130,%rsi
cmp    $0x2,%edx
mov    $0x1,%eax
cmovl  %eax,%edx
lea    0x270(%rsp),%rdi
call   10c0 <memcpy@plt>
mov    %rbx,%rax
shl    $0x20,%rax
add    %r12,%rax
sar    $0x20,%rax
movb   $0x0,0x40(%rsp,%rax,1)
xor    %ebp,%ebp
lea    0x270(%rsp),%rdi
lea    0x6ab(%rip),%rsi
lea    0xa8(%rsp),%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
sub    %ebx,%r14d
movabs $0xfffffffe00000000,%rbx
ff ff ff
movabs $0x100000000,%rcx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    -0x2(%r14),%eax
cltq
add    %rcx,%rbx
add    $0xffffffff,%ebp
add    $0xffffffff,%r14d
cmpb   $0x54,0x130(%rsp,%rax,1)
54
jne    19c0 <CheckPt_Latest+0x800>
mov    %ebp,%eax
not    %eax
cmp    $0x3,%eax
lea    0xd0(%rsp),%r13
jb     1a18 <CheckPt_Latest+0x858>
mov    $0xfffffffd,%edx
sub    %ebp,%edx
movslq %r14d,%rax
lea    (%rsp,%rax,1),%rsi
add    $0x130,%rsi
cmp    $0x2,%edx
mov    $0x1,%eax
cmovl  %eax,%edx
lea    0x230(%rsp),%rdi
call   10c0 <memcpy@plt>
sar    $0x20,%rbx
movb   $0x0,0x40(%rsp,%rbx,1)
lea    0x230(%rsp),%rdi
lea    0x609(%rip),%rsi
lea    0x90(%rsp),%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
mov    0x34(%rsp),%r14d
cmp    0x14(%rsp),%r14d
jle    1b84 <CheckPt_Latest+0x9c4>
movsd  0x90(%rsp),%xmm0
ucomisd 0x118(%rsp),%xmm0
jne    1b84 <CheckPt_Latest+0x9c4>
jp     1b84 <CheckPt_Latest+0x9c4>
movsd  0xa8(%rsp),%xmm0
ucomisd 0x110(%rsp),%xmm0
mov    0x60(%rsp),%r12
lea    0x12c(%rsp),%r15
jne    1b91 <CheckPt_Latest+0x9d1>
jp     1b91 <CheckPt_Latest+0x9d1>
movsd  0xa0(%rsp),%xmm0
ucomisd 0x108(%rsp),%xmm0
jne    1b91 <CheckPt_Latest+0x9d1>
jp     1b91 <CheckPt_Latest+0x9d1>
movsd  0x98(%rsp),%xmm0
ucomisd 0xf8(%rsp),%xmm0
lea    0x130(%rsp),%rbp
jne    1363 <CheckPt_Latest+0x1a3>
jp     1363 <CheckPt_Latest+0x1a3>
lea    0x290(%rsp),%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
movl   $0x1,0x30(%rsp)
mov    %r14d,0x14(%rsp)
jmp    1363 <CheckPt_Latest+0x1a3>
lea    -0x1(%rsi),%rcx
lea    0x1(%rdi),%edx
lea    (%rdi,%rcx,1),%ebp
add    $0x1,%ebp
cmp    %edx,%ebp
jl     1461 <CheckPt_Latest+0x2a1>
shr    $0x20,%rcx
mov    $0x0,%r9d
jne    1464 <CheckPt_Latest+0x2a4>
cmp    $0x20,%esi
jae    1b9e <CheckPt_Latest+0x9de>
xor    %r9d,%r9d
jmp    1d48 <CheckPt_Latest+0xb88>
mov    0x88(%rsp),%rax
sub    %eax,%ecx
cmp    $0x2,%r9d
mov    $0x1,%edx
cmovl  %edx,%r9d
add    %r14d,%ecx
add    $0xfffffffe,%ecx
add    0x68(%rsp),%r9d
sub    %eax,%r9d
cmp    %ecx,%r9d
jl     1715 <CheckPt_Latest+0x555>
lea    -0x1(%r11),%rcx
shr    $0x20,%rcx
mov    $0x0,%r9d
jne    1718 <CheckPt_Latest+0x558>
cmp    $0x20,%r11d
jae    1c4d <CheckPt_Latest+0xa8d>
xor    %r9d,%r9d
jmp    1e19 <CheckPt_Latest+0xc59>
mov    0x60(%rsp),%r12
lea    0x12c(%rsp),%r15
lea    0x130(%rsp),%rbp
jmp    1363 <CheckPt_Latest+0x1a3>
mov    %esi,%r9d
and    $0x7fffffe0,%r9d
lea    -0x20(%r9),%rcx
mov    %rcx,%r10
shr    $0x5,%r10
add    $0x1,%r10
test   %rcx,%rcx
je     1d01 <CheckPt_Latest+0xb41>
mov    0x8(%rsp),%rcx
sub    %r14d,%ecx
add    $0x1c,%ecx
cmp    $0x2,%r11d
mov    $0x1,%edx
cmovge %r11d,%edx
and    $0x7fffffe0,%edx
add    $0xffffffffffffffe0,%rdx
shr    $0x5,%rdx
add    $0x1,%rdx
and    $0xfffffffffffffffe,%rdx
xor    %ebx,%ebx
lea    -0x20(%rcx),%ebp
movslq %ebp,%rbp
movups 0x130(%rsp,%rbp,1),%xmm0
movups 0x140(%rsp,%rbp,1),%xmm1
movaps %xmm0,0xb0(%rsp,%rbx,1)
movaps %xmm1,0xc0(%rsp,%rbx,1)
movslq %ecx,%rcx
movupd 0x130(%rsp,%rcx,1),%xmm0
movups 0x140(%rsp,%rcx,1),%xmm1
movapd %xmm0,0xd0(%rsp,%rbx,1)
movaps %xmm1,0xe0(%rsp,%rbx,1)
add    $0x40,%rbx
add    $0x40,%ecx
add    $0xfffffffffffffffe,%rdx
jne    1bf0 <CheckPt_Latest+0xa30>
jmp    1d03 <CheckPt_Latest+0xb43>
mov    %r14,0x18(%rsp)
mov    %r11d,%r9d
and    $0x7fffffe0,%r9d
lea    -0x20(%r9),%rcx
mov    %rcx,%rax
shr    $0x5,%rax
add    $0x1,%rax
test   %rcx,%rcx
je     1dc9 <CheckPt_Latest+0xc09>
mov    %ebp,%r14d
not    %r14d
cmp    $0x2,%r14d
mov    $0x1,%ecx
cmovl  %ecx,%r14d
and    $0x7fffffe0,%r14d
add    $0xffffffffffffffe0,%r14
shr    $0x5,%r14
add    $0x1,%r14
and    $0xfffffffffffffffe,%r14
mov    0x28(%rsp),%rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nop
movslq %edx,%rdx
movups 0x130(%rsp,%rdx,1),%xmm0
movups 0x140(%rsp,%rdx,1),%xmm1
movaps %xmm0,0x40(%rsp,%rsi,1)
movaps %xmm1,0x50(%rsp,%rsi,1)
lea    0x20(%rdx),%ecx
movslq %ecx,%rcx
movupd 0x130(%rsp,%rcx,1),%xmm0
movups 0x140(%rsp,%rcx,1),%xmm1
movapd %xmm0,0x60(%rsp,%rsi,1)
movaps %xmm1,0x70(%rsp,%rsi,1)
add    $0x40,%rsi
add    $0x40,%edx
add    $0xfffffffffffffffe,%r14
jne    1cb0 <CheckPt_Latest+0xaf0>
jmp    1dcb <CheckPt_Latest+0xc0b>
xor    %ebx,%ebx
test   $0x1,%r10b
je     1d35 <CheckPt_Latest+0xb75>
mov    %ebx,%ecx
or     $0x1,%ecx
add    %ecx,%edi
movslq %edi,%rcx
movupd 0x130(%rsp,%rcx,1),%xmm0
movups 0x140(%rsp,%rcx,1),%xmm1
movapd %xmm0,0xb0(%rsp,%rbx,1)
movaps %xmm1,0xc0(%rsp,%rbx,1)
cmp    %rsi,%r9
je     1579 <CheckPt_Latest+0x3b9>
test   $0x18,%sil
je     1464 <CheckPt_Latest+0x2a4>
lea    -0x1(%r14),%r10d
cmp    $0x2,%r10d
mov    $0x1,%eax
cmovl  %eax,%r10d
mov    %r9,%rcx
mov    %r10d,%r9d
and    $0x7ffffff8,%r9d
mov    0x8(%rsp),%rdx
sub    %r12d,%edx
add    %ecx,%edx
add    $0xfffffffd,%edx
cmp    $0x2,%r11d
mov    $0x1,%edi
cmovge %r11d,%edi
lea    (%rsp,%rcx,1),%rbx
add    $0xb0,%rbx
and    $0x7ffffff8,%edi
sub    %rcx,%rdi
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
lea    (%rdx,%rcx,1),%ebp
movslq %ebp,%rbp
mov    0x130(%rsp,%rbp,1),%rbp
mov    %rbp,(%rbx,%rcx,1)
add    $0x8,%rcx
cmp    %rcx,%rdi
jne    1da0 <CheckPt_Latest+0xbe0>
cmp    %r10,%r9
jne    1464 <CheckPt_Latest+0x2a4>
jmp    1579 <CheckPt_Latest+0x3b9>
xor    %esi,%esi
test   $0x1,%al
je     1e01 <CheckPt_Latest+0xc41>
mov    %esi,%ecx
or     $0x1,%ecx
sub    0x88(%rsp),%ecx
mov    0x68(%rsp),%rax
add    %ecx,%eax
movslq %eax,%rcx
movupd 0x130(%rsp,%rcx,1),%xmm0
movups 0x140(%rsp,%rcx,1),%xmm1
movapd %xmm0,0x40(%rsp,%rsi,1)
movaps %xmm1,0x50(%rsp,%rsi,1)
cmp    %r11,%r9
mov    0x18(%rsp),%r14
je     17fd <CheckPt_Latest+0x63d>
test   $0x18,%r11b
je     1718 <CheckPt_Latest+0x558>
mov    %rbx,0x18(%rsp)
mov    %r9,%rbx
mov    $0xfffffffe,%eax
sub    %r14d,%eax
cmp    $0x2,%eax
mov    $0x1,%ecx
cmovl  %ecx,%eax
mov    %eax,%r9d
and    $0x7ffffff8,%r9d
mov    0x78(%rsp),%r15
add    %ebx,%r15d
mov    %ebp,%edx
not    %edx
cmp    $0x2,%edx
cmovl  %ecx,%edx
lea    (%rsp,%rbx,1),%rsi
add    $0x40,%rsi
and    $0x7ffffff8,%edx
sub    %rbx,%rdx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    (%r15,%rbx,1),%ecx
movslq %ecx,%rcx
mov    0x130(%rsp,%rcx,1),%rcx
mov    %rcx,(%rsi,%rbx,1)
add    $0x8,%rbx
cmp    %rbx,%rdx
jne    1e70 <CheckPt_Latest+0xcb0>
cmp    %rax,%r9
mov    0x18(%rsp),%rbx
jne    1718 <CheckPt_Latest+0x558>
jmp    17fd <CheckPt_Latest+0x63d>
mov    %r12,%rdi
call   1090 <closedir@plt>
xor    %ebp,%ebp
cmpl   $0x1,0x30(%rsp)
jne    12d4 <CheckPt_Latest+0x114>
lea    0x182(%rip),%rdi
lea    0x290(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x84(%rsp),%edx
mov    0x8(%rsp),%rsi
cmp    %edx,%esi
jle    1f01 <CheckPt_Latest+0xd41>
lea    0x16d(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x1ac(%rip),%rdi
jmp    12ca <CheckPt_Latest+0x10a>
mov    %r12,%rdi
call   1090 <closedir@plt>
jmp    12d4 <CheckPt_Latest+0x114>
add    $0xffffffff,%edx
lea    0x290(%rsp),%rsi
mov    0xe8(%rsp),%rdi
call   1030 <strncpy@plt>
mov    0x14(%rsp),%ebp
jmp    12d4 <CheckPt_Latest+0x114>

LLVM IR (-O0):
%struct.stat = type { i32 }
%struct.dirent = type { i8* }
@.str = [43 x i8] c"ERROR Buffer size less than 0 Buffer: %d!\0A\00"
@.str.1 = [28 x i8] c"ERROR Temperature negative\0A\00"
@.str.2 = [11 x i8] c"CHECKPOINT\00"
@.str.3 = [6 x i8] c"ckpt\00\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%lf\00"
@.str.6 = [38 x i8] c"ERROR CHECKPOINT directory not found\0A\00"
@.str.7 = [17 x i8] c"FileNameKeep %s\0A\00"
@.str.8 = [40 x i8] c"Value of len %d value of buffersize %d\0A\00"
@.str.9 = [31 x i8] c"ERROR Buffersize is to small!\0A\00"
define i32 @CheckPt_Latest(i8* %0, i32 %1, double %2, double %3, double %4, double %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca %struct.stat
%15 = alloca [256 x i8]
%16 = alloca [20 x i8]
%17 = alloca [30 x i8]
%18 = alloca [30 x i8]
%19 = alloca [30 x i8]
%20 = alloca [30 x i8]
%21 = alloca [30 x i8]
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca [256 x i8]
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32*
%38 = alloca %struct.dirent*
store i8* %0, i8** %8
store i32 %1, i32* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
%39 = load i32, i32* %9
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %6
%42 = load i32, i32* %9
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %42)
store i32 -1, i32* %7
br label %417
44: ; preds = %6
%45 = load double, double* %13
%46 = fcmp olt double %45, 0.000000e+00
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %7
br label %417
49: ; preds = %44
%50 = bitcast [30 x i8]* %18 to i8*
%51 = bitcast [30 x i8]* %19 to i8*
%52 = bitcast [30 x i8]* %20 to i8*
%53 = bitcast [30 x i8]* %21 to i8*
%54 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
store i8 0, i8* %54
%55 = load i8*, i8** %8
%56 = getelementptr inbounds i8, i8* %55, i64 0
store i8 0, i8* %56
store i32 0, i32* %34
store double 0.000000e+00, double* %22
store double 0.000000e+00, double* %23
store double 0.000000e+00, double* %24
store double 0.000000e+00, double* %25
%57 = call i64 @stat(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), %struct.stat* %14)
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %393
59: ; preds = %49
%60 = call i32* @opendir(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
store i32* %60, i32** %37
%61 = load i32*, i32** %37
%62 = icmp ne i32* %61, null
br i1 %62, label %63, label %392
63: ; preds = %59
store i32 0, i32* %35
store i32 0, i32* %36
br label %64
64: ; preds = %388, %63
%65 = load i32*, i32** %37
%66 = call %struct.dirent* @readdir(i32* %65)
store %struct.dirent* %66, %struct.dirent** %38
%67 = icmp ne %struct.dirent* %66, null
br i1 %67, label %68, label %389
68: ; preds = %64
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%70 = load %struct.dirent*, %struct.dirent** %38
%71 = getelementptr inbounds %struct.dirent, %struct.dirent* %70, i32 0, i32 0
%72 = load i8*, i8** %71
%73 = call i32 @strcpy(i8* %69, i8* %72)
%74 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%75 = call i32 @strlen(i8* %74)
store i32 %75, i32* %27
%76 = load i32, i32* %27
%77 = icmp sgt i32 %76, 4
br i1 %77, label %78, label %388
78: ; preds = %68
store i32 4, i32* %33
br label %79
79: ; preds = %93, %78
%80 = load i32, i32* %33
%81 = icmp sge i32 %80, 0
br i1 %81, label %82, label %96
82: ; preds = %79
%83 = load i32, i32* %27
%84 = load i32, i32* %33
%85 = sub nsw i32 %83, %84
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = load i32, i32* %33
%90 = sub nsw i32 4, %89
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [20 x i8], [20 x i8]* %16, i64 0, i64 %91
store i8 %88, i8* %92
br label %93
93: ; preds = %82
%94 = load i32, i32* %33
%95 = add nsw i32 %94, -1
store i32 %95, i32* %33
br label %79
96: ; preds = %79
%97 = getelementptr inbounds [20 x i8], [20 x i8]* %16, i64 0, i64 4
store i8 0, i8* %97
%98 = getelementptr inbounds [20 x i8], [20 x i8]* %16, i64 0, i64 0
%99 = call i64 @strcmp(i8* %98, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %387
101: ; preds = %96
store i32 0, i32* %33
br label %102
102: ; preds = %112, %101
%103 = load i32, i32* %27
%104 = sub nsw i32 %103, 5
%105 = load i32, i32* %33
%106 = sub nsw i32 %104, %105
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %107
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = icmp ne i32 %110, 82
br i1 %111, label %112, label %115
112: ; preds = %102
%113 = load i32, i32* %33
%114 = add nsw i32 %113, 1
store i32 %114, i32* %33
br label %102
115: ; preds = %102
%116 = load i32, i32* %33
store i32 %116, i32* %28
store i32 0, i32* %33
br label %117
117: ; preds = %136, %115
%118 = load i32, i32* %33
%119 = load i32, i32* %28
%120 = sub nsw i32 %119, 1
%121 = icmp slt i32 %118, %120
br i1 %121, label %122, label %139
122: ; preds = %117
%123 = load i32, i32* %27
%124 = load i32, i32* %28
%125 = add nsw i32 5, %124
%126 = sub nsw i32 %123, %125
%127 = load i32, i32* %33
%128 = add nsw i32 %127, 1
%129 = add nsw i32 %126, %128
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %130
%132 = load i8, i8* %131
%133 = load i32, i32* %33
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [30 x i8], [30 x i8]* %17, i64 0, i64 %134
store i8 %132, i8* %135
br label %136
136: ; preds = %122
%137 = load i32, i32* %33
%138 = add nsw i32 %137, 1
store i32 %138, i32* %33
br label %117
139: ; preds = %117
%140 = load i32, i32* %28
%141 = sub nsw i32 %140, 1
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [30 x i8], [30 x i8]* %17, i64 0, i64 %142
store i8 0, i8* %143
%144 = getelementptr inbounds [30 x i8], [30 x i8]* %17, i64 0, i64 0
%145 = call i32 (i8*, i8*, ...) @sscanf(i8* %144, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %35)
store i32 0, i32* %33
br label %146
146: ; preds = %158, %139
%147 = load i32, i32* %27
%148 = sub nsw i32 %147, 5
%149 = load i32, i32* %28
%150 = sub nsw i32 %148, %149
%151 = load i32, i32* %33
%152 = sub nsw i32 %150, %151
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %153
%155 = load i8, i8* %154
%156 = sext i8 %155 to i32
%157 = icmp ne i32 %156, 122
br i1 %157, label %158, label %161
158: ; preds = %146
%159 = load i32, i32* %33
%160 = add nsw i32 %159, 1
store i32 %160, i32* %33
br label %146
161: ; preds = %146
%162 = load i32, i32* %33
store i32 %162, i32* %29
store i32 0, i32* %33
br label %163
163: ; preds = %184, %161
%164 = load i32, i32* %33
%165 = load i32, i32* %29
%166 = sub nsw i32 %165, 1
%167 = icmp slt i32 %164, %166
br i1 %167, label %168, label %187
168: ; preds = %163
%169 = load i32, i32* %27
%170 = load i32, i32* %28
%171 = add nsw i32 5, %170
%172 = load i32, i32* %29
%173 = add nsw i32 %171, %172
%174 = sub nsw i32 %169, %173
%175 = load i32, i32* %33
%176 = add nsw i32 %175, 1
%177 = add nsw i32 %174, %176
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %178
%180 = load i8, i8* %179
%181 = load i32, i32* %33
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [30 x i8], [30 x i8]* %20, i64 0, i64 %182
store i8 %180, i8* %183
br label %184
184: ; preds = %168
%185 = load i32, i32* %33
%186 = add nsw i32 %185, 1
store i32 %186, i32* %33
br label %163
187: ; preds = %163
%188 = load i32, i32* %29
%189 = sub nsw i32 %188, 1
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [30 x i8], [30 x i8]* %20, i64 0, i64 %190
store i8 0, i8* %191
%192 = getelementptr inbounds [30 x i8], [30 x i8]* %20, i64 0, i64 0
%193 = call i32 (i8*, i8*, ...) @sscanf(i8* %192, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %24)
store i32 0, i32* %33
br label %194
194: ; preds = %208, %187
%195 = load i32, i32* %27
%196 = load i32, i32* %28
%197 = add nsw i32 5, %196
%198 = load i32, i32* %29
%199 = add nsw i32 %197, %198
%200 = load i32, i32* %33
%201 = add nsw i32 %199, %200
%202 = sub nsw i32 %195, %201
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %203
%205 = load i8, i8* %204
%206 = sext i8 %205 to i32
%207 = icmp ne i32 %206, 121
br i1 %207, label %208, label %211
208: ; preds = %194
%209 = load i32, i32* %33
%210 = add nsw i32 %209, 1
store i32 %210, i32* %33
br label %194
211: ; preds = %194
%212 = load i32, i32* %33
store i32 %212, i32* %30
store i32 0, i32* %33
br label %213
213: ; preds = %236, %211
%214 = load i32, i32* %33
%215 = load i32, i32* %30
%216 = sub nsw i32 %215, 2
%217 = icmp slt i32 %214, %216
br i1 %217, label %218, label %239
218: ; preds = %213
%219 = load i32, i32* %27
%220 = load i32, i32* %28
%221 = add nsw i32 5, %220
%222 = load i32, i32* %29
%223 = add nsw i32 %221, %222
%224 = load i32, i32* %30
%225 = add nsw i32 %223, %224
%226 = sub nsw i32 %219, %225
%227 = load i32, i32* %33
%228 = add nsw i32 %227, 1
%229 = add nsw i32 %226, %228
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %230
%232 = load i8, i8* %231
%233 = load i32, i32* %33
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [30 x i8], [30 x i8]* %19, i64 0, i64 %234
store i8 %232, i8* %235
br label %236
236: ; preds = %218
%237 = load i32, i32* %33
%238 = add nsw i32 %237, 1
store i32 %238, i32* %33
br label %213
239: ; preds = %213
%240 = load i32, i32* %30
%241 = sub nsw i32 %240, 1
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds [30 x i8], [30 x i8]* %20, i64 0, i64 %242
store i8 0, i8* %243
%244 = getelementptr inbounds [30 x i8], [30 x i8]* %19, i64 0, i64 0
%245 = call i32 (i8*, i8*, ...) @sscanf(i8* %244, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %23)
store i32 0, i32* %33
br label %246
246: ; preds = %262, %239
%247 = load i32, i32* %27
%248 = load i32, i32* %28
%249 = add nsw i32 5, %248
%250 = load i32, i32* %29
%251 = add nsw i32 %249, %250
%252 = load i32, i32* %30
%253 = add nsw i32 %251, %252
%254 = load i32, i32* %33
%255 = add nsw i32 %253, %254
%256 = sub nsw i32 %247, %255
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %257
%259 = load i8, i8* %258
%260 = sext i8 %259 to i32
%261 = icmp ne i32 %260, 120
br i1 %261, label %262, label %265
262: ; preds = %246
%263 = load i32, i32* %33
%264 = add nsw i32 %263, 1
store i32 %264, i32* %33
br label %246
265: ; preds = %246
%266 = load i32, i32* %33
store i32 %266, i32* %31
store i32 0, i32* %33
br label %267
267: ; preds = %292, %265
%268 = load i32, i32* %33
%269 = load i32, i32* %31
%270 = sub nsw i32 %269, 2
%271 = icmp slt i32 %268, %270
br i1 %271, label %272, label %295
272: ; preds = %267
%273 = load i32, i32* %27
%274 = load i32, i32* %28
%275 = add nsw i32 5, %274
%276 = load i32, i32* %29
%277 = add nsw i32 %275, %276
%278 = load i32, i32* %30
%279 = add nsw i32 %277, %278
%280 = load i32, i32* %31
%281 = add nsw i32 %279, %280
%282 = sub nsw i32 %273, %281
%283 = load i32, i32* %33
%284 = add nsw i32 %283, 1
%285 = add nsw i32 %282, %284
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %286
%288 = load i8, i8* %287
%289 = load i32, i32* %33
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds [30 x i8], [30 x i8]* %18, i64 0, i64 %290
store i8 %288, i8* %291
br label %292
292: ; preds = %272
%293 = load i32, i32* %33
%294 = add nsw i32 %293, 1
store i32 %294, i32* %33
br label %267
295: ; preds = %267
%296 = load i32, i32* %31
%297 = sub nsw i32 %296, 1
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds [30 x i8], [30 x i8]* %20, i64 0, i64 %298
store i8 0, i8* %299
%300 = getelementptr inbounds [30 x i8], [30 x i8]* %18, i64 0, i64 0
%301 = call i32 (i8*, i8*, ...) @sscanf(i8* %300, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %22)
store i32 0, i32* %33
br label %302
302: ; preds = %320, %295
%303 = load i32, i32* %27
%304 = load i32, i32* %28
%305 = add nsw i32 5, %304
%306 = load i32, i32* %29
%307 = add nsw i32 %305, %306
%308 = load i32, i32* %30
%309 = add nsw i32 %307, %308
%310 = load i32, i32* %31
%311 = add nsw i32 %309, %310
%312 = load i32, i32* %33
%313 = add nsw i32 %311, %312
%314 = sub nsw i32 %303, %313
%315 = sext i32 %314 to i64
%316 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %315
%317 = load i8, i8* %316
%318 = sext i8 %317 to i32
%319 = icmp ne i32 %318, 84
br i1 %319, label %320, label %323
320: ; preds = %302
%321 = load i32, i32* %33
%322 = add nsw i32 %321, 1
store i32 %322, i32* %33
br label %302
323: ; preds = %302
%324 = load i32, i32* %33
store i32 %324, i32* %32
store i32 0, i32* %33
br label %325
325: ; preds = %352, %323
%326 = load i32, i32* %33
%327 = load i32, i32* %32
%328 = sub nsw i32 %327, 2
%329 = icmp slt i32 %326, %328
br i1 %329, label %330, label %355
330: ; preds = %325
%331 = load i32, i32* %27
%332 = load i32, i32* %28
%333 = add nsw i32 5, %332
%334 = load i32, i32* %29
%335 = add nsw i32 %333, %334
%336 = load i32, i32* %30
%337 = add nsw i32 %335, %336
%338 = load i32, i32* %31
%339 = add nsw i32 %337, %338
%340 = load i32, i32* %32
%341 = add nsw i32 %339, %340
%342 = sub nsw i32 %331, %341
%343 = load i32, i32* %33
%344 = add nsw i32 %343, 1
%345 = add nsw i32 %342, %344
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %346
%348 = load i8, i8* %347
%349 = load i32, i32* %33
%350 = sext i32 %349 to i64
%351 = getelementptr inbounds [30 x i8], [30 x i8]* %21, i64 0, i64 %350
store i8 %348, i8* %351
br label %352
352: ; preds = %330
%353 = load i32, i32* %33
%354 = add nsw i32 %353, 1
store i32 %354, i32* %33
br label %325
355: ; preds = %325
%356 = load i32, i32* %32
%357 = sub nsw i32 %356, 1
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds [30 x i8], [30 x i8]* %20, i64 0, i64 %358
store i8 0, i8* %359
%360 = getelementptr inbounds [30 x i8], [30 x i8]* %21, i64 0, i64 0
%361 = call i32 (i8*, i8*, ...) @sscanf(i8* %360, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %25)
%362 = load i32, i32* %35
%363 = load i32, i32* %36
%364 = icmp sgt i32 %362, %363
br i1 %364, label %365, label %386
365: ; preds = %355
%366 = load double, double* %25
%367 = load double, double* %13
%368 = fcmp oeq double %366, %367
br i1 %368, label %369, label %386
369: ; preds = %365
%370 = load double, double* %22
%371 = load double, double* %10
%372 = fcmp oeq double %370, %371
br i1 %372, label %373, label %386
373: ; preds = %369
%374 = load double, double* %23
%375 = load double, double* %11
%376 = fcmp oeq double %374, %375
br i1 %376, label %377, label %386
377: ; preds = %373
%378 = load double, double* %24
%379 = load double, double* %12
%380 = fcmp oeq double %378, %379
br i1 %380, label %381, label %386
381: ; preds = %377
store i32 1, i32* %34
%382 = load i32, i32* %35
store i32 %382, i32* %36
%383 = getelementptr inbounds [256 x i8], [256 x i8]* %26, i64 0, i64 0
%384 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%385 = call i32 @strcpy(i8* %383, i8* %384)
br label %386
386: ; preds = %381, %377, %373, %369, %365, %355
br label %387
387: ; preds = %386, %96
br label %388
388: ; preds = %387, %68
br label %64
389: ; preds = %64
%390 = load i32*, i32** %37
%391 = call i32 @closedir(i32* %390)
br label %392
392: ; preds = %389, %59
br label %395
393: ; preds = %49
%394 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
store i32 -1, i32* %7
br label %417
395: ; preds = %392
%396 = load i32, i32* %34
%397 = icmp eq i32 %396, 1
br i1 %397, label %398, label %416
398: ; preds = %395
%399 = getelementptr inbounds [256 x i8], [256 x i8]* %26, i64 0, i64 0
%400 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %399)
%401 = load i32, i32* %9
%402 = load i32, i32* %27
%403 = icmp slt i32 %401, %402
br i1 %403, label %404, label %409
404: ; preds = %398
%405 = load i32, i32* %27
%406 = load i32, i32* %9
%407 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i32 %405, i32 %406)
%408 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
store i32 -1, i32* %7
br label %417
409: ; preds = %398
%410 = load i8*, i8** %8
%411 = getelementptr inbounds [256 x i8], [256 x i8]* %26, i64 0, i64 0
%412 = load i32, i32* %9
%413 = sub nsw i32 %412, 1
%414 = call i32 @strncpy(i8* %410, i8* %411, i32 %413)
%415 = load i32, i32* %36
store i32 %415, i32* %7
br label %417
416: ; preds = %395
store i32 0, i32* %7
br label %417
417: ; preds = %416, %409, %404, %393, %47, %41
%418 = load i32, i32* %7
ret i32 %418
}

LLVM IR (-O2):
%struct.stat = type { i32 }
%struct.dirent = type { i8* }
@.str = [43 x i8] c"ERROR Buffer size less than 0 Buffer: %d!\0A\00"
@.str.2 = [11 x i8] c"CHECKPOINT\00"
@.str.3 = [6 x i8] c"ckpt\00\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%lf\00"
@.str.7 = [17 x i8] c"FileNameKeep %s\0A\00"
@.str.8 = [40 x i8] c"Value of len %d value of buffersize %d\0A\00"
@str = [37 x i8] c"ERROR CHECKPOINT directory not found\00"
@str.10 = [30 x i8] c"ERROR Buffersize is to small!\00"
@str.11 = [27 x i8] c"ERROR Temperature negative\00"
define i32 @CheckPt_Latest(i8* %0, i32 %1, double %2, double %3, double %4, double %5) {
%7 = alloca %struct.stat
%8 = alloca [256 x i8]
%9 = alloca [20 x i8]
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%11 = alloca [30 x i8]
%12 = alloca [30 x i8]
%13 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%14 = alloca [30 x i8]
%15 = getelementptr inbounds [30 x i8], [30 x i8]* %14, i64 0, i64 0
%16 = alloca [30 x i8]
%17 = alloca [30 x i8]
%18 = getelementptr inbounds [30 x i8], [30 x i8]* %17, i64 0, i64 0
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca [256 x i8]
%24 = alloca i32
%25 = icmp slt i32 %1, 0
br i1 %25, label %26, label %28
26: ; preds = %6
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %1)
br label %540
28: ; preds = %6
%29 = fcmp olt double %5, 0.000000e+00
br i1 %29, label %30, label %32
30: ; preds = %28
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.11, i64 0, i64 0))
br label %540
32: ; preds = %28
%33 = bitcast %struct.stat* %7 to i8*
%34 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%35 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%36 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 0
%37 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%38 = getelementptr inbounds [30 x i8], [30 x i8]* %14, i64 0, i64 0
%39 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 0
%40 = getelementptr inbounds [30 x i8], [30 x i8]* %17, i64 0, i64 0
%41 = bitcast double* %19 to i8*
%42 = bitcast double* %20 to i8*
%43 = bitcast double* %21 to i8*
%44 = bitcast double* %22 to i8*
%45 = getelementptr inbounds [256 x i8], [256 x i8]* %23, i64 0, i64 0
%46 = bitcast i32* %24 to i8*
store i8 0, i8* %34
store i8 0, i8* %0
store double 0.000000e+00, double* %19
store double 0.000000e+00, double* %20
store double 0.000000e+00, double* %21
store double 0.000000e+00, double* %22
%47 = call i64 @stat(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), %struct.stat* %7)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %527
49: ; preds = %32
%50 = call i32* @opendir(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%51 = icmp eq i32* %50, null
br i1 %51, label %538, label %52
52: ; preds = %49
store i32 0, i32* %24
%53 = call %struct.dirent* @readdir(i32* %50)
%54 = icmp eq %struct.dirent* %53, null
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @closedir(i32* %50)
br label %538
57: ; preds = %52
%58 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 4
%59 = getelementptr [256 x i8], [256 x i8]* %8, i64 0, i64 -4
br label %60
60: ; preds = %57, %519
%61 = phi %struct.dirent* [ %53, %57 ], [ %522, %519 ]
%62 = phi i32 [ 0, %57 ], [ %521, %519 ]
%63 = phi i32 [ 0, %57 ], [ %520, %519 ]
%64 = getelementptr inbounds %struct.dirent, %struct.dirent* %61, i64 0, i32 0
%65 = load i8*, i8** %64
%66 = call i32 @strcpy(i8* %34, i8* %65)
%67 = call i32 @strlen(i8* %34)
%68 = icmp sgt i32 %67, 4
br i1 %68, label %69, label %519
69: ; preds = %60
%70 = zext i32 %67 to i64
%71 = getelementptr i8, i8* %59, i64 %70
store i8 0, i8* %58
%72 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %519
74: ; preds = %69
%75 = add nsw i32 %67, -5
br label %76
76: ; preds = %76, %74
%77 = phi i64 [ %84, %76 ], [ 0, %74 ]
%78 = trunc i64 %77 to i32
%79 = sub i32 %75, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %80
%82 = load i8, i8* %81
%83 = icmp eq i8 %82, 82
%84 = add nuw i64 %77, 1
br i1 %83, label %85, label %76
85: ; preds = %76
%86 = trunc i64 %77 to i32
%87 = add i32 %86, -1
%88 = icmp ugt i32 %86, 1
br i1 %88, label %89, label %244
89: ; preds = %85
%90 = call i32 @llvm.smax.i32(i32 %87, i32 1)
%91 = zext i32 %90 to i64
%92 = icmp ult i32 %90, 8
br i1 %92, label %192, label %93
93: ; preds = %89
%94 = add nsw i64 %91, -1
%95 = add i32 %79, 1
%96 = trunc i64 %94 to i32
%97 = add i32 %95, %96
%98 = icmp slt i32 %97, %95
%99 = icmp ugt i64 %94, 4294967295
%100 = or i1 %98, %99
br i1 %100, label %192, label %101
101: ; preds = %93
%102 = icmp ult i32 %90, 32
br i1 %102, label %170, label %103
103: ; preds = %101
%104 = and i64 %91, 2147483616
%105 = add nsw i64 %104, -32
%106 = lshr exact i64 %105, 5
%107 = add nuw nsw i64 %106, 1
%108 = and i64 %107, 1
%109 = icmp eq i64 %105, 0
br i1 %109, label %147, label %110
110: ; preds = %103
%111 = and i64 %107, 1152921504606846974
br label %112
112: ; preds = %112, %110
%113 = phi i64 [ 0, %110 ], [ %144, %112 ]
%114 = phi i64 [ 0, %110 ], [ %145, %112 ]
%115 = trunc i64 %113 to i32
%116 = or i32 %115, 1
%117 = add i32 %79, %116
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %118
%120 = bitcast i8* %119 to <16 x i8>*
%121 = load <16 x i8>, <16 x i8>* %120
%122 = getelementptr inbounds i8, i8* %119, i64 16
%123 = bitcast i8* %122 to <16 x i8>*
%124 = load <16 x i8>, <16 x i8>* %123
%125 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %113
%126 = bitcast i8* %125 to <16 x i8>*
store <16 x i8> %121, <16 x i8>* %126
%127 = getelementptr inbounds i8, i8* %125, i64 16
%128 = bitcast i8* %127 to <16 x i8>*
store <16 x i8> %124, <16 x i8>* %128
%129 = or i64 %113, 32
%130 = trunc i64 %129 to i32
%131 = or i32 %130, 1
%132 = add i32 %79, %131
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %133
%135 = bitcast i8* %134 to <16 x i8>*
%136 = load <16 x i8>, <16 x i8>* %135
%137 = getelementptr inbounds i8, i8* %134, i64 16
%138 = bitcast i8* %137 to <16 x i8>*
%139 = load <16 x i8>, <16 x i8>* %138
%140 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %129
%141 = bitcast i8* %140 to <16 x i8>*
store <16 x i8> %136, <16 x i8>* %141
%142 = getelementptr inbounds i8, i8* %140, i64 16
%143 = bitcast i8* %142 to <16 x i8>*
store <16 x i8> %139, <16 x i8>* %143
%144 = add nuw i64 %113, 64
%145 = add i64 %114, 2
%146 = icmp eq i64 %145, %111
br i1 %146, label %147, label %112
147: ; preds = %112, %103
%148 = phi i64 [ 0, %103 ], [ %144, %112 ]
%149 = icmp eq i64 %108, 0
br i1 %149, label %165, label %150
150: ; preds = %147
%151 = trunc i64 %148 to i32
%152 = or i32 %151, 1
%153 = add i32 %79, %152
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %154
%156 = bitcast i8* %155 to <16 x i8>*
%157 = load <16 x i8>, <16 x i8>* %156
%158 = getelementptr inbounds i8, i8* %155, i64 16
%159 = bitcast i8* %158 to <16 x i8>*
%160 = load <16 x i8>, <16 x i8>* %159
%161 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %148
%162 = bitcast i8* %161 to <16 x i8>*
store <16 x i8> %157, <16 x i8>* %162
%163 = getelementptr inbounds i8, i8* %161, i64 16
%164 = bitcast i8* %163 to <16 x i8>*
store <16 x i8> %160, <16 x i8>* %164
br label %165
165: ; preds = %147, %150
%166 = icmp eq i64 %104, %91
br i1 %166, label %244, label %167
167: ; preds = %165
%168 = and i64 %91, 24
%169 = icmp eq i64 %168, 0
br i1 %169, label %192, label %170
170: ; preds = %101, %167
%171 = phi i64 [ %104, %167 ], [ 0, %101 ]
%172 = trunc i64 %77 to i32
%173 = add i32 %172, -1
%174 = call i32 @llvm.smax.i32(i32 %173, i32 1)
%175 = zext i32 %174 to i64
%176 = and i64 %175, 2147483640
br label %177
177: ; preds = %177, %170
%178 = phi i64 [ %171, %170 ], [ %188, %177 ]
%179 = trunc i64 %178 to i32
%180 = or i32 %179, 1
%181 = add i32 %79, %180
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %182
%184 = bitcast i8* %183 to <8 x i8>*
%185 = load <8 x i8>, <8 x i8>* %184
%186 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %178
%187 = bitcast i8* %186 to <8 x i8>*
store <8 x i8> %185, <8 x i8>* %187
%188 = add nuw i64 %178, 8
%189 = icmp eq i64 %188, %176
br i1 %189, label %190, label %177
190: ; preds = %177
%191 = icmp eq i64 %176, %175
br i1 %191, label %244, label %192
192: ; preds = %93, %89, %167, %190
%193 = phi i64 [ 0, %89 ], [ 0, %93 ], [ %104, %167 ], [ %176, %190 ]
%194 = xor i64 %193, -1
%195 = add nsw i64 %194, %91
%196 = and i64 %91, 3
%197 = icmp eq i64 %196, 0
br i1 %197, label %210, label %198
198: ; preds = %192, %198
%199 = phi i64 [ %201, %198 ], [ %193, %192 ]
%200 = phi i64 [ %208, %198 ], [ 0, %192 ]
%201 = add nuw nsw i64 %199, 1
%202 = trunc i64 %201 to i32
%203 = add i32 %79, %202
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %204
%206 = load i8, i8* %205
%207 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %199
store i8 %206, i8* %207
%208 = add i64 %200, 1
%209 = icmp eq i64 %208, %196
br i1 %209, label %210, label %198
210: ; preds = %198, %192
%211 = phi i64 [ %193, %192 ], [ %201, %198 ]
%212 = icmp ult i64 %195, 3
br i1 %212, label %244, label %213
213: ; preds = %210, %213
%214 = phi i64 [ %236, %213 ], [ %211, %210 ]
%215 = add nuw nsw i64 %214, 1
%216 = trunc i64 %215 to i32
%217 = add i32 %79, %216
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %218
%220 = load i8, i8* %219
%221 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %214
store i8 %220, i8* %221
%222 = add nuw nsw i64 %214, 2
%223 = trunc i64 %222 to i32
%224 = add i32 %79, %223
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %225
%227 = load i8, i8* %226
%228 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %215
store i8 %227, i8* %228
%229 = add nuw nsw i64 %214, 3
%230 = trunc i64 %229 to i32
%231 = add i32 %79, %230
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %232
%234 = load i8, i8* %233
%235 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %222
store i8 %234, i8* %235
%236 = add nuw nsw i64 %214, 4
%237 = trunc i64 %236 to i32
%238 = add i32 %79, %237
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %239
%241 = load i8, i8* %240
%242 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %229
store i8 %241, i8* %242
%243 = icmp eq i64 %236, %91
br i1 %243, label %244, label %213
244: ; preds = %210, %213, %165, %190, %85
%245 = sext i32 %87 to i64
%246 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %245
store i8 0, i8* %246
%247 = call i32 (i8*, i8*, ...) @sscanf(i8* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %24)
br label %248
248: ; preds = %248, %244
%249 = phi i64 [ %254, %248 ], [ 0, %244 ]
%250 = sub nsw i64 %80, %249
%251 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %250
%252 = load i8, i8* %251
%253 = icmp eq i8 %252, 122
%254 = add nuw i64 %249, 1
br i1 %253, label %255, label %248
255: ; preds = %248
%256 = trunc i64 %249 to i32
%257 = add i32 %256, -1
%258 = icmp ugt i32 %256, 1
br i1 %258, label %259, label %417
259: ; preds = %255
%260 = add nuw i32 %86, %256
%261 = sub i32 %75, %260
%262 = call i32 @llvm.smax.i32(i32 %257, i32 1)
%263 = zext i32 %262 to i64
%264 = icmp ult i32 %262, 8
br i1 %264, label %365, label %265
265: ; preds = %259
%266 = add nsw i64 %263, -1
%267 = add i32 %67, -4
%268 = sub i32 %267, %260
%269 = trunc i64 %266 to i32
%270 = add i32 %268, %269
%271 = icmp slt i32 %270, %268
%272 = icmp ugt i64 %266, 4294967295
%273 = or i1 %271, %272
br i1 %273, label %365, label %274
274: ; preds = %265
%275 = icmp ult i32 %262, 32
br i1 %275, label %343, label %276
276: ; preds = %274
%277 = and i64 %263, 2147483616
%278 = add nsw i64 %277, -32
%279 = lshr exact i64 %278, 5
%280 = add nuw nsw i64 %279, 1
%281 = and i64 %280, 1
%282 = icmp eq i64 %278, 0
br i1 %282, label %320, label %283
283: ; preds = %276
%284 = and i64 %280, 1152921504606846974
br label %285
285: ; preds = %285, %283
%286 = phi i64 [ 0, %283 ], [ %317, %285 ]
%287 = phi i64 [ 0, %283 ], [ %318, %285 ]
%288 = trunc i64 %286 to i32
%289 = or i32 %288, 1
%290 = add i32 %261, %289
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %291
%293 = bitcast i8* %292 to <16 x i8>*
%294 = load <16 x i8>, <16 x i8>* %293
%295 = getelementptr inbounds i8, i8* %292, i64 16
%296 = bitcast i8* %295 to <16 x i8>*
%297 = load <16 x i8>, <16 x i8>* %296
%298 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %286
%299 = bitcast i8* %298 to <16 x i8>*
store <16 x i8> %294, <16 x i8>* %299
%300 = getelementptr inbounds i8, i8* %298, i64 16
%301 = bitcast i8* %300 to <16 x i8>*
store <16 x i8> %297, <16 x i8>* %301
%302 = or i64 %286, 32
%303 = trunc i64 %302 to i32
%304 = or i32 %303, 1
%305 = add i32 %261, %304
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %306
%308 = bitcast i8* %307 to <16 x i8>*
%309 = load <16 x i8>, <16 x i8>* %308
%310 = getelementptr inbounds i8, i8* %307, i64 16
%311 = bitcast i8* %310 to <16 x i8>*
%312 = load <16 x i8>, <16 x i8>* %311
%313 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %302
%314 = bitcast i8* %313 to <16 x i8>*
store <16 x i8> %309, <16 x i8>* %314
%315 = getelementptr inbounds i8, i8* %313, i64 16
%316 = bitcast i8* %315 to <16 x i8>*
store <16 x i8> %312, <16 x i8>* %316
%317 = add nuw i64 %286, 64
%318 = add i64 %287, 2
%319 = icmp eq i64 %318, %284
br i1 %319, label %320, label %285
320: ; preds = %285, %276
%321 = phi i64 [ 0, %276 ], [ %317, %285 ]
%322 = icmp eq i64 %281, 0
br i1 %322, label %338, label %323
323: ; preds = %320
%324 = trunc i64 %321 to i32
%325 = or i32 %324, 1
%326 = add i32 %261, %325
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %327
%329 = bitcast i8* %328 to <16 x i8>*
%330 = load <16 x i8>, <16 x i8>* %329
%331 = getelementptr inbounds i8, i8* %328, i64 16
%332 = bitcast i8* %331 to <16 x i8>*
%333 = load <16 x i8>, <16 x i8>* %332
%334 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %321
%335 = bitcast i8* %334 to <16 x i8>*
store <16 x i8> %330, <16 x i8>* %335
%336 = getelementptr inbounds i8, i8* %334, i64 16
%337 = bitcast i8* %336 to <16 x i8>*
store <16 x i8> %333, <16 x i8>* %337
br label %338
338: ; preds = %320, %323
%339 = icmp eq i64 %277, %263
br i1 %339, label %417, label %340
340: ; preds = %338
%341 = and i64 %263, 24
%342 = icmp eq i64 %341, 0
br i1 %342, label %365, label %343
343: ; preds = %274, %340
%344 = phi i64 [ %277, %340 ], [ 0, %274 ]
%345 = trunc i64 %249 to i32
%346 = add i32 %345, -1
%347 = call i32 @llvm.smax.i32(i32 %346, i32 1)
%348 = zext i32 %347 to i64
%349 = and i64 %348, 2147483640
br label %350
350: ; preds = %350, %343
%351 = phi i64 [ %344, %343 ], [ %361, %350 ]
%352 = trunc i64 %351 to i32
%353 = or i32 %352, 1
%354 = add i32 %261, %353
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %355
%357 = bitcast i8* %356 to <8 x i8>*
%358 = load <8 x i8>, <8 x i8>* %357
%359 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %351
%360 = bitcast i8* %359 to <8 x i8>*
store <8 x i8> %358, <8 x i8>* %360
%361 = add nuw i64 %351, 8
%362 = icmp eq i64 %361, %349
br i1 %362, label %363, label %350
363: ; preds = %350
%364 = icmp eq i64 %349, %348
br i1 %364, label %417, label %365
365: ; preds = %265, %259, %340, %363
%366 = phi i64 [ 0, %259 ], [ 0, %265 ], [ %277, %340 ], [ %349, %363 ]
%367 = xor i64 %366, -1
%368 = add nsw i64 %367, %263
%369 = and i64 %263, 3
%370 = icmp eq i64 %369, 0
br i1 %370, label %383, label %371
371: ; preds = %365, %371
%372 = phi i64 [ %374, %371 ], [ %366, %365 ]
%373 = phi i64 [ %381, %371 ], [ 0, %365 ]
%374 = add nuw nsw i64 %372, 1
%375 = trunc i64 %374 to i32
%376 = add i32 %261, %375
%377 = sext i32 %376 to i64
%378 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %377
%379 = load i8, i8* %378
%380 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %372
store i8 %379, i8* %380
%381 = add i64 %373, 1
%382 = icmp eq i64 %381, %369
br i1 %382, label %383, label %371
383: ; preds = %371, %365
%384 = phi i64 [ %366, %365 ], [ %374, %371 ]
%385 = icmp ult i64 %368, 3
br i1 %385, label %417, label %386
386: ; preds = %383, %386
%387 = phi i64 [ %409, %386 ], [ %384, %383 ]
%388 = add nuw nsw i64 %387, 1
%389 = trunc i64 %388 to i32
%390 = add i32 %261, %389
%391 = sext i32 %390 to i64
%392 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %391
%393 = load i8, i8* %392
%394 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %387
store i8 %393, i8* %394
%395 = add nuw nsw i64 %387, 2
%396 = trunc i64 %395 to i32
%397 = add i32 %261, %396
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %398
%400 = load i8, i8* %399
%401 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %388
store i8 %400, i8* %401
%402 = add nuw nsw i64 %387, 3
%403 = trunc i64 %402 to i32
%404 = add i32 %261, %403
%405 = sext i32 %404 to i64
%406 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %405
%407 = load i8, i8* %406
%408 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %395
store i8 %407, i8* %408
%409 = add nuw nsw i64 %387, 4
%410 = trunc i64 %409 to i32
%411 = add i32 %261, %410
%412 = sext i32 %411 to i64
%413 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %412
%414 = load i8, i8* %413
%415 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %402
store i8 %414, i8* %415
%416 = icmp eq i64 %409, %263
br i1 %416, label %417, label %386
417: ; preds = %383, %386, %338, %363, %255
%418 = sext i32 %257 to i64
%419 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %418
store i8 0, i8* %419
%420 = call i32 (i8*, i8*, ...) @sscanf(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %21)
%421 = add i64 %77, 5
%422 = add i64 %421, %249
%423 = shl i64 %422, 32
%424 = ashr exact i64 %423, 32
br label %425
425: ; preds = %425, %417
%426 = phi i64 [ %432, %425 ], [ 0, %417 ]
%427 = add nuw nsw i64 %424, %426
%428 = sub nsw i64 %70, %427
%429 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %428
%430 = load i8, i8* %429
%431 = icmp eq i8 %430, 121
%432 = add nuw i64 %426, 1
br i1 %431, label %433, label %425
433: ; preds = %425
%434 = trunc i64 %426 to i32
%435 = icmp ugt i32 %434, 2
br i1 %435, label %436, label %444
436: ; preds = %433
%437 = add i32 %434, -2
%438 = shl i64 %428, 32
%439 = add i64 %438, 4294967296
%440 = ashr exact i64 %439, 32
%441 = getelementptr [256 x i8], [256 x i8]* %8, i64 0, i64 %440
%442 = call i32 @llvm.smax.i32(i32 %437, i32 1)
%443 = zext i32 %442 to i64
br label %444
444: ; preds = %436, %433
%445 = shl i64 %426, 32
%446 = add i64 %445, -4294967296
%447 = ashr exact i64 %446, 32
%448 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %447
store i8 0, i8* %448
%449 = call i32 (i8*, i8*, ...) @sscanf(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %20)
%450 = shl i64 %427, 32
%451 = ashr exact i64 %450, 32
br label %452
452: ; preds = %452, %444
%453 = phi i64 [ %459, %452 ], [ 0, %444 ]
%454 = add nuw nsw i64 %453, %451
%455 = sub nsw i64 %70, %454
%456 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %455
%457 = load i8, i8* %456
%458 = icmp eq i8 %457, 120
%459 = add nuw i64 %453, 1
br i1 %458, label %460, label %452
460: ; preds = %452
%461 = trunc i64 %453 to i32
%462 = icmp ugt i32 %461, 2
br i1 %462, label %463, label %471
463: ; preds = %460
%464 = add i32 %461, -2
%465 = shl i64 %455, 32
%466 = add i64 %465, 4294967296
%467 = ashr exact i64 %466, 32
%468 = getelementptr [256 x i8], [256 x i8]* %8, i64 0, i64 %467
%469 = call i32 @llvm.smax.i32(i32 %464, i32 1)
%470 = zext i32 %469 to i64
br label %471
471: ; preds = %463, %460
%472 = shl i64 %453, 32
%473 = add i64 %472, -4294967296
%474 = ashr exact i64 %473, 32
%475 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %474
store i8 0, i8* %475
%476 = call i32 (i8*, i8*, ...) @sscanf(i8* %37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %19)
br label %477
477: ; preds = %477, %471
%478 = phi i64 [ %486, %477 ], [ 0, %471 ]
%479 = add i64 %454, %478
%480 = trunc i64 %479 to i32
%481 = sub i32 %67, %480
%482 = sext i32 %481 to i64
%483 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %482
%484 = load i8, i8* %483
%485 = icmp eq i8 %484, 84
%486 = add nuw i64 %478, 1
br i1 %485, label %487, label %477
487: ; preds = %477
%488 = trunc i64 %478 to i32
%489 = icmp ugt i32 %488, 2
br i1 %489, label %490, label %497
490: ; preds = %487
%491 = add i32 %488, -2
%492 = add i32 %481, 1
%493 = sext i32 %492 to i64
%494 = getelementptr [256 x i8], [256 x i8]* %8, i64 0, i64 %493
%495 = call i32 @llvm.smax.i32(i32 %491, i32 1)
%496 = zext i32 %495 to i64
br label %497
497: ; preds = %490, %487
%498 = shl i64 %478, 32
%499 = add i64 %498, -4294967296
%500 = ashr exact i64 %499, 32
%501 = getelementptr inbounds [30 x i8], [30 x i8]* %16, i64 0, i64 %500
store i8 0, i8* %501
%502 = call i32 (i8*, i8*, ...) @sscanf(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %22)
%503 = load i32, i32* %24
%504 = icmp sgt i32 %503, %62
%505 = load double, double* %22
%506 = fcmp oeq double %505, %5
%507 = select i1 %504, i1 %506, i1 false
%508 = load double, double* %19
%509 = fcmp oeq double %508, %2
%510 = select i1 %507, i1 %509, i1 false
%511 = load double, double* %20
%512 = fcmp oeq double %511, %3
%513 = select i1 %510, i1 %512, i1 false
%514 = load double, double* %21
%515 = fcmp oeq double %514, %4
%516 = select i1 %513, i1 %515, i1 false
br i1 %516, label %517, label %519
517: ; preds = %497
%518 = call i32 @strcpy(i8* %45, i8* %34)
br label %519
519: ; preds = %69, %517, %497, %60
%520 = phi i32 [ 1, %517 ], [ %63, %497 ], [ %63, %69 ], [ %63, %60 ]
%521 = phi i32 [ %503, %517 ], [ %62, %497 ], [ %62, %69 ], [ %62, %60 ]
%522 = call %struct.dirent* @readdir(i32* %50)
%523 = icmp eq %struct.dirent* %522, null
br i1 %523, label %524, label %60
524: ; preds = %519
%525 = call i32 @closedir(i32* %50)
%526 = icmp eq i32 %520, 1
br i1 %526, label %529, label %538
527: ; preds = %32
%528 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
br label %538
529: ; preds = %524
%530 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %45)
%531 = icmp sgt i32 %67, %1
br i1 %531, label %532, label %535
532: ; preds = %529
%533 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i32 %67, i32 %1)
%534 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.10, i64 0, i64 0))
br label %538
535: ; preds = %529
%536 = add nsw i32 %1, -1
%537 = call i32 @strncpy(i8* %0, i8* %45, i32 %536)
br label %538
538: ; preds = %55, %49, %524, %535, %532, %527
%539 = phi i32 [ -1, %532 ], [ %521, %535 ], [ -1, %527 ], [ 0, %524 ], [ 0, %49 ], [ 0, %55 ]
br label %540
540: ; preds = %538, %30, %26
%541 = phi i32 [ -1, %26 ], [ -1, %30 ], [ %539, %538 ]
ret i32 %541
}