#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*/ exec_rclb(int, int, int);
int /*<<< orphan*/ exec_rcll(int, int, int, int);
int /*<<< orphan*/ exec_rclw(int, int, int, int);
void exec_rcl(int s2, int s0, int s1) {
  int o, s, z, a, c, p, flags_in;
  for (o = 0; o < 2; o++) {
    for (s = 0; s < 2; s++) {
      for (z = 0; z < 2; z++) {
        for (a = 0; a < 2; a++) {
          for (c = 0; c < 2; c++) {
            for (p = 0; p < 2; p++) {
              flags_in = (o ? 0x0800 : 0) | (s ? 0x0080 : 0) |
                         (z ? 0x0040 : 0) | (a ? 0x0010 : 0) |
                         (c ? 0x0001 : 0) | (p ? 0x0004 : 0);
              exec_rcll(s2, s0, s1, flags_in);
              exec_rclw(s2, s0, s1, flags_in);
              exec_rclb(s0, s1, flags_in);
              exec_rcll(s2, s0, s1, flags_in);
              exec_rclw(s2, s0, s1, flags_in);
              exec_rclb(s0, s1, flags_in);
            }
          }
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<exec_rcl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x2,-0x10(%rbp)
jge    12e1 <exec_rcl+0x1b1>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    12ce <exec_rcl+0x19e>
movl   $0x0,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jge    12bb <exec_rcl+0x18b>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    12a8 <exec_rcl+0x178>
movl   $0x0,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    1295 <exec_rcl+0x165>
movl   $0x0,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
jge    1282 <exec_rcl+0x152>
mov    -0x10(%rbp),%edx
xor    %eax,%eax
mov    $0x800,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    -0x14(%rbp),%esi
xor    %ecx,%ecx
mov    $0x80,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%esi
xor    %ecx,%ecx
mov    $0x40,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    -0x1c(%rbp),%esi
xor    %ecx,%ecx
mov    $0x10,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    -0x20(%rbp),%esi
xor    %ecx,%ecx
mov    $0x1,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    -0x24(%rbp),%esi
xor    %ecx,%ecx
mov    $0x4,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x28(%rbp),%ecx
call   1040 <exec_rcll@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x28(%rbp),%ecx
call   1050 <exec_rclw@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x28(%rbp),%edx
call   1030 <exec_rclb@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x28(%rbp),%ecx
call   1040 <exec_rcll@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x28(%rbp),%ecx
call   1050 <exec_rclw@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x28(%rbp),%edx
call   1030 <exec_rclb@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    119d <exec_rcl+0x6d>
jmp    1287 <exec_rcl+0x157>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    118c <exec_rcl+0x5c>
jmp    129a <exec_rcl+0x16a>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    117b <exec_rcl+0x4b>
jmp    12ad <exec_rcl+0x17d>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    116a <exec_rcl+0x3a>
jmp    12c0 <exec_rcl+0x190>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1159 <exec_rcl+0x29>
jmp    12d3 <exec_rcl+0x1a3>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1148 <exec_rcl+0x18>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exec_rcl>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edx,%r15d
mov    %esi,%r12d
mov    %edi,%r14d
mov    $0x1,%al
nopl   0x0(%rax)
mov    %eax,(%rsp)
not    %al
movzbl %al,%eax
and    $0x1,%eax
shl    $0xb,%eax
mov    %eax,0x4(%rsp)
mov    $0x1,%al
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,0x8(%rsp)
not    %al
movzbl %al,%eax
and    $0x1,%eax
shl    $0x7,%eax
or     0x4(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    $0x1,%al
nopl   0x0(%rax)
mov    %eax,0x10(%rsp)
not    %al
movzbl %al,%eax
and    $0x1,%eax
shl    $0x6,%eax
or     0xc(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    $0x1,%r13b
nopw   0x0(%rax,%rax,1)
mov    %r13d,%eax
not    %al
movzbl %al,%ebp
and    $0x1,%ebp
shl    $0x4,%ebp
or     0x14(%rsp),%ebp
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
call   1040 <exec_rcll@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
call   1050 <exec_rclw@plt>
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebp,%edx
call   1030 <exec_rclb@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
call   1040 <exec_rcll@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
call   1050 <exec_rclw@plt>
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebp,%edx
call   1030 <exec_rclb@plt>
mov    %ebp,%ebx
or     $0x4,%ebx
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   1040 <exec_rcll@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   1050 <exec_rclw@plt>
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebx,%edx
call   1030 <exec_rclb@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   1040 <exec_rcll@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   1050 <exec_rclw@plt>
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebx,%edx
call   1030 <exec_rclb@plt>
mov    %ebp,%ebx
or     $0x1,%ebx
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   1040 <exec_rcll@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   1050 <exec_rclw@plt>
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebx,%edx
call   1030 <exec_rclb@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   1040 <exec_rcll@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   1050 <exec_rclw@plt>
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebx,%edx
call   1030 <exec_rclb@plt>
or     $0x5,%ebp
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
call   1040 <exec_rcll@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
call   1050 <exec_rclw@plt>
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebp,%edx
call   1030 <exec_rclb@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
call   1040 <exec_rcll@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
call   1050 <exec_rclw@plt>
mov    %r12d,%edi
mov    %r15d,%esi
mov    %ebp,%edx
call   1030 <exec_rclb@plt>
test   $0x1,%r13b
mov    $0x0,%r13d
jne    11b0 <exec_rcl+0x80>
testb  $0x1,0x10(%rsp)
mov    $0x0,%eax
jne    1190 <exec_rcl+0x60>
testb  $0x1,0x8(%rsp)
mov    $0x0,%eax
jne    1170 <exec_rcl+0x40>
testb  $0x1,(%rsp)
mov    $0x0,%eax
jne    1150 <exec_rcl+0x20>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @exec_rcl(i32 %0, i32 %1, i32 %2) {
br label %4
4: ; preds = %3, %48
%5 = phi i1 [ true, %3 ], [ false, %48 ]
%6 = select i1 %5, i32 0, i32 2048
br label %7
7: ; preds = %4, %47
%8 = phi i1 [ true, %4 ], [ false, %47 ]
%9 = select i1 %8, i32 0, i32 128
%10 = or i32 %9, %6
br label %11
11: ; preds = %7, %46
%12 = phi i1 [ true, %7 ], [ false, %46 ]
%13 = select i1 %12, i32 0, i32 64
%14 = or i32 %10, %13
br label %15
15: ; preds = %11, %15
%16 = phi i1 [ true, %11 ], [ false, %15 ]
%17 = select i1 %16, i32 0, i32 16
%18 = or i32 %14, %17
%19 = tail call i32 @exec_rcll(i32 %0, i32 %1, i32 %2, i32 %18)
%20 = tail call i32 @exec_rclw(i32 %0, i32 %1, i32 %2, i32 %18)
%21 = tail call i32 @exec_rclb(i32 %1, i32 %2, i32 %18)
%22 = tail call i32 @exec_rcll(i32 %0, i32 %1, i32 %2, i32 %18)
%23 = tail call i32 @exec_rclw(i32 %0, i32 %1, i32 %2, i32 %18)
%24 = tail call i32 @exec_rclb(i32 %1, i32 %2, i32 %18)
%25 = or i32 %18, 4
%26 = tail call i32 @exec_rcll(i32 %0, i32 %1, i32 %2, i32 %25)
%27 = tail call i32 @exec_rclw(i32 %0, i32 %1, i32 %2, i32 %25)
%28 = tail call i32 @exec_rclb(i32 %1, i32 %2, i32 %25)
%29 = tail call i32 @exec_rcll(i32 %0, i32 %1, i32 %2, i32 %25)
%30 = tail call i32 @exec_rclw(i32 %0, i32 %1, i32 %2, i32 %25)
%31 = tail call i32 @exec_rclb(i32 %1, i32 %2, i32 %25)
%32 = or i32 %18, 1
%33 = tail call i32 @exec_rcll(i32 %0, i32 %1, i32 %2, i32 %32)
%34 = tail call i32 @exec_rclw(i32 %0, i32 %1, i32 %2, i32 %32)
%35 = tail call i32 @exec_rclb(i32 %1, i32 %2, i32 %32)
%36 = tail call i32 @exec_rcll(i32 %0, i32 %1, i32 %2, i32 %32)
%37 = tail call i32 @exec_rclw(i32 %0, i32 %1, i32 %2, i32 %32)
%38 = tail call i32 @exec_rclb(i32 %1, i32 %2, i32 %32)
%39 = or i32 %18, 5
%40 = tail call i32 @exec_rcll(i32 %0, i32 %1, i32 %2, i32 %39)
%41 = tail call i32 @exec_rclw(i32 %0, i32 %1, i32 %2, i32 %39)
%42 = tail call i32 @exec_rclb(i32 %1, i32 %2, i32 %39)
%43 = tail call i32 @exec_rcll(i32 %0, i32 %1, i32 %2, i32 %39)
%44 = tail call i32 @exec_rclw(i32 %0, i32 %1, i32 %2, i32 %39)
%45 = tail call i32 @exec_rclb(i32 %1, i32 %2, i32 %39)
br i1 %16, label %15, label %46
46: ; preds = %15
br i1 %12, label %11, label %47
47: ; preds = %46
br i1 %8, label %7, label %48
48: ; preds = %47
br i1 %5, label %4, label %49
49: ; preds = %48
ret void
}