#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*/ printf(char *);
int main(void) {
  int a[100];
  int b[200][100];
  int *a_p = a;
  int(*b_p)[100] = (int(*)[100])b;
  int i, j;
  for (i = 0; i < 100; i++) {
    a[i] = 0;
  }
  for (i = 0; i < 200; i++) {
    for (j = 0; j < 100; j++) {
      b[i][j] = 0;
    }
  }
#pragma acc parallel copy(a_p[3])
  a_p[3] = 1234;
  if (a[3] != 1234) {
    return 1;
  }
#pragma acc parallel loop copy(b_p[4][:])
  for (j = 0; j < 100; j++) {
    b_p[4][j] = j * 11;
  }
  for (j = 0; j < 100; j++) {
    if (b[4][j] != j * 11) {
      return 2;
    }
  }
  printf("PASS\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x13a40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1a0(%rbp),%rax
mov    %rax,-0x13a28(%rbp)
lea    -0x13a20(%rbp),%rax
mov    %rax,-0x13a30(%rbp)
movl   $0x0,-0x13a34(%rbp)
cmpl   $0x64,-0x13a34(%rbp)
jge    117b <main+0x6b>
movslq -0x13a34(%rbp),%rax
movl   $0x0,-0x1a0(%rbp,%rax,4)
mov    -0x13a34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13a34(%rbp)
jmp    1148 <main+0x38>
movl   $0x0,-0x13a34(%rbp)
cmpl   $0xc8,-0x13a34(%rbp)
jge    11ff <main+0xef>
movl   $0x0,-0x13a38(%rbp)
cmpl   $0x64,-0x13a38(%rbp)
jge    11e6 <main+0xd6>
movslq -0x13a34(%rbp),%rcx
lea    -0x13a20(%rbp),%rax
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x13a38(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x13a38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13a38(%rbp)
jmp    119f <main+0x8f>
jmp    11eb <main+0xdb>
mov    -0x13a34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13a34(%rbp)
jmp    1185 <main+0x75>
mov    -0x13a28(%rbp),%rax
movl   $0x4d2,0xc(%rax)
cmpl   $0x4d2,-0x194(%rbp)
je     1229 <main+0x119>
movl   $0x1,-0x4(%rbp)
jmp    12dc <main+0x1cc>
movl   $0x0,-0x13a38(%rbp)
cmpl   $0x64,-0x13a38(%rbp)
jge    1270 <main+0x160>
imul   $0xb,-0x13a38(%rbp),%edx
mov    -0x13a30(%rbp),%rax
movslq -0x13a38(%rbp),%rcx
mov    %edx,0x640(%rax,%rcx,4)
mov    -0x13a38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13a38(%rbp)
jmp    1233 <main+0x123>
movl   $0x0,-0x13a38(%rbp)
cmpl   $0x64,-0x13a38(%rbp)
jge    12c9 <main+0x1b9>
movslq -0x13a38(%rbp),%rax
mov    -0x133e0(%rbp,%rax,4),%eax
imul   $0xb,-0x13a38(%rbp),%ecx
cmp    %ecx,%eax
je     12b0 <main+0x1a0>
movl   $0x2,-0x4(%rbp)
jmp    12dc <main+0x1cc>
jmp    12b5 <main+0x1a5>
mov    -0x13a38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13a38(%rbp)
jmp    127a <main+0x16a>
lea    0xd30(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x13a40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x13888,%rsp
mov    %rsp,%rdi
mov    $0x13880,%edx
xor    %esi,%esi
call   1040 <memset@plt>
movaps 0xec3(%rip),%xmm0
movaps %xmm0,0x640(%rsp)
lea    0x650(%rsp),%rcx
movaps 0xebc(%rip),%xmm0
movaps %xmm0,0x650(%rsp)
movaps 0xebd(%rip),%xmm0
movaps %xmm0,0x660(%rsp)
movaps 0xebe(%rip),%xmm0
movaps %xmm0,0x670(%rsp)
movaps 0xebf(%rip),%xmm0
movaps %xmm0,0x680(%rsp)
movaps 0xec0(%rip),%xmm0
movaps %xmm0,0x690(%rsp)
movaps 0xec1(%rip),%xmm0
movaps %xmm0,0x6a0(%rsp)
movaps 0xec2(%rip),%xmm0
movaps %xmm0,0x6b0(%rsp)
movaps 0xec3(%rip),%xmm0
movaps %xmm0,0x6c0(%rsp)
movaps 0xec4(%rip),%xmm0
movaps %xmm0,0x6d0(%rsp)
movaps 0xec5(%rip),%xmm0
movaps %xmm0,0x6e0(%rsp)
movaps 0xec6(%rip),%xmm0
movaps %xmm0,0x6f0(%rsp)
movaps 0xec7(%rip),%xmm0
movaps %xmm0,0x700(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,0x710(%rsp)
movaps 0xec9(%rip),%xmm0
movaps %xmm0,0x720(%rsp)
movaps 0xeca(%rip),%xmm0
movaps %xmm0,0x730(%rsp)
movaps 0xecb(%rip),%xmm0
movaps %xmm0,0x740(%rsp)
movaps 0xecc(%rip),%xmm0
movaps %xmm0,0x750(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x760(%rsp)
movaps 0xece(%rip),%xmm0
movaps %xmm0,0x770(%rsp)
movaps 0xecf(%rip),%xmm0
movaps %xmm0,0x780(%rsp)
movaps 0xed0(%rip),%xmm0
movaps %xmm0,0x790(%rsp)
movaps 0xed1(%rip),%xmm0
movaps %xmm0,0x7a0(%rsp)
movaps 0xed2(%rip),%xmm0
movaps %xmm0,0x7b0(%rsp)
movaps 0xed3(%rip),%xmm0
movaps %xmm0,0x7c0(%rsp)
mov    $0xfffffffffffffff5,%rdx
mov    $0x2,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x10(%rcx),%esi
lea    0xb(%rdx),%rdi
cmp    %rsi,%rdi
jne    1326 <main+0x206>
mov    -0xc(%rcx),%esi
lea    0x16(%rdx),%rdi
cmp    %rsi,%rdi
jne    1326 <main+0x206>
mov    -0x8(%rcx),%esi
lea    0x21(%rdx),%rdi
cmp    %rsi,%rdi
jne    1326 <main+0x206>
mov    -0x4(%rcx),%esi
lea    0x2c(%rdx),%rdi
cmp    %rsi,%rdi
jne    1326 <main+0x206>
mov    (%rcx),%esi
add    $0x37,%rdx
cmp    %rsi,%rdx
jne    1326 <main+0x206>
add    $0x14,%rcx
cmp    $0x441,%rdx
jne    12d0 <main+0x1b0>
lea    0xe71(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x13888,%rsp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"PASS\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = alloca [200 x [100 x i32]]
%4 = alloca i32*
%5 = alloca [100 x i32]*
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 0
store i32* %8, i32** %4
%9 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %3, i64 0, i64 0
store [100 x i32]* %9, [100 x i32]** %5
store i32 0, i32* %6
br label %10
10: ; preds = %17, %0
%11 = load i32, i32* %6
%12 = icmp slt i32 %11, 100
br i1 %12, label %13, label %20
13: ; preds = %10
%14 = load i32, i32* %6
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %15
store i32 0, i32* %16
br label %17
17: ; preds = %13
%18 = load i32, i32* %6
%19 = add nsw i32 %18, 1
store i32 %19, i32* %6
br label %10
20: ; preds = %10
store i32 0, i32* %6
br label %21
21: ; preds = %39, %20
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 200
br i1 %23, label %24, label %42
24: ; preds = %21
store i32 0, i32* %7
br label %25
25: ; preds = %35, %24
%26 = load i32, i32* %7
%27 = icmp slt i32 %26, 100
br i1 %27, label %28, label %38
28: ; preds = %25
%29 = load i32, i32* %6
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %3, i64 0, i64 %30
%32 = load i32, i32* %7
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i32], [100 x i32]* %31, i64 0, i64 %33
store i32 0, i32* %34
br label %35
35: ; preds = %28
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
store i32 %37, i32* %7
br label %25
38: ; preds = %25
br label %39
39: ; preds = %38
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 1
store i32 %41, i32* %6
br label %21
42: ; preds = %21
%43 = load i32*, i32** %4
%44 = getelementptr inbounds i32, i32* %43, i64 3
store i32 1234, i32* %44
%45 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 3
%46 = load i32, i32* %45
%47 = icmp ne i32 %46, 1234
br i1 %47, label %48, label %49
48: ; preds = %42
store i32 1, i32* %1
br label %84
49: ; preds = %42
store i32 0, i32* %7
br label %50
50: ; preds = %61, %49
%51 = load i32, i32* %7
%52 = icmp slt i32 %51, 100
br i1 %52, label %53, label %64
53: ; preds = %50
%54 = load i32, i32* %7
%55 = mul nsw i32 %54, 11
%56 = load [100 x i32]*, [100 x i32]** %5
%57 = getelementptr inbounds [100 x i32], [100 x i32]* %56, i64 4
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i32], [100 x i32]* %57, i64 0, i64 %59
store i32 %55, i32* %60
br label %61
61: ; preds = %53
%62 = load i32, i32* %7
%63 = add nsw i32 %62, 1
store i32 %63, i32* %7
br label %50
64: ; preds = %50
store i32 0, i32* %7
br label %65
65: ; preds = %79, %64
%66 = load i32, i32* %7
%67 = icmp slt i32 %66, 100
br i1 %67, label %68, label %82
68: ; preds = %65
%69 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %3, i64 0, i64 4
%70 = load i32, i32* %7
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [100 x i32], [100 x i32]* %69, i64 0, i64 %71
%73 = load i32, i32* %72
%74 = load i32, i32* %7
%75 = mul nsw i32 %74, 11
%76 = icmp ne i32 %73, %75
br i1 %76, label %77, label %78
77: ; preds = %68
store i32 2, i32* %1
br label %84
78: ; preds = %68
br label %79
79: ; preds = %78
%80 = load i32, i32* %7
%81 = add nsw i32 %80, 1
store i32 %81, i32* %7
br label %65
82: ; preds = %65
%83 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %84
84: ; preds = %82, %77, %48
%85 = load i32, i32* %1
ret i32 %85
}

LLVM IR (-O2):
@str = [5 x i8] c"PASS\00"
define i32 @main() {
%1 = alloca [200 x [100 x i32]]
%2 = bitcast [200 x [100 x i32]]* %1 to i8*
%3 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 0
%4 = bitcast i32* %3 to <4 x i32>*
store <4 x i32> <i32 0, i32 11, i32 22, i32 33>, <4 x i32>* %4
%5 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 4
%6 = bitcast i32* %5 to <4 x i32>*
store <4 x i32> <i32 44, i32 55, i32 66, i32 77>, <4 x i32>* %6
%7 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 8
%8 = bitcast i32* %7 to <4 x i32>*
store <4 x i32> <i32 88, i32 99, i32 110, i32 121>, <4 x i32>* %8
%9 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 12
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 132, i32 143, i32 154, i32 165>, <4 x i32>* %10
%11 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 16
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 176, i32 187, i32 198, i32 209>, <4 x i32>* %12
%13 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 20
%14 = bitcast i32* %13 to <4 x i32>*
store <4 x i32> <i32 220, i32 231, i32 242, i32 253>, <4 x i32>* %14
%15 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 24
%16 = bitcast i32* %15 to <4 x i32>*
store <4 x i32> <i32 264, i32 275, i32 286, i32 297>, <4 x i32>* %16
%17 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 28
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 308, i32 319, i32 330, i32 341>, <4 x i32>* %18
%19 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 32
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> <i32 352, i32 363, i32 374, i32 385>, <4 x i32>* %20
%21 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 36
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> <i32 396, i32 407, i32 418, i32 429>, <4 x i32>* %22
%23 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 40
%24 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> <i32 440, i32 451, i32 462, i32 473>, <4 x i32>* %24
%25 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 44
%26 = bitcast i32* %25 to <4 x i32>*
store <4 x i32> <i32 484, i32 495, i32 506, i32 517>, <4 x i32>* %26
%27 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 48
%28 = bitcast i32* %27 to <4 x i32>*
store <4 x i32> <i32 528, i32 539, i32 550, i32 561>, <4 x i32>* %28
%29 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 52
%30 = bitcast i32* %29 to <4 x i32>*
store <4 x i32> <i32 572, i32 583, i32 594, i32 605>, <4 x i32>* %30
%31 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 56
%32 = bitcast i32* %31 to <4 x i32>*
store <4 x i32> <i32 616, i32 627, i32 638, i32 649>, <4 x i32>* %32
%33 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 60
%34 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> <i32 660, i32 671, i32 682, i32 693>, <4 x i32>* %34
%35 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 64
%36 = bitcast i32* %35 to <4 x i32>*
store <4 x i32> <i32 704, i32 715, i32 726, i32 737>, <4 x i32>* %36
%37 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 68
%38 = bitcast i32* %37 to <4 x i32>*
store <4 x i32> <i32 748, i32 759, i32 770, i32 781>, <4 x i32>* %38
%39 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 72
%40 = bitcast i32* %39 to <4 x i32>*
store <4 x i32> <i32 792, i32 803, i32 814, i32 825>, <4 x i32>* %40
%41 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 76
%42 = bitcast i32* %41 to <4 x i32>*
store <4 x i32> <i32 836, i32 847, i32 858, i32 869>, <4 x i32>* %42
%43 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 80
%44 = bitcast i32* %43 to <4 x i32>*
store <4 x i32> <i32 880, i32 891, i32 902, i32 913>, <4 x i32>* %44
%45 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 84
%46 = bitcast i32* %45 to <4 x i32>*
store <4 x i32> <i32 924, i32 935, i32 946, i32 957>, <4 x i32>* %46
%47 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 88
%48 = bitcast i32* %47 to <4 x i32>*
store <4 x i32> <i32 968, i32 979, i32 990, i32 1001>, <4 x i32>* %48
%49 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 92
%50 = bitcast i32* %49 to <4 x i32>*
store <4 x i32> <i32 1012, i32 1023, i32 1034, i32 1045>, <4 x i32>* %50
%51 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 96
%52 = bitcast i32* %51 to <4 x i32>*
store <4 x i32> <i32 1056, i32 1067, i32 1078, i32 1089>, <4 x i32>* %52
br label %84
53: ; preds = %84
%54 = add nuw nsw i64 %85, 1
%55 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 %54
%56 = load i32, i32* %55
%57 = mul nuw nsw i64 %54, 11
%58 = zext i32 %56 to i64
%59 = icmp eq i64 %57, %58
br i1 %59, label %60, label %93
60: ; preds = %53
%61 = add nuw nsw i64 %85, 2
%62 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 %61
%63 = load i32, i32* %62
%64 = mul nuw nsw i64 %61, 11
%65 = zext i32 %63 to i64
%66 = icmp eq i64 %64, %65
br i1 %66, label %67, label %93
67: ; preds = %60
%68 = add nuw nsw i64 %85, 3
%69 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 %68
%70 = load i32, i32* %69
%71 = mul nuw nsw i64 %68, 11
%72 = zext i32 %70 to i64
%73 = icmp eq i64 %71, %72
br i1 %73, label %74, label %93
74: ; preds = %67
%75 = add nuw nsw i64 %85, 4
%76 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 %75
%77 = load i32, i32* %76
%78 = mul nuw nsw i64 %75, 11
%79 = zext i32 %77 to i64
%80 = icmp eq i64 %78, %79
br i1 %80, label %81, label %93
81: ; preds = %74
%82 = add nuw nsw i64 %85, 5
%83 = icmp eq i64 %82, 100
br i1 %83, label %91, label %84
84: ; preds = %81, %0
%85 = phi i64 [ 0, %0 ], [ %82, %81 ]
%86 = getelementptr inbounds [200 x [100 x i32]], [200 x [100 x i32]]* %1, i64 0, i64 4, i64 %85
%87 = load i32, i32* %86
%88 = mul nuw nsw i64 %85, 11
%89 = zext i32 %87 to i64
%90 = icmp eq i64 %88, %89
br i1 %90, label %53, label %93
91: ; preds = %81
%92 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
br label %93
93: ; preds = %84, %53, %60, %67, %74, %91
%94 = phi i32 [ 0, %91 ], [ 2, %74 ], [ 2, %67 ], [ 2, %60 ], [ 2, %53 ], [ 2, %84 ]
ret i32 %94
}