#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(void) {
  int s1 = 2, s2 = 5, v1 = 2, v2 = 5;
  int n = 100;
  int i;
#pragma acc parallel vector_length(32) copy(s1, s2)
#pragma acc loop reduction(+ : s1, s2)
  for (i = 0; i < n; i++) {
    s1 = s1 + 3;
    s2 = s2 + 2;
  }
  for (i = 0; i < n; i++) {
    v1 = v1 + 3;
    v2 = v2 + 2;
  }
  if (s1 != v1)
    abort();
  if (s2 != v2)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
movl   $0x2,-0x10(%rbp)
movl   $0x5,-0x14(%rbp)
movl   $0x64,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1175 <main+0x65>
mov    -0x8(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1149 <main+0x39>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11a8 <main+0x98>
mov    -0x10(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    117c <main+0x6c>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     11bb <main+0xab>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     11ce <main+0xbe>
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() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 2, i32* %2
store i32 5, i32* %3
store i32 2, i32* %4
store i32 5, i32* %5
store i32 100, i32* %6
store i32 0, i32* %7
br label %8
8: ; preds = %17, %0
%9 = load i32, i32* %7
%10 = load i32, i32* %6
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %8
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 3
store i32 %14, i32* %2
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 2
store i32 %16, i32* %3
br label %17
17: ; preds = %12
%18 = load i32, i32* %7
%19 = add nsw i32 %18, 1
store i32 %19, i32* %7
br label %8
20: ; preds = %8
store i32 0, i32* %7
br label %21
21: ; preds = %30, %20
%22 = load i32, i32* %7
%23 = load i32, i32* %6
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %33
25: ; preds = %21
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 3
store i32 %27, i32* %4
%28 = load i32, i32* %5
%29 = add nsw i32 %28, 2
store i32 %29, i32* %5
br label %30
30: ; preds = %25
%31 = load i32, i32* %7
%32 = add nsw i32 %31, 1
store i32 %32, i32* %7
br label %21
33: ; preds = %21
%34 = load i32, i32* %2
%35 = load i32, i32* %4
%36 = icmp ne i32 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 (...) @abort()
unreachable
39: ; preds = %33
%40 = load i32, i32* %3
%41 = load i32, i32* %5
%42 = icmp ne i32 %40, %41
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 (...) @abort()
unreachable
45: ; preds = %39
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}