#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*/ gang();
int /*<<< orphan*/ seq();
int /*<<< orphan*/ vector();
int /*<<< orphan*/ worker();
int main() {
#pragma acc parallel num_gangs(32) num_workers(32) vector_length(32)
  {
#pragma acc loop gang
    for (int i = 0; i < 10; i++) {
      gang();
      worker();
      vector();
      seq();
    }
#pragma acc loop worker
    for (int i = 0; i < 10; i++) {
      gang();
      worker();
      vector();
      seq();
    }
#pragma acc loop vector
    for (int i = 0; i < 10; i++) {
      gang();
      worker();
      vector();
      seq();
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    118a <main+0x4a>
mov    $0x0,%al
call   1030 <gang@plt>
mov    $0x0,%al
call   1040 <worker@plt>
mov    $0x0,%al
call   1060 <vector@plt>
mov    $0x0,%al
call   1050 <seq@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1156 <main+0x16>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    11c5 <main+0x85>
mov    $0x0,%al
call   1030 <gang@plt>
mov    $0x0,%al
call   1040 <worker@plt>
mov    $0x0,%al
call   1060 <vector@plt>
mov    $0x0,%al
call   1050 <seq@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1191 <main+0x51>
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    1200 <main+0xc0>
mov    $0x0,%al
call   1030 <gang@plt>
mov    $0x0,%al
call   1040 <worker@plt>
mov    $0x0,%al
call   1060 <vector@plt>
mov    $0x0,%al
call   1050 <seq@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11cc <main+0x8c>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
call   1030 <gang@plt>
xor    %eax,%eax
call   1040 <worker@plt>
xor    %eax,%eax
call   1060 <vector@plt>
xor    %eax,%eax
call   1050 <seq@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %5
5: ; preds = %13, %0
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %16
8: ; preds = %5
%9 = call i32 (...) @gang()
%10 = call i32 (...) @worker()
%11 = call i32 (...) @vector()
%12 = call i32 (...) @seq()
br label %13
13: ; preds = %8
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 1
store i32 %15, i32* %2
br label %5
16: ; preds = %5
store i32 0, i32* %3
br label %17
17: ; preds = %25, %16
%18 = load i32, i32* %3
%19 = icmp slt i32 %18, 10
br i1 %19, label %20, label %28
20: ; preds = %17
%21 = call i32 (...) @gang()
%22 = call i32 (...) @worker()
%23 = call i32 (...) @vector()
%24 = call i32 (...) @seq()
br label %25
25: ; preds = %20
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %17
28: ; preds = %17
store i32 0, i32* %4
br label %29
29: ; preds = %37, %28
%30 = load i32, i32* %4
%31 = icmp slt i32 %30, 10
br i1 %31, label %32, label %40
32: ; preds = %29
%33 = call i32 (...) @gang()
%34 = call i32 (...) @worker()
%35 = call i32 (...) @vector()
%36 = call i32 (...) @seq()
br label %37
37: ; preds = %32
%38 = load i32, i32* %4
%39 = add nsw i32 %38, 1
store i32 %39, i32* %4
br label %29
40: ; preds = %29
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @gang()
%2 = tail call i32 (...) @worker()
%3 = tail call i32 (...) @vector()
%4 = tail call i32 (...) @seq()
%5 = tail call i32 (...) @gang()
%6 = tail call i32 (...) @worker()
%7 = tail call i32 (...) @vector()
%8 = tail call i32 (...) @seq()
%9 = tail call i32 (...) @gang()
%10 = tail call i32 (...) @worker()
%11 = tail call i32 (...) @vector()
%12 = tail call i32 (...) @seq()
%13 = tail call i32 (...) @gang()
%14 = tail call i32 (...) @worker()
%15 = tail call i32 (...) @vector()
%16 = tail call i32 (...) @seq()
%17 = tail call i32 (...) @gang()
%18 = tail call i32 (...) @worker()
%19 = tail call i32 (...) @vector()
%20 = tail call i32 (...) @seq()
%21 = tail call i32 (...) @gang()
%22 = tail call i32 (...) @worker()
%23 = tail call i32 (...) @vector()
%24 = tail call i32 (...) @seq()
%25 = tail call i32 (...) @gang()
%26 = tail call i32 (...) @worker()
%27 = tail call i32 (...) @vector()
%28 = tail call i32 (...) @seq()
%29 = tail call i32 (...) @gang()
%30 = tail call i32 (...) @worker()
%31 = tail call i32 (...) @vector()
%32 = tail call i32 (...) @seq()
%33 = tail call i32 (...) @gang()
%34 = tail call i32 (...) @worker()
%35 = tail call i32 (...) @vector()
%36 = tail call i32 (...) @seq()
%37 = tail call i32 (...) @gang()
%38 = tail call i32 (...) @worker()
%39 = tail call i32 (...) @vector()
%40 = tail call i32 (...) @seq()
%41 = tail call i32 (...) @gang()
%42 = tail call i32 (...) @worker()
%43 = tail call i32 (...) @vector()
%44 = tail call i32 (...) @seq()
%45 = tail call i32 (...) @gang()
%46 = tail call i32 (...) @worker()
%47 = tail call i32 (...) @vector()
%48 = tail call i32 (...) @seq()
%49 = tail call i32 (...) @gang()
%50 = tail call i32 (...) @worker()
%51 = tail call i32 (...) @vector()
%52 = tail call i32 (...) @seq()
%53 = tail call i32 (...) @gang()
%54 = tail call i32 (...) @worker()
%55 = tail call i32 (...) @vector()
%56 = tail call i32 (...) @seq()
%57 = tail call i32 (...) @gang()
%58 = tail call i32 (...) @worker()
%59 = tail call i32 (...) @vector()
%60 = tail call i32 (...) @seq()
%61 = tail call i32 (...) @gang()
%62 = tail call i32 (...) @worker()
%63 = tail call i32 (...) @vector()
%64 = tail call i32 (...) @seq()
%65 = tail call i32 (...) @gang()
%66 = tail call i32 (...) @worker()
%67 = tail call i32 (...) @vector()
%68 = tail call i32 (...) @seq()
%69 = tail call i32 (...) @gang()
%70 = tail call i32 (...) @worker()
%71 = tail call i32 (...) @vector()
%72 = tail call i32 (...) @seq()
%73 = tail call i32 (...) @gang()
%74 = tail call i32 (...) @worker()
%75 = tail call i32 (...) @vector()
%76 = tail call i32 (...) @seq()
%77 = tail call i32 (...) @gang()
%78 = tail call i32 (...) @worker()
%79 = tail call i32 (...) @vector()
%80 = tail call i32 (...) @seq()
%81 = tail call i32 (...) @gang()
%82 = tail call i32 (...) @worker()
%83 = tail call i32 (...) @vector()
%84 = tail call i32 (...) @seq()
%85 = tail call i32 (...) @gang()
%86 = tail call i32 (...) @worker()
%87 = tail call i32 (...) @vector()
%88 = tail call i32 (...) @seq()
%89 = tail call i32 (...) @gang()
%90 = tail call i32 (...) @worker()
%91 = tail call i32 (...) @vector()
%92 = tail call i32 (...) @seq()
%93 = tail call i32 (...) @gang()
%94 = tail call i32 (...) @worker()
%95 = tail call i32 (...) @vector()
%96 = tail call i32 (...) @seq()
%97 = tail call i32 (...) @gang()
%98 = tail call i32 (...) @worker()
%99 = tail call i32 (...) @vector()
%100 = tail call i32 (...) @seq()
%101 = tail call i32 (...) @gang()
%102 = tail call i32 (...) @worker()
%103 = tail call i32 (...) @vector()
%104 = tail call i32 (...) @seq()
%105 = tail call i32 (...) @gang()
%106 = tail call i32 (...) @worker()
%107 = tail call i32 (...) @vector()
%108 = tail call i32 (...) @seq()
%109 = tail call i32 (...) @gang()
%110 = tail call i32 (...) @worker()
%111 = tail call i32 (...) @vector()
%112 = tail call i32 (...) @seq()
%113 = tail call i32 (...) @gang()
%114 = tail call i32 (...) @worker()
%115 = tail call i32 (...) @vector()
%116 = tail call i32 (...) @seq()
%117 = tail call i32 (...) @gang()
%118 = tail call i32 (...) @worker()
%119 = tail call i32 (...) @vector()
%120 = tail call i32 (...) @seq()
ret i32 0
}