#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(char *log, char *spec, int length) {
  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, "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, "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    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0xf4240,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xc0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xb8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x14(%rbp),%eax
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xb0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
lea    0xdd7(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0xa,-0x84(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdc0(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x78(%rbp)
mov    -0xc0(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x78(%rbp),%rdx
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1313 <cov_check+0x173>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     130e <cov_check+0x16e>
mov    -0xc0(%rbp),%rdi
movl   $0x0,-0x88(%rbp)
mov    -0x38(%rbp),%rsi
lea    -0x40(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1309 <cov_check+0x169>
mov    -0x88(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12ea <cov_check+0x14a>
mov    -0x30(%rbp),%rdi
mov    -0x84(%rbp),%esi
call   10c0 <cov_deserialize@plt>
mov    -0xb8(%rbp),%rax
movslq -0x88(%rbp),%rcx
shl    $0x4,%rcx
fstpt  (%rax,%rcx,1)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    12ef <cov_check+0x14f>
mov    -0x38(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x40(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x30(%rbp)
jmp    129d <cov_check+0xfd>
jmp    130e <cov_check+0x16e>
jmp    124b <cov_check+0xab>
mov    -0x78(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rdi
lea    0xcdb(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x80(%rbp)
mov    -0xc0(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x80(%rbp),%rdx
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     146b <cov_check+0x2cb>
mov    -0xc0(%rbp),%rdi
lea    0xcaa(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1415 <cov_check+0x275>
mov    -0xc0(%rbp),%rdi
movl   $0x0,-0x88(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x80(%rbp),%rdx
call   1070 <fgets@plt>
mov    -0xc0(%rbp),%rdi
mov    -0x38(%rbp),%rsi
lea    -0x48(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1410 <cov_check+0x270>
mov    -0x88(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13f1 <cov_check+0x251>
mov    -0x30(%rbp),%rdi
mov    -0x84(%rbp),%esi
call   10c0 <cov_deserialize@plt>
mov    -0xb0(%rbp),%rax
movslq -0x88(%rbp),%rcx
shl    $0x4,%rcx
fstpt  (%rax,%rcx,1)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    13f6 <cov_check+0x256>
mov    -0x38(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x48(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x30(%rbp)
jmp    13a4 <cov_check+0x204>
jmp    1466 <cov_check+0x2c6>
mov    -0xc0(%rbp),%rdi
lea    0xbe9(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1461 <cov_check+0x2c1>
mov    -0xc0(%rbp),%rdi
mov    -0x80(%rbp),%rdx
mov    $0x50,%esi
call   1070 <fgets@plt>
mov    -0xc0(%rbp),%rdi
mov    -0x84(%rbp),%esi
call   10c0 <cov_deserialize@plt>
fstpt  -0x70(%rbp)
jmp    1466 <cov_check+0x2c6>
jmp    1330 <cov_check+0x190>
mov    -0x80(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0x90(%rbp)
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15cb <cov_check+0x42b>
mov    -0xb8(%rbp),%rax
movslq -0x8c(%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    14f9 <cov_check+0x359>
mov    -0xb8(%rbp),%rax
movslq -0x8c(%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     1508 <cov_check+0x368>
movl   $0x0,-0x90(%rbp)
jmp    15cb <cov_check+0x42b>
mov    -0xb0(%rbp),%rax
mov    -0xb8(%rbp),%rdx
movslq -0x8c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    1564 <cov_check+0x3c4>
jmp    1538 <cov_check+0x398>
mov    -0xb0(%rbp),%rax
mov    -0xb8(%rbp),%rdx
movslq -0x8c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fstpt  -0xa0(%rbp)
jmp    158b <cov_check+0x3eb>
mov    -0xb8(%rbp),%rax
mov    -0xb0(%rbp),%rdx
movslq -0x8c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fstpt  -0xa0(%rbp)
fldt   -0x70(%rbp)
fldt   -0xa0(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    15b2 <cov_check+0x412>
jmp    15a3 <cov_check+0x403>
movl   $0x0,-0x90(%rbp)
jmp    15cb <cov_check+0x42b>
jmp    15b7 <cov_check+0x417>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1488 <cov_check+0x2e8>
cmpl   $0x0,-0x90(%rbp)
je     15e9 <cov_check+0x449>
lea    0xa34(%rip),%rdi
call   1050 <printf@plt>
jmp    15f5 <cov_check+0x455>
lea    0xa29(%rip),%rdi
call   1050 <printf@plt>
lea    0xa24(%rip),%rdi
lea    0xa25(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xa8(%rbp)
cmpl   $0x0,-0x90(%rbp)
je     1634 <cov_check+0x494>
mov    -0xa8(%rbp),%rdi
lea    0x9e9(%rip),%rsi
call   1080 <fprintf@plt>
jmp    1647 <cov_check+0x4a7>
mov    -0xa8(%rbp),%rdi
lea    0x9d7(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x20(%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    %edx,%r12d
mov    %rsi,-0x48(%rbp)
mov    %edx,%eax
mov    %rsp,%rbx
mov    %rax,-0x60(%rbp)
shl    $0x4,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
lea    0xe20(%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     1294 <cov_check+0xf4>
lea    0xdf1(%rip),%r13
lea    -0x70(%rbp),%r14
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     1294 <cov_check+0xf4>
cmpb   $0x23,-0xf42b0(%rbp)
je     1220 <cov_check+0x80>
lea    -0xf42b0(%rbp),%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     1220 <cov_check+0x80>
xor    %r15d,%r15d
jmp    1272 <cov_check+0xd2>
nop
xor    %edi,%edi
mov    %r13,%rsi
mov    %r14,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     1220 <cov_check+0x80>
cmp    %r12d,%r15d
jge    1260 <cov_check+0xc0>
mov    %rax,%rdi
mov    $0xa,%esi
call   10c0 <cov_deserialize@plt>
movslq %r15d,%rax
shl    $0x4,%rax
fstpt  (%rbx,%rax,1)
add    $0x1,%r15d
jmp    1260 <cov_check+0xc0>
mov    %rbx,-0x58(%rbp)
mov    -0x38(%rbp),%rdi
call   1050 <fclose@plt>
lea    0xd5a(%rip),%rsi
mov    -0x48(%rbp),%rdi
call   1090 <fopen@plt>
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    %rax,%r13
mov    %rax,%rdx
call   1070 <fgets@plt>
fldz
fstpt  -0x48(%rbp)
test   %rax,%rax
je     1404 <cov_check+0x264>
fldz
fstpt  -0x48(%rbp)
lea    -0xf42b0(%rbp),%r14
lea    -0x68(%rbp),%r15
mov    %r13,-0x38(%rbp)
jmp    131b <cov_check+0x17b>
nopl   0x0(%rax)
mov    -0x38(%rbp),%rbx
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    %rbx,%r13
mov    %rbx,%rdx
call   1070 <fgets@plt>
lea    -0xf42b0(%rbp),%r14
test   %rax,%rax
je     1404 <cov_check+0x264>
mov    %r14,%rdi
lea    0xce0(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1380 <cov_check+0x1e0>
mov    %r14,%rdi
lea    0xcce(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
mov    %r13,%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  -0x48(%rbp)
jmp    12f4 <cov_check+0x154>
nopl   (%rax)
mov    %r14,%rdi
mov    $0xf4240,%esi
mov    %r13,%rdx
call   1070 <fgets@plt>
mov    %r14,%rdi
lea    0xc66(%rip),%rsi
mov    %r15,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     13fc <cov_check+0x25c>
xor    %r14d,%r14d
lea    0xc4f(%rip),%rbx
jmp    13d6 <cov_check+0x236>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     12f0 <cov_check+0x150>
cmp    %r12d,%r14d
jge    13c0 <cov_check+0x220>
mov    %rax,%rdi
mov    $0xa,%esi
call   10c0 <cov_deserialize@plt>
movslq %r14d,%rax
shl    $0x4,%rax
mov    -0x50(%rbp),%rcx
fstpt  (%rcx,%rax,1)
add    $0x1,%r14d
jmp    13c0 <cov_check+0x220>
mov    %r13,%rbx
jmp    12f4 <cov_check+0x154>
mov    %r13,%rdi
call   1050 <fclose@plt>
test   %r12d,%r12d
mov    -0x60(%rbp),%r13
jle    14e5 <cov_check+0x345>
mov    %r13,%r14
neg    %r14
mov    $0x1,%r15b
mov    $0x1,%ebx
nopw   0x0(%rax,%rax,1)
mov    -0x58(%rbp),%rax
fldt   (%rax)
sub    $0x10,%rsp
fld    %st(0)
fstpt  -0x38(%rbp)
fstpt  (%rsp)
call   1080 <isnan@plt>
add    $0x10,%rsp
test   %rax,%rax
jne    14b8 <cov_check+0x318>
sub    $0x10,%rsp
fldt   -0x38(%rbp)
fstpt  (%rsp)
call   10b0 <isinf@plt>
add    $0x10,%rsp
test   %rax,%rax
jne    14b8 <cov_check+0x318>
mov    -0x50(%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   -0x48(%rbp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
ja     14b2 <cov_check+0x312>
cmp    %r13,%rbx
setb   %r15b
add    $0x10,%rax
mov    %rax,-0x50(%rbp)
addq   $0x10,-0x58(%rbp)
lea    (%r14,%rbx,1),%rax
add    $0x1,%rax
add    $0x1,%rbx
cmp    $0x1,%rax
jne    1430 <cov_check+0x290>
jmp    14e5 <cov_check+0x345>
test   $0x1,%r15b
je     14e5 <cov_check+0x345>
lea    0xb6b(%rip),%rdi
call   1040 <puts@plt>
lea    0xb55(%rip),%rdi
lea    0xb56(%rip),%rsi
call   1090 <fopen@plt>
lea    0xb3b(%rip),%rdi
mov    $0x6,%esi
jmp    1510 <cov_check+0x370>
lea    0xb44(%rip),%rdi
call   1040 <puts@plt>
lea    0xb28(%rip),%rdi
lea    0xb29(%rip),%rsi
call   1090 <fopen@plt>
lea    0xb08(%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 = [3 x i8] c"rt\00"
@.str.2 = [7 x i8] c"#ideal\00"
@.str.3 = [7 x i8] c"#delta\00"
@.str.4 = [6 x i8] c"true\0A\00"
@.str.5 = [7 x i8] c"false\0A\00"
@.str.6 = [8 x i8] c"sat.cov\00"
@.str.7 = [2 x i8] c"w\00"
define void @cov_check(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i64
%15 = alloca i64
%16 = alloca x86_fp80
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca x86_fp80
%24 = alloca i32*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
store i32 1000000, i32* %7
%25 = load i32, i32* %7
%26 = zext i32 %25 to i64
%27 = call i8* @llvm.stacksave()
store i8* %27, i8** %8
%28 = alloca i8, i64 %26
store i64 %26, i64* %9
%29 = load i32, i32* %6
%30 = zext i32 %29 to i64
%31 = alloca x86_fp80, i64 %30
store i64 %30, i64* %14
%32 = load i32, i32* %6
%33 = zext i32 %32 to i64
%34 = alloca x86_fp80, i64 %33
store i64 %33, i64* %15
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %11
store i32 10, i32* %19
%35 = load i8*, i8** %4
%36 = call i32* @fopen(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %36, i32** %17
br label %37
37: ; preds = %71, %3
%38 = load i32, i32* %7
%39 = load i32*, i32** %17
%40 = call i32* @fgets(i8* %28, i32 %38, i32* %39)
%41 = icmp ne i32* %40, null
br i1 %41, label %42, label %72
42: ; preds = %37
%43 = getelementptr inbounds i8, i8* %28, i64 0
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 35
br i1 %46, label %47, label %71
47: ; preds = %42
store i32 0, i32* %20
%48 = load i8*, i8** %11
%49 = call i8* @strtok_r(i8* %28, i8* %48, i8** %12)
store i8* %49, i8** %10
br label %50
50: ; preds = %67, %47
%51 = load i8*, i8** %10
%52 = icmp ne i8* %51, null
br i1 %52, label %53, label %70
53: ; preds = %50
%54 = load i32, i32* %20
%55 = load i32, i32* %6
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %66
57: ; preds = %53
%58 = load i8*, i8** %10
%59 = load i32, i32* %19
%60 = call x86_fp80 @cov_deserialize(i8* %58, i32 %59)
%61 = load i32, i32* %20
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds x86_fp80, x86_fp80* %31, i64 %62
store x86_fp80 %60, x86_fp80* %63
%64 = load i32, i32* %20
%65 = add nsw i32 %64, 1
store i32 %65, i32* %20
br label %66
66: ; preds = %57, %53
br label %67
67: ; preds = %66
%68 = load i8*, i8** %11
%69 = call i8* @strtok_r(i8* null, i8* %68, i8** %12)
store i8* %69, i8** %10
br label %50
70: ; preds = %50
br label %71
71: ; preds = %70, %42
br label %37
72: ; preds = %37
%73 = load i32*, i32** %17
%74 = call i32 @fclose(i32* %73)
%75 = load i8*, i8** %5
%76 = call i32* @fopen(i8* %75, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %76, i32** %18
br label %77
77: ; preds = %121, %72
%78 = load i32, i32* %7
%79 = load i32*, i32** %18
%80 = call i32* @fgets(i8* %28, i32 %78, i32* %79)
%81 = icmp ne i32* %80, null
br i1 %81, label %82, label %122
82: ; preds = %77
%83 = call i64 @strncmp(i8* %28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %112
85: ; preds = %82
store i32 0, i32* %20
%86 = load i32, i32* %7
%87 = load i32*, i32** %18
%88 = call i32* @fgets(i8* %28, i32 %86, i32* %87)
%89 = load i8*, i8** %11
%90 = call i8* @strtok_r(i8* %28, i8* %89, i8** %13)
store i8* %90, i8** %10
br label %91
91: ; preds = %108, %85
%92 = load i8*, i8** %10
%93 = icmp ne i8* %92, null
br i1 %93, label %94, label %111
94: ; preds = %91
%95 = load i32, i32* %20
%96 = load i32, i32* %6
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %107
98: ; preds = %94
%99 = load i8*, i8** %10
%100 = load i32, i32* %19
%101 = call x86_fp80 @cov_deserialize(i8* %99, i32 %100)
%102 = load i32, i32* %20
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds x86_fp80, x86_fp80* %34, i64 %103
store x86_fp80 %101, x86_fp80* %104
%105 = load i32, i32* %20
%106 = add nsw i32 %105, 1
store i32 %106, i32* %20
br label %107
107: ; preds = %98, %94
br label %108
108: ; preds = %107
%109 = load i8*, i8** %11
%110 = call i8* @strtok_r(i8* null, i8* %109, i8** %13)
store i8* %110, i8** %10
br label %91
111: ; preds = %91
br label %121
112: ; preds = %82
%113 = call i64 @strncmp(i8* %28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%114 = icmp eq i64 %113, 0
br i1 %114, label %115, label %120
115: ; preds = %112
%116 = load i32*, i32** %18
%117 = call i32* @fgets(i8* %28, i32 80, i32* %116)
%118 = load i32, i32* %19
%119 = call x86_fp80 @cov_deserialize(i8* %28, i32 %118)
store x86_fp80 %119, x86_fp80* %16
br label %120
120: ; preds = %115, %112
br label %121
121: ; preds = %120, %111
br label %77
122: ; preds = %77
%123 = load i32*, i32** %18
%124 = call i32 @fclose(i32* %123)
store i32 1, i32* %22
store i32 0, i32* %21
br label %125
125: ; preds = %180, %122
%126 = load i32, i32* %21
%127 = load i32, i32* %6
%128 = icmp slt i32 %126, %127
br i1 %128, label %129, label %183
129: ; preds = %125
%130 = load i32, i32* %21
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds x86_fp80, x86_fp80* %31, i64 %131
%133 = load x86_fp80, x86_fp80* %132
%134 = call i64 @isnan(x86_fp80 %133)
%135 = icmp ne i64 %134, 0
br i1 %135, label %143, label %136
136: ; preds = %129
%137 = load i32, i32* %21
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds x86_fp80, x86_fp80* %31, i64 %138
%140 = load x86_fp80, x86_fp80* %139
%141 = call i64 @isinf(x86_fp80 %140)
%142 = icmp ne i64 %141, 0
br i1 %142, label %143, label %144
143: ; preds = %136, %129
store i32 0, i32* %22
br label %183
144: ; preds = %136
%145 = load i32, i32* %21
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds x86_fp80, x86_fp80* %31, i64 %146
%148 = load x86_fp80, x86_fp80* %147
%149 = load i32, i32* %21
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds x86_fp80, x86_fp80* %34, i64 %150
%152 = load x86_fp80, x86_fp80* %151
%153 = fcmp ogt x86_fp80 %148, %152
br i1 %153, label %154, label %164
154: ; preds = %144
%155 = load i32, i32* %21
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds x86_fp80, x86_fp80* %31, i64 %156
%158 = load x86_fp80, x86_fp80* %157
%159 = load i32, i32* %21
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds x86_fp80, x86_fp80* %34, i64 %160
%162 = load x86_fp80, x86_fp80* %161
%163 = fsub x86_fp80 %158, %162
store x86_fp80 %163, x86_fp80* %23
br label %174
164: ; preds = %144
%165 = load i32, i32* %21
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds x86_fp80, x86_fp80* %34, i64 %166
%168 = load x86_fp80, x86_fp80* %167
%169 = load i32, i32* %21
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds x86_fp80, x86_fp80* %31, i64 %170
%172 = load x86_fp80, x86_fp80* %171
%173 = fsub x86_fp80 %168, %172
store x86_fp80 %173, x86_fp80* %23
br label %174
174: ; preds = %164, %154
%175 = load x86_fp80, x86_fp80* %16
%176 = load x86_fp80, x86_fp80* %23
%177 = fcmp olt x86_fp80 %175, %176
br i1 %177, label %178, label %179
178: ; preds = %174
store i32 0, i32* %22
br label %183
179: ; preds = %174
br label %180
180: ; preds = %179
%181 = load i32, i32* %21
%182 = add nsw i32 %181, 1
store i32 %182, i32* %21
br label %125
183: ; preds = %178, %143, %125
%184 = load i32, i32* %22
%185 = icmp ne i32 %184, 0
br i1 %185, label %186, label %188
186: ; preds = %183
%187 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %190
188: ; preds = %183
%189 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %190
190: ; preds = %188, %186
%191 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %191, i32** %24
%192 = load i32, i32* %22
%193 = icmp ne i32 %192, 0
br i1 %193, label %194, label %197
194: ; preds = %190
%195 = load i32*, i32** %24
%196 = call i32 @fprintf(i32* %195, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %200
197: ; preds = %190
%198 = load i32*, i32** %24
%199 = call i32 @fprintf(i32* %198, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %200
200: ; preds = %197, %194
%201 = load i8*, i8** %8
ret void
}

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