int main() {
  const int N = 180;
  const int N_i = 537;
  const int C = 37;
  unsigned char *h = (unsigned char *)malloc(N);
  assert(h);
  unsigned char *d = (unsigned char *)acc_malloc(N);
  assert(d);
  for (int i = 0; i < N_i; ++i) {
    acc_map_data(h, d, N);
    assert(acc_is_present(h, N));
#pragma acc parallel present(h [0:N])
    {
      if (i == 0)
        memset(h, C, N);
    }
    unsigned char *d_ = (unsigned char *)acc_create(h + 3, N - 77);
    assert(d_ == d + 3);
#pragma acc data create(h [6:N - 44])
    {
      d_ = (unsigned char *)acc_create(h, N);
      assert(d_ == d);
#pragma acc enter data create(h [0:N])
      assert(acc_is_present(h, N));
      acc_unmap_data(h);
      assert(!acc_is_present(h, N));
    }
#pragma acc parallel loop deviceptr(d)
    for (int j = 0; j < N; ++j)
      d[j] += i * j;
  }
  acc_memcpy_from_device(h, d, N);
  for (int j = 0; j < N; ++j)
    assert(h[j] == ((C + N_i * (N_i - 1) / 2 * j) % 256));
  acc_free(d);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xb4,-0x8(%rbp)
movl   $0x219,-0xc(%rbp)
movl   $0x25,-0x10(%rbp)
mov    $0xb4,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1090 <assert@plt>
mov    $0xb4,%edi
mov    $0x0,%al
call   1030 <acc_malloc@plt>
cltq
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1090 <assert@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x219,-0x24(%rbp)
jge    1352 <main+0x1b2>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0xb4,%edx
mov    $0x0,%al
call   1060 <acc_map_data@plt>
mov    -0x18(%rbp),%rdi
mov    $0xb4,%esi
mov    $0x0,%al
call   1080 <acc_is_present@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1090 <assert@plt>
cmpl   $0x0,-0x24(%rbp)
jne    1258 <main+0xb8>
mov    -0x18(%rbp),%rdi
mov    $0x25,%esi
mov    $0xb4,%edx
call   1070 <memset@plt>
mov    -0x18(%rbp),%rdi
add    $0x3,%rdi
mov    $0x67,%esi
mov    $0x0,%al
call   1040 <acc_create@plt>
cltq
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    -0x20(%rbp),%rcx
add    $0x3,%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1090 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    $0xb4,%esi
mov    $0x0,%al
call   1040 <acc_create@plt>
cltq
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x20(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1090 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    $0xb4,%esi
mov    $0x0,%al
call   1080 <acc_is_present@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1090 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1050 <acc_unmap_data@plt>
mov    -0x18(%rbp),%rdi
mov    $0xb4,%esi
mov    $0x0,%al
call   1080 <acc_is_present@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1090 <assert@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xb4,-0x34(%rbp)
jge    133f <main+0x19f>
mov    -0x24(%rbp),%esi
imul   -0x34(%rbp),%esi
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
add    %esi,%edx
mov    %dl,(%rax,%rcx,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    130c <main+0x16c>
jmp    1344 <main+0x1a4>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1201 <main+0x61>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0xb4,%edx
mov    $0x0,%al
call   10c0 <acc_memcpy_from_device@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0xb4,-0x38(%rbp)
jge    13bd <main+0x21d>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x3c(%rbp)
imul   $0x2322c,-0x38(%rbp),%eax
add    $0x25,%eax
mov    $0x100,%ecx
cltd
idiv   %ecx
mov    -0x3c(%rbp),%eax
cmp    %edx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1090 <assert@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    136d <main+0x1cd>
mov    -0x20(%rbp),%rdi
mov    $0x0,%al
call   10b0 <acc_free@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    $0xb4,%edi
call   1090 <malloc@plt>
mov    %rax,%r14
mov    %rax,%rdi
xor    %eax,%eax
call   1080 <assert@plt>
mov    $0xb4,%edi
xor    %eax,%eax
call   1030 <acc_malloc@plt>
movslq %eax,%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <assert@plt>
mov    %r14,%rax
add    $0x3,%rax
mov    %rax,0x8(%rsp)
lea    0x3(%r12),%rax
mov    %rax,(%rsp)
xor    %eax,%eax
xor    %ebp,%ebp
xor    %ebx,%ebx
xor    %r15d,%r15d
xor    %r13d,%r13d
jmp    1550 <main+0x3c0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x8(%rsp),%rdi
mov    $0x67,%esi
xor    %eax,%eax
call   1040 <acc_create@plt>
cltq
xor    %edi,%edi
cmp    %rax,(%rsp)
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
mov    %r14,%rdi
mov    $0xb4,%esi
xor    %eax,%eax
call   1040 <acc_create@plt>
cltq
xor    %edi,%edi
cmp    %r12,%rax
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
mov    %r14,%rdi
mov    $0xb4,%esi
xor    %eax,%eax
call   1070 <acc_is_present@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <acc_unmap_data@plt>
mov    %r14,%rdi
mov    $0xb4,%esi
xor    %eax,%eax
call   1070 <acc_is_present@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
movq   %r13,%xmm0
pshufd $0x44,%xmm0,%xmm0
pand   0xd79(%rip),%xmm0
packuswb %xmm0,%xmm0
packuswb %xmm0,%xmm0
packuswb %xmm0,%xmm0
punpcklbw %xmm0,%xmm0
movdqa %xmm0,%xmm1
pmullw 0xd6d(%rip),%xmm1
movdqa 0xd75(%rip),%xmm6
pand   %xmm6,%xmm1
movdqa %xmm0,%xmm2
pmullw 0xd75(%rip),%xmm2
pand   %xmm6,%xmm2
packuswb %xmm1,%xmm2
movdqu (%r12),%xmm3
paddb  %xmm2,%xmm3
movdqu 0x10(%r12),%xmm2
movdqu 0x20(%r12),%xmm4
movdqu 0x30(%r12),%xmm1
movdqu %xmm3,(%r12)
movdqa %xmm0,%xmm3
pmullw 0xd4c(%rip),%xmm3
pand   %xmm6,%xmm3
movdqa %xmm0,%xmm5
pmullw 0xd4c(%rip),%xmm5
pand   %xmm6,%xmm5
packuswb %xmm3,%xmm5
paddb  %xmm2,%xmm5
movdqu %xmm5,0x10(%r12)
movdqa %xmm0,%xmm2
pmullw 0xd3d(%rip),%xmm2
pand   %xmm6,%xmm2
movdqa %xmm0,%xmm3
pmullw 0xd3d(%rip),%xmm3
pand   %xmm6,%xmm3
packuswb %xmm2,%xmm3
paddb  %xmm4,%xmm3
movdqu %xmm3,0x20(%r12)
movdqa %xmm0,%xmm2
pmullw 0xd2e(%rip),%xmm2
pand   %xmm6,%xmm2
movdqa %xmm0,%xmm3
pmullw 0xd2e(%rip),%xmm3
pand   %xmm6,%xmm3
packuswb %xmm2,%xmm3
paddb  %xmm1,%xmm3
movdqu %xmm3,0x30(%r12)
movdqa %xmm0,%xmm1
pmullw 0xd1f(%rip),%xmm1
pand   %xmm6,%xmm1
movdqa %xmm0,%xmm2
pmullw 0xd1f(%rip),%xmm2
pand   %xmm6,%xmm2
packuswb %xmm1,%xmm2
movdqu 0x40(%r12),%xmm1
paddb  %xmm1,%xmm2
movdqu %xmm2,0x40(%r12)
movdqa %xmm0,%xmm1
pmullw 0xd09(%rip),%xmm1
pand   %xmm6,%xmm1
movdqa %xmm0,%xmm2
pmullw 0xd09(%rip),%xmm2
pand   %xmm6,%xmm2
packuswb %xmm1,%xmm2
movdqu 0x50(%r12),%xmm1
paddb  %xmm1,%xmm2
movdqu %xmm2,0x50(%r12)
movdqa %xmm0,%xmm1
pmullw 0xcf3(%rip),%xmm1
pand   %xmm6,%xmm1
movdqa %xmm0,%xmm2
pmullw 0xcf3(%rip),%xmm2
pand   %xmm6,%xmm2
packuswb %xmm1,%xmm2
movdqu 0x60(%r12),%xmm1
paddb  %xmm1,%xmm2
movdqu %xmm2,0x60(%r12)
movdqa %xmm0,%xmm1
pmullw 0xcdd(%rip),%xmm1
pand   %xmm6,%xmm1
movdqa %xmm0,%xmm2
pmullw 0xcdd(%rip),%xmm2
pand   %xmm6,%xmm2
packuswb %xmm1,%xmm2
movdqu 0x70(%r12),%xmm1
paddb  %xmm1,%xmm2
movdqu %xmm2,0x70(%r12)
movdqa %xmm0,%xmm1
pmullw 0xcc7(%rip),%xmm1
pand   %xmm6,%xmm1
movdqa %xmm0,%xmm2
pmullw 0xcc7(%rip),%xmm2
pand   %xmm6,%xmm2
packuswb %xmm1,%xmm2
movdqu 0x80(%r12),%xmm1
paddb  %xmm1,%xmm2
movdqu %xmm2,0x80(%r12)
movdqa %xmm0,%xmm1
pmullw 0xcab(%rip),%xmm1
pand   %xmm6,%xmm1
movdqa %xmm0,%xmm2
pmullw 0xcab(%rip),%xmm2
pand   %xmm6,%xmm2
packuswb %xmm1,%xmm2
movdqu 0x90(%r12),%xmm1
paddb  %xmm1,%xmm2
movdqu %xmm2,0x90(%r12)
movdqa %xmm0,%xmm1
pmullw 0xc8f(%rip),%xmm1
pand   %xmm6,%xmm1
pmullw 0xc93(%rip),%xmm0
pand   %xmm6,%xmm0
packuswb %xmm1,%xmm0
movdqu 0xa0(%r12),%xmm1
paddb  %xmm1,%xmm0
movdqu %xmm0,0xa0(%r12)
mov    0x10(%rsp),%rax
add    %al,0xb0(%r12)
add    %bpl,0xb1(%r12)
add    %bl,0xb2(%r12)
add    %r15b,0xb3(%r12)
add    $0x1,%r13
add    $0xb3,%r15b
add    $0xb2,%bl
add    $0xb1,%bpl
add    $0xb0,%al
cmp    $0x219,%r13
je     15de <main+0x44e>
mov    %rax,0x10(%rsp)
mov    %r14,%rdi
mov    %r12,%rsi
mov    $0xb4,%edx
xor    %eax,%eax
call   1060 <acc_map_data@plt>
mov    %r14,%rdi
mov    $0xb4,%esi
xor    %eax,%eax
call   1070 <acc_is_present@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1080 <assert@plt>
test   %r13,%r13
jne    1200 <main+0x70>
movaps 0xa71(%rip),%xmm0
movups %xmm0,0xa0(%r14)
movups %xmm0,0x90(%r14)
movups %xmm0,0x80(%r14)
movups %xmm0,0x70(%r14)
movups %xmm0,0x60(%r14)
movups %xmm0,0x50(%r14)
movups %xmm0,0x40(%r14)
movups %xmm0,0x30(%r14)
movups %xmm0,0x20(%r14)
movups %xmm0,0x10(%r14)
movups %xmm0,(%r14)
movl   $0x25252525,0xb0(%r14)
25 25 25 25
jmp    1200 <main+0x70>
mov    %r14,%rdi
mov    %r12,%rsi
mov    $0xb4,%edx
xor    %eax,%eax
call   10b0 <acc_memcpy_from_device@plt>
mov    $0x25,%ebp
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movzbl (%r14,%rbx,1),%eax
mov    %ebp,%ecx
and    $0xfd,%ecx
xor    %edi,%edi
cmp    %eax,%ecx
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
add    $0x1,%rbx
add    $0x2322c,%ebp
cmp    $0xb4,%rbx
jne    1600 <main+0x470>
mov    %r12,%rdi
xor    %eax,%eax
call   10a0 <acc_free@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
store i32 180, i32* %2
store i32 537, i32* %3
store i32 37, i32* %4
%11 = call i8* @malloc(i64 180)
store i8* %11, i8** %5
%12 = load i8*, i8** %5
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %12)
%14 = call i32 (i32, ...) bitcast (i32 (...)* @acc_malloc to i32 (i32, ...)*)(i32 180)
%15 = sext i32 %14 to i64
%16 = inttoptr i64 %15 to i8*
store i8* %16, i8** %6
%17 = load i8*, i8** %6
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %17)
store i32 0, i32* %7
br label %19
19: ; preds = %84, %0
%20 = load i32, i32* %7
%21 = icmp slt i32 %20, 537
br i1 %21, label %22, label %87
22: ; preds = %19
%23 = load i8*, i8** %5
%24 = load i8*, i8** %6
%25 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @acc_map_data to i32 (i8*, i8*, i32, ...)*)(i8* %23, i8* %24, i32 180)
%26 = load i8*, i8** %5
%27 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_is_present to i32 (i8*, i32, ...)*)(i8* %26, i32 180)
%28 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %27)
%29 = load i32, i32* %7
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %22
%32 = load i8*, i8** %5
br label %33
33: ; preds = %31, %22
%34 = load i8*, i8** %5
%35 = getelementptr inbounds i8, i8* %34, i64 3
%36 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_create to i32 (i8*, i32, ...)*)(i8* %35, i32 103)
%37 = sext i32 %36 to i64
%38 = inttoptr i64 %37 to i8*
store i8* %38, i8** %8
%39 = load i8*, i8** %8
%40 = load i8*, i8** %6
%41 = getelementptr inbounds i8, i8* %40, i64 3
%42 = icmp eq i8* %39, %41
%43 = zext i1 %42 to i32
%44 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %43)
%45 = load i8*, i8** %5
%46 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_create to i32 (i8*, i32, ...)*)(i8* %45, i32 180)
%47 = sext i32 %46 to i64
%48 = inttoptr i64 %47 to i8*
store i8* %48, i8** %8
%49 = load i8*, i8** %8
%50 = load i8*, i8** %6
%51 = icmp eq i8* %49, %50
%52 = zext i1 %51 to i32
%53 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %52)
%54 = load i8*, i8** %5
%55 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_is_present to i32 (i8*, i32, ...)*)(i8* %54, i32 180)
%56 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %55)
%57 = load i8*, i8** %5
%58 = call i32 (i8*, ...) bitcast (i32 (...)* @acc_unmap_data to i32 (i8*, ...)*)(i8* %57)
%59 = load i8*, i8** %5
%60 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_is_present to i32 (i8*, i32, ...)*)(i8* %59, i32 180)
%61 = icmp ne i32 %60, 0
%62 = xor i1 %61, true
%63 = zext i1 %62 to i32
%64 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %63)
store i32 0, i32* %9
br label %65
65: ; preds = %80, %33
%66 = load i32, i32* %9
%67 = icmp slt i32 %66, 180
br i1 %67, label %68, label %83
68: ; preds = %65
%69 = load i32, i32* %7
%70 = load i32, i32* %9
%71 = mul nsw i32 %69, %70
%72 = load i8*, i8** %6
%73 = load i32, i32* %9
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, i8* %72, i64 %74
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = add nsw i32 %77, %71
%79 = trunc i32 %78 to i8
store i8 %79, i8* %75
br label %80
80: ; preds = %68
%81 = load i32, i32* %9
%82 = add nsw i32 %81, 1
store i32 %82, i32* %9
br label %65
83: ; preds = %65
br label %84
84: ; preds = %83
%85 = load i32, i32* %7
%86 = add nsw i32 %85, 1
store i32 %86, i32* %7
br label %19
87: ; preds = %19
%88 = load i8*, i8** %5
%89 = load i8*, i8** %6
%90 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @acc_memcpy_from_device to i32 (i8*, i8*, i32, ...)*)(i8* %88, i8* %89, i32 180)
store i32 0, i32* %10
br label %91
91: ; preds = %108, %87
%92 = load i32, i32* %10
%93 = icmp slt i32 %92, 180
br i1 %93, label %94, label %111
94: ; preds = %91
%95 = load i8*, i8** %5
%96 = load i32, i32* %10
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, i8* %95, i64 %97
%99 = load i8, i8* %98
%100 = zext i8 %99 to i32
%101 = load i32, i32* %10
%102 = mul nsw i32 143916, %101
%103 = add nsw i32 37, %102
%104 = srem i32 %103, 256
%105 = icmp eq i32 %100, %104
%106 = zext i1 %105 to i32
%107 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %106)
br label %108
108: ; preds = %94
%109 = load i32, i32* %10
%110 = add nsw i32 %109, 1
store i32 %110, i32* %10
br label %91
111: ; preds = %91
%112 = load i8*, i8** %6
%113 = call i32 (i8*, ...) bitcast (i32 (...)* @acc_free to i32 (i8*, ...)*)(i8* %112)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call dereferenceable_or_null(180) i8* @malloc(i64 180)
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %1)
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @acc_malloc to i32 (i32, ...)*)(i32 180)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8*
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %5)
%7 = getelementptr inbounds i8, i8* %1, i64 3
%8 = getelementptr inbounds i8, i8* %5, i64 3
%9 = getelementptr inbounds i8, i8* %5, i64 176
%10 = inttoptr i64 %4 to <16 x i8>*
%11 = inttoptr i64 %4 to <16 x i8>*
%12 = getelementptr inbounds i8, i8* %5, i64 16
%13 = bitcast i8* %12 to <16 x i8>*
%14 = bitcast i8* %12 to <16 x i8>*
%15 = getelementptr inbounds i8, i8* %5, i64 32
%16 = bitcast i8* %15 to <16 x i8>*
%17 = bitcast i8* %15 to <16 x i8>*
%18 = getelementptr inbounds i8, i8* %5, i64 48
%19 = bitcast i8* %18 to <16 x i8>*
%20 = bitcast i8* %18 to <16 x i8>*
%21 = getelementptr inbounds i8, i8* %5, i64 64
%22 = bitcast i8* %21 to <16 x i8>*
%23 = bitcast i8* %21 to <16 x i8>*
%24 = getelementptr inbounds i8, i8* %5, i64 80
%25 = bitcast i8* %24 to <16 x i8>*
%26 = bitcast i8* %24 to <16 x i8>*
%27 = getelementptr inbounds i8, i8* %5, i64 96
%28 = bitcast i8* %27 to <16 x i8>*
%29 = bitcast i8* %27 to <16 x i8>*
%30 = getelementptr inbounds i8, i8* %5, i64 112
%31 = bitcast i8* %30 to <16 x i8>*
%32 = bitcast i8* %30 to <16 x i8>*
%33 = getelementptr inbounds i8, i8* %5, i64 128
%34 = bitcast i8* %33 to <16 x i8>*
%35 = bitcast i8* %33 to <16 x i8>*
%36 = getelementptr inbounds i8, i8* %5, i64 144
%37 = bitcast i8* %36 to <16 x i8>*
%38 = bitcast i8* %36 to <16 x i8>*
%39 = getelementptr inbounds i8, i8* %5, i64 160
%40 = bitcast i8* %39 to <16 x i8>*
%41 = bitcast i8* %39 to <16 x i8>*
%42 = getelementptr inbounds i8, i8* %5, i64 177
%43 = getelementptr inbounds i8, i8* %5, i64 178
%44 = getelementptr inbounds i8, i8* %5, i64 179
br label %47
45: ; preds = %54
%46 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @acc_memcpy_from_device to i32 (i8*, i8*, i32, ...)*)(i8* %1, i8* %5, i32 180)
br label %140
47: ; preds = %0, %54
%48 = phi i64 [ 0, %0 ], [ %136, %54 ]
%49 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @acc_map_data to i32 (i8*, i8*, i32, ...)*)(i8* %1, i8* %5, i32 180)
%50 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_is_present to i32 (i8*, i32, ...)*)(i8* %1, i32 180)
%51 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %50)
%52 = icmp eq i64 %48, 0
br i1 %52, label %53, label %54
53: ; preds = %47
tail call void @llvm.memset.p0i8.i64(i8* align 1 dereferenceable(180) %1, i8 37, i64 180, i1 false)
br label %54
54: ; preds = %53, %47
%55 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_create to i32 (i8*, i32, ...)*)(i8* %7, i32 103)
%56 = sext i32 %55 to i64
%57 = inttoptr i64 %56 to i8*
%58 = icmp eq i8* %8, %57
%59 = zext i1 %58 to i32
%60 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %59)
%61 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_create to i32 (i8*, i32, ...)*)(i8* %1, i32 180)
%62 = sext i32 %61 to i64
%63 = inttoptr i64 %62 to i8*
%64 = icmp eq i8* %63, %5
%65 = zext i1 %64 to i32
%66 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %65)
%67 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_is_present to i32 (i8*, i32, ...)*)(i8* %1, i32 180)
%68 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %67)
%69 = tail call i32 (i8*, ...) bitcast (i32 (...)* @acc_unmap_data to i32 (i8*, ...)*)(i8* %1)
%70 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @acc_is_present to i32 (i8*, i32, ...)*)(i8* %1, i32 180)
%71 = icmp eq i32 %70, 0
%72 = zext i1 %71 to i32
%73 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %72)
%74 = insertelement <16 x i64> poison, i64 %48, i64 0
%75 = shufflevector <16 x i64> %74, <16 x i64> poison, <16 x i32> zeroinitializer
%76 = load <16 x i8>, <16 x i8>* %10
%77 = trunc <16 x i64> %75 to <16 x i8>
%78 = mul <16 x i8> %77, <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>
%79 = add <16 x i8> %76, %78
store <16 x i8> %79, <16 x i8>* %11
%80 = load <16 x i8>, <16 x i8>* %13
%81 = trunc <16 x i64> %75 to <16 x i8>
%82 = mul <16 x i8> %81, <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>
%83 = add <16 x i8> %80, %82
store <16 x i8> %83, <16 x i8>* %14
%84 = load <16 x i8>, <16 x i8>* %16
%85 = trunc <16 x i64> %75 to <16 x i8>
%86 = mul <16 x i8> %85, <i8 32, i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39, i8 40, i8 41, i8 42, i8 43, i8 44, i8 45, i8 46, i8 47>
%87 = add <16 x i8> %84, %86
store <16 x i8> %87, <16 x i8>* %17
%88 = load <16 x i8>, <16 x i8>* %19
%89 = trunc <16 x i64> %75 to <16 x i8>
%90 = mul <16 x i8> %89, <i8 48, i8 49, i8 50, i8 51, i8 52, i8 53, i8 54, i8 55, i8 56, i8 57, i8 58, i8 59, i8 60, i8 61, i8 62, i8 63>
%91 = add <16 x i8> %88, %90
store <16 x i8> %91, <16 x i8>* %20
%92 = load <16 x i8>, <16 x i8>* %22
%93 = trunc <16 x i64> %75 to <16 x i8>
%94 = mul <16 x i8> %93, <i8 64, i8 65, i8 66, i8 67, i8 68, i8 69, i8 70, i8 71, i8 72, i8 73, i8 74, i8 75, i8 76, i8 77, i8 78, i8 79>
%95 = add <16 x i8> %92, %94
store <16 x i8> %95, <16 x i8>* %23
%96 = load <16 x i8>, <16 x i8>* %25
%97 = trunc <16 x i64> %75 to <16 x i8>
%98 = mul <16 x i8> %97, <i8 80, i8 81, i8 82, i8 83, i8 84, i8 85, i8 86, i8 87, i8 88, i8 89, i8 90, i8 91, i8 92, i8 93, i8 94, i8 95>
%99 = add <16 x i8> %96, %98
store <16 x i8> %99, <16 x i8>* %26
%100 = load <16 x i8>, <16 x i8>* %28
%101 = trunc <16 x i64> %75 to <16 x i8>
%102 = mul <16 x i8> %101, <i8 96, i8 97, i8 98, i8 99, i8 100, i8 101, i8 102, i8 103, i8 104, i8 105, i8 106, i8 107, i8 108, i8 109, i8 110, i8 111>
%103 = add <16 x i8> %100, %102
store <16 x i8> %103, <16 x i8>* %29
%104 = load <16 x i8>, <16 x i8>* %31
%105 = trunc <16 x i64> %75 to <16 x i8>
%106 = mul <16 x i8> %105, <i8 112, i8 113, i8 114, i8 115, i8 116, i8 117, i8 118, i8 119, i8 120, i8 121, i8 122, i8 123, i8 124, i8 125, i8 126, i8 127>
%107 = add <16 x i8> %104, %106
store <16 x i8> %107, <16 x i8>* %32
%108 = load <16 x i8>, <16 x i8>* %34
%109 = trunc <16 x i64> %75 to <16 x i8>
%110 = mul <16 x i8> %109, <i8 -128, i8 -127, i8 -126, i8 -125, i8 -124, i8 -123, i8 -122, i8 -121, i8 -120, i8 -119, i8 -118, i8 -117, i8 -116, i8 -115, i8 -114, i8 -113>
%111 = add <16 x i8> %108, %110
store <16 x i8> %111, <16 x i8>* %35
%112 = load <16 x i8>, <16 x i8>* %37
%113 = trunc <16 x i64> %75 to <16 x i8>
%114 = mul <16 x i8> %113, <i8 -112, i8 -111, i8 -110, i8 -109, i8 -108, i8 -107, i8 -106, i8 -105, i8 -104, i8 -103, i8 -102, i8 -101, i8 -100, i8 -99, i8 -98, i8 -97>
%115 = add <16 x i8> %112, %114
store <16 x i8> %115, <16 x i8>* %38
%116 = load <16 x i8>, <16 x i8>* %40
%117 = trunc <16 x i64> %75 to <16 x i8>
%118 = mul <16 x i8> %117, <i8 -96, i8 -95, i8 -94, i8 -93, i8 -92, i8 -91, i8 -90, i8 -89, i8 -88, i8 -87, i8 -86, i8 -85, i8 -84, i8 -83, i8 -82, i8 -81>
%119 = add <16 x i8> %116, %118
store <16 x i8> %119, <16 x i8>* %41
%120 = load i8, i8* %9
%121 = trunc i64 %48 to i8
%122 = mul i8 %121, -80
%123 = add i8 %120, %122
store i8 %123, i8* %9
%124 = load i8, i8* %42
%125 = trunc i64 %48 to i8
%126 = mul i8 %125, -79
%127 = add i8 %124, %126
store i8 %127, i8* %42
%128 = load i8, i8* %43
%129 = trunc i64 %48 to i8
%130 = mul i8 %129, -78
%131 = add i8 %128, %130
store i8 %131, i8* %43
%132 = load i8, i8* %44
%133 = trunc i64 %48 to i8
%134 = mul i8 %133, -77
%135 = add i8 %132, %134
store i8 %135, i8* %44
%136 = add nuw nsw i64 %48, 1
%137 = icmp eq i64 %136, 537
br i1 %137, label %45, label %47
138: ; preds = %140
%139 = tail call i32 (i8*, ...) bitcast (i32 (...)* @acc_free to i32 (i8*, ...)*)(i8* %5)
ret i32 0
140: ; preds = %45, %140
%141 = phi i64 [ 0, %45 ], [ %152, %140 ]
%142 = getelementptr inbounds i8, i8* %1, i64 %141
%143 = load i8, i8* %142
%144 = zext i8 %143 to i32
%145 = trunc i64 %141 to i32
%146 = mul i32 %145, 143916
%147 = add i32 %146, 37
%148 = and i32 %147, 253
%149 = icmp eq i32 %148, %144
%150 = zext i1 %149 to i32
%151 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %150)
%152 = add nuw nsw i64 %141, 1
%153 = icmp eq i64 %152, 180
br i1 %153, label %138, label %140
}