#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 */
typedef int int32_t;

/* Variables and functions */
int getBlue0(int const);
int getGray0(int const);
int getGreen0(int const);
int getRed0(int const);
bool testColorSinglePixel0(void) {
  int32_t const color0 = 2146559;
  int32_t const __leon_normexec3 = getRed0(color0);
  if ((32 == __leon_normexec3)) {
    int32_t const __leon_normexec4 = getGreen0(color0);
    if ((192 == __leon_normexec4)) {
      int32_t const __leon_normexec5 = getBlue0(color0);
      if ((255 == __leon_normexec5)) {
        int32_t const __leon_normexec6 = getGray0(color0);
        return (159 == __leon_normexec6);
      } else {
        return false;
      }
    } else {
      return false;
    }
  } else {
    return false;
  }
}


x86 assembly (clang, -O0):
<testColorSinglePixel0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x20c0ff,-0x8(%rbp)
mov    $0x20c0ff,%edi
call   1050 <getRed0@plt>
mov    %eax,-0xc(%rbp)
mov    $0x20,%eax
cmp    -0xc(%rbp),%eax
jne    11dd <testColorSinglePixel0+0x9d>
mov    $0x20c0ff,%edi
call   1060 <getGreen0@plt>
mov    %eax,-0x10(%rbp)
mov    $0xc0,%eax
cmp    -0x10(%rbp),%eax
jne    11d1 <testColorSinglePixel0+0x91>
mov    $0x20c0ff,%edi
call   1040 <getBlue0@plt>
mov    %eax,-0x14(%rbp)
mov    $0xff,%eax
cmp    -0x14(%rbp),%eax
jne    11c5 <testColorSinglePixel0+0x85>
mov    $0x20c0ff,%edi
call   1030 <getGray0@plt>
mov    %eax,-0x18(%rbp)
mov    $0x9f,%eax
cmp    -0x18(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    11e4 <testColorSinglePixel0+0xa4>
movl   $0x0,-0x4(%rbp)
jmp    11e4 <testColorSinglePixel0+0xa4>
movl   $0x0,-0x4(%rbp)
jmp    11e4 <testColorSinglePixel0+0xa4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testColorSinglePixel0>:
push   %rbx
mov    $0x20c0ff,%edi
call   1050 <getRed0@plt>
xor    %ebx,%ebx
cmp    $0x20,%eax
jne    1188 <testColorSinglePixel0+0x48>
mov    $0x20c0ff,%edi
call   1060 <getGreen0@plt>
cmp    $0xc0,%eax
jne    1188 <testColorSinglePixel0+0x48>
mov    $0x20c0ff,%edi
call   1040 <getBlue0@plt>
cmp    $0xff,%eax
jne    1188 <testColorSinglePixel0+0x48>
mov    $0x20c0ff,%edi
call   1030 <getGray0@plt>
xor    %ebx,%ebx
cmp    $0x9f,%eax
sete   %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @testColorSinglePixel0() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 2146559, i32* %2
%7 = call i32 @getRed0(i32 2146559)
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = icmp eq i32 32, %8
br i1 %9, label %10, label %25
10: ; preds = %0
%11 = call i32 @getGreen0(i32 2146559)
store i32 %11, i32* %4
%12 = load i32, i32* %4
%13 = icmp eq i32 192, %12
br i1 %13, label %14, label %24
14: ; preds = %10
%15 = call i32 @getBlue0(i32 2146559)
store i32 %15, i32* %5
%16 = load i32, i32* %5
%17 = icmp eq i32 255, %16
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = call i32 @getGray0(i32 2146559)
store i32 %19, i32* %6
%20 = load i32, i32* %6
%21 = icmp eq i32 159, %20
%22 = zext i1 %21 to i32
store i32 %22, i32* %1
br label %26
23: ; preds = %14
store i32 0, i32* %1
br label %26
24: ; preds = %10
store i32 0, i32* %1
br label %26
25: ; preds = %0
store i32 0, i32* %1
br label %26
26: ; preds = %25, %24, %23, %18
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
define i32 @testColorSinglePixel0() {
%1 = tail call i32 @getRed0(i32 2146559)
%2 = icmp eq i32 %1, 32
br i1 %2, label %3, label %13
3: ; preds = %0
%4 = tail call i32 @getGreen0(i32 2146559)
%5 = icmp eq i32 %4, 192
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = tail call i32 @getBlue0(i32 2146559)
%8 = icmp eq i32 %7, 255
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = tail call i32 @getGray0(i32 2146559)
%11 = icmp eq i32 %10, 159
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %0, %6, %9, %3
%14 = phi i32 [ %12, %9 ], [ 0, %6 ], [ 0, %3 ], [ 0, %0 ]
ret i32 %14
}