#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*/ printf(char *);
scalar_t__ strncmp(char *, char *, int);
char *strtok_r(char *, char *, char **);
void cov_arr_check(char *log, char *spec, int length) {
  char line[1000];
  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, 1000, log_file) != NULL) {
    if (line[0] != '#') {
      cnt = 0;
      for (word = strtok_r(line, sep, &brkt); word;
           word = strtok_r(NULL, sep, &brkt)) {
        estimate[cnt] = cov_deserialize(word, ld_size);
        cnt++;
      }
    }
  }
  fclose(log_file);
  spec_file = fopen(spec, "rt");
  while (fgets(line, 1000, log_file) != NULL) {
    if (strncmp(line, "#ideal", 6) == 0) {
      cnt = 0;
      fgets(line, 1000, spec_file);
      for (word = strtok_r(line, sep, &brkb); word;
           word = strtok_r(NULL, sep, &brkb)) {
        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");
}


x86 assembly (clang, -O0):
<cov_arr_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4a0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x428(%rbp)
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x490(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x430(%rbp)
mov    -0x14(%rbp),%eax
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x488(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x438(%rbp)
lea    0xe27(%rip),%rax
mov    %rax,-0x410(%rbp)
movl   $0xa,-0x464(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe0d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x458(%rbp)
lea    -0x400(%rbp),%rdi
mov    -0x458(%rbp),%rdx
mov    $0x3e8,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     12cf <cov_arr_check+0x15f>
movsbl -0x400(%rbp),%eax
cmp    $0x23,%eax
je     12ca <cov_arr_check+0x15a>
movl   $0x0,-0x468(%rbp)
lea    -0x400(%rbp),%rdi
mov    -0x410(%rbp),%rsi
lea    -0x418(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     12c5 <cov_arr_check+0x155>
mov    -0x408(%rbp),%rdi
mov    -0x464(%rbp),%esi
call   1090 <cov_deserialize@plt>
mov    -0x490(%rbp),%rax
movslq -0x468(%rbp),%rcx
shl    $0x4,%rcx
fstpt  (%rax,%rcx,1)
mov    -0x468(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x468(%rbp)
mov    -0x410(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x418(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x408(%rbp)
jmp    125e <cov_arr_check+0xee>
jmp    12ca <cov_arr_check+0x15a>
jmp    1201 <cov_arr_check+0x91>
mov    -0x458(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rdi
lea    0xd1c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x460(%rbp)
lea    -0x400(%rbp),%rdi
mov    -0x458(%rbp),%rdx
mov    $0x3e8,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1448 <cov_arr_check+0x2d8>
lea    -0x400(%rbp),%rdi
lea    0xce3(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13e5 <cov_arr_check+0x275>
movl   $0x0,-0x468(%rbp)
lea    -0x400(%rbp),%rdi
mov    -0x460(%rbp),%rdx
mov    $0x3e8,%esi
call   1070 <fgets@plt>
lea    -0x400(%rbp),%rdi
mov    -0x410(%rbp),%rsi
lea    -0x420(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x408(%rbp)
cmpq   $0x0,-0x408(%rbp)
je     13e0 <cov_arr_check+0x270>
mov    -0x408(%rbp),%rdi
mov    -0x464(%rbp),%esi
call   1090 <cov_deserialize@plt>
mov    -0x488(%rbp),%rax
movslq -0x468(%rbp),%rcx
shl    $0x4,%rcx
fstpt  (%rax,%rcx,1)
mov    -0x468(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x468(%rbp)
mov    -0x410(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x420(%rbp),%rdx
call   1060 <strtok_r@plt>
mov    %rax,-0x408(%rbp)
jmp    1379 <cov_arr_check+0x209>
jmp    1443 <cov_arr_check+0x2d3>
lea    -0x400(%rbp),%rdi
lea    0xc19(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    143e <cov_arr_check+0x2ce>
mov    -0x460(%rbp),%rdx
lea    -0x400(%rbp),%rdi
mov    %rdi,-0x498(%rbp)
mov    $0x50,%esi
call   1070 <fgets@plt>
mov    -0x498(%rbp),%rdi
mov    -0x464(%rbp),%esi
call   1090 <cov_deserialize@plt>
fstpt  -0x450(%rbp)
jmp    1443 <cov_arr_check+0x2d3>
jmp    12f2 <cov_arr_check+0x182>
mov    -0x460(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0x470(%rbp)
movl   $0x0,-0x46c(%rbp)
mov    -0x46c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    153d <cov_arr_check+0x3cd>
mov    -0x488(%rbp),%rax
mov    -0x490(%rbp),%rdx
movslq -0x46c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    14d3 <cov_arr_check+0x363>
jmp    14a7 <cov_arr_check+0x337>
mov    -0x488(%rbp),%rax
mov    -0x490(%rbp),%rdx
movslq -0x46c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fstpt  -0x480(%rbp)
jmp    14fa <cov_arr_check+0x38a>
mov    -0x490(%rbp),%rax
mov    -0x488(%rbp),%rdx
movslq -0x46c(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rdx,%rcx,1)
fldt   (%rax,%rcx,1)
fsubrp %st,%st(1)
fstpt  -0x480(%rbp)
fldt   -0x450(%rbp)
fldt   -0x480(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    1524 <cov_arr_check+0x3b4>
jmp    1515 <cov_arr_check+0x3a5>
movl   $0x0,-0x470(%rbp)
jmp    153d <cov_arr_check+0x3cd>
jmp    1529 <cov_arr_check+0x3b9>
mov    -0x46c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x46c(%rbp)
jmp    1468 <cov_arr_check+0x2f8>
cmpl   $0x0,-0x470(%rbp)
je     155b <cov_arr_check+0x3eb>
lea    0xac2(%rip),%rdi
call   1050 <printf@plt>
jmp    1567 <cov_arr_check+0x3f7>
lea    0xab7(%rip),%rdi
call   1050 <printf@plt>
mov    -0x428(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cov_arr_check>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
mov    %rsi,-0x38(%rbp)
mov    %rsp,-0x40(%rbp)
mov    %edx,-0x44(%rbp)
mov    %edx,%eax
mov    %rsp,%rcx
mov    %rax,-0x60(%rbp)
shl    $0x4,%rax
sub    %rax,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
lea    0xe48(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%r13
lea    -0x460(%rbp),%rdi
mov    $0x3e8,%esi
mov    %rax,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1258 <cov_arr_check+0xe8>
lea    -0x460(%rbp),%r15
lea    0xe17(%rip),%r12
lea    -0x78(%rbp),%rbx
jmp    1205 <cov_arr_check+0x95>
nop
mov    %r15,%rdi
mov    $0x3e8,%esi
mov    %r13,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1258 <cov_arr_check+0xe8>
cmpb   $0x23,-0x460(%rbp)
je     11f0 <cov_arr_check+0x80>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     11f0 <cov_arr_check+0x80>
mov    -0x58(%rbp),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rax,%rdi
mov    $0xa,%esi
call   1090 <cov_deserialize@plt>
fstpt  (%r14)
xor    %edi,%edi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1060 <strtok_r@plt>
add    $0x10,%r14
test   %rax,%rax
jne    1230 <cov_arr_check+0xc0>
jmp    11f0 <cov_arr_check+0x80>
mov    %r13,%rdi
call   1050 <fclose@plt>
lea    0xd9b(%rip),%rsi
mov    -0x38(%rbp),%rdi
call   1080 <fopen@plt>
mov    %rax,%r15
lea    -0x460(%rbp),%rdi
mov    $0x3e8,%esi
mov    %r13,%rdx
call   1070 <fgets@plt>
fldz
fstpt  -0x38(%rbp)
test   %rax,%rax
je     138f <cov_arr_check+0x21f>
fldz
fstpt  -0x38(%rbp)
lea    -0x460(%rbp),%rbx
lea    0xd58(%rip),%r14
lea    -0x70(%rbp),%r12
mov    %r15,-0x68(%rbp)
jmp    12d9 <cov_arr_check+0x169>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    $0x3e8,%esi
mov    %r13,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     138f <cov_arr_check+0x21f>
mov    %rbx,%rdi
lea    0xd22(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     1330 <cov_arr_check+0x1c0>
lea    0xd10(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    12c0 <cov_arr_check+0x150>
mov    %rbx,%rdi
mov    $0x50,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1090 <cov_deserialize@plt>
fstpt  -0x38(%rbp)
jmp    12c0 <cov_arr_check+0x150>
nopl   (%rax)
mov    $0x3e8,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r12,%rdx
call   1060 <strtok_r@plt>
test   %rax,%rax
je     12c0 <cov_arr_check+0x150>
mov    -0x50(%rbp),%r15
nopl   0x0(%rax,%rax,1)
mov    %rax,%rdi
mov    $0xa,%esi
call   1090 <cov_deserialize@plt>
fstpt  (%r15)
xor    %edi,%edi
mov    %r14,%rsi
mov    %r12,%rdx
call   1060 <strtok_r@plt>
add    $0x10,%r15
test   %rax,%rax
jne    1360 <cov_arr_check+0x1f0>
mov    -0x68(%rbp),%r15
jmp    12c0 <cov_arr_check+0x150>
mov    %r15,%rdi
call   1050 <fclose@plt>
lea    0xc7b(%rip),%rdi
cmpl   $0x0,-0x44(%rbp)
jle    13d2 <cov_arr_check+0x262>
mov    -0x58(%rbp),%rsi
fldt   (%rsi)
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)
fldt   -0x38(%rbp)
fxch   %st(1)
fucomip %st(1),%st
jbe    13ed <cov_arr_check+0x27d>
fstp   %st(0)
lea    0xc41(%rip),%rdi
mov    -0x40(%rbp),%rbx
call   1040 <puts@plt>
mov    %rbx,%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0x10,%rsi
add    $0x10,%rdx
mov    -0x60(%rbp),%r8
lea    -0x1(%r8),%rcx
xor    %eax,%eax
mov    -0x40(%rbp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    %rax,%rcx
je     1452 <cov_arr_check+0x2e2>
fldt   (%rsi)
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,%rsi
add    $0x10,%rdx
fucomip %st(1),%st
jbe    1410 <cov_arr_check+0x2a0>
fstp   %st(0)
cmp    %r8,%rax
lea    0xbce(%rip),%rax
lea    0xbcd(%rip),%rdi
cmovb  %rax,%rdi
jmp    13d6 <cov_arr_check+0x266>
fstp   %st(0)
jmp    13d6 <cov_arr_check+0x266>

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"
define void @cov_arr_check(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca [1000 x i8]
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i64
%15 = alloca x86_fp80
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca x86_fp80
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%23 = load i32, i32* %6
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %12
%26 = alloca x86_fp80, i64 %24
store i64 %24, i64* %13
%27 = load i32, i32* %6
%28 = zext i32 %27 to i64
%29 = alloca x86_fp80, i64 %28
store i64 %28, i64* %14
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %9
store i32 10, i32* %18
%30 = load i8*, i8** %4
%31 = call i32* @fopen(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %31, i32** %16
br label %32
32: ; preds = %62, %3
%33 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%34 = load i32*, i32** %16
%35 = call i32* @fgets(i8* %33, i32 1000, i32* %34)
%36 = icmp ne i32* %35, null
br i1 %36, label %37, label %63
37: ; preds = %32
%38 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 35
br i1 %41, label %42, label %62
42: ; preds = %37
store i32 0, i32* %19
%43 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%44 = load i8*, i8** %9
%45 = call i8* @strtok_r(i8* %43, i8* %44, i8** %10)
store i8* %45, i8** %8
br label %46
46: ; preds = %58, %42
%47 = load i8*, i8** %8
%48 = icmp ne i8* %47, null
br i1 %48, label %49, label %61
49: ; preds = %46
%50 = load i8*, i8** %8
%51 = load i32, i32* %18
%52 = call x86_fp80 @cov_deserialize(i8* %50, i32 %51)
%53 = load i32, i32* %19
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds x86_fp80, x86_fp80* %26, i64 %54
store x86_fp80 %52, x86_fp80* %55
%56 = load i32, i32* %19
%57 = add nsw i32 %56, 1
store i32 %57, i32* %19
br label %58
58: ; preds = %49
%59 = load i8*, i8** %9
%60 = call i8* @strtok_r(i8* null, i8* %59, i8** %10)
store i8* %60, i8** %8
br label %46
61: ; preds = %46
br label %62
62: ; preds = %61, %37
br label %32
63: ; preds = %32
%64 = load i32*, i32** %16
%65 = call i32 @fclose(i32* %64)
%66 = load i8*, i8** %5
%67 = call i32* @fopen(i8* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %67, i32** %17
br label %68
68: ; preds = %112, %63
%69 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%70 = load i32*, i32** %16
%71 = call i32* @fgets(i8* %69, i32 1000, i32* %70)
%72 = icmp ne i32* %71, null
br i1 %72, label %73, label %113
73: ; preds = %68
%74 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%75 = call i64 @strncmp(i8* %74, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %100
77: ; preds = %73
store i32 0, i32* %19
%78 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%79 = load i32*, i32** %17
%80 = call i32* @fgets(i8* %78, i32 1000, i32* %79)
%81 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%82 = load i8*, i8** %9
%83 = call i8* @strtok_r(i8* %81, i8* %82, i8** %11)
store i8* %83, i8** %8
br label %84
84: ; preds = %96, %77
%85 = load i8*, i8** %8
%86 = icmp ne i8* %85, null
br i1 %86, label %87, label %99
87: ; preds = %84
%88 = load i8*, i8** %8
%89 = load i32, i32* %18
%90 = call x86_fp80 @cov_deserialize(i8* %88, i32 %89)
%91 = load i32, i32* %19
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds x86_fp80, x86_fp80* %29, i64 %92
store x86_fp80 %90, x86_fp80* %93
%94 = load i32, i32* %19
%95 = add nsw i32 %94, 1
store i32 %95, i32* %19
br label %96
96: ; preds = %87
%97 = load i8*, i8** %9
%98 = call i8* @strtok_r(i8* null, i8* %97, i8** %11)
store i8* %98, i8** %8
br label %84
99: ; preds = %84
br label %112
100: ; preds = %73
%101 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%102 = call i64 @strncmp(i8* %101, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %111
104: ; preds = %100
%105 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%106 = load i32*, i32** %17
%107 = call i32* @fgets(i8* %105, i32 80, i32* %106)
%108 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%109 = load i32, i32* %18
%110 = call x86_fp80 @cov_deserialize(i8* %108, i32 %109)
store x86_fp80 %110, x86_fp80* %15
br label %111
111: ; preds = %104, %100
br label %112
112: ; preds = %111, %99
br label %68
113: ; preds = %68
%114 = load i32*, i32** %17
%115 = call i32 @fclose(i32* %114)
store i32 1, i32* %21
store i32 0, i32* %20
br label %116
116: ; preds = %156, %113
%117 = load i32, i32* %20
%118 = load i32, i32* %6
%119 = icmp slt i32 %117, %118
br i1 %119, label %120, label %159
120: ; preds = %116
%121 = load i32, i32* %20
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds x86_fp80, x86_fp80* %26, i64 %122
%124 = load x86_fp80, x86_fp80* %123
%125 = load i32, i32* %20
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds x86_fp80, x86_fp80* %29, i64 %126
%128 = load x86_fp80, x86_fp80* %127
%129 = fcmp ogt x86_fp80 %124, %128
br i1 %129, label %130, label %140
130: ; preds = %120
%131 = load i32, i32* %20
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds x86_fp80, x86_fp80* %26, i64 %132
%134 = load x86_fp80, x86_fp80* %133
%135 = load i32, i32* %20
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds x86_fp80, x86_fp80* %29, i64 %136
%138 = load x86_fp80, x86_fp80* %137
%139 = fsub x86_fp80 %134, %138
store x86_fp80 %139, x86_fp80* %22
br label %150
140: ; preds = %120
%141 = load i32, i32* %20
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds x86_fp80, x86_fp80* %29, i64 %142
%144 = load x86_fp80, x86_fp80* %143
%145 = load i32, i32* %20
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds x86_fp80, x86_fp80* %26, i64 %146
%148 = load x86_fp80, x86_fp80* %147
%149 = fsub x86_fp80 %144, %148
store x86_fp80 %149, x86_fp80* %22
br label %150
150: ; preds = %140, %130
%151 = load x86_fp80, x86_fp80* %15
%152 = load x86_fp80, x86_fp80* %22
%153 = fcmp olt x86_fp80 %151, %152
br i1 %153, label %154, label %155
154: ; preds = %150
store i32 0, i32* %21
br label %159
155: ; preds = %150
br label %156
156: ; preds = %155
%157 = load i32, i32* %20
%158 = add nsw i32 %157, 1
store i32 %158, i32* %20
br label %116
159: ; preds = %154, %116
%160 = load i32, i32* %21
%161 = icmp ne i32 %160, 0
br i1 %161, label %162, label %164
162: ; preds = %159
%163 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %166
164: ; preds = %159
%165 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %166
166: ; preds = %164, %162
%167 = load i8*, i8** %12
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 = [6 x i8] c"false\00"
@str.6 = [5 x i8] c"true\00"
define void @cov_arr_check(i8* nocapture %0, i8* nocapture %1, i32 %2) {
%4 = alloca [1000 x i8]
%5 = alloca i8*
%6 = alloca i8*
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%8 = bitcast i8** %5 to i8*
%9 = bitcast i8** %6 to i8*
%10 = zext i32 %2 to i64
%11 = tail call i8* @llvm.stacksave()
%12 = alloca x86_fp80, i64 %10
%13 = alloca x86_fp80, i64 %10
%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* %7, i32 1000, i32* %14)
%16 = icmp eq i32* %15, null
br i1 %16, label %34, label %17
17: ; preds = %3, %31
%18 = load i8, i8* %7
%19 = icmp eq i8 %18, 35
br i1 %19, label %31, label %20
20: ; preds = %17
%21 = call i8* @strtok_r(i8* %7, 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 %31, label %23
23: ; preds = %20, %23
%24 = phi i64 [ %28, %23 ], [ 0, %20 ]
%25 = phi i8* [ %29, %23 ], [ %21, %20 ]
%26 = call x86_fp80 @cov_deserialize(i8* %25, i32 10)
%27 = getelementptr inbounds x86_fp80, x86_fp80* %12, i64 %24
store x86_fp80 %26, x86_fp80* %27
%28 = add nuw i64 %24, 1
%29 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %5)
%30 = icmp eq i8* %29, null
br i1 %30, label %31, label %23
31: ; preds = %23, %20, %17
%32 = call i32* @fgets(i8* %7, i32 1000, i32* %14)
%33 = icmp eq i32* %32, null
br i1 %33, label %34, label %17
34: ; preds = %31, %3
%35 = call i32 @fclose(i32* %14)
%36 = call i32* @fopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%37 = call i32* @fgets(i8* %7, i32 1000, i32* %14)
%38 = icmp eq i32* %37, null
br i1 %38, label %65, label %39
39: ; preds = %34, %61
%40 = phi x86_fp80 [ %62, %61 ], [ undef, %34 ]
%41 = call i64 @strncmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %55
43: ; preds = %39
%44 = call i32* @fgets(i8* %7, i32 1000, i32* %36)
%45 = call i8* @strtok_r(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %6)
%46 = icmp eq i8* %45, null
br i1 %46, label %61, label %47
47: ; preds = %43, %47
%48 = phi i64 [ %52, %47 ], [ 0, %43 ]
%49 = phi i8* [ %53, %47 ], [ %45, %43 ]
%50 = call x86_fp80 @cov_deserialize(i8* %49, i32 10)
%51 = getelementptr inbounds x86_fp80, x86_fp80* %13, i64 %48
store x86_fp80 %50, x86_fp80* %51
%52 = add nuw i64 %48, 1
%53 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %6)
%54 = icmp eq i8* %53, null
br i1 %54, label %61, label %47
55: ; preds = %39
%56 = call i64 @strncmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = call i32* @fgets(i8* %7, i32 80, i32* %36)
%60 = call x86_fp80 @cov_deserialize(i8* %7, i32 10)
br label %61
61: ; preds = %47, %43, %55, %58
%62 = phi x86_fp80 [ %60, %58 ], [ %40, %55 ], [ %40, %43 ], [ %40, %47 ]
%63 = call i32* @fgets(i8* %7, i32 1000, i32* %14)
%64 = icmp eq i32* %63, null
br i1 %64, label %65, label %39
65: ; preds = %61, %34
%66 = phi x86_fp80 [ undef, %34 ], [ %62, %61 ]
%67 = call i32 @fclose(i32* %36)
%68 = icmp sgt i32 %2, 0
br i1 %68, label %69, label %95
69: ; preds = %65
%70 = zext i32 %2 to i64
%71 = load x86_fp80, x86_fp80* %12
%72 = load x86_fp80, x86_fp80* %13
%73 = fcmp ogt x86_fp80 %71, %72
%74 = fsub x86_fp80 %71, %72
%75 = fsub x86_fp80 %72, %71
%76 = select i1 %73, x86_fp80 %74, x86_fp80 %75
%77 = fcmp olt x86_fp80 %66, %76
br i1 %77, label %95, label %78
78: ; preds = %69, %81
%79 = phi i64 [ %91, %81 ], [ 1, %69 ]
%80 = icmp eq i64 %79, %10
br i1 %80, label %95, label %81
81: ; preds = %78
%82 = getelementptr inbounds x86_fp80, x86_fp80* %12, i64 %79
%83 = load x86_fp80, x86_fp80* %82
%84 = getelementptr inbounds x86_fp80, x86_fp80* %13, i64 %79
%85 = load x86_fp80, x86_fp80* %84
%86 = fcmp ogt x86_fp80 %83, %85
%87 = fsub x86_fp80 %83, %85
%88 = fsub x86_fp80 %85, %83
%89 = select i1 %86, x86_fp80 %87, x86_fp80 %88
%90 = fcmp olt x86_fp80 %66, %89
%91 = add nuw nsw i64 %79, 1
br i1 %90, label %92, label %78
92: ; preds = %81
%93 = icmp ult i64 %79, %70
%94 = select i1 %93, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str.6, i64 0, i64 0)
br label %95
95: ; preds = %78, %69, %92, %65
%96 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.6, i64 0, i64 0), %65 ], [ %94, %92 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0), %69 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.6, i64 0, i64 0), %78 ]
%97 = call i32 @puts(i8* dereferenceable(1) %96)
ret void
}