#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*/ check_offloading();
size_t omp_get_thread_num();
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  check_offloading();
  int fail;
  double A[(992)], B[(992)], C[(992)], D[(992)], E[(992)];
  {
    int i;
    for (i = 0; i < (992); i++) {
      {
        C[i] = 1;
        D[i] = i;
        E[i] = -i;
      }
    }
  };
#pragma omp target device(1) if (target : C[0] == 1)
  {
#pragma omp parallel for schedule(static, 1)
    for (int i = 0; i < 992; i++)
      A[i] = C[i] + D[i] + 1;
  }
  fail = 0;
  {
    int i;
    int errorNum = 0;
    for (i = 0; i < (992); i++) {
      if (A[i] != i + 2) {
        printf("Failed at %3d with %s, expected %f, got %f\n", i, "A[i]", i + 2,
               A[i]);
        fail = 1;
        if (errorNum++ > 10)
          break;
      }
    }
  };
  if (fail) {
    printf("Test2: Failed\n");
  } else {
    printf("Test2: Succeeded\n");
  }
#pragma omp target
  {
    printf("Master %d\n", omp_get_thread_num());
    int TT[2] = {0, 0};
#pragma omp parallel num_threads(2)
    { TT[omp_get_thread_num()]++; }
    printf("Parallel %d:%f\n", TT[0], D[0]);
    printf("Parallel %d:%f\n", TT[1], D[1]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9b30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <check_offloading@plt>
movl   $0x0,-0x9b14(%rbp)
cmpl   $0x3e0,-0x9b14(%rbp)
jge    11d3 <main+0x93>
movslq -0x9b14(%rbp),%rax
movsd  0xe7e(%rip),%xmm0
movsd  %xmm0,-0x5d10(%rbp,%rax,8)
ff ff
cvtsi2sdl -0x9b14(%rbp),%xmm0
ff
movslq -0x9b14(%rbp),%rax
movsd  %xmm0,-0x7c10(%rbp,%rax,8)
ff ff
xor    %eax,%eax
sub    -0x9b14(%rbp),%eax
cvtsi2sd %eax,%xmm0
movslq -0x9b14(%rbp),%rax
movsd  %xmm0,-0x9b10(%rbp,%rax,8)
ff ff
mov    -0x9b14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9b14(%rbp)
jmp    1163 <main+0x23>
movl   $0x0,-0x9b18(%rbp)
cmpl   $0x3e0,-0x9b18(%rbp)
jge    123d <main+0xfd>
movslq -0x9b18(%rbp),%rax
movsd  -0x5d10(%rbp,%rax,8),%xmm0
ff ff
movslq -0x9b18(%rbp),%rax
addsd  -0x7c10(%rbp,%rax,8),%xmm0
ff ff
movsd  0xdeb(%rip),%xmm1
addsd  %xmm1,%xmm0
movslq -0x9b18(%rbp),%rax
movsd  %xmm0,-0x1f10(%rbp,%rax,8)
ff ff
mov    -0x9b18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9b18(%rbp)
jmp    11dd <main+0x9d>
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x9b20(%rbp)
movl   $0x0,-0x9b1c(%rbp)
cmpl   $0x3e0,-0x9b1c(%rbp)
jge    1312 <main+0x1d2>
movslq -0x9b1c(%rbp),%rax
movsd  -0x1f10(%rbp,%rax,8),%xmm0
ff ff
mov    -0x9b1c(%rbp),%eax
add    $0x2,%eax
cvtsi2sd %eax,%xmm1
ucomisd %xmm1,%xmm0
jne    129a <main+0x15a>
jp     129a <main+0x15a>
jmp    12f9 <main+0x1b9>
mov    -0x9b1c(%rbp),%esi
mov    -0x9b1c(%rbp),%ecx
add    $0x2,%ecx
movslq -0x9b1c(%rbp),%rax
movsd  -0x1f10(%rbp,%rax,8),%xmm0
ff ff
lea    0xd48(%rip),%rdi
lea    0xd6d(%rip),%rdx
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x9b20(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x9b20(%rbp)
cmp    $0xa,%eax
jle    12f4 <main+0x1b4>
jmp    1312 <main+0x1d2>
jmp    12f9 <main+0x1b9>
jmp    12fe <main+0x1be>
mov    -0x9b1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9b1c(%rbp)
jmp    1258 <main+0x118>
cmpl   $0x0,-0x8(%rbp)
je     132f <main+0x1ef>
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    133d <main+0x1fd>
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <omp_get_thread_num@plt>
mov    %rax,%rsi
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x9b28(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
mov    $0x0,%al
call   1030 <omp_get_thread_num@plt>
mov    -0x9b28(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x9b28(%rbp,%rax,4)
mov    -0x9b28(%rbp),%esi
movsd  -0x7c10(%rbp),%xmm0
ff
lea    0xcd0(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x9b24(%rbp),%esi
movsd  -0x7c08(%rbp),%xmm0
ff
lea    0xcb4(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x9b30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x5d10,%rsp
xor    %eax,%eax
call   1060 <check_offloading@plt>
movdqa 0xea2(%rip),%xmm1
mov    $0x6,%eax
movdqa 0xea5(%rip),%xmm2
movapd 0xead(%rip),%xmm0
movdqa 0xeb5(%rip),%xmm3
movdqa 0xebd(%rip),%xmm4
movdqa 0xec5(%rip),%xmm5
nopl   0x0(%rax,%rax,1)
movdqa %xmm1,%xmm6
paddd  %xmm2,%xmm6
movapd %xmm0,0x1ee0(%rsp,%rax,8)
cvtdq2pd %xmm1,%xmm7
cvtdq2pd %xmm6,%xmm6
movapd %xmm0,0x1ef0(%rsp,%rax,8)
movaps %xmm7,-0x20(%rsp,%rax,8)
movaps %xmm6,-0x10(%rsp,%rax,8)
movdqa %xmm1,%xmm6
paddd  %xmm3,%xmm6
movdqa %xmm1,%xmm7
paddd  %xmm4,%xmm7
movapd %xmm0,0x1f00(%rsp,%rax,8)
cvtdq2pd %xmm6,%xmm6
movapd %xmm0,0x1f10(%rsp,%rax,8)
cvtdq2pd %xmm7,%xmm7
movaps %xmm6,(%rsp,%rax,8)
movaps %xmm7,0x10(%rsp,%rax,8)
paddd  %xmm5,%xmm1
add    $0x8,%rax
cmp    $0x3e6,%rax
jne    1190 <main+0x50>
mov    $0x6,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movapd 0x1ee0(%rsp,%rax,8),%xmm1
movapd 0x1ef0(%rsp,%rax,8),%xmm2
movapd 0x1f00(%rsp,%rax,8),%xmm3
movapd 0x1f10(%rsp,%rax,8),%xmm4
addpd  -0x20(%rsp,%rax,8),%xmm1
addpd  -0x10(%rsp,%rax,8),%xmm2
addpd  %xmm0,%xmm1
addpd  %xmm0,%xmm2
movapd %xmm1,0x3de0(%rsp,%rax,8)
movapd %xmm2,0x3df0(%rsp,%rax,8)
addpd  (%rsp,%rax,8),%xmm3
addpd  0x10(%rsp,%rax,8),%xmm4
addpd  %xmm0,%xmm3
addpd  %xmm0,%xmm4
movapd %xmm3,0x3e00(%rsp,%rax,8)
movapd %xmm4,0x3e10(%rsp,%rax,8)
add    $0x8,%rax
cmp    $0x3e6,%rax
jne    1210 <main+0xd0>
lea    0xe1a(%rip),%rdi
xor    %ebx,%ebx
lea    0xdc5(%rip),%r14
lea    0xdea(%rip),%r15
lea    0xe14(%rip),%r12
xor    %ebp,%ebp
add    $0x1,%rbx
nop
movsd  0x3e08(%rsp,%rbx,8),%xmm0
lea    0x1(%rbx),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
ucomisd %xmm1,%xmm0
jne    12e0 <main+0x1a0>
jp     12e0 <main+0x1a0>
add    $0x1,%rbx
cmp    $0x3e1,%rbx
jne    12b0 <main+0x170>
jmp    130a <main+0x1ca>
nopw   0x0(%rax,%rax,1)
lea    -0x1(%rbx),%esi
lea    0x1(%rbx),%ecx
mov    %r14,%rdi
mov    %r15,%rdx
mov    $0x1,%al
call   1050 <printf@plt>
cmp    $0xa,%ebp
ja     1307 <main+0x1c7>
add    $0x1,%ebp
mov    %r12,%rdi
cmp    $0x3e0,%rbx
jne    12ab <main+0x16b>
mov    %r12,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
lea    0xd74(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
movq   $0x0,0x8(%rsp)
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
addl   $0x1,0x8(%rsp,%rax,4)
mov    0x8(%rsp),%esi
movsd  0x10(%rsp),%xmm0
lea    0xd4f(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
movsd  0x18(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x5d10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Failed at %3d with %s, expected %f, got %f\0A\00"
@.str.1 = [5 x i8] c"A[i]\00"
@.str.2 = [15 x i8] c"Test2: Failed\0A\00"
@.str.3 = [18 x i8] c"Test2: Succeeded\0A\00"
@.str.4 = [11 x i8] c"Master %d\0A\00"
@.str.5 = [16 x i8] c"Parallel %d:%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [992 x double]
%4 = alloca [992 x double]
%5 = alloca [992 x double]
%6 = alloca [992 x double]
%7 = alloca [992 x double]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [2 x i32]
store i32 0, i32* %1
%13 = call i32 (...) @check_offloading()
store i32 0, i32* %8
br label %14
14: ; preds = %32, %0
%15 = load i32, i32* %8
%16 = icmp slt i32 %15, 992
br i1 %16, label %17, label %35
17: ; preds = %14
%18 = load i32, i32* %8
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [992 x double], [992 x double]* %5, i64 0, i64 %19
store double 1.000000e+00, double* %20
%21 = load i32, i32* %8
%22 = sitofp i32 %21 to double
%23 = load i32, i32* %8
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [992 x double], [992 x double]* %6, i64 0, i64 %24
store double %22, double* %25
%26 = load i32, i32* %8
%27 = sub nsw i32 0, %26
%28 = sitofp i32 %27 to double
%29 = load i32, i32* %8
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [992 x double], [992 x double]* %7, i64 0, i64 %30
store double %28, double* %31
br label %32
32: ; preds = %17
%33 = load i32, i32* %8
%34 = add nsw i32 %33, 1
store i32 %34, i32* %8
br label %14
35: ; preds = %14
store i32 0, i32* %9
br label %36
36: ; preds = %53, %35
%37 = load i32, i32* %9
%38 = icmp slt i32 %37, 992
br i1 %38, label %39, label %56
39: ; preds = %36
%40 = load i32, i32* %9
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [992 x double], [992 x double]* %5, i64 0, i64 %41
%43 = load double, double* %42
%44 = load i32, i32* %9
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [992 x double], [992 x double]* %6, i64 0, i64 %45
%47 = load double, double* %46
%48 = fadd double %43, %47
%49 = fadd double %48, 1.000000e+00
%50 = load i32, i32* %9
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 %51
store double %49, double* %52
br label %53
53: ; preds = %39
%54 = load i32, i32* %9
%55 = add nsw i32 %54, 1
store i32 %55, i32* %9
br label %36
56: ; preds = %36
store i32 0, i32* %2
store i32 0, i32* %11
store i32 0, i32* %10
br label %57
57: ; preds = %84, %56
%58 = load i32, i32* %10
%59 = icmp slt i32 %58, 992
br i1 %59, label %60, label %87
60: ; preds = %57
%61 = load i32, i32* %10
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 %62
%64 = load double, double* %63
%65 = load i32, i32* %10
%66 = add nsw i32 %65, 2
%67 = sitofp i32 %66 to double
%68 = fcmp une double %64, %67
br i1 %68, label %69, label %83
69: ; preds = %60
%70 = load i32, i32* %10
%71 = load i32, i32* %10
%72 = add nsw i32 %71, 2
%73 = load i32, i32* %10
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 %74
%76 = load double, double* %75
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %70, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %72, double %76)
store i32 1, i32* %2
%78 = load i32, i32* %11
%79 = add nsw i32 %78, 1
store i32 %79, i32* %11
%80 = icmp sgt i32 %78, 10
br i1 %80, label %81, label %82
81: ; preds = %69
br label %87
82: ; preds = %69
br label %83
83: ; preds = %82, %60
br label %84
84: ; preds = %83
%85 = load i32, i32* %10
%86 = add nsw i32 %85, 1
store i32 %86, i32* %10
br label %57
87: ; preds = %81, %57
%88 = load i32, i32* %2
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %94
92: ; preds = %87
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %94
94: ; preds = %92, %90
%95 = call i64 (...) @omp_get_thread_num()
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i64 %95)
%97 = bitcast [2 x i32]* %12 to i8*
%98 = call i64 (...) @omp_get_thread_num()
%99 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 %98
%100 = load i32, i32* %99
%101 = add nsw i32 %100, 1
store i32 %101, i32* %99
%102 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 0
%103 = load i32, i32* %102
%104 = getelementptr inbounds [992 x double], [992 x double]* %6, i64 0, i64 0
%105 = load double, double* %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %103, double %105)
%107 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 1
%108 = load i32, i32* %107
%109 = getelementptr inbounds [992 x double], [992 x double]* %6, i64 0, i64 1
%110 = load double, double* %109
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %108, double %110)
ret i32 0
}

LLVM IR (-O2):
@.str = [44 x i8] c"Failed at %3d with %s, expected %f, got %f\0A\00"
@.str.1 = [5 x i8] c"A[i]\00"
@.str.4 = [11 x i8] c"Master %d\0A\00"
@.str.5 = [16 x i8] c"Parallel %d:%f\0A\00"
@str = [17 x i8] c"Test2: Succeeded\00"
@str.6 = [14 x i8] c"Test2: Failed\00"
define i32 @main() {
%1 = alloca [992 x double]
%2 = alloca [992 x double]
%3 = alloca [992 x double]
%4 = alloca i64
%5 = tail call i32 (...) @check_offloading()
%6 = bitcast [992 x double]* %1 to i8*
%7 = bitcast [992 x double]* %2 to i8*
%8 = bitcast [992 x double]* %3 to i8*
br label %9
9: ; preds = %9, %0
%10 = phi i64 [ 0, %0 ], [ %36, %9 ]
%11 = phi <2 x i32> [ <i32 0, i32 1>, %0 ], [ %37, %9 ]
%12 = add <2 x i32> %11, <i32 2, i32 2>
%13 = getelementptr inbounds [992 x double], [992 x double]* %2, i64 0, i64 %10
%14 = bitcast double* %13 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %14
%15 = getelementptr inbounds double, double* %13, i64 2
%16 = bitcast double* %15 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %16
%17 = sitofp <2 x i32> %11 to <2 x double>
%18 = sitofp <2 x i32> %12 to <2 x double>
%19 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 %10
%20 = bitcast double* %19 to <2 x double>*
store <2 x double> %17, <2 x double>* %20
%21 = getelementptr inbounds double, double* %19, i64 2
%22 = bitcast double* %21 to <2 x double>*
store <2 x double> %18, <2 x double>* %22
%23 = or i64 %10, 4
%24 = add <2 x i32> %11, <i32 4, i32 4>
%25 = add <2 x i32> %11, <i32 6, i32 6>
%26 = getelementptr inbounds [992 x double], [992 x double]* %2, i64 0, i64 %23
%27 = bitcast double* %26 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %27
%28 = getelementptr inbounds double, double* %26, i64 2
%29 = bitcast double* %28 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %29
%30 = sitofp <2 x i32> %24 to <2 x double>
%31 = sitofp <2 x i32> %25 to <2 x double>
%32 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 %23
%33 = bitcast double* %32 to <2 x double>*
store <2 x double> %30, <2 x double>* %33
%34 = getelementptr inbounds double, double* %32, i64 2
%35 = bitcast double* %34 to <2 x double>*
store <2 x double> %31, <2 x double>* %35
%36 = add nuw nsw i64 %10, 8
%37 = add <2 x i32> %11, <i32 8, i32 8>
%38 = icmp eq i64 %36, 992
br i1 %38, label %39, label %9
39: ; preds = %9, %39
%40 = phi i64 [ %82, %39 ], [ 0, %9 ]
%41 = getelementptr inbounds [992 x double], [992 x double]* %2, i64 0, i64 %40
%42 = bitcast double* %41 to <2 x double>*
%43 = load <2 x double>, <2 x double>* %42
%44 = getelementptr inbounds double, double* %41, i64 2
%45 = bitcast double* %44 to <2 x double>*
%46 = load <2 x double>, <2 x double>* %45
%47 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 %40
%48 = bitcast double* %47 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = getelementptr inbounds double, double* %47, i64 2
%51 = bitcast double* %50 to <2 x double>*
%52 = load <2 x double>, <2 x double>* %51
%53 = fadd <2 x double> %43, %49
%54 = fadd <2 x double> %46, %52
%55 = fadd <2 x double> %53, <double 1.000000e+00, double 1.000000e+00>
%56 = fadd <2 x double> %54, <double 1.000000e+00, double 1.000000e+00>
%57 = getelementptr inbounds [992 x double], [992 x double]* %1, i64 0, i64 %40
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> %55, <2 x double>* %58
%59 = getelementptr inbounds double, double* %57, i64 2
%60 = bitcast double* %59 to <2 x double>*
store <2 x double> %56, <2 x double>* %60
%61 = or i64 %40, 4
%62 = getelementptr inbounds [992 x double], [992 x double]* %2, i64 0, i64 %61
%63 = bitcast double* %62 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = getelementptr inbounds double, double* %62, i64 2
%66 = bitcast double* %65 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 %61
%69 = bitcast double* %68 to <2 x double>*
%70 = load <2 x double>, <2 x double>* %69
%71 = getelementptr inbounds double, double* %68, i64 2
%72 = bitcast double* %71 to <2 x double>*
%73 = load <2 x double>, <2 x double>* %72
%74 = fadd <2 x double> %64, %70
%75 = fadd <2 x double> %67, %73
%76 = fadd <2 x double> %74, <double 1.000000e+00, double 1.000000e+00>
%77 = fadd <2 x double> %75, <double 1.000000e+00, double 1.000000e+00>
%78 = getelementptr inbounds [992 x double], [992 x double]* %1, i64 0, i64 %61
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> %76, <2 x double>* %79
%80 = getelementptr inbounds double, double* %78, i64 2
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> %77, <2 x double>* %81
%82 = add nuw nsw i64 %40, 8
%83 = icmp eq i64 %82, 992
br i1 %83, label %84, label %39
84: ; preds = %39
%85 = bitcast i64* %4 to [2 x i32]*
br label %86
86: ; preds = %98, %84
%87 = phi i64 [ 0, %84 ], [ %104, %98 ]
%88 = phi i32 [ 0, %84 ], [ %102, %98 ]
%89 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0), %84 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @str.6, i64 0, i64 0), %98 ]
br label %90
90: ; preds = %86, %107
%91 = phi i64 [ %108, %107 ], [ %87, %86 ]
%92 = getelementptr inbounds [992 x double], [992 x double]* %1, i64 0, i64 %91
%93 = load double, double* %92
%94 = trunc i64 %91 to i32
%95 = add i32 %94, 2
%96 = sitofp i32 %95 to double
%97 = fcmp une double %93, %96
br i1 %97, label %98, label %107
98: ; preds = %90
%99 = trunc i64 %91 to i32
%100 = add nuw nsw i32 %99, 2
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %99, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %100, double %93)
%102 = add nuw nsw i32 %88, 1
%103 = icmp ugt i32 %88, 10
%104 = add nuw nsw i64 %91, 1
%105 = icmp eq i64 %104, 992
%106 = select i1 %103, i1 true, i1 %105
br i1 %106, label %110, label %86
107: ; preds = %90
%108 = add nuw nsw i64 %91, 1
%109 = icmp eq i64 %108, 992
br i1 %109, label %110, label %90
110: ; preds = %98, %107
%111 = phi i8* [ %89, %107 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @str.6, i64 0, i64 0), %98 ]
%112 = tail call i32 @puts(i8* dereferenceable(1) %111)
%113 = tail call i64 (...) @omp_get_thread_num()
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i64 %113)
%115 = bitcast i64* %4 to i8*
store i64 0, i64* %4
%116 = tail call i64 (...) @omp_get_thread_num()
%117 = getelementptr inbounds [2 x i32], [2 x i32]* %85, i64 0, i64 %116
%118 = load i32, i32* %117
%119 = add nsw i32 %118, 1
store i32 %119, i32* %117
%120 = bitcast i64* %4 to i32*
%121 = load i32, i32* %120
%122 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 0
%123 = load double, double* %122
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %121, double %123)
%125 = getelementptr inbounds [2 x i32], [2 x i32]* %85, i64 0, i64 1
%126 = load i32, i32* %125
%127 = getelementptr inbounds [992 x double], [992 x double]* %3, i64 0, i64 1
%128 = load double, double* %127
%129 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %126, double %128)
ret i32 0
}