#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*/ abort();
int main(int argc, char **argv) {
  short a[4];
  a[0] = 10;
  a[1] = 10;
  a[2] = 10;
  a[3] = 10;
#pragma acc parallel copy(a [1:N - 1])
  {
    a[1] = 51;
    a[2] = 52;
    a[3] = 53;
  }
  if (a[0] != 10)
    abort();
  if (a[1] != 51)
    abort();
  if (a[2] != 52)
    abort();
  if (a[3] != 53)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movw   $0xa,-0x18(%rbp)
movw   $0xa,-0x16(%rbp)
movw   $0xa,-0x14(%rbp)
movw   $0xa,-0x12(%rbp)
movw   $0x33,-0x16(%rbp)
movw   $0x34,-0x14(%rbp)
movw   $0x35,-0x12(%rbp)
movswl -0x18(%rbp),%eax
cmp    $0xa,%eax
je     1164 <main+0x54>
mov    $0x0,%al
call   1030 <abort@plt>
movswl -0x16(%rbp),%eax
cmp    $0x33,%eax
je     1178 <main+0x68>
mov    $0x0,%al
call   1030 <abort@plt>
movswl -0x14(%rbp),%eax
cmp    $0x34,%eax
je     118c <main+0x7c>
mov    $0x0,%al
call   1030 <abort@plt>
movswl -0x12(%rbp),%eax
cmp    $0x35,%eax
je     11a0 <main+0x90>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4 x i16]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 0
store i16 10, i16* %7
%8 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 1
store i16 10, i16* %8
%9 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 2
store i16 10, i16* %9
%10 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 3
store i16 10, i16* %10
%11 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 1
store i16 51, i16* %11
%12 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 2
store i16 52, i16* %12
%13 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 3
store i16 53, i16* %13
%14 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 0
%15 = load i16, i16* %14
%16 = sext i16 %15 to i32
%17 = icmp ne i32 %16, 10
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 (...) @abort()
unreachable
20: ; preds = %2
%21 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 1
%22 = load i16, i16* %21
%23 = sext i16 %22 to i32
%24 = icmp ne i32 %23, 51
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = call i32 (...) @abort()
unreachable
27: ; preds = %20
%28 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 2
%29 = load i16, i16* %28
%30 = sext i16 %29 to i32
%31 = icmp ne i32 %30, 52
br i1 %31, label %32, label %34
32: ; preds = %27
%33 = call i32 (...) @abort()
unreachable
34: ; preds = %27
%35 = getelementptr inbounds [4 x i16], [4 x i16]* %6, i64 0, i64 3
%36 = load i16, i16* %35
%37 = sext i16 %36 to i32
%38 = icmp ne i32 %37, 53
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = call i32 (...) @abort()
unreachable
41: ; preds = %34
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}