#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 */

/* Variables and functions */
int /*<<< orphan*/ SEEK_SET;
double calc_pri(unsigned short);
int /*<<< orphan*/ lseek(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ read(int, char *, int);
int try_info(int ifd, int line_length, int ifc_index) {
  char bad;
  unsigned short pri_dn[5];
  int line_number, ifc_offset, pri_offset;
  int ifc_dn[5];
  unsigned int sum_dif, dif;
  double pri, prf;
  for (line_number = 0; line_number < 5; line_number++) {
    ifc_offset = line_length * (line_number + 1) + ifc_index;
    pri_offset = ifc_offset + 6;
    lseek(ifd, ifc_offset, SEEK_SET);
    read(ifd, (char *)&ifc_dn[line_number], 4);
    lseek(ifd, pri_offset, SEEK_SET);
    read(ifd, (char *)&pri_dn[line_number], 2);
  }
  sum_dif = 0;
  bad = 0;
  for (line_number = 0; line_number < 5; line_number++) {
    if (line_number > 0) {
      dif = ifc_dn[line_number] - ifc_dn[line_number - 1];
      if (dif < 1) {
        bad = 1;
        break;
      } else
        sum_dif += dif;
    }
    pri = calc_pri(pri_dn[line_number]);
    if (pri == 0.0) {
      bad = 1;
      break;
    }
    prf = 1.0 / calc_pri(pri_dn[line_number]);
    if (prf < 1640.0 || prf > 1720.0) {
      bad = 1;
      break;
    }
  }
  if (!bad && sum_dif < 5 - 1 + 1)
    return (1);
  else
    return (0);
}


x86 assembly (clang, -O0):
<try_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x5,-0x20(%rbp)
jge    11db <try_info+0xab>
mov    -0xc(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0x6,%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x24(%rbp),%esi
mov    0x2e66(%rip),%rax
mov    (%rax),%edx
call   1030 <lseek@plt>
mov    -0x8(%rbp),%edi
movslq -0x20(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
mov    $0x4,%edx
call   1040 <read@plt>
mov    -0x8(%rbp),%edi
mov    -0x28(%rbp),%esi
mov    0x2e36(%rip),%rax
mov    (%rax),%edx
call   1030 <lseek@plt>
mov    -0x8(%rbp),%edi
movslq -0x20(%rbp),%rax
lea    -0x1c(%rbp),%rsi
shl    $0x1,%rax
add    %rax,%rsi
mov    $0x2,%edx
call   1040 <read@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1148 <try_info+0x18>
movl   $0x0,-0x44(%rbp)
movb   $0x0,-0x11(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x5,-0x20(%rbp)
jge    12d6 <try_info+0x1a6>
cmpl   $0x0,-0x20(%rbp)
jle    123a <try_info+0x10a>
movslq -0x20(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
sub    -0x40(%rbp,%rcx,4),%eax
mov    %eax,-0x48(%rbp)
cmpl   $0x1,-0x48(%rbp)
jae    122c <try_info+0xfc>
movb   $0x1,-0x11(%rbp)
jmp    12d6 <try_info+0x1a6>
mov    -0x48(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    123a <try_info+0x10a>
movslq -0x20(%rbp),%rax
movzwl -0x1c(%rbp,%rax,2),%edi
call   1050 <calc_pri@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    126e <try_info+0x13e>
jp     126e <try_info+0x13e>
movb   $0x1,-0x11(%rbp)
jmp    12d6 <try_info+0x1a6>
movslq -0x20(%rbp),%rax
movzwl -0x1c(%rbp,%rax,2),%edi
call   1050 <calc_pri@plt>
movaps %xmm0,%xmm1
movsd  0xd81(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xd68(%rip),%xmm0
ucomisd -0x58(%rbp),%xmm0
ja     12ba <try_info+0x18a>
movsd  -0x58(%rbp),%xmm0
movsd  0xd60(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12c3 <try_info+0x193>
movb   $0x1,-0x11(%rbp)
jmp    12d6 <try_info+0x1a6>
jmp    12c8 <try_info+0x198>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11ed <try_info+0xbd>
cmpb   $0x0,-0x11(%rbp)
jne    12f6 <try_info+0x1c6>
cmpl   $0x5,-0x44(%rbp)
jae    12f6 <try_info+0x1c6>
movl   $0x1,-0x4(%rbp)
jmp    12fd <try_info+0x1cd>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<try_info>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x30,%rsp
mov    %edx,%r14d
mov    %esi,%r15d
mov    %edi,%ebx
lea    (%r15,%r14,1),%esi
mov    0x2e91(%rip),%r12
mov    (%r12),%edx
call   1030 <lseek@plt>
lea    0x10(%rsp),%rsi
mov    %ebx,%edi
mov    $0x4,%edx
call   1040 <read@plt>
mov    (%r12),%edx
lea    (%r15,%r14,1),%esi
add    $0x6,%esi
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0x6(%rsp),%rsi
mov    %ebx,%edi
mov    $0x2,%edx
call   1040 <read@plt>
lea    (%r14,%r15,2),%esi
mov    (%r12),%edx
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0x14(%rsp),%rsi
mov    %ebx,%edi
mov    $0x4,%edx
call   1040 <read@plt>
mov    (%r12),%edx
lea    (%r14,%r15,2),%esi
add    $0x6,%esi
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0x8(%rsp),%rsi
mov    %ebx,%edi
mov    $0x2,%edx
call   1040 <read@plt>
lea    (%r15,%r15,2),%ebp
lea    (%r14,%rbp,1),%esi
mov    (%r12),%edx
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0x18(%rsp),%rsi
mov    %ebx,%edi
mov    $0x4,%edx
call   1040 <read@plt>
mov    (%r12),%edx
lea    (%r14,%rbp,1),%esi
add    $0x6,%esi
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0xa(%rsp),%rsi
mov    %ebx,%edi
mov    $0x2,%edx
call   1040 <read@plt>
lea    (%r14,%r15,4),%esi
mov    (%r12),%edx
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0x1c(%rsp),%rsi
mov    %ebx,%edi
mov    $0x4,%edx
call   1040 <read@plt>
mov    (%r12),%edx
lea    (%r14,%r15,4),%esi
add    $0x6,%esi
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0xc(%rsp),%rsi
mov    %ebx,%edi
mov    $0x2,%edx
call   1040 <read@plt>
lea    (%r15,%r15,4),%ebp
mov    %r14d,%esi
add    %ebp,%esi
mov    (%r12),%edx
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0x20(%rsp),%rsi
mov    %ebx,%edi
mov    $0x4,%edx
call   1040 <read@plt>
mov    (%r12),%edx
lea    (%r14,%rbp,1),%esi
add    $0x6,%esi
mov    %ebx,%edi
call   1030 <lseek@plt>
lea    0xe(%rsp),%rsi
mov    %ebx,%edi
mov    $0x2,%edx
call   1040 <read@plt>
movzwl 0x6(%rsp),%ebx
mov    %ebx,%edi
call   1050 <calc_pri@plt>
xor    %ebp,%ebp
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    $0x0,%eax
jne    12c0 <try_info+0x190>
jnp    131c <try_info+0x1ec>
mov    %ebx,%edi
call   1050 <calc_pri@plt>
movsd  0xd31(%rip),%xmm1
divsd  %xmm0,%xmm1
xor    %ebp,%ebp
movsd  0xd2b(%rip),%xmm0
ucomisd %xmm1,%xmm0
ja     1314 <try_info+0x1e4>
ucomisd 0xd25(%rip),%xmm1
mov    $0x0,%eax
ja     131c <try_info+0x1ec>
mov    0x14(%rsp),%ebp
sub    0x10(%rsp),%ebp
je     1318 <try_info+0x1e8>
movzwl 0x8(%rsp),%ebx
mov    %ebx,%edi
call   1050 <calc_pri@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1334 <try_info+0x204>
jp     1334 <try_info+0x204>
xor    %eax,%eax
jmp    131c <try_info+0x1ec>
xor    %ebp,%ebp
xor    %eax,%eax
cmp    $0x5,%ebp
setb   %cl
and    %al,%cl
movzbl %cl,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %ebx,%edi
call   1050 <calc_pri@plt>
movsd  0xcbd(%rip),%xmm1
divsd  %xmm0,%xmm1
xor    %eax,%eax
movsd  0xcb7(%rip),%xmm0
ucomisd %xmm1,%xmm0
ja     131c <try_info+0x1ec>
ucomisd 0xcb1(%rip),%xmm1
ja     131c <try_info+0x1ec>
mov    0x18(%rsp),%eax
sub    0x14(%rsp),%eax
je     1314 <try_info+0x1e4>
add    %eax,%ebp
movzwl 0xa(%rsp),%ebx
mov    %ebx,%edi
call   1050 <calc_pri@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1385 <try_info+0x255>
jnp    1314 <try_info+0x1e4>
mov    %ebx,%edi
call   1050 <calc_pri@plt>
movsd  0xc6c(%rip),%xmm1
divsd  %xmm0,%xmm1
xor    %eax,%eax
movsd  0xc66(%rip),%xmm0
ucomisd %xmm1,%xmm0
ja     131c <try_info+0x1ec>
ucomisd 0xc5c(%rip),%xmm1
ja     131c <try_info+0x1ec>
mov    0x1c(%rsp),%eax
sub    0x18(%rsp),%eax
je     1314 <try_info+0x1e4>
add    %eax,%ebp
movzwl 0xc(%rsp),%ebx
mov    %ebx,%edi
call   1050 <calc_pri@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13e6 <try_info+0x2b6>
jnp    1314 <try_info+0x1e4>
mov    %ebx,%edi
call   1050 <calc_pri@plt>
movsd  0xc0b(%rip),%xmm1
divsd  %xmm0,%xmm1
xor    %eax,%eax
movsd  0xc05(%rip),%xmm0
ucomisd %xmm1,%xmm0
ja     131c <try_info+0x1ec>
ucomisd 0xbfb(%rip),%xmm1
ja     131c <try_info+0x1ec>
mov    0x20(%rsp),%eax
sub    0x1c(%rsp),%eax
je     1314 <try_info+0x1e4>
add    %eax,%ebp
movzwl 0xe(%rsp),%ebx
mov    %ebx,%edi
call   1050 <calc_pri@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1447 <try_info+0x317>
jnp    1314 <try_info+0x1e4>
mov    %ebx,%edi
call   1050 <calc_pri@plt>
movsd  0xbaa(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xba6(%rip),%xmm0
ucomisd %xmm1,%xmm0
setbe  %cl
ucomisd 0xb9f(%rip),%xmm1
setbe  %al
and    %cl,%al
jmp    131c <try_info+0x1ec>

LLVM IR (-O0):
@SEEK_SET = global i32 0
define i32 @try_info(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
%9 = alloca [5 x i16]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [5 x i32]
%14 = alloca i32
%15 = alloca i32
%16 = alloca double
%17 = alloca double
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 0, i32* %10
br label %18
18: ; preds = %50, %3
%19 = load i32, i32* %10
%20 = icmp slt i32 %19, 5
br i1 %20, label %21, label %53
21: ; preds = %18
%22 = load i32, i32* %6
%23 = load i32, i32* %10
%24 = add nsw i32 %23, 1
%25 = mul nsw i32 %22, %24
%26 = load i32, i32* %7
%27 = add nsw i32 %25, %26
store i32 %27, i32* %11
%28 = load i32, i32* %11
%29 = add nsw i32 %28, 6
store i32 %29, i32* %12
%30 = load i32, i32* %5
%31 = load i32, i32* %11
%32 = load i32, i32* @SEEK_SET
%33 = call i32 @lseek(i32 %30, i32 %31, i32 %32)
%34 = load i32, i32* %5
%35 = load i32, i32* %10
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 %36
%38 = bitcast i32* %37 to i8*
%39 = call i32 @read(i32 %34, i8* %38, i32 4)
%40 = load i32, i32* %5
%41 = load i32, i32* %12
%42 = load i32, i32* @SEEK_SET
%43 = call i32 @lseek(i32 %40, i32 %41, i32 %42)
%44 = load i32, i32* %5
%45 = load i32, i32* %10
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [5 x i16], [5 x i16]* %9, i64 0, i64 %46
%48 = bitcast i16* %47 to i8*
%49 = call i32 @read(i32 %44, i8* %48, i32 2)
br label %50
50: ; preds = %21
%51 = load i32, i32* %10
%52 = add nsw i32 %51, 1
store i32 %52, i32* %10
br label %18
53: ; preds = %18
store i32 0, i32* %14
store i8 0, i8* %8
store i32 0, i32* %10
br label %54
54: ; preds = %102, %53
%55 = load i32, i32* %10
%56 = icmp slt i32 %55, 5
br i1 %56, label %57, label %105
57: ; preds = %54
%58 = load i32, i32* %10
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %79
60: ; preds = %57
%61 = load i32, i32* %10
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = load i32, i32* %10
%66 = sub nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [5 x i32], [5 x i32]* %13, i64 0, i64 %67
%69 = load i32, i32* %68
%70 = sub nsw i32 %64, %69
store i32 %70, i32* %15
%71 = load i32, i32* %15
%72 = icmp ult i32 %71, 1
br i1 %72, label %73, label %74
73: ; preds = %60
store i8 1, i8* %8
br label %105
74: ; preds = %60
%75 = load i32, i32* %15
%76 = load i32, i32* %14
%77 = add i32 %76, %75
store i32 %77, i32* %14
br label %78
78: ; preds = %74
br label %79
79: ; preds = %78, %57
%80 = load i32, i32* %10
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [5 x i16], [5 x i16]* %9, i64 0, i64 %81
%83 = load i16, i16* %82
%84 = call double @calc_pri(i16 zeroext %83)
store double %84, double* %16
%85 = load double, double* %16
%86 = fcmp oeq double %85, 0.000000e+00
br i1 %86, label %87, label %88
87: ; preds = %79
store i8 1, i8* %8
br label %105
88: ; preds = %79
%89 = load i32, i32* %10
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [5 x i16], [5 x i16]* %9, i64 0, i64 %90
%92 = load i16, i16* %91
%93 = call double @calc_pri(i16 zeroext %92)
%94 = fdiv double 1.000000e+00, %93
store double %94, double* %17
%95 = load double, double* %17
%96 = fcmp olt double %95, 1.640000e+03
br i1 %96, label %100, label %97
97: ; preds = %88
%98 = load double, double* %17
%99 = fcmp ogt double %98, 1.720000e+03
br i1 %99, label %100, label %101
100: ; preds = %97, %88
store i8 1, i8* %8
br label %105
101: ; preds = %97
br label %102
102: ; preds = %101
%103 = load i32, i32* %10
%104 = add nsw i32 %103, 1
store i32 %104, i32* %10
br label %54
105: ; preds = %100, %87, %73, %54
%106 = load i8, i8* %8
%107 = icmp ne i8 %106, 0
br i1 %107, label %112, label %108
108: ; preds = %105
%109 = load i32, i32* %14
%110 = icmp ult i32 %109, 5
br i1 %110, label %111, label %112
111: ; preds = %108
store i32 1, i32* %4
br label %113
112: ; preds = %108, %105
store i32 0, i32* %4
br label %113
113: ; preds = %112, %111
%114 = load i32, i32* %4
ret i32 %114
}

LLVM IR (-O2):
@SEEK_SET = global i32 0
define i32 @try_info(i32 %0, i32 %1, i32 %2) {
%4 = alloca [5 x i16]
%5 = alloca [5 x i32]
%6 = bitcast [5 x i16]* %4 to i8*
%7 = bitcast [5 x i32]* %5 to i8*
%8 = zext i32 %1 to i64
%9 = zext i32 %2 to i64
%10 = add nuw nsw i64 %8, %9
%11 = load i32, i32* @SEEK_SET
%12 = trunc i64 %10 to i32
%13 = tail call i32 @lseek(i32 %0, i32 %12, i32 %11)
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 0
%15 = bitcast [5 x i32]* %5 to i8*
%16 = call i32 @read(i32 %0, i8* %15, i32 4)
%17 = load i32, i32* @SEEK_SET
%18 = trunc i64 %10 to i32
%19 = add i32 %18, 6
%20 = tail call i32 @lseek(i32 %0, i32 %19, i32 %17)
%21 = getelementptr inbounds [5 x i16], [5 x i16]* %4, i64 0, i64 0
%22 = bitcast [5 x i16]* %4 to i8*
%23 = call i32 @read(i32 %0, i8* %22, i32 2)
%24 = shl nuw nsw i64 %8, 1
%25 = add nuw nsw i64 %24, %9
%26 = load i32, i32* @SEEK_SET
%27 = trunc i64 %25 to i32
%28 = tail call i32 @lseek(i32 %0, i32 %27, i32 %26)
%29 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 1
%30 = bitcast i32* %29 to i8*
%31 = call i32 @read(i32 %0, i8* %30, i32 4)
%32 = load i32, i32* @SEEK_SET
%33 = trunc i64 %25 to i32
%34 = add i32 %33, 6
%35 = tail call i32 @lseek(i32 %0, i32 %34, i32 %32)
%36 = getelementptr inbounds [5 x i16], [5 x i16]* %4, i64 0, i64 1
%37 = bitcast i16* %36 to i8*
%38 = call i32 @read(i32 %0, i8* %37, i32 2)
%39 = mul nuw nsw i64 %8, 3
%40 = add nuw nsw i64 %39, %9
%41 = load i32, i32* @SEEK_SET
%42 = trunc i64 %40 to i32
%43 = tail call i32 @lseek(i32 %0, i32 %42, i32 %41)
%44 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 2
%45 = bitcast i32* %44 to i8*
%46 = call i32 @read(i32 %0, i8* %45, i32 4)
%47 = load i32, i32* @SEEK_SET
%48 = trunc i64 %40 to i32
%49 = add i32 %48, 6
%50 = tail call i32 @lseek(i32 %0, i32 %49, i32 %47)
%51 = getelementptr inbounds [5 x i16], [5 x i16]* %4, i64 0, i64 2
%52 = bitcast i16* %51 to i8*
%53 = call i32 @read(i32 %0, i8* %52, i32 2)
%54 = shl nuw nsw i64 %8, 2
%55 = add nuw nsw i64 %54, %9
%56 = load i32, i32* @SEEK_SET
%57 = trunc i64 %55 to i32
%58 = tail call i32 @lseek(i32 %0, i32 %57, i32 %56)
%59 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 3
%60 = bitcast i32* %59 to i8*
%61 = call i32 @read(i32 %0, i8* %60, i32 4)
%62 = load i32, i32* @SEEK_SET
%63 = trunc i64 %55 to i32
%64 = add i32 %63, 6
%65 = tail call i32 @lseek(i32 %0, i32 %64, i32 %62)
%66 = getelementptr inbounds [5 x i16], [5 x i16]* %4, i64 0, i64 3
%67 = bitcast i16* %66 to i8*
%68 = call i32 @read(i32 %0, i8* %67, i32 2)
%69 = mul nuw nsw i64 %8, 5
%70 = add nuw nsw i64 %69, %9
%71 = load i32, i32* @SEEK_SET
%72 = trunc i64 %70 to i32
%73 = tail call i32 @lseek(i32 %0, i32 %72, i32 %71)
%74 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 4
%75 = bitcast i32* %74 to i8*
%76 = call i32 @read(i32 %0, i8* %75, i32 4)
%77 = load i32, i32* @SEEK_SET
%78 = trunc i64 %70 to i32
%79 = add i32 %78, 6
%80 = tail call i32 @lseek(i32 %0, i32 %79, i32 %77)
%81 = getelementptr inbounds [5 x i16], [5 x i16]* %4, i64 0, i64 4
%82 = bitcast i16* %81 to i8*
%83 = call i32 @read(i32 %0, i8* %82, i32 2)
%84 = load i16, i16* %21
%85 = tail call double @calc_pri(i16 zeroext %84)
%86 = fcmp oeq double %85, 0.000000e+00
br i1 %86, label %156, label %150
87: ; preds = %150
%88 = load i32, i32* %29
%89 = load i32, i32* %14
%90 = sub nsw i32 %88, %89
%91 = icmp eq i32 %90, 0
br i1 %91, label %156, label %92
92: ; preds = %87
%93 = load i16, i16* %36
%94 = tail call double @calc_pri(i16 zeroext %93)
%95 = fcmp oeq double %94, 0.000000e+00
br i1 %95, label %156, label %96
96: ; preds = %92
%97 = tail call double @calc_pri(i16 zeroext %93)
%98 = fdiv double 1.000000e+00, %97
%99 = fcmp olt double %98, 1.640000e+03
%100 = fcmp ogt double %98, 1.720000e+03
%101 = or i1 %99, %100
br i1 %101, label %156, label %102
102: ; preds = %96
%103 = load i32, i32* %44
%104 = load i32, i32* %29
%105 = sub nsw i32 %103, %104
%106 = icmp eq i32 %105, 0
br i1 %106, label %156, label %107
107: ; preds = %102
%108 = add i32 %105, %90
%109 = load i16, i16* %51
%110 = tail call double @calc_pri(i16 zeroext %109)
%111 = fcmp oeq double %110, 0.000000e+00
br i1 %111, label %156, label %112
112: ; preds = %107
%113 = tail call double @calc_pri(i16 zeroext %109)
%114 = fdiv double 1.000000e+00, %113
%115 = fcmp olt double %114, 1.640000e+03
%116 = fcmp ogt double %114, 1.720000e+03
%117 = or i1 %115, %116
br i1 %117, label %156, label %118
118: ; preds = %112
%119 = load i32, i32* %59
%120 = load i32, i32* %44
%121 = sub nsw i32 %119, %120
%122 = icmp eq i32 %121, 0
br i1 %122, label %156, label %123
123: ; preds = %118
%124 = add i32 %121, %108
%125 = load i16, i16* %66
%126 = tail call double @calc_pri(i16 zeroext %125)
%127 = fcmp oeq double %126, 0.000000e+00
br i1 %127, label %156, label %128
128: ; preds = %123
%129 = tail call double @calc_pri(i16 zeroext %125)
%130 = fdiv double 1.000000e+00, %129
%131 = fcmp olt double %130, 1.640000e+03
%132 = fcmp ogt double %130, 1.720000e+03
%133 = or i1 %131, %132
br i1 %133, label %156, label %134
134: ; preds = %128
%135 = load i32, i32* %74
%136 = load i32, i32* %59
%137 = sub nsw i32 %135, %136
%138 = icmp eq i32 %137, 0
br i1 %138, label %156, label %139
139: ; preds = %134
%140 = add i32 %137, %124
%141 = load i16, i16* %81
%142 = tail call double @calc_pri(i16 zeroext %141)
%143 = fcmp oeq double %142, 0.000000e+00
br i1 %143, label %156, label %144
144: ; preds = %139
%145 = tail call double @calc_pri(i16 zeroext %141)
%146 = fdiv double 1.000000e+00, %145
%147 = fcmp uge double %146, 1.640000e+03
%148 = fcmp ule double %146, 1.720000e+03
%149 = and i1 %147, %148
br label %156
150: ; preds = %3
%151 = tail call double @calc_pri(i16 zeroext %84)
%152 = fdiv double 1.000000e+00, %151
%153 = fcmp olt double %152, 1.640000e+03
%154 = fcmp ogt double %152, 1.720000e+03
%155 = or i1 %153, %154
br i1 %155, label %156, label %87
156: ; preds = %144, %139, %134, %128, %123, %118, %112, %107, %102, %96, %92, %87, %150, %3
%157 = phi i32 [ 0, %3 ], [ 0, %150 ], [ 0, %87 ], [ %90, %92 ], [ %90, %96 ], [ %90, %102 ], [ %108, %107 ], [ %108, %112 ], [ %108, %118 ], [ %124, %123 ], [ %124, %128 ], [ %124, %134 ], [ %140, %139 ], [ %140, %144 ]
%158 = phi i1 [ false, %3 ], [ false, %150 ], [ false, %87 ], [ false, %92 ], [ false, %96 ], [ false, %102 ], [ false, %107 ], [ false, %112 ], [ false, %118 ], [ false, %123 ], [ false, %128 ], [ false, %134 ], [ false, %139 ], [ %149, %144 ]
%159 = icmp ult i32 %157, 5
%160 = select i1 %158, i1 %159, i1 false
%161 = zext i1 %160 to i32
ret i32 %161
}