#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_CELIV(char *FileNameFull, int buffersize, 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 == 0 && ChVy == 0 && ChVz == 0) {
              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_CELIV>:
push   %rbp
mov    %rsp,%rbp
sub    $0x350,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    11ee <CheckPt_Latest_CELIV+0x3e>
mov    -0x14(%rbp),%esi
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1a18 <CheckPt_Latest_CELIV+0x868>
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    1216 <CheckPt_Latest_CELIV+0x66>
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1a18 <CheckPt_Latest_CELIV+0x868>
lea    -0x190(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1080 <memset@plt>
lea    -0x1b0(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1080 <memset@plt>
lea    -0x1d0(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1080 <memset@plt>
lea    -0x1f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1080 <memset@plt>
movb   $0x0,-0x130(%rbp)
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
movl   $0x0,-0x330(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x1f8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x200(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x208(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x210(%rbp)
ff
lea    0xd9a(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jne    1971 <CheckPt_Latest_CELIV+0x7c1>
lea    0xd80(%rip),%rdi
call   1050 <opendir@plt>
mov    %rax,-0x340(%rbp)
cmpq   $0x0,-0x340(%rbp)
je     196c <CheckPt_Latest_CELIV+0x7bc>
movl   $0x0,-0x334(%rbp)
movl   $0x0,-0x338(%rbp)
mov    -0x340(%rbp),%rdi
call   10c0 <readdir@plt>
mov    %rax,-0x348(%rbp)
cmp    $0x0,%rax
je     1960 <CheckPt_Latest_CELIV+0x7b0>
lea    -0x130(%rbp),%rdi
mov    -0x348(%rbp),%rax
mov    (%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x130(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x314(%rbp)
cmpl   $0x4,-0x314(%rbp)
jle    195b <CheckPt_Latest_CELIV+0x7ab>
movl   $0x4,-0x32c(%rbp)
cmpl   $0x0,-0x32c(%rbp)
jl     139b <CheckPt_Latest_CELIV+0x1eb>
mov    -0x314(%rbp),%eax
sub    -0x32c(%rbp),%eax
cltq
mov    -0x130(%rbp,%rax,1),%cl
mov    $0x4,%eax
sub    -0x32c(%rbp),%eax
cltq
mov    %cl,-0x150(%rbp,%rax,1)
mov    -0x32c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x32c(%rbp)
jmp    1351 <CheckPt_Latest_CELIV+0x1a1>
movb   $0x0,-0x14c(%rbp)
lea    -0x150(%rbp),%rdi
lea    0xd27(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1956 <CheckPt_Latest_CELIV+0x7a6>
movl   $0x0,-0x32c(%rbp)
mov    -0x314(%rbp),%eax
sub    $0x5,%eax
sub    -0x32c(%rbp),%eax
cltq
movsbl -0x130(%rbp,%rax,1),%eax
ff
cmp    $0x52,%eax
je     13ff <CheckPt_Latest_CELIV+0x24f>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    13c9 <CheckPt_Latest_CELIV+0x219>
mov    -0x32c(%rbp),%eax
mov    %eax,-0x318(%rbp)
movl   $0x0,-0x32c(%rbp)
mov    -0x32c(%rbp),%eax
mov    -0x318(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1473 <CheckPt_Latest_CELIV+0x2c3>
mov    -0x314(%rbp),%eax
mov    -0x318(%rbp),%ecx
add    $0x5,%ecx
sub    %ecx,%eax
mov    -0x32c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x130(%rbp,%rax,1),%cl
movslq -0x32c(%rbp),%rax
mov    %cl,-0x170(%rbp,%rax,1)
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    1415 <CheckPt_Latest_CELIV+0x265>
mov    -0x318(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x170(%rbp,%rax,1)
lea    -0x170(%rbp),%rdi
lea    0xbbe(%rip),%rsi
lea    -0x334(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x32c(%rbp)
mov    -0x314(%rbp),%eax
sub    $0x5,%eax
sub    -0x318(%rbp),%eax
sub    -0x32c(%rbp),%eax
cltq
movsbl -0x130(%rbp,%rax,1),%eax
ff
cmp    $0x7a,%eax
je     14e8 <CheckPt_Latest_CELIV+0x338>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    14ac <CheckPt_Latest_CELIV+0x2fc>
mov    -0x32c(%rbp),%eax
mov    %eax,-0x31c(%rbp)
movl   $0x0,-0x32c(%rbp)
mov    -0x32c(%rbp),%eax
mov    -0x31c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1562 <CheckPt_Latest_CELIV+0x3b2>
mov    -0x314(%rbp),%eax
mov    -0x318(%rbp),%ecx
add    $0x5,%ecx
add    -0x31c(%rbp),%ecx
sub    %ecx,%eax
mov    -0x32c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x130(%rbp,%rax,1),%cl
movslq -0x32c(%rbp),%rax
mov    %cl,-0x1d0(%rbp,%rax,1)
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    14fe <CheckPt_Latest_CELIV+0x34e>
mov    -0x31c(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1d0(%rbp,%rax,1)
lea    -0x1d0(%rbp),%rdi
lea    0xad2(%rip),%rsi
lea    -0x208(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x32c(%rbp)
mov    -0x314(%rbp),%eax
mov    -0x318(%rbp),%ecx
add    $0x5,%ecx
add    -0x31c(%rbp),%ecx
add    -0x32c(%rbp),%ecx
sub    %ecx,%eax
cltq
movsbl -0x130(%rbp,%rax,1),%eax
ff
cmp    $0x79,%eax
je     15df <CheckPt_Latest_CELIV+0x42f>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    159b <CheckPt_Latest_CELIV+0x3eb>
mov    -0x32c(%rbp),%eax
mov    %eax,-0x320(%rbp)
movl   $0x0,-0x32c(%rbp)
mov    -0x32c(%rbp),%eax
mov    -0x320(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    165f <CheckPt_Latest_CELIV+0x4af>
mov    -0x314(%rbp),%eax
mov    -0x318(%rbp),%ecx
add    $0x5,%ecx
add    -0x31c(%rbp),%ecx
add    -0x320(%rbp),%ecx
sub    %ecx,%eax
mov    -0x32c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x130(%rbp,%rax,1),%cl
movslq -0x32c(%rbp),%rax
mov    %cl,-0x1b0(%rbp,%rax,1)
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    15f5 <CheckPt_Latest_CELIV+0x445>
mov    -0x320(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1d0(%rbp,%rax,1)
lea    -0x1b0(%rbp),%rdi
lea    0x9d5(%rip),%rsi
lea    -0x200(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x32c(%rbp)
mov    -0x314(%rbp),%eax
mov    -0x318(%rbp),%ecx
add    $0x5,%ecx
add    -0x31c(%rbp),%ecx
add    -0x320(%rbp),%ecx
add    -0x32c(%rbp),%ecx
sub    %ecx,%eax
cltq
movsbl -0x130(%rbp,%rax,1),%eax
ff
cmp    $0x78,%eax
je     16e2 <CheckPt_Latest_CELIV+0x532>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    1698 <CheckPt_Latest_CELIV+0x4e8>
mov    -0x32c(%rbp),%eax
mov    %eax,-0x324(%rbp)
movl   $0x0,-0x32c(%rbp)
mov    -0x32c(%rbp),%eax
mov    -0x324(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    1768 <CheckPt_Latest_CELIV+0x5b8>
mov    -0x314(%rbp),%eax
mov    -0x318(%rbp),%ecx
add    $0x5,%ecx
add    -0x31c(%rbp),%ecx
add    -0x320(%rbp),%ecx
add    -0x324(%rbp),%ecx
sub    %ecx,%eax
mov    -0x32c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x130(%rbp,%rax,1),%cl
movslq -0x32c(%rbp),%rax
mov    %cl,-0x190(%rbp,%rax,1)
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    16f8 <CheckPt_Latest_CELIV+0x548>
mov    -0x324(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1d0(%rbp,%rax,1)
lea    -0x190(%rbp),%rdi
lea    0x8cc(%rip),%rsi
lea    -0x1f8(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x32c(%rbp)
mov    -0x314(%rbp),%eax
mov    -0x318(%rbp),%ecx
add    $0x5,%ecx
add    -0x31c(%rbp),%ecx
add    -0x320(%rbp),%ecx
add    -0x324(%rbp),%ecx
add    -0x32c(%rbp),%ecx
sub    %ecx,%eax
cltq
movsbl -0x130(%rbp,%rax,1),%eax
ff
cmp    $0x54,%eax
je     17f1 <CheckPt_Latest_CELIV+0x641>
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    17a1 <CheckPt_Latest_CELIV+0x5f1>
mov    -0x32c(%rbp),%eax
mov    %eax,-0x328(%rbp)
movl   $0x0,-0x32c(%rbp)
mov    -0x32c(%rbp),%eax
mov    -0x328(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    187d <CheckPt_Latest_CELIV+0x6cd>
mov    -0x314(%rbp),%eax
mov    -0x318(%rbp),%ecx
add    $0x5,%ecx
add    -0x31c(%rbp),%ecx
add    -0x320(%rbp),%ecx
add    -0x324(%rbp),%ecx
add    -0x328(%rbp),%ecx
sub    %ecx,%eax
mov    -0x32c(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
cltq
mov    -0x130(%rbp,%rax,1),%cl
movslq -0x32c(%rbp),%rax
mov    %cl,-0x1f0(%rbp,%rax,1)
mov    -0x32c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x32c(%rbp)
jmp    1807 <CheckPt_Latest_CELIV+0x657>
mov    -0x328(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x1d0(%rbp,%rax,1)
lea    -0x1f0(%rbp),%rdi
lea    0x7b7(%rip),%rsi
lea    -0x210(%rbp),%rdx
mov    $0x0,%al
call   10d0 <sscanf@plt>
mov    -0x334(%rbp),%eax
cmp    -0x338(%rbp),%eax
jle    1951 <CheckPt_Latest_CELIV+0x7a1>
movsd  -0x210(%rbp),%xmm0
ff
ucomisd -0x20(%rbp),%xmm0
jne    1951 <CheckPt_Latest_CELIV+0x7a1>
jp     1951 <CheckPt_Latest_CELIV+0x7a1>
movsd  -0x1f8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1951 <CheckPt_Latest_CELIV+0x7a1>
jp     1951 <CheckPt_Latest_CELIV+0x7a1>
movsd  -0x200(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1951 <CheckPt_Latest_CELIV+0x7a1>
jp     1951 <CheckPt_Latest_CELIV+0x7a1>
movsd  -0x208(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1951 <CheckPt_Latest_CELIV+0x7a1>
jp     1951 <CheckPt_Latest_CELIV+0x7a1>
movl   $0x1,-0x330(%rbp)
mov    -0x334(%rbp),%eax
mov    %eax,-0x338(%rbp)
lea    -0x310(%rbp),%rdi
lea    -0x130(%rbp),%rsi
call   1040 <strcpy@plt>
jmp    1956 <CheckPt_Latest_CELIV+0x7a6>
jmp    195b <CheckPt_Latest_CELIV+0x7ab>
jmp    12f5 <CheckPt_Latest_CELIV+0x145>
mov    -0x340(%rbp),%rdi
call   1090 <closedir@plt>
jmp    198b <CheckPt_Latest_CELIV+0x7db>
lea    0x6e1(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1a18 <CheckPt_Latest_CELIV+0x868>
cmpl   $0x1,-0x330(%rbp)
jne    1a11 <CheckPt_Latest_CELIV+0x861>
lea    -0x310(%rbp),%rsi
lea    0x6d9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x314(%rbp),%eax
jge    19ed <CheckPt_Latest_CELIV+0x83d>
mov    -0x314(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0x6c4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0x6de(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1a18 <CheckPt_Latest_CELIV+0x868>
mov    -0x10(%rbp),%rdi
lea    -0x310(%rbp),%rsi
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
call   1030 <strncpy@plt>
mov    -0x338(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1a18 <CheckPt_Latest_CELIV+0x868>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x350,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CheckPt_Latest_CELIV>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x388,%rsp
mov    %esi,%ebx
test   %esi,%esi
js     11ed <CheckPt_Latest_CELIV+0x2d>
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jbe    1202 <CheckPt_Latest_CELIV+0x42>
lea    0xed1(%rip),%rdi
jmp    12af <CheckPt_Latest_CELIV+0xef>
lea    0xe0c(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1080 <printf@plt>
jmp    12b4 <CheckPt_Latest_CELIV+0xf4>
mov    %rdi,%rbp
movsd  %xmm0,0x100(%rsp)
xorpd  %xmm0,%xmm0
movupd %xmm0,0x26e(%rsp)
movapd %xmm0,0x260(%rsp)
movupd %xmm0,0x24e(%rsp)
movapd %xmm0,0x240(%rsp)
movupd %xmm0,0x4e(%rsp)
movapd %xmm0,0x40(%rsp)
movupd %xmm0,0x22e(%rsp)
movapd %xmm0,0x220(%rsp)
movb   $0x0,0x120(%rsp)
movb   $0x0,(%rdi)
movq   $0x0,0xa8(%rsp)
movq   $0x0,0xa0(%rsp)
movq   $0x0,0x98(%rsp)
movq   $0x0,0x90(%rsp)
lea    0xd95(%rip),%rdi
lea    0x118(%rsp),%rsi
call   10b0 <stat@plt>
test   %rax,%rax
je     12cd <CheckPt_Latest_CELIV+0x10d>
lea    0xdc7(%rip),%rdi
call   1050 <puts@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0x388,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rbp,0xf0(%rsp)
mov    %ebx,0x84(%rsp)
lea    0xd48(%rip),%rdi
call   1060 <opendir@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     12b9 <CheckPt_Latest_CELIV+0xf9>
mov    %rax,%r12
movl   $0x0,0x34(%rsp)
mov    %rax,%rdi
call   10d0 <readdir@plt>
test   %rax,%rax
je     1ee4 <CheckPt_Latest_CELIV+0xd24>
lea    0x11c(%rsp),%r15
lea    0x120(%rsp),%rbp
lea    0xd0(%rsp),%r13
movl   $0x0,0x14(%rsp)
movl   $0x0,0x30(%rsp)
mov    %r12,0x60(%rsp)
jmp    1354 <CheckPt_Latest_CELIV+0x194>
nopw   0x0(%rax,%rax,1)
mov    %r14,%rbp
mov    %r12,%rdi
call   10d0 <readdir@plt>
test   %rax,%rax
je     1e8f <CheckPt_Latest_CELIV+0xccf>
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     1343 <CheckPt_Latest_CELIV+0x183>
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    0xd33(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1340 <CheckPt_Latest_CELIV+0x180>
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,0x120(%rsp,%rbp,1)
52
jne    13e0 <CheckPt_Latest_CELIV+0x220>
mov    %rcx,0x70(%rsp)
mov    %rax,0x108(%rsp)
lea    -0x1(%r14),%r8d
cmp    $0x2,%r14d
jb     1559 <CheckPt_Latest_CELIV+0x399>
cmp    $0x2,%r8d
mov    $0x1,%esi
cmovge %r8d,%esi
cmp    $0x8,%esi
jae    1aed <CheckPt_Latest_CELIV+0x92d>
xor    %r9d,%r9d
mov    %r9,%rcx
not    %rcx
add    %rsi,%rcx
test   $0x3,%sil
je     14a0 <CheckPt_Latest_CELIV+0x2e0>
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 0x120(%rsp,%rdx,1),%ebx
mov    %bl,0xb0(%rsp,%r9,1)
add    $0x1,%r9
add    $0x1,%edx
add    $0xffffffffffffffff,%rsi
jne    1480 <CheckPt_Latest_CELIV+0x2c0>
cmp    $0x3,%rcx
jb     1559 <CheckPt_Latest_CELIV+0x399>
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 0x120(%rsp,%rbp,1),%eax
mov    %al,-0x3(%rdx,%r9,1)
lea    (%rbx,%r9,1),%eax
cltq
movzbl 0x120(%rsp,%rax,1),%eax
mov    %al,-0x2(%rdx,%r9,1)
lea    (%rdi,%r9,1),%eax
cltq
movzbl 0x120(%rsp,%rax,1),%eax
mov    %al,-0x1(%rdx,%r9,1)
lea    (%rsi,%r9,1),%eax
cltq
movzbl 0x120(%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    14f0 <CheckPt_Latest_CELIV+0x330>
mov    %r15,0xf8(%rsp)
movslq %r8d,%rax
movb   $0x0,0xb0(%rsp,%rax,1)
lea    0xb0(%rsp),%rdi
lea    0xabb(%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    $0x120,%rax
mov    %rax,0x110(%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    0x110(%rsp),%rdx
cmpb   $0x7a,(%rdx,%rbp,1)
mov    0x70(%rsp),%edx
jne    1620 <CheckPt_Latest_CELIV+0x460>
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     17dd <CheckPt_Latest_CELIV+0x61d>
mov    %r11,%rdi
cmp    $0x2,%ebx
mov    $0x1,%r11d
cmovge %ebx,%r11d
cmp    $0x8,%r11d
jae    1b1f <CheckPt_Latest_CELIV+0x95f>
xor    %r9d,%r9d
mov    %r9,%rax
not    %rax
add    %r11,%rax
test   $0x3,%r11b
je     174d <CheckPt_Latest_CELIV+0x58d>
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 0x120(%rsp,%rsi,1),%edx
mov    %dl,0x40(%rsp,%r9,1)
add    $0x1,%r9
add    $0x1,%esi
add    $0xffffffffffffffff,%rcx
jne    1730 <CheckPt_Latest_CELIV+0x570>
cmp    $0x3,%rax
jb     17dd <CheckPt_Latest_CELIV+0x61d>
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 0x120(%rsp,%rcx,1),%ecx
mov    %cl,-0x3(%rdx,%r9,1)
lea    (%r8,%r9,1),%ecx
movslq %ecx,%rcx
movzbl 0x120(%rsp,%rcx,1),%ecx
mov    %cl,-0x2(%rdx,%r9,1)
lea    (%rdi,%r9,1),%ecx
movslq %ecx,%rcx
movzbl 0x120(%rsp,%rcx,1),%ecx
mov    %cl,-0x1(%rdx,%r9,1)
lea    0x0(%r13,%r9,1),%ecx
movslq %ecx,%rcx
movzbl 0x120(%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    1770 <CheckPt_Latest_CELIV+0x5b0>
mov    %r14,%r13
movslq %ebx,%rax
movb   $0x0,0x40(%rsp,%rax,1)
lea    0x40(%rsp),%rdi
lea    0x845(%rip),%rsi
lea    0x98(%rsp),%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
mov    0x108(%rsp),%rax
sub    %ebp,%eax
movslq %eax,%rbp
mov    0x20(%rsp),%rax
add    %rsp,%rax
add    $0x120,%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    1850 <CheckPt_Latest_CELIV+0x690>
mov    %ecx,%eax
not    %eax
cmp    $0x3,%eax
jb     18bc <CheckPt_Latest_CELIV+0x6fc>
mov    $0xfffffffd,%edx
sub    %ecx,%edx
mov    0x20(%rsp),%rax
shl    $0x20,%rax
mov    0xf8(%rsp),%rcx
sub    %r13d,%ecx
shl    $0x20,%rcx
sub    %rcx,%rax
sub    %rbx,%rax
sar    $0x20,%rax
lea    (%rsp,%rax,1),%rsi
add    $0x120,%rsi
cmp    $0x2,%edx
mov    $0x1,%eax
cmovl  %eax,%edx
lea    0x240(%rsp),%rdi
call   10c0 <memcpy@plt>
sar    $0x20,%rbx
movb   $0x0,0x40(%rsp,%rbx,1)
lea    0x240(%rsp),%rdi
lea    0x765(%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,0x120(%rsp,%rax,1)
78
jne    18f0 <CheckPt_Latest_CELIV+0x730>
cmp    $0x3,%ebx
jb     194a <CheckPt_Latest_CELIV+0x78a>
lea    -0x2(%rbx),%edx
shl    $0x20,%rax
movabs $0x100000000,%rcx
add    %rcx,%rax
sar    $0x20,%rax
lea    (%rsp,%rax,1),%rsi
add    $0x120,%rsi
cmp    $0x2,%edx
mov    $0x1,%eax
cmovl  %eax,%edx
lea    0x260(%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    0x260(%rsp),%rdi
lea    0x6cb(%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,0x120(%rsp,%rax,1)
54
jne    19a0 <CheckPt_Latest_CELIV+0x7e0>
mov    %ebp,%eax
not    %eax
cmp    $0x3,%eax
lea    0xd0(%rsp),%r13
jb     19f8 <CheckPt_Latest_CELIV+0x838>
mov    $0xfffffffd,%edx
sub    %ebp,%edx
movslq %r14d,%rax
lea    (%rsp,%rax,1),%rsi
add    $0x120,%rsi
cmp    $0x2,%edx
mov    $0x1,%eax
cmovl  %eax,%edx
lea    0x220(%rsp),%rdi
call   10c0 <memcpy@plt>
sar    $0x20,%rbx
movb   $0x0,0x40(%rsp,%rbx,1)
lea    0x220(%rsp),%rdi
lea    0x629(%rip),%rsi
lea    0x90(%rsp),%rdx
xor    %eax,%eax
call   10e0 <sscanf@plt>
mov    0x34(%rsp),%r14d
cmp    0x14(%rsp),%r14d
jle    1ad3 <CheckPt_Latest_CELIV+0x913>
movsd  0x90(%rsp),%xmm0
ucomisd 0x100(%rsp),%xmm0
xorpd  %xmm1,%xmm1
jne    1ad3 <CheckPt_Latest_CELIV+0x913>
jp     1ad3 <CheckPt_Latest_CELIV+0x913>
movsd  0xa8(%rsp),%xmm0
ucomisd %xmm1,%xmm0
mov    0x60(%rsp),%r12
lea    0x11c(%rsp),%r15
jne    1b73 <CheckPt_Latest_CELIV+0x9b3>
jp     1b73 <CheckPt_Latest_CELIV+0x9b3>
movsd  0xa0(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jne    1b73 <CheckPt_Latest_CELIV+0x9b3>
jp     1b73 <CheckPt_Latest_CELIV+0x9b3>
movsd  0x98(%rsp),%xmm0
ucomisd %xmm1,%xmm0
lea    0x120(%rsp),%rbp
jne    1343 <CheckPt_Latest_CELIV+0x183>
jp     1343 <CheckPt_Latest_CELIV+0x183>
lea    0x280(%rsp),%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
movl   $0x1,0x30(%rsp)
mov    %r14d,0x14(%rsp)
jmp    1343 <CheckPt_Latest_CELIV+0x183>
mov    0x60(%rsp),%r12
lea    0x11c(%rsp),%r15
lea    0x120(%rsp),%rbp
jmp    1343 <CheckPt_Latest_CELIV+0x183>
lea    -0x1(%rsi),%rcx
lea    0x1(%rdi),%edx
lea    (%rdi,%rcx,1),%ebp
add    $0x1,%ebp
cmp    %edx,%ebp
jl     1441 <CheckPt_Latest_CELIV+0x281>
shr    $0x20,%rcx
mov    $0x0,%r9d
jne    1444 <CheckPt_Latest_CELIV+0x284>
cmp    $0x20,%esi
jae    1b80 <CheckPt_Latest_CELIV+0x9c0>
xor    %r9d,%r9d
jmp    1d3c <CheckPt_Latest_CELIV+0xb7c>
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     16f5 <CheckPt_Latest_CELIV+0x535>
lea    -0x1(%r11),%rcx
shr    $0x20,%rcx
mov    $0x0,%r9d
jne    16f8 <CheckPt_Latest_CELIV+0x538>
cmp    $0x20,%r11d
jae    1c3f <CheckPt_Latest_CELIV+0xa7f>
xor    %r9d,%r9d
jmp    1e0b <CheckPt_Latest_CELIV+0xc4b>
lea    0x120(%rsp),%rbp
jmp    1343 <CheckPt_Latest_CELIV+0x183>
mov    %esi,%r9d
and    $0x7fffffe0,%r9d
lea    -0x20(%r9),%rcx
mov    %rcx,%r10
shr    $0x5,%r10
add    $0x1,%r10
test   %rcx,%rcx
je     1cf3 <CheckPt_Latest_CELIV+0xb33>
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
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    -0x20(%rcx),%ebp
movslq %ebp,%rbp
movups 0x120(%rsp,%rbp,1),%xmm0
movups 0x130(%rsp,%rbp,1),%xmm1
movaps %xmm0,0xb0(%rsp,%rbx,1)
movaps %xmm1,0xc0(%rsp,%rbx,1)
movslq %ecx,%rcx
movupd 0x120(%rsp,%rcx,1),%xmm0
movupd 0x130(%rsp,%rcx,1),%xmm1
movapd %xmm0,0xd0(%rsp,%rbx,1)
movapd %xmm1,0xe0(%rsp,%rbx,1)
add    $0x40,%rbx
add    $0x40,%ecx
add    $0xfffffffffffffffe,%rdx
jne    1be0 <CheckPt_Latest_CELIV+0xa20>
jmp    1cf5 <CheckPt_Latest_CELIV+0xb35>
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     1db9 <CheckPt_Latest_CELIV+0xbf9>
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
nopw   0x0(%rax,%rax,1)
movslq %edx,%rdx
movups 0x120(%rsp,%rdx,1),%xmm0
movups 0x130(%rsp,%rdx,1),%xmm1
movaps %xmm0,0x40(%rsp,%rsi,1)
movaps %xmm1,0x50(%rsp,%rsi,1)
lea    0x20(%rdx),%ecx
movslq %ecx,%rcx
movupd 0x120(%rsp,%rcx,1),%xmm0
movupd 0x130(%rsp,%rcx,1),%xmm1
movapd %xmm0,0x60(%rsp,%rsi,1)
movapd %xmm1,0x70(%rsp,%rsi,1)
add    $0x40,%rsi
add    $0x40,%edx
add    $0xfffffffffffffffe,%r14
jne    1ca0 <CheckPt_Latest_CELIV+0xae0>
jmp    1dbb <CheckPt_Latest_CELIV+0xbfb>
xor    %ebx,%ebx
test   $0x1,%r10b
je     1d29 <CheckPt_Latest_CELIV+0xb69>
mov    %ebx,%ecx
or     $0x1,%ecx
add    %ecx,%edi
movslq %edi,%rcx
movupd 0x120(%rsp,%rcx,1),%xmm0
movupd 0x130(%rsp,%rcx,1),%xmm1
movapd %xmm0,0xb0(%rsp,%rbx,1)
movapd %xmm1,0xc0(%rsp,%rbx,1)
cmp    %rsi,%r9
je     1559 <CheckPt_Latest_CELIV+0x399>
test   $0x18,%sil
je     1444 <CheckPt_Latest_CELIV+0x284>
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
nopw   0x0(%rax,%rax,1)
lea    (%rdx,%rcx,1),%ebp
movslq %ebp,%rbp
mov    0x120(%rsp,%rbp,1),%rbp
mov    %rbp,(%rbx,%rcx,1)
add    $0x8,%rcx
cmp    %rcx,%rdi
jne    1d90 <CheckPt_Latest_CELIV+0xbd0>
cmp    %r10,%r9
jne    1444 <CheckPt_Latest_CELIV+0x284>
jmp    1559 <CheckPt_Latest_CELIV+0x399>
xor    %esi,%esi
test   $0x1,%al
je     1df3 <CheckPt_Latest_CELIV+0xc33>
mov    %esi,%ecx
or     $0x1,%ecx
sub    0x88(%rsp),%ecx
mov    0x68(%rsp),%rax
add    %ecx,%eax
movslq %eax,%rcx
movupd 0x120(%rsp,%rcx,1),%xmm0
movupd 0x130(%rsp,%rcx,1),%xmm1
movapd %xmm0,0x40(%rsp,%rsi,1)
movapd %xmm1,0x50(%rsp,%rsi,1)
cmp    %r11,%r9
mov    0x18(%rsp),%r14
je     17dd <CheckPt_Latest_CELIV+0x61d>
test   $0x18,%r11b
je     16f8 <CheckPt_Latest_CELIV+0x538>
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)
nop
lea    (%r15,%rbx,1),%ecx
movslq %ecx,%rcx
mov    0x120(%rsp,%rcx,1),%rcx
mov    %rcx,(%rsi,%rbx,1)
add    $0x8,%rbx
cmp    %rbx,%rdx
jne    1e60 <CheckPt_Latest_CELIV+0xca0>
cmp    %rax,%r9
mov    0x18(%rsp),%rbx
jne    16f8 <CheckPt_Latest_CELIV+0x538>
jmp    17dd <CheckPt_Latest_CELIV+0x61d>
mov    %r12,%rdi
call   1090 <closedir@plt>
xor    %ebp,%ebp
cmpl   $0x1,0x30(%rsp)
jne    12b9 <CheckPt_Latest_CELIV+0xf9>
lea    0x192(%rip),%rdi
lea    0x280(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x84(%rsp),%edx
mov    0x8(%rsp),%rsi
cmp    %edx,%esi
jle    1ef1 <CheckPt_Latest_CELIV+0xd31>
lea    0x17d(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x1bc(%rip),%rdi
jmp    12af <CheckPt_Latest_CELIV+0xef>
mov    %r12,%rdi
call   1090 <closedir@plt>
jmp    12b9 <CheckPt_Latest_CELIV+0xf9>
add    $0xffffffff,%edx
lea    0x280(%rsp),%rsi
mov    0xf0(%rsp),%rdi
call   1030 <strncpy@plt>
mov    0x14(%rsp),%ebp
jmp    12b9 <CheckPt_Latest_CELIV+0xf9>

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

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