#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*/ assert(int);
unsigned int rotate(unsigned int, int);
int main(int argc) {
  unsigned int v1, v2, v3, v4, v5;
#pragma omp target map(to : v1, v2, v3, v4, v5)
  {
    v1 = rotate(123u, 10);
    v2 = rotate(123u, 2);
    v3 = rotate(123u, 5);
    v4 = rotate(123u, 16);
    v5 = rotate(123u, 32);
  }
  assert(v1 == 123u);
  assert(v2 == 123u);
  assert(v3 == 123u);
  assert(v4 == 123u);
  assert(v5 == 123u);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    $0x7b,%edi
mov    $0xa,%esi
call   1040 <rotate@plt>
mov    %eax,-0xc(%rbp)
mov    $0x7b,%edi
mov    $0x2,%esi
call   1040 <rotate@plt>
mov    %eax,-0x10(%rbp)
mov    $0x7b,%edi
mov    $0x5,%esi
call   1040 <rotate@plt>
mov    %eax,-0x14(%rbp)
mov    $0x7b,%edi
mov    $0x10,%esi
call   1040 <rotate@plt>
mov    %eax,-0x18(%rbp)
mov    $0x7b,%edi
mov    $0x20,%esi
call   1040 <rotate@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x7b,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x7b,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x7b,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x7b,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x7b,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    $0x7b,%edi
mov    $0xa,%esi
call   1040 <rotate@plt>
mov    %eax,%ebx
mov    $0x7b,%edi
mov    $0x2,%esi
call   1040 <rotate@plt>
mov    %eax,%ebp
mov    $0x7b,%edi
mov    $0x5,%esi
call   1040 <rotate@plt>
mov    %eax,%r12d
mov    $0x7b,%edi
mov    $0x10,%esi
call   1040 <rotate@plt>
mov    %eax,%r15d
mov    $0x7b,%edi
mov    $0x20,%esi
call   1040 <rotate@plt>
mov    %eax,%r14d
xor    %edi,%edi
cmp    $0x7b,%ebx
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x7b,%ebp
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x7b,%r12d
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x7b,%r15d
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x7b,%r14d
sete   %dil
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %2
store i32 %0, i32* %3
%9 = call i32 @rotate(i32 123, i32 10)
store i32 %9, i32* %4
%10 = call i32 @rotate(i32 123, i32 2)
store i32 %10, i32* %5
%11 = call i32 @rotate(i32 123, i32 5)
store i32 %11, i32* %6
%12 = call i32 @rotate(i32 123, i32 16)
store i32 %12, i32* %7
%13 = call i32 @rotate(i32 123, i32 32)
store i32 %13, i32* %8
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 123
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
%18 = load i32, i32* %5
%19 = icmp eq i32 %18, 123
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = load i32, i32* %6
%23 = icmp eq i32 %22, 123
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 %24)
%26 = load i32, i32* %7
%27 = icmp eq i32 %26, 123
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = load i32, i32* %8
%31 = icmp eq i32 %30, 123
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 %32)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0) {
%2 = tail call i32 @rotate(i32 123, i32 10)
%3 = tail call i32 @rotate(i32 123, i32 2)
%4 = tail call i32 @rotate(i32 123, i32 5)
%5 = tail call i32 @rotate(i32 123, i32 16)
%6 = tail call i32 @rotate(i32 123, i32 32)
%7 = icmp eq i32 %2, 123
%8 = zext i1 %7 to i32
%9 = tail call i32 @assert(i32 %8)
%10 = icmp eq i32 %3, 123
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = icmp eq i32 %4, 123
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 %14)
%16 = icmp eq i32 %5, 123
%17 = zext i1 %16 to i32
%18 = tail call i32 @assert(i32 %17)
%19 = icmp eq i32 %6, 123
%20 = zext i1 %19 to i32
%21 = tail call i32 @assert(i32 %20)
ret i32 0
}