#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 *);
char *malloc(scalar_t__);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strlen(char *);
scalar_t__ strncmp(char *, char *, int);
char *strtok_r(char *, char *, char **);
void cov_check_par(char *log, char *spec, int length, char *inx) {
  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++) {
    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;
  char *satf = malloc(strlen("sat_.cov") + strlen(inx) + 1);
  satf[0] = '\0';
  strcat(satf, "sat_");
  strcat(satf, inx);
  strcat(satf, ".cov");
  result_file = fopen(satf, "w");
  if (predicate)
    fprintf(result_file, "true\n");
  else
    fprintf(result_file, "false\n");
}


x86 assembly (clang, -O0):
<cov_check_par>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0xf4240,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xd8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x14(%rbp),%eax
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xd0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x60(%rbp)
mov    -0x14(%rbp),%eax
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xc8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x68(%rbp)
lea    0xdc3(%rip),%rax
mov    %rax,-0x48(%rbp)
movl   $0xa,-0x94(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdac(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x88(%rbp)
mov    -0xd8(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x88(%rbp),%rdx
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     132d <cov_check_par+0x17d>
mov    -0xd8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     1328 <cov_check_par+0x178>
mov    -0xd8(%rbp),%rdi
movl   $0x0,-0x98(%rbp)
mov    -0x48(%rbp),%rsi
lea    -0x50(%rbp),%rdx
call   1070 <strtok_r@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     1323 <cov_check_par+0x173>
mov    -0x98(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1304 <cov_check_par+0x154>
mov    -0x40(%rbp),%rdi
mov    -0x94(%rbp),%esi
call   10d0 <cov_deserialize@plt>
mov    -0xd0(%rbp),%rax
movslq -0x98(%rbp),%rcx
shl    $0x4,%rcx
fstpt  (%rax,%rcx,1)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    1309 <cov_check_par+0x159>
mov    -0x48(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x50(%rbp),%rdx
call   1070 <strtok_r@plt>
mov    %rax,-0x40(%rbp)
jmp    12b7 <cov_check_par+0x107>
jmp    1328 <cov_check_par+0x178>
jmp    1262 <cov_check_par+0xb2>
mov    -0x88(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rdi
lea    0xcbe(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x90(%rbp)
mov    -0xd8(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x90(%rbp),%rdx
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     1494 <cov_check_par+0x2e4>
mov    -0xd8(%rbp),%rdi
lea    0xc87(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    143b <cov_check_par+0x28b>
mov    -0xd8(%rbp),%rdi
movl   $0x0,-0x98(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x90(%rbp),%rdx
call   1080 <fgets@plt>
mov    -0xd8(%rbp),%rdi
mov    -0x48(%rbp),%rsi
lea    -0x58(%rbp),%rdx
call   1070 <strtok_r@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     1436 <cov_check_par+0x286>
mov    -0x98(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1417 <cov_check_par+0x267>
mov    -0x40(%rbp),%rdi
mov    -0x94(%rbp),%esi
call   10d0 <cov_deserialize@plt>
mov    -0xc8(%rbp),%rax
movslq -0x98(%rbp),%rcx
shl    $0x4,%rcx
fstpt  (%rax,%rcx,1)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    141c <cov_check_par+0x26c>
mov    -0x48(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x58(%rbp),%rdx
call   1070 <strtok_r@plt>
mov    %rax,-0x40(%rbp)
jmp    13ca <cov_check_par+0x21a>
jmp    148f <cov_check_par+0x2df>
mov    -0xd8(%rbp),%rdi
lea    0xbc3(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    148a <cov_check_par+0x2da>
mov    -0xd8(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1080 <fgets@plt>
mov    -0xd8(%rbp),%rdi
mov    -0x94(%rbp),%esi
call   10d0 <cov_deserialize@plt>
fstpt  -0x80(%rbp)
jmp    148f <cov_check_par+0x2df>
jmp    1350 <cov_check_par+0x1a0>
mov    -0x90(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0xa0(%rbp)
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1586 <cov_check_par+0x3d6>
mov    -0xc8(%rbp),%rax
mov    -0xd0(%rbp),%rdx
movslq -0x9c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    151f <cov_check_par+0x36f>
jmp    14f3 <cov_check_par+0x343>
mov    -0xc8(%rbp),%rax
mov    -0xd0(%rbp),%rdx
movslq -0x9c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fstpt  -0xb0(%rbp)
jmp    1546 <cov_check_par+0x396>
mov    -0xd0(%rbp),%rax
mov    -0xc8(%rbp),%rdx
movslq -0x9c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fstpt  -0xb0(%rbp)
fldt   -0x80(%rbp)
fldt   -0xb0(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    156d <cov_check_par+0x3bd>
jmp    155e <cov_check_par+0x3ae>
movl   $0x0,-0xa0(%rbp)
jmp    1586 <cov_check_par+0x3d6>
jmp    1572 <cov_check_par+0x3c2>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    14b4 <cov_check_par+0x304>
cmpl   $0x0,-0xa0(%rbp)
je     15a4 <cov_check_par+0x3f4>
lea    0xa79(%rip),%rdi
call   1060 <printf@plt>
jmp    15b0 <cov_check_par+0x400>
lea    0xa6e(%rip),%rdi
call   1060 <printf@plt>
lea    0xa69(%rip),%rdi
call   1050 <strlen@plt>
mov    %rax,-0xe0(%rbp)
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xe0(%rbp),%rdi
add    %rax,%rdi
add    $0x1,%rdi
call   10a0 <malloc@plt>
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rax
movb   $0x0,(%rax)
mov    -0xc0(%rbp),%rdi
lea    0xa2b(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0xc0(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10c0 <strcat@plt>
mov    -0xc0(%rbp),%rdi
lea    0xa03(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0xc0(%rbp),%rdi
lea    0x9fa(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0xb8(%rbp)
cmpl   $0x0,-0xa0(%rbp)
je     1665 <cov_check_par+0x4b5>
mov    -0xb8(%rbp),%rdi
lea    0x9b8(%rip),%rsi
call   1090 <fprintf@plt>
jmp    1678 <cov_check_par+0x4c8>
mov    -0xb8(%rbp),%rdi
lea    0x9a6(%rip),%rsi
call   1090 <fprintf@plt>
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cov_check_par>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf4288,%rsp
mov    %rcx,-0x48(%rbp)
mov    %edx,%r15d
mov    %rsi,-0x40(%rbp)
mov    %edx,%eax
mov    %rsp,%rbx
mov    %rax,-0x58(%rbp)
shl    $0x4,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
lea    0xe0c(%rip),%rsi
call   10a0 <fopen@plt>
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    %rax,-0x30(%rbp)
mov    %rax,%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     12a4 <cov_check_par+0xf4>
lea    0xddd(%rip),%r13
lea    -0x70(%rbp),%r14
jmp    124a <cov_check_par+0x9a>
nopl   0x0(%rax)
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    -0x30(%rbp),%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     12a4 <cov_check_par+0xf4>
cmpb   $0x23,-0xf42b0(%rbp)
je     1230 <cov_check_par+0x80>
lea    -0xf42b0(%rbp),%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1070 <strtok_r@plt>
test   %rax,%rax
je     1230 <cov_check_par+0x80>
xor    %r12d,%r12d
jmp    1282 <cov_check_par+0xd2>
nop
xor    %edi,%edi
mov    %r13,%rsi
mov    %r14,%rdx
call   1070 <strtok_r@plt>
test   %rax,%rax
je     1230 <cov_check_par+0x80>
cmp    %r15d,%r12d
jge    1270 <cov_check_par+0xc0>
mov    %rax,%rdi
mov    $0xa,%esi
call   10d0 <cov_deserialize@plt>
movslq %r12d,%rax
shl    $0x4,%rax
fstpt  (%rbx,%rax,1)
add    $0x1,%r12d
jmp    1270 <cov_check_par+0xc0>
mov    -0x30(%rbp),%rdi
call   1050 <fclose@plt>
lea    0xd4e(%rip),%rsi
mov    -0x40(%rbp),%rdi
call   10a0 <fopen@plt>
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    %rax,%r14
mov    %rax,%rdx
call   1080 <fgets@plt>
fldz
fstpt  -0x40(%rbp)
test   %rax,%rax
je     1414 <cov_check_par+0x264>
fldz
fstpt  -0x40(%rbp)
lea    -0xf42b0(%rbp),%r13
lea    -0x68(%rbp),%r12
mov    %rbx,-0x30(%rbp)
mov    %r14,-0x60(%rbp)
jmp    132f <cov_check_par+0x17f>
nopl   0x0(%rax)
mov    -0x60(%rbp),%rbx
lea    -0xf42b0(%rbp),%rdi
mov    $0xf4240,%esi
mov    %rbx,%r14
mov    %rbx,%rdx
call   1080 <fgets@plt>
lea    -0xf42b0(%rbp),%r13
test   %rax,%rax
mov    -0x30(%rbp),%rbx
je     1414 <cov_check_par+0x264>
mov    %r13,%rdi
lea    0xccc(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     13a0 <cov_check_par+0x1f0>
mov    %r13,%rdi
lea    0xcba(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
mov    %r14,%rbx
jne    1304 <cov_check_par+0x154>
lea    -0xf42b0(%rbp),%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   1080 <fgets@plt>
lea    -0xf42b0(%rbp),%rdi
mov    $0xa,%esi
call   10d0 <cov_deserialize@plt>
fstpt  -0x40(%rbp)
jmp    1304 <cov_check_par+0x154>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    $0xf4240,%esi
mov    %r14,%rdx
call   1080 <fgets@plt>
mov    %r13,%rdi
lea    0xc46(%rip),%rbx
mov    %rbx,%rsi
mov    %r12,%rdx
call   1070 <strtok_r@plt>
test   %rax,%rax
je     140c <cov_check_par+0x25c>
xor    %r13d,%r13d
jmp    13e6 <cov_check_par+0x236>
nop
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
call   1070 <strtok_r@plt>
test   %rax,%rax
je     1300 <cov_check_par+0x150>
cmp    %r15d,%r13d
jge    13d0 <cov_check_par+0x220>
mov    %rax,%rdi
mov    $0xa,%esi
call   10d0 <cov_deserialize@plt>
movslq %r13d,%rax
shl    $0x4,%rax
mov    -0x50(%rbp),%rcx
fstpt  (%rcx,%rax,1)
add    $0x1,%r13d
jmp    13d0 <cov_check_par+0x220>
mov    %r14,%rbx
jmp    1304 <cov_check_par+0x154>
mov    %r14,%rdi
call   1050 <fclose@plt>
lea    0xc0f(%rip),%rdi
test   %r15d,%r15d
jle    14c1 <cov_check_par+0x311>
fldt   (%rbx)
mov    -0x50(%rbp),%rdx
fldt   (%rdx)
fxch   %st(1)
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)
mov    $0x1,%r14b
fldt   -0x40(%rbp)
fxch   %st(1)
fucomip %st(1),%st
ja     14a8 <cov_check_par+0x2f8>
add    $0x10,%rbx
add    $0x10,%rdx
mov    $0x1,%eax
mov    -0x58(%rbp),%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    %rax,%rcx
je     14c6 <cov_check_par+0x316>
fldt   (%rbx)
fldt   (%rdx)
fxch   %st(1)
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)
add    $0x1,%rax
add    $0x10,%rbx
add    $0x10,%rdx
fucomip %st(1),%st
jbe    1470 <cov_check_par+0x2c0>
fstp   %st(0)
add    $0xffffffffffffffff,%rax
cmp    %rcx,%rax
setb   %r14b
fldz
fstp   %st(0)
lea    0xb7b(%rip),%rax
lea    0xb7a(%rip),%rdi
test   %r14b,%r14b
cmovne %rax,%rdi
jmp    14cf <cov_check_par+0x31f>
xor    %r14d,%r14d
jmp    14cf <cov_check_par+0x31f>
fstp   %st(0)
cmp    %rcx,%rax
setb   %r14b
mov    -0x48(%rbp),%r15
call   1040 <puts@plt>
mov    %r15,%rdi
call   1060 <strlen@plt>
lea    0x9(%rax),%rdi
call   1090 <malloc@plt>
mov    %rax,%rbx
movb   $0x0,(%rax)
lea    0xb2a(%rip),%rsi
mov    %rax,%rdi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10b0 <strcat@plt>
lea    0xb15(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcat@plt>
lea    0xb0b(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <fopen@plt>
test   %r14b,%r14b
je     153a <cov_check_par+0x38a>
lea    0xae6(%rip),%rdi
mov    $0x6,%esi
jmp    1546 <cov_check_par+0x396>
lea    0xad2(%rip),%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   10c0 <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 = [9 x i8] c"sat_.cov\00"
@.str.7 = [5 x i8] c"sat_\00"
@.str.8 = [5 x i8] c".cov\00"
@.str.9 = [2 x i8] c"w\00"
define void @cov_check_par(i8* %0, i8* %1, i32 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i64
%17 = alloca i64
%18 = alloca x86_fp80
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca x86_fp80
%26 = alloca i32*
%27 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8* %3, i8** %8
store i32 1000000, i32* %9
%28 = load i32, i32* %9
%29 = zext i32 %28 to i64
%30 = call i8* @llvm.stacksave()
store i8* %30, i8** %10
%31 = alloca i8, i64 %29
store i64 %29, i64* %11
%32 = load i32, i32* %7
%33 = zext i32 %32 to i64
%34 = alloca x86_fp80, i64 %33
store i64 %33, i64* %16
%35 = load i32, i32* %7
%36 = zext i32 %35 to i64
%37 = alloca x86_fp80, i64 %36
store i64 %36, i64* %17
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %13
store i32 10, i32* %21
%38 = load i8*, i8** %5
%39 = call i32* @fopen(i8* %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %39, i32** %19
br label %40
40: ; preds = %74, %4
%41 = load i32, i32* %9
%42 = load i32*, i32** %19
%43 = call i32* @fgets(i8* %31, i32 %41, i32* %42)
%44 = icmp ne i32* %43, null
br i1 %44, label %45, label %75
45: ; preds = %40
%46 = getelementptr inbounds i8, i8* %31, i64 0
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 35
br i1 %49, label %50, label %74
50: ; preds = %45
store i32 0, i32* %22
%51 = load i8*, i8** %13
%52 = call i8* @strtok_r(i8* %31, i8* %51, i8** %14)
store i8* %52, i8** %12
br label %53
53: ; preds = %70, %50
%54 = load i8*, i8** %12
%55 = icmp ne i8* %54, null
br i1 %55, label %56, label %73
56: ; preds = %53
%57 = load i32, i32* %22
%58 = load i32, i32* %7
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %69
60: ; preds = %56
%61 = load i8*, i8** %12
%62 = load i32, i32* %21
%63 = call x86_fp80 @cov_deserialize(i8* %61, i32 %62)
%64 = load i32, i32* %22
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds x86_fp80, x86_fp80* %34, i64 %65
store x86_fp80 %63, x86_fp80* %66
%67 = load i32, i32* %22
%68 = add nsw i32 %67, 1
store i32 %68, i32* %22
br label %69
69: ; preds = %60, %56
br label %70
70: ; preds = %69
%71 = load i8*, i8** %13
%72 = call i8* @strtok_r(i8* null, i8* %71, i8** %14)
store i8* %72, i8** %12
br label %53
73: ; preds = %53
br label %74
74: ; preds = %73, %45
br label %40
75: ; preds = %40
%76 = load i32*, i32** %19
%77 = call i32 @fclose(i32* %76)
%78 = load i8*, i8** %6
%79 = call i32* @fopen(i8* %78, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %79, i32** %20
br label %80
80: ; preds = %124, %75
%81 = load i32, i32* %9
%82 = load i32*, i32** %20
%83 = call i32* @fgets(i8* %31, i32 %81, i32* %82)
%84 = icmp ne i32* %83, null
br i1 %84, label %85, label %125
85: ; preds = %80
%86 = call i64 @strncmp(i8* %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %115
88: ; preds = %85
store i32 0, i32* %22
%89 = load i32, i32* %9
%90 = load i32*, i32** %20
%91 = call i32* @fgets(i8* %31, i32 %89, i32* %90)
%92 = load i8*, i8** %13
%93 = call i8* @strtok_r(i8* %31, i8* %92, i8** %15)
store i8* %93, i8** %12
br label %94
94: ; preds = %111, %88
%95 = load i8*, i8** %12
%96 = icmp ne i8* %95, null
br i1 %96, label %97, label %114
97: ; preds = %94
%98 = load i32, i32* %22
%99 = load i32, i32* %7
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %110
101: ; preds = %97
%102 = load i8*, i8** %12
%103 = load i32, i32* %21
%104 = call x86_fp80 @cov_deserialize(i8* %102, i32 %103)
%105 = load i32, i32* %22
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds x86_fp80, x86_fp80* %37, i64 %106
store x86_fp80 %104, x86_fp80* %107
%108 = load i32, i32* %22
%109 = add nsw i32 %108, 1
store i32 %109, i32* %22
br label %110
110: ; preds = %101, %97
br label %111
111: ; preds = %110
%112 = load i8*, i8** %13
%113 = call i8* @strtok_r(i8* null, i8* %112, i8** %15)
store i8* %113, i8** %12
br label %94
114: ; preds = %94
br label %124
115: ; preds = %85
%116 = call i64 @strncmp(i8* %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %123
118: ; preds = %115
%119 = load i32*, i32** %20
%120 = call i32* @fgets(i8* %31, i32 80, i32* %119)
%121 = load i32, i32* %21
%122 = call x86_fp80 @cov_deserialize(i8* %31, i32 %121)
store x86_fp80 %122, x86_fp80* %18
br label %123
123: ; preds = %118, %115
br label %124
124: ; preds = %123, %114
br label %80
125: ; preds = %80
%126 = load i32*, i32** %20
%127 = call i32 @fclose(i32* %126)
store i32 1, i32* %24
store i32 0, i32* %23
br label %128
128: ; preds = %168, %125
%129 = load i32, i32* %23
%130 = load i32, i32* %7
%131 = icmp slt i32 %129, %130
br i1 %131, label %132, label %171
132: ; preds = %128
%133 = load i32, i32* %23
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds x86_fp80, x86_fp80* %34, i64 %134
%136 = load x86_fp80, x86_fp80* %135
%137 = load i32, i32* %23
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds x86_fp80, x86_fp80* %37, i64 %138
%140 = load x86_fp80, x86_fp80* %139
%141 = fcmp ogt x86_fp80 %136, %140
br i1 %141, label %142, label %152
142: ; preds = %132
%143 = load i32, i32* %23
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds x86_fp80, x86_fp80* %34, i64 %144
%146 = load x86_fp80, x86_fp80* %145
%147 = load i32, i32* %23
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds x86_fp80, x86_fp80* %37, i64 %148
%150 = load x86_fp80, x86_fp80* %149
%151 = fsub x86_fp80 %146, %150
store x86_fp80 %151, x86_fp80* %25
br label %162
152: ; preds = %132
%153 = load i32, i32* %23
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds x86_fp80, x86_fp80* %37, i64 %154
%156 = load x86_fp80, x86_fp80* %155
%157 = load i32, i32* %23
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds x86_fp80, x86_fp80* %34, i64 %158
%160 = load x86_fp80, x86_fp80* %159
%161 = fsub x86_fp80 %156, %160
store x86_fp80 %161, x86_fp80* %25
br label %162
162: ; preds = %152, %142
%163 = load x86_fp80, x86_fp80* %18
%164 = load x86_fp80, x86_fp80* %25
%165 = fcmp olt x86_fp80 %163, %164
br i1 %165, label %166, label %167
166: ; preds = %162
store i32 0, i32* %24
br label %171
167: ; preds = %162
br label %168
168: ; preds = %167
%169 = load i32, i32* %23
%170 = add nsw i32 %169, 1
store i32 %170, i32* %23
br label %128
171: ; preds = %166, %128
%172 = load i32, i32* %24
%173 = icmp ne i32 %172, 0
br i1 %173, label %174, label %176
174: ; preds = %171
%175 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %178
176: ; preds = %171
%177 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %178
178: ; preds = %176, %174
%179 = call i64 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%180 = load i8*, i8** %8
%181 = call i64 @strlen(i8* %180)
%182 = add nsw i64 %179, %181
%183 = add nsw i64 %182, 1
%184 = call i8* @malloc(i64 %183)
store i8* %184, i8** %27
%185 = load i8*, i8** %27
%186 = getelementptr inbounds i8, i8* %185, i64 0
store i8 0, i8* %186
%187 = load i8*, i8** %27
%188 = call i32 @strcat(i8* %187, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%189 = load i8*, i8** %27
%190 = load i8*, i8** %8
%191 = call i32 @strcat(i8* %189, i8* %190)
%192 = load i8*, i8** %27
%193 = call i32 @strcat(i8* %192, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%194 = load i8*, i8** %27
%195 = call i32* @fopen(i8* %194, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32* %195, i32** %26
%196 = load i32, i32* %24
%197 = icmp ne i32 %196, 0
br i1 %197, label %198, label %201
198: ; preds = %178
%199 = load i32*, i32** %26
%200 = call i32 @fprintf(i32* %199, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %204
201: ; preds = %178
%202 = load i32*, i32** %26
%203 = call i32 @fprintf(i32* %202, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %204
204: ; preds = %201, %198
%205 = load i8*, i8** %10
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.7 = [5 x i8] c"sat_\00"
@.str.8 = [5 x i8] c".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_par(i8* nocapture %0, i8* nocapture %1, i32 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [1000000 x i8]
%8 = getelementptr inbounds [1000000 x i8], [1000000 x i8]* %7, i64 0, i64 0
%9 = bitcast i8** %5 to i8*
%10 = bitcast i8** %6 to i8*
%11 = zext i32 %2 to i64
%12 = alloca x86_fp80, i64 %11
%13 = alloca x86_fp80, i64 %11
%14 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32* @fgets(i8* %8, i32 1000000, i32* %14)
%16 = icmp eq i32* %15, null
br i1 %16, label %39, label %17
17: ; preds = %4, %36
%18 = load i8, i8* %8
%19 = icmp eq i8 %18, 35
br i1 %19, label %36, label %20
20: ; preds = %17
%21 = call i8* @strtok_r(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %5)
%22 = icmp eq i8* %21, null
br i1 %22, label %36, label %23
23: ; preds = %20, %32
%24 = phi i8* [ %34, %32 ], [ %21, %20 ]
%25 = phi i32 [ %33, %32 ], [ 0, %20 ]
%26 = icmp slt i32 %25, %2
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = call x86_fp80 @cov_deserialize(i8* %24, i32 10)
%29 = sext i32 %25 to i64
%30 = getelementptr inbounds x86_fp80, x86_fp80* %12, i64 %29
store x86_fp80 %28, x86_fp80* %30
%31 = add nsw i32 %25, 1
br label %32
32: ; preds = %23, %27
%33 = phi i32 [ %31, %27 ], [ %25, %23 ]
%34 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %5)
%35 = icmp eq i8* %34, null
br i1 %35, label %36, label %23
36: ; preds = %32, %20, %17
%37 = call i32* @fgets(i8* %8, i32 1000000, i32* %14)
%38 = icmp eq i32* %37, null
br i1 %38, label %39, label %17
39: ; preds = %36, %4
%40 = call i32 @fclose(i32* %14)
%41 = call i32* @fopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%42 = call i32* @fgets(i8* %8, i32 1000000, i32* %41)
%43 = icmp eq i32* %42, null
br i1 %43, label %75, label %44
44: ; preds = %39, %71
%45 = phi x86_fp80 [ %72, %71 ], [ undef, %39 ]
%46 = call i64 @strncmp(i8* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %65
48: ; preds = %44
%49 = call i32* @fgets(i8* %8, i32 1000000, i32* %41)
%50 = call i8* @strtok_r(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %6)
%51 = icmp eq i8* %50, null
br i1 %51, label %71, label %52
52: ; preds = %48, %61
%53 = phi i8* [ %63, %61 ], [ %50, %48 ]
%54 = phi i32 [ %62, %61 ], [ 0, %48 ]
%55 = icmp slt i32 %54, %2
br i1 %55, label %56, label %61
56: ; preds = %52
%57 = call x86_fp80 @cov_deserialize(i8* %53, i32 10)
%58 = sext i32 %54 to i64
%59 = getelementptr inbounds x86_fp80, x86_fp80* %13, i64 %58
store x86_fp80 %57, x86_fp80* %59
%60 = add nsw i32 %54, 1
br label %61
61: ; preds = %52, %56
%62 = phi i32 [ %60, %56 ], [ %54, %52 ]
%63 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %6)
%64 = icmp eq i8* %63, null
br i1 %64, label %71, label %52
65: ; preds = %44
%66 = call i64 @strncmp(i8* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = call i32* @fgets(i8* %8, i32 80, i32* %41)
%70 = call x86_fp80 @cov_deserialize(i8* %8, i32 10)
br label %71
71: ; preds = %61, %48, %65, %68
%72 = phi x86_fp80 [ %70, %68 ], [ %45, %65 ], [ %45, %48 ], [ %45, %61 ]
%73 = call i32* @fgets(i8* %8, i32 1000000, i32* %41)
%74 = icmp eq i32* %73, null
br i1 %74, label %75, label %44
75: ; preds = %71, %39
%76 = phi x86_fp80 [ undef, %39 ], [ %72, %71 ]
%77 = call i32 @fclose(i32* %41)
%78 = icmp sgt i32 %2, 0
br i1 %78, label %79, label %109
79: ; preds = %75
%80 = zext i32 %2 to i64
%81 = load x86_fp80, x86_fp80* %12
%82 = load x86_fp80, x86_fp80* %13
%83 = fcmp ogt x86_fp80 %81, %82
%84 = fsub x86_fp80 %81, %82
%85 = fsub x86_fp80 %82, %81
%86 = select i1 %83, x86_fp80 %84, x86_fp80 %85
%87 = fcmp olt x86_fp80 %76, %86
br i1 %87, label %104, label %88
88: ; preds = %79, %91
%89 = phi i64 [ %101, %91 ], [ 1, %79 ]
%90 = icmp eq i64 %89, %11
br i1 %90, label %107, label %91
91: ; preds = %88
%92 = getelementptr inbounds x86_fp80, x86_fp80* %12, i64 %89
%93 = load x86_fp80, x86_fp80* %92
%94 = getelementptr inbounds x86_fp80, x86_fp80* %13, i64 %89
%95 = load x86_fp80, x86_fp80* %94
%96 = fcmp ogt x86_fp80 %93, %95
%97 = fsub x86_fp80 %93, %95
%98 = fsub x86_fp80 %95, %93
%99 = select i1 %96, x86_fp80 %97, x86_fp80 %98
%100 = fcmp olt x86_fp80 %76, %99
%101 = add nuw nsw i64 %89, 1
br i1 %100, label %102, label %88
102: ; preds = %91
%103 = icmp ult i64 %89, %80
br label %104
104: ; preds = %102, %79
%105 = phi i1 [ true, %79 ], [ %103, %102 ]
%106 = select i1 %105, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str.10, i64 0, i64 0)
br label %109
107: ; preds = %88
%108 = icmp ult i64 %89, %80
br label %109
109: ; preds = %107, %104, %75
%110 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.10, i64 0, i64 0), %75 ], [ %106, %104 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.10, i64 0, i64 0), %107 ]
%111 = phi i1 [ false, %75 ], [ %105, %104 ], [ %108, %107 ]
%112 = call i32 @puts(i8* dereferenceable(1) %110)
%113 = call i64 @strlen(i8* dereferenceable(1) %3)
%114 = add nsw i64 %113, 9
%115 = call i8* @malloc(i64 %114)
store i8 0, i8* %115
%116 = call i32 @strcat(i8* %115, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%117 = call i32 @strcat(i8* %115, i8* %3)
%118 = call i32 @strcat(i8* %115, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%119 = call i32* @fopen(i8* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br i1 %111, label %122, label %120
120: ; preds = %109
%121 = call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i64 5, i64 1, i32* %119)
br label %124
122: ; preds = %109
%123 = call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i64 6, i64 1, i32* %119)
br label %124
124: ; preds = %122, %120
ret void
}