#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
long double cov_deserialize(char *, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
scalar_t__ isinf(long double);
scalar_t__ isnan(long double);
int /*<<< orphan*/ printf(char *);
scalar_t__ strncmp(char *, char *, int);
char *strtok_r(char *, char *, char **);
void cov_check_(int *length_pointer) {
  int length = *length_pointer;
  int characters = 1000000;
  char line[characters];
  char *word, *sep, *brkt, *brkb;
  long double estimate[length], ideal[length], delta;
  FILE *log_file, *spec_file;
  int ld_size, cnt, i, predicate;
  sep = " ";
  ld_size = 10;
  log_file = fopen("log.cov", "rt");
  while (fgets(line, characters, log_file) != NULL) {
    if (line[0] != '#') {
      cnt = 0;
      for (word = strtok_r(line, sep, &brkt); word;
           word = strtok_r(NULL, sep, &brkt)) {
        if (cnt < length) {
          estimate[cnt] = cov_deserialize(word, ld_size);
          cnt++;
        }
      }
    }
  }
  fclose(log_file);
  spec_file = fopen("spec.cov", "rt");
  while (fgets(line, characters, spec_file) != NULL) {
    if (strncmp(line, "#ideal", 6) == 0) {
      cnt = 0;
      fgets(line, characters, spec_file);
      for (word = strtok_r(line, sep, &brkb); word;
           word = strtok_r(NULL, sep, &brkb)) {
        if (cnt < length) {
          ideal[cnt] = cov_deserialize(word, ld_size);
          cnt++;
        }
      }
    } else if (strncmp(line, "#delta", 6) == 0) {
      fgets(line, 80, spec_file);
      delta = cov_deserialize(line, ld_size);
    }
  }
  fclose(spec_file);
  predicate = 1;
  for (i = 0; i < length; i++) {
    if (isnan(estimate[i]) || isinf(estimate[i])) {
      predicate = 0;
      break;
    }
    long double diff;
    if (estimate[i] > ideal[i])
      diff = estimate[i] - ideal[i];
    else
      diff = ideal[i] - estimate[i];
    if (delta < diff) {
      predicate = 0;
      break;
    }
  }
  if (predicate)
    printf("true\n");
  else
    printf("false\n");
  FILE *result_file;
  result_file = fopen("sat.cov", "w");
  if (predicate)
    fprintf(result_file, "true\n");
  else
    fprintf(result_file, "false\n");
}


x86 assembly (clang, -O0):
<cov_check_>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
movl   $0xf4240,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xb0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
mov    -0xc(%rbp),%eax
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
lea    0xdd5(%rip),%rax
mov    %rax,-0x30(%rbp)
movl   $0xa,-0x74(%rbp)
lea    0xdc5(%rip),%rdi
lea    0xdc6(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x68(%rbp)
mov    -0xb0(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x68(%rbp),%rdx
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1303 <cov_check_+0x163>
mov    -0xb0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     12fe <cov_check_+0x15e>
mov    -0xb0(%rbp),%rdi
movl   $0x0,-0x78(%rbp)
mov    -0x30(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     12f9 <cov_check_+0x159>
mov    -0x78(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12da <cov_check_+0x13a>
mov    -0x28(%rbp),%rdi
mov    -0x74(%rbp),%esi
call   10c0 <cov_deserialize@plt>
mov    -0xa8(%rbp),%rax
movslq -0x78(%rbp),%rcx
shl    $0x4,%rcx
fstpt  (%rax,%rcx,1)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    12df <cov_check_+0x13f>
mov    -0x30(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x38(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x28(%rbp)
jmp    129c <cov_check_+0xfc>
jmp    12fe <cov_check_+0x15e>
jmp    124d <cov_check_+0xad>
mov    -0x68(%rbp),%rdi
call   1040 <fclose@plt>
lea    0xcfa(%rip),%rdi
lea    0xcf0(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x70(%rbp)
mov    -0xb0(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x70(%rbp),%rdx
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1449 <cov_check_+0x2a9>
mov    -0xb0(%rbp),%rdi
lea    0xcc8(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13f6 <cov_check_+0x256>
mov    -0xb0(%rbp),%rdi
movl   $0x0,-0x78(%rbp)
mov    -0x10(%rbp),%esi
mov    -0x70(%rbp),%rdx
call   1070 <fgets@plt>
mov    -0xb0(%rbp),%rdi
mov    -0x30(%rbp),%rsi
lea    -0x40(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     13f1 <cov_check_+0x251>
mov    -0x78(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13d2 <cov_check_+0x232>
mov    -0x28(%rbp),%rdi
mov    -0x74(%rbp),%esi
call   10c0 <cov_deserialize@plt>
mov    -0xa0(%rbp),%rax
movslq -0x78(%rbp),%rcx
shl    $0x4,%rcx
fstpt  (%rax,%rcx,1)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    13d7 <cov_check_+0x237>
mov    -0x30(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x40(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x28(%rbp)
jmp    1394 <cov_check_+0x1f4>
jmp    1444 <cov_check_+0x2a4>
mov    -0xb0(%rbp),%rdi
lea    0xc19(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    143f <cov_check_+0x29f>
mov    -0xb0(%rbp),%rdi
mov    -0x70(%rbp),%rdx
mov    $0x50,%esi
call   1070 <fgets@plt>
mov    -0xb0(%rbp),%rdi
mov    -0x74(%rbp),%esi
call   10c0 <cov_deserialize@plt>
fstpt  -0x60(%rbp)
jmp    1444 <cov_check_+0x2a4>
jmp    1323 <cov_check_+0x183>
mov    -0x70(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0x80(%rbp)
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1585 <cov_check_+0x3e5>
mov    -0xa8(%rbp),%rax
movslq -0x7c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
sub    $0x10,%rsp
mov    %rsp,%rax
fstpt  (%rax)
call   1090 <isnan@plt>
add    $0x10,%rsp
cmp    $0x0,%rax
jne    14c8 <cov_check_+0x328>
mov    -0xa8(%rbp),%rax
movslq -0x7c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
sub    $0x10,%rsp
mov    %rsp,%rax
fstpt  (%rax)
call   10b0 <isinf@plt>
add    $0x10,%rsp
cmp    $0x0,%rax
je     14d4 <cov_check_+0x334>
movl   $0x0,-0x80(%rbp)
jmp    1585 <cov_check_+0x3e5>
mov    -0xa0(%rbp),%rax
mov    -0xa8(%rbp),%rdx
movslq -0x7c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    152a <cov_check_+0x38a>
jmp    1501 <cov_check_+0x361>
mov    -0xa0(%rbp),%rax
mov    -0xa8(%rbp),%rdx
movslq -0x7c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fstpt  -0x90(%rbp)
jmp    154e <cov_check_+0x3ae>
mov    -0xa8(%rbp),%rax
mov    -0xa0(%rbp),%rdx
movslq -0x7c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fstpt  -0x90(%rbp)
fldt   -0x60(%rbp)
fldt   -0x90(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    1572 <cov_check_+0x3d2>
jmp    1566 <cov_check_+0x3c6>
movl   $0x0,-0x80(%rbp)
jmp    1585 <cov_check_+0x3e5>
jmp    1577 <cov_check_+0x3d7>
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    1460 <cov_check_+0x2c0>
cmpl   $0x0,-0x80(%rbp)
je     15a0 <cov_check_+0x400>
lea    0xa8e(%rip),%rdi
call   1050 <printf@plt>
jmp    15ac <cov_check_+0x40c>
lea    0xa83(%rip),%rdi
call   1050 <printf@plt>
lea    0xa7e(%rip),%rdi
lea    0xa7f(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x98(%rbp)
cmpl   $0x0,-0x80(%rbp)
je     15e8 <cov_check_+0x448>
mov    -0x98(%rbp),%rdi
lea    0xa46(%rip),%rsi
call   1080 <fprintf@plt>
jmp    15fb <cov_check_+0x45b>
mov    -0x98(%rbp),%rdi
lea    0xa34(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cov_check_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf4288,%rsp
mov    (%rdi),%r14d
mov    %rsp,%r15
mov    %r14,%rax
shl    $0x4,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rcx,%rsp
lea    0xe27(%rip),%rdi
lea    0xe28(%rip),%rsi
call   1090 <fopen@plt>
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    %rax,-0x38(%rbp)
mov    %rax,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1295 <cov_check_+0xf5>
lea    0xdf1(%rip),%r12
lea    -0x68(%rbp),%rbx
jmp    123a <cov_check_+0x9a>
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    -0x38(%rbp),%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1295 <cov_check_+0xf5>
cmpb   $0x23,-0xf42b0(%rbp)
je     1220 <cov_check_+0x80>
lea    -0xf42b0(%rbp),%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     1220 <cov_check_+0x80>
xor    %r13d,%r13d
jmp    1272 <cov_check_+0xd2>
nop
xor    %edi,%edi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     1220 <cov_check_+0x80>
cmp    %r14d,%r13d
jge    1260 <cov_check_+0xc0>
mov    %rax,%rdi
mov    $0xa,%esi
call   10c0 <cov_deserialize@plt>
movslq %r13d,%rax
shl    $0x4,%rax
fstpt  (%r15,%rax,1)
add    $0x1,%r13d
jmp    1260 <cov_check_+0xc0>
mov    %r15,-0x58(%rbp)
mov    -0x38(%rbp),%rdi
call   1050 <fclose@plt>
lea    0xd64(%rip),%rdi
lea    0xd5a(%rip),%rsi
call   1090 <fopen@plt>
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    %rax,%r15
mov    %rax,%rdx
call   1070 <fgets@plt>
fldz
fstpt  -0x4c(%rbp)
test   %rax,%rax
je     1404 <cov_check_+0x264>
fldz
fstpt  -0x4c(%rbp)
lea    -0xf42b0(%rbp),%r12
lea    -0x60(%rbp),%r13
mov    %r15,-0x38(%rbp)
jmp    131b <cov_check_+0x17b>
mov    -0x38(%rbp),%rbx
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    %rbx,%r15
mov    %rbx,%rdx
call   1070 <fgets@plt>
lea    -0xf42b0(%rbp),%r12
test   %rax,%rax
je     1404 <cov_check_+0x264>
mov    %r12,%rdi
lea    0xcf1(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1380 <cov_check_+0x1e0>
mov    %r12,%rdi
lea    0xcdf(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
mov    %r15,%rbx
jne    12f4 <cov_check_+0x154>
lea    -0xf42b0(%rbp),%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
lea    -0xf42b0(%rbp),%rdi
mov    $0xa,%esi
call   10c0 <cov_deserialize@plt>
fstpt  -0x4c(%rbp)
jmp    12f4 <cov_check_+0x154>
nopl   (%rax)
mov    %r12,%rdi
mov    $0xf4240,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
mov    %r12,%rdi
lea    0xc66(%rip),%rsi
mov    %r13,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     13fc <cov_check_+0x25c>
xor    %r12d,%r12d
lea    0xc4f(%rip),%rbx
jmp    13d6 <cov_check_+0x236>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     12f0 <cov_check_+0x150>
cmp    %r14d,%r12d
jge    13c0 <cov_check_+0x220>
mov    %rax,%rdi
mov    $0xa,%esi
call   10c0 <cov_deserialize@plt>
movslq %r12d,%rax
shl    $0x4,%rax
mov    -0x40(%rbp),%rcx
fstpt  (%rcx,%rax,1)
add    $0x1,%r12d
jmp    13c0 <cov_check_+0x220>
mov    %r15,%rbx
jmp    12f4 <cov_check_+0x154>
mov    %r15,%rdi
call   1050 <fclose@plt>
test   %r14d,%r14d
mov    -0x58(%rbp),%r15
jle    14e1 <cov_check_+0x341>
mov    %r14,%r12
neg    %r12
mov    $0x1,%r13b
mov    $0x1,%ebx
nopw   0x0(%rax,%rax,1)
fldt   (%r15)
sub    $0x10,%rsp
fld    %st(0)
fstpt  -0x38(%rbp)
fstpt  (%rsp)
call   1080 <isnan@plt>
add    $0x10,%rsp
test   %rax,%rax
jne    14b4 <cov_check_+0x314>
sub    $0x10,%rsp
fldt   -0x38(%rbp)
fstpt  (%rsp)
call   10b0 <isinf@plt>
add    $0x10,%rsp
test   %rax,%rax
jne    14b4 <cov_check_+0x314>
mov    -0x40(%rbp),%rax
fldt   (%rax)
fldt   -0x38(%rbp)
fucomi %st(1),%st
fld    %st(0)
fsub   %st(2),%st
fxch   %st(2)
fsubp  %st,%st(1)
fcmovnbe %st(1),%st
fstp   %st(1)
fldt   -0x4c(%rbp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
ja     14ae <cov_check_+0x30e>
cmp    %r14,%rbx
setb   %r13b
add    $0x10,%rax
mov    %rax,-0x40(%rbp)
add    $0x10,%r15
lea    (%r12,%rbx,1),%rax
add    $0x1,%rax
add    $0x1,%rbx
cmp    $0x1,%rax
jne    1430 <cov_check_+0x290>
jmp    14e1 <cov_check_+0x341>
test   $0x1,%r13b
je     14e1 <cov_check_+0x341>
lea    0xb80(%rip),%rdi
call   1040 <puts@plt>
lea    0xb6a(%rip),%rdi
lea    0xb6b(%rip),%rsi
call   1090 <fopen@plt>
lea    0xb50(%rip),%rdi
mov    $0x6,%esi
jmp    150c <cov_check_+0x36c>
lea    0xb59(%rip),%rdi
call   1040 <puts@plt>
lea    0xb3d(%rip),%rdi
lea    0xb3e(%rip),%rsi
call   1090 <fopen@plt>
lea    0xb1d(%rip),%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   10a0 <fwrite@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [8 x i8] c"log.cov\00"
@.str.2 = [3 x i8] c"rt\00"
@.str.3 = [9 x i8] c"spec.cov\00"
@.str.4 = [7 x i8] c"#ideal\00"
@.str.5 = [7 x i8] c"#delta\00"
@.str.6 = [6 x i8] c"true\0A\00"
@.str.7 = [7 x i8] c"false\0A\00"
@.str.8 = [8 x i8] c"sat.cov\00"
@.str.9 = [2 x i8] c"w\00"
define void @cov_check_(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i64
%13 = alloca x86_fp80
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca x86_fp80
%21 = alloca i32*
store i32* %0, i32** %2
%22 = load i32*, i32** %2
%23 = load i32, i32* %22
store i32 %23, i32* %3
store i32 1000000, i32* %4
%24 = load i32, i32* %4
%25 = zext i32 %24 to i64
%26 = call i8* @llvm.stacksave()
store i8* %26, i8** %5
%27 = alloca i8, i64 %25
store i64 %25, i64* %6
%28 = load i32, i32* %3
%29 = zext i32 %28 to i64
%30 = alloca x86_fp80, i64 %29
store i64 %29, i64* %11
%31 = load i32, i32* %3
%32 = zext i32 %31 to i64
%33 = alloca x86_fp80, i64 %32
store i64 %32, i64* %12
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %8
store i32 10, i32* %16
%34 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %34, i32** %14
br label %35
35: ; preds = %69, %1
%36 = load i32, i32* %4
%37 = load i32*, i32** %14
%38 = call i32* @fgets(i8* %27, i32 %36, i32* %37)
%39 = icmp ne i32* %38, null
br i1 %39, label %40, label %70
40: ; preds = %35
%41 = getelementptr inbounds i8, i8* %27, i64 0
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 35
br i1 %44, label %45, label %69
45: ; preds = %40
store i32 0, i32* %17
%46 = load i8*, i8** %8
%47 = call i8* @strtok_r(i8* %27, i8* %46, i8** %9)
store i8* %47, i8** %7
br label %48
48: ; preds = %65, %45
%49 = load i8*, i8** %7
%50 = icmp ne i8* %49, null
br i1 %50, label %51, label %68
51: ; preds = %48
%52 = load i32, i32* %17
%53 = load i32, i32* %3
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %64
55: ; preds = %51
%56 = load i8*, i8** %7
%57 = load i32, i32* %16
%58 = call x86_fp80 @cov_deserialize(i8* %56, i32 %57)
%59 = load i32, i32* %17
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds x86_fp80, x86_fp80* %30, i64 %60
store x86_fp80 %58, x86_fp80* %61
%62 = load i32, i32* %17
%63 = add nsw i32 %62, 1
store i32 %63, i32* %17
br label %64
64: ; preds = %55, %51
br label %65
65: ; preds = %64
%66 = load i8*, i8** %8
%67 = call i8* @strtok_r(i8* null, i8* %66, i8** %9)
store i8* %67, i8** %7
br label %48
68: ; preds = %48
br label %69
69: ; preds = %68, %40
br label %35
70: ; preds = %35
%71 = load i32*, i32** %14
%72 = call i32 @fclose(i32* %71)
%73 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %73, i32** %15
br label %74
74: ; preds = %118, %70
%75 = load i32, i32* %4
%76 = load i32*, i32** %15
%77 = call i32* @fgets(i8* %27, i32 %75, i32* %76)
%78 = icmp ne i32* %77, null
br i1 %78, label %79, label %119
79: ; preds = %74
%80 = call i64 @strncmp(i8* %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %109
82: ; preds = %79
store i32 0, i32* %17
%83 = load i32, i32* %4
%84 = load i32*, i32** %15
%85 = call i32* @fgets(i8* %27, i32 %83, i32* %84)
%86 = load i8*, i8** %8
%87 = call i8* @strtok_r(i8* %27, i8* %86, i8** %10)
store i8* %87, i8** %7
br label %88
88: ; preds = %105, %82
%89 = load i8*, i8** %7
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %108
91: ; preds = %88
%92 = load i32, i32* %17
%93 = load i32, i32* %3
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %104
95: ; preds = %91
%96 = load i8*, i8** %7
%97 = load i32, i32* %16
%98 = call x86_fp80 @cov_deserialize(i8* %96, i32 %97)
%99 = load i32, i32* %17
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds x86_fp80, x86_fp80* %33, i64 %100
store x86_fp80 %98, x86_fp80* %101
%102 = load i32, i32* %17
%103 = add nsw i32 %102, 1
store i32 %103, i32* %17
br label %104
104: ; preds = %95, %91
br label %105
105: ; preds = %104
%106 = load i8*, i8** %8
%107 = call i8* @strtok_r(i8* null, i8* %106, i8** %10)
store i8* %107, i8** %7
br label %88
108: ; preds = %88
br label %118
109: ; preds = %79
%110 = call i64 @strncmp(i8* %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 6)
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %117
112: ; preds = %109
%113 = load i32*, i32** %15
%114 = call i32* @fgets(i8* %27, i32 80, i32* %113)
%115 = load i32, i32* %16
%116 = call x86_fp80 @cov_deserialize(i8* %27, i32 %115)
store x86_fp80 %116, x86_fp80* %13
br label %117
117: ; preds = %112, %109
br label %118
118: ; preds = %117, %108
br label %74
119: ; preds = %74
%120 = load i32*, i32** %15
%121 = call i32 @fclose(i32* %120)
store i32 1, i32* %19
store i32 0, i32* %18
br label %122
122: ; preds = %177, %119
%123 = load i32, i32* %18
%124 = load i32, i32* %3
%125 = icmp slt i32 %123, %124
br i1 %125, label %126, label %180
126: ; preds = %122
%127 = load i32, i32* %18
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds x86_fp80, x86_fp80* %30, i64 %128
%130 = load x86_fp80, x86_fp80* %129
%131 = call i64 @isnan(x86_fp80 %130)
%132 = icmp ne i64 %131, 0
br i1 %132, label %140, label %133
133: ; preds = %126
%134 = load i32, i32* %18
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds x86_fp80, x86_fp80* %30, i64 %135
%137 = load x86_fp80, x86_fp80* %136
%138 = call i64 @isinf(x86_fp80 %137)
%139 = icmp ne i64 %138, 0
br i1 %139, label %140, label %141
140: ; preds = %133, %126
store i32 0, i32* %19
br label %180
141: ; preds = %133
%142 = load i32, i32* %18
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds x86_fp80, x86_fp80* %30, i64 %143
%145 = load x86_fp80, x86_fp80* %144
%146 = load i32, i32* %18
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds x86_fp80, x86_fp80* %33, i64 %147
%149 = load x86_fp80, x86_fp80* %148
%150 = fcmp ogt x86_fp80 %145, %149
br i1 %150, label %151, label %161
151: ; preds = %141
%152 = load i32, i32* %18
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds x86_fp80, x86_fp80* %30, i64 %153
%155 = load x86_fp80, x86_fp80* %154
%156 = load i32, i32* %18
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds x86_fp80, x86_fp80* %33, i64 %157
%159 = load x86_fp80, x86_fp80* %158
%160 = fsub x86_fp80 %155, %159
store x86_fp80 %160, x86_fp80* %20
br label %171
161: ; preds = %141
%162 = load i32, i32* %18
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds x86_fp80, x86_fp80* %33, i64 %163
%165 = load x86_fp80, x86_fp80* %164
%166 = load i32, i32* %18
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds x86_fp80, x86_fp80* %30, i64 %167
%169 = load x86_fp80, x86_fp80* %168
%170 = fsub x86_fp80 %165, %169
store x86_fp80 %170, x86_fp80* %20
br label %171
171: ; preds = %161, %151
%172 = load x86_fp80, x86_fp80* %13
%173 = load x86_fp80, x86_fp80* %20
%174 = fcmp olt x86_fp80 %172, %173
br i1 %174, label %175, label %176
175: ; preds = %171
store i32 0, i32* %19
br label %180
176: ; preds = %171
br label %177
177: ; preds = %176
%178 = load i32, i32* %18
%179 = add nsw i32 %178, 1
store i32 %179, i32* %18
br label %122
180: ; preds = %175, %140, %122
%181 = load i32, i32* %19
%182 = icmp ne i32 %181, 0
br i1 %182, label %183, label %185
183: ; preds = %180
%184 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %187
185: ; preds = %180
%186 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %187
187: ; preds = %185, %183
%188 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32* %188, i32** %21
%189 = load i32, i32* %19
%190 = icmp ne i32 %189, 0
br i1 %190, label %191, label %194
191: ; preds = %187
%192 = load i32*, i32** %21
%193 = call i32 @fprintf(i32* %192, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %197
194: ; preds = %187
%195 = load i32*, i32** %21
%196 = call i32 @fprintf(i32* %195, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %197
197: ; preds = %194, %191
%198 = load i8*, i8** %5
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [8 x i8] c"log.cov\00"
@.str.2 = [3 x i8] c"rt\00"
@.str.3 = [9 x i8] c"spec.cov\00"
@.str.4 = [7 x i8] c"#ideal\00"
@.str.5 = [7 x i8] c"#delta\00"
@.str.6 = [6 x i8] c"true\0A\00"
@.str.7 = [7 x i8] c"false\0A\00"
@.str.8 = [8 x i8] c"sat.cov\00"
@.str.9 = [2 x i8] c"w\00"
@str = [6 x i8] c"false\00"
@str.10 = [5 x i8] c"true\00"
define void @cov_check_(i32* nocapture %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = load i32, i32* %0
%5 = alloca [1000000 x i8]
%6 = getelementptr inbounds [1000000 x i8], [1000000 x i8]* %5, i64 0, i64 0
%7 = bitcast i8** %2 to i8*
%8 = bitcast i8** %3 to i8*
%9 = zext i32 %4 to i64
%10 = alloca x86_fp80, i64 %9
%11 = alloca x86_fp80, i64 %9
%12 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32* @fgets(i8* %6, i32 1000000, i32* %12)
%14 = icmp eq i32* %13, null
br i1 %14, label %37, label %15
15: ; preds = %1, %34
%16 = load i8, i8* %6
%17 = icmp eq i8 %16, 35
br i1 %17, label %34, label %18
18: ; preds = %15
%19 = call i8* @strtok_r(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %2)
%20 = icmp eq i8* %19, null
br i1 %20, label %34, label %21
21: ; preds = %18, %30
%22 = phi i8* [ %32, %30 ], [ %19, %18 ]
%23 = phi i32 [ %31, %30 ], [ 0, %18 ]
%24 = icmp slt i32 %23, %4
br i1 %24, label %25, label %30
25: ; preds = %21
%26 = call x86_fp80 @cov_deserialize(i8* %22, i32 10)
%27 = sext i32 %23 to i64
%28 = getelementptr inbounds x86_fp80, x86_fp80* %10, i64 %27
store x86_fp80 %26, x86_fp80* %28
%29 = add nsw i32 %23, 1
br label %30
30: ; preds = %21, %25
%31 = phi i32 [ %29, %25 ], [ %23, %21 ]
%32 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %2)
%33 = icmp eq i8* %32, null
br i1 %33, label %34, label %21
34: ; preds = %30, %18, %15
%35 = call i32* @fgets(i8* %6, i32 1000000, i32* %12)
%36 = icmp eq i32* %35, null
br i1 %36, label %37, label %15
37: ; preds = %34, %1
%38 = call i32 @fclose(i32* %12)
%39 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%40 = call i32* @fgets(i8* %6, i32 1000000, i32* %39)
%41 = icmp eq i32* %40, null
br i1 %41, label %73, label %42
42: ; preds = %37, %69
%43 = phi x86_fp80 [ %70, %69 ], [ undef, %37 ]
%44 = call i64 @strncmp(i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %63
46: ; preds = %42
%47 = call i32* @fgets(i8* %6, i32 1000000, i32* %39)
%48 = call i8* @strtok_r(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %3)
%49 = icmp eq i8* %48, null
br i1 %49, label %69, label %50
50: ; preds = %46, %59
%51 = phi i8* [ %61, %59 ], [ %48, %46 ]
%52 = phi i32 [ %60, %59 ], [ 0, %46 ]
%53 = icmp slt i32 %52, %4
br i1 %53, label %54, label %59
54: ; preds = %50
%55 = call x86_fp80 @cov_deserialize(i8* %51, i32 10)
%56 = sext i32 %52 to i64
%57 = getelementptr inbounds x86_fp80, x86_fp80* %11, i64 %56
store x86_fp80 %55, x86_fp80* %57
%58 = add nsw i32 %52, 1
br label %59
59: ; preds = %50, %54
%60 = phi i32 [ %58, %54 ], [ %52, %50 ]
%61 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %3)
%62 = icmp eq i8* %61, null
br i1 %62, label %69, label %50
63: ; preds = %42
%64 = call i64 @strncmp(i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 6)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = call i32* @fgets(i8* %6, i32 80, i32* %39)
%68 = call x86_fp80 @cov_deserialize(i8* %6, i32 10)
br label %69
69: ; preds = %59, %46, %63, %66
%70 = phi x86_fp80 [ %68, %66 ], [ %43, %63 ], [ %43, %46 ], [ %43, %59 ]
%71 = call i32* @fgets(i8* %6, i32 1000000, i32* %39)
%72 = icmp eq i32* %71, null
br i1 %72, label %73, label %42
73: ; preds = %69, %37
%74 = phi x86_fp80 [ undef, %37 ], [ %70, %69 ]
%75 = call i32 @fclose(i32* %39)
%76 = icmp sgt i32 %4, 0
br i1 %76, label %77, label %102
77: ; preds = %73
%78 = zext i32 %4 to i64
br label %82
79: ; preds = %92
%80 = icmp ult i64 %100, %78
%81 = icmp eq i64 %100, %9
br i1 %81, label %102, label %82
82: ; preds = %77, %79
%83 = phi i64 [ 0, %77 ], [ %100, %79 ]
%84 = phi i1 [ true, %77 ], [ %80, %79 ]
%85 = getelementptr inbounds x86_fp80, x86_fp80* %10, i64 %83
%86 = load x86_fp80, x86_fp80* %85
%87 = call i64 @isnan(x86_fp80 %86)
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %106
89: ; preds = %82
%90 = call i64 @isinf(x86_fp80 %86)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %106
92: ; preds = %89
%93 = getelementptr inbounds x86_fp80, x86_fp80* %11, i64 %83
%94 = load x86_fp80, x86_fp80* %93
%95 = fcmp ogt x86_fp80 %86, %94
%96 = fsub x86_fp80 %86, %94
%97 = fsub x86_fp80 %94, %86
%98 = select i1 %95, x86_fp80 %96, x86_fp80 %97
%99 = fcmp olt x86_fp80 %74, %98
%100 = add nuw nsw i64 %83, 1
br i1 %99, label %101, label %79
101: ; preds = %92
br i1 %84, label %106, label %102
102: ; preds = %79, %73, %101
%103 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.10, i64 0, i64 0))
%104 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%105 = call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i64 5, i64 1, i32* %104)
br label %110
106: ; preds = %82, %89, %101
%107 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%108 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%109 = call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i64 6, i64 1, i32* %108)
br label %110
110: ; preds = %106, %102
ret void
}