void Worker(void) {
#pragma acc loop vector
  for (int ix = 0; ix < 10; ix++) {
#pragma acc loop seq
    for (int jx = 0; jx < 10; jx++) {
    }
#pragma acc loop auto
    for (int jx = 0; jx < 10; jx++) {
    }
  }
#pragma acc loop worker
  for (int ix = 0; ix < 10; ix++) {
#pragma acc loop auto
    for (int jx = 0; jx < 10; jx++) {
    }
#pragma acc loop auto
    for (int jx = 0; jx < 10; jx++) {
#pragma acc loop vector
      for (int kx = 0; kx < 10; kx++) {
      }
    }
  }
#pragma acc loop auto
  for (int ix = 0; ix < 10; ix++) {
#pragma acc loop auto
    for (int jx = 0; jx < 10; jx++) {
    }
  }
#pragma acc loop auto
  for (int ix = 0; ix < 10; ix++) {
#pragma acc loop auto
    for (int jx = 0; jx < 10; jx++) {
#pragma acc loop auto
      for (int kx = 0; kx < 10; kx++) {
      }
    }
  }
}


x86 assembly (clang, -O0):
<Worker>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jge    1170 <Worker+0x70>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1139 <Worker+0x39>
jmp    112b <Worker+0x2b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    111c <Worker+0x1c>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    115d <Worker+0x5d>
jmp    114f <Worker+0x4f>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1140 <Worker+0x40>
jmp    1162 <Worker+0x62>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <Worker+0xb>
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    1200 <Worker+0x100>
movl   $0x0,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    11a5 <Worker+0xa5>
jmp    1197 <Worker+0x97>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1188 <Worker+0x88>
movl   $0x0,-0x18(%rbp)
cmpl   $0xa,-0x18(%rbp)
jge    11ed <Worker+0xed>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xa,-0x1c(%rbp)
jge    11da <Worker+0xda>
jmp    11cc <Worker+0xcc>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11bd <Worker+0xbd>
jmp    11df <Worker+0xdf>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11ac <Worker+0xac>
jmp    11f2 <Worker+0xf2>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1177 <Worker+0x77>
movl   $0x0,-0x20(%rbp)
cmpl   $0xa,-0x20(%rbp)
jge    1248 <Worker+0x148>
movl   $0x0,-0x24(%rbp)
cmpl   $0xa,-0x24(%rbp)
jge    1235 <Worker+0x135>
jmp    1227 <Worker+0x127>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1218 <Worker+0x118>
jmp    123a <Worker+0x13a>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1207 <Worker+0x107>
movl   $0x0,-0x28(%rbp)
cmpl   $0xa,-0x28(%rbp)
jge    12b4 <Worker+0x1b4>
movl   $0x0,-0x2c(%rbp)
cmpl   $0xa,-0x2c(%rbp)
jge    12a1 <Worker+0x1a1>
movl   $0x0,-0x30(%rbp)
cmpl   $0xa,-0x30(%rbp)
jge    128e <Worker+0x18e>
jmp    1280 <Worker+0x180>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1271 <Worker+0x171>
jmp    1293 <Worker+0x193>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1260 <Worker+0x160>
jmp    12a6 <Worker+0x1a6>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    124f <Worker+0x14f>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Worker>:
ret

LLVM IR (-O0):
define void @Worker() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
br label %13
13: ; preds = %33, %0
%14 = load i32, i32* %1
%15 = icmp slt i32 %14, 10
br i1 %15, label %16, label %36
16: ; preds = %13
store i32 0, i32* %2
br label %17
17: ; preds = %21, %16
%18 = load i32, i32* %2
%19 = icmp slt i32 %18, 10
br i1 %19, label %20, label %24
20: ; preds = %17
br label %21
21: ; preds = %20
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %17
24: ; preds = %17
store i32 0, i32* %3
br label %25
25: ; preds = %29, %24
%26 = load i32, i32* %3
%27 = icmp slt i32 %26, 10
br i1 %27, label %28, label %32
28: ; preds = %25
br label %29
29: ; preds = %28
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 1
store i32 %31, i32* %3
br label %25
32: ; preds = %25
br label %33
33: ; preds = %32
%34 = load i32, i32* %1
%35 = add nsw i32 %34, 1
store i32 %35, i32* %1
br label %13
36: ; preds = %13
store i32 0, i32* %4
br label %37
37: ; preds = %65, %36
%38 = load i32, i32* %4
%39 = icmp slt i32 %38, 10
br i1 %39, label %40, label %68
40: ; preds = %37
store i32 0, i32* %5
br label %41
41: ; preds = %45, %40
%42 = load i32, i32* %5
%43 = icmp slt i32 %42, 10
br i1 %43, label %44, label %48
44: ; preds = %41
br label %45
45: ; preds = %44
%46 = load i32, i32* %5
%47 = add nsw i32 %46, 1
store i32 %47, i32* %5
br label %41
48: ; preds = %41
store i32 0, i32* %6
br label %49
49: ; preds = %61, %48
%50 = load i32, i32* %6
%51 = icmp slt i32 %50, 10
br i1 %51, label %52, label %64
52: ; preds = %49
store i32 0, i32* %7
br label %53
53: ; preds = %57, %52
%54 = load i32, i32* %7
%55 = icmp slt i32 %54, 10
br i1 %55, label %56, label %60
56: ; preds = %53
br label %57
57: ; preds = %56
%58 = load i32, i32* %7
%59 = add nsw i32 %58, 1
store i32 %59, i32* %7
br label %53
60: ; preds = %53
br label %61
61: ; preds = %60
%62 = load i32, i32* %6
%63 = add nsw i32 %62, 1
store i32 %63, i32* %6
br label %49
64: ; preds = %49
br label %65
65: ; preds = %64
%66 = load i32, i32* %4
%67 = add nsw i32 %66, 1
store i32 %67, i32* %4
br label %37
68: ; preds = %37
store i32 0, i32* %8
br label %69
69: ; preds = %81, %68
%70 = load i32, i32* %8
%71 = icmp slt i32 %70, 10
br i1 %71, label %72, label %84
72: ; preds = %69
store i32 0, i32* %9
br label %73
73: ; preds = %77, %72
%74 = load i32, i32* %9
%75 = icmp slt i32 %74, 10
br i1 %75, label %76, label %80
76: ; preds = %73
br label %77
77: ; preds = %76
%78 = load i32, i32* %9
%79 = add nsw i32 %78, 1
store i32 %79, i32* %9
br label %73
80: ; preds = %73
br label %81
81: ; preds = %80
%82 = load i32, i32* %8
%83 = add nsw i32 %82, 1
store i32 %83, i32* %8
br label %69
84: ; preds = %69
store i32 0, i32* %10
br label %85
85: ; preds = %105, %84
%86 = load i32, i32* %10
%87 = icmp slt i32 %86, 10
br i1 %87, label %88, label %108
88: ; preds = %85
store i32 0, i32* %11
br label %89
89: ; preds = %101, %88
%90 = load i32, i32* %11
%91 = icmp slt i32 %90, 10
br i1 %91, label %92, label %104
92: ; preds = %89
store i32 0, i32* %12
br label %93
93: ; preds = %97, %92
%94 = load i32, i32* %12
%95 = icmp slt i32 %94, 10
br i1 %95, label %96, label %100
96: ; preds = %93
br label %97
97: ; preds = %96
%98 = load i32, i32* %12
%99 = add nsw i32 %98, 1
store i32 %99, i32* %12
br label %93
100: ; preds = %93
br label %101
101: ; preds = %100
%102 = load i32, i32* %11
%103 = add nsw i32 %102, 1
store i32 %103, i32* %11
br label %89
104: ; preds = %89
br label %105
105: ; preds = %104
%106 = load i32, i32* %10
%107 = add nsw i32 %106, 1
store i32 %107, i32* %10
br label %85
108: ; preds = %85
ret void
}

LLVM IR (-O2):
define void @Worker() {
ret void
}