#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_incb(int, int, int);
int /*<<< orphan*/ exec_incl(int, int, int);
int /*<<< orphan*/ exec_incw(int, int, int);
void exec_inc(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_incl(s0, s1, flags_in);
              exec_incw(s0, s1, flags_in);
              exec_incb(s0, s1, flags_in);
            }
          }
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<exec_inc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x2,-0xc(%rbp)
jge    12a8 <exec_inc+0x178>
movl   $0x0,-0x10(%rbp)
cmpl   $0x2,-0x10(%rbp)
jge    1295 <exec_inc+0x165>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    1282 <exec_inc+0x152>
movl   $0x0,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jge    126f <exec_inc+0x13f>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    125c <exec_inc+0x12c>
movl   $0x0,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    1249 <exec_inc+0x119>
mov    -0xc(%rbp),%edx
xor    %eax,%eax
mov    $0x800,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    -0x10(%rbp),%esi
xor    %ecx,%ecx
mov    $0x80,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    -0x14(%rbp),%esi
xor    %ecx,%ecx
mov    $0x40,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%esi
xor    %ecx,%ecx
mov    $0x10,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    -0x1c(%rbp),%esi
xor    %ecx,%ecx
mov    $0x1,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    -0x20(%rbp),%esi
xor    %ecx,%ecx
mov    $0x4,%edx
cmp    $0x0,%esi
cmovne %edx,%ecx
or     %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x24(%rbp),%edx
call   1040 <exec_incl@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x24(%rbp),%edx
call   1030 <exec_incw@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x24(%rbp),%edx
call   1050 <exec_incb@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    119a <exec_inc+0x6a>
jmp    124e <exec_inc+0x11e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1189 <exec_inc+0x59>
jmp    1261 <exec_inc+0x131>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1178 <exec_inc+0x48>
jmp    1274 <exec_inc+0x144>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1167 <exec_inc+0x37>
jmp    1287 <exec_inc+0x157>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1156 <exec_inc+0x26>
jmp    129a <exec_inc+0x16a>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1145 <exec_inc+0x15>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exec_inc>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %esi,%r14d
mov    %edi,%r15d
mov    $0x1,%al
cs nopw 0x0(%rax,%rax,1)
mov    %eax,0xc(%rsp)
not    %al
movzbl %al,%eax
and    $0x1,%eax
shl    $0xb,%eax
mov    %eax,0x10(%rsp)
mov    $0x1,%al
cs nopw 0x0(%rax,%rax,1)
nop
mov    %eax,0x14(%rsp)
not    %al
movzbl %al,%r13d
and    $0x1,%r13d
shl    $0x7,%r13d
or     0x10(%rsp),%r13d
mov    $0x1,%r12b
nopw   0x0(%rax,%rax,1)
mov    %r12d,%eax
not    %al
movzbl %al,%ebp
and    $0x1,%ebp
shl    $0x6,%ebp
or     %r13d,%ebp
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1040 <exec_incl@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1030 <exec_incw@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1050 <exec_incb@plt>
mov    %ebp,%ebx
or     $0x4,%ebx
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1040 <exec_incl@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1030 <exec_incw@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1050 <exec_incb@plt>
mov    %ebp,%ebx
or     $0x1,%ebx
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1040 <exec_incl@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1030 <exec_incw@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1050 <exec_incb@plt>
mov    %ebp,%ebx
or     $0x5,%ebx
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1040 <exec_incl@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1030 <exec_incw@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1050 <exec_incb@plt>
mov    %ebp,%ebx
or     $0x10,%ebx
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1040 <exec_incl@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1030 <exec_incw@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1050 <exec_incb@plt>
mov    %ebp,%ebx
or     $0x14,%ebx
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1040 <exec_incl@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1030 <exec_incw@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1050 <exec_incb@plt>
mov    %ebp,%ebx
or     $0x11,%ebx
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1040 <exec_incl@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1030 <exec_incw@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebx,%edx
call   1050 <exec_incb@plt>
or     $0x15,%ebp
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1040 <exec_incl@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1030 <exec_incw@plt>
mov    %r15d,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1050 <exec_incb@plt>
test   $0x1,%r12b
mov    $0x0,%r12d
jne    1190 <exec_inc+0x60>
testb  $0x1,0x14(%rsp)
mov    $0x0,%eax
jne    1170 <exec_inc+0x40>
testb  $0x1,0xc(%rsp)
mov    $0x0,%eax
jne    1150 <exec_inc+0x20>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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