#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*/ clang_analyzer_warnIfReached();
void avoidInfeasibleConstraintsForClasses(int a, int b) {
  if (a >= 0 && a <= 10 && b >= 20 && b <= 50) {
    if ((b - a) == 0) {
      clang_analyzer_warnIfReached();
    }
    if (a == b) {
      clang_analyzer_warnIfReached();
    }
    if (a != b) {
      clang_analyzer_warnIfReached();
    } else {
      clang_analyzer_warnIfReached();
    }
  }
}


x86 assembly (clang, -O0):
<avoidInfeasibleConstraintsForClasses>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     1193 <avoidInfeasibleConstraintsForClasses+0x83>
cmpl   $0xa,-0x4(%rbp)
jg     1193 <avoidInfeasibleConstraintsForClasses+0x83>
cmpl   $0x14,-0x8(%rbp)
jl     1193 <avoidInfeasibleConstraintsForClasses+0x83>
cmpl   $0x32,-0x8(%rbp)
jg     1193 <avoidInfeasibleConstraintsForClasses+0x83>
mov    -0x8(%rbp),%eax
sub    -0x4(%rbp),%eax
cmp    $0x0,%eax
jne    115c <avoidInfeasibleConstraintsForClasses+0x4c>
mov    $0x0,%al
call   1030 <clang_analyzer_warnIfReached@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    116f <avoidInfeasibleConstraintsForClasses+0x5f>
mov    $0x0,%al
call   1030 <clang_analyzer_warnIfReached@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     1187 <avoidInfeasibleConstraintsForClasses+0x77>
mov    $0x0,%al
call   1030 <clang_analyzer_warnIfReached@plt>
jmp    118e <avoidInfeasibleConstraintsForClasses+0x7e>
mov    $0x0,%al
call   1030 <clang_analyzer_warnIfReached@plt>
jmp    1193 <avoidInfeasibleConstraintsForClasses+0x83>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<avoidInfeasibleConstraintsForClasses>:
cmp    $0xa,%edi
ja     1124 <avoidInfeasibleConstraintsForClasses+0x14>
add    $0xffffffec,%esi
cmp    $0x1e,%esi
ja     1124 <avoidInfeasibleConstraintsForClasses+0x14>
xor    %eax,%eax
jmp    1030 <clang_analyzer_warnIfReached@plt>
ret

LLVM IR (-O0):
define void @avoidInfeasibleConstraintsForClasses(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %38
7: ; preds = %2
%8 = load i32, i32* %3
%9 = icmp sle i32 %8, 10
br i1 %9, label %10, label %38
10: ; preds = %7
%11 = load i32, i32* %4
%12 = icmp sge i32 %11, 20
br i1 %12, label %13, label %38
13: ; preds = %10
%14 = load i32, i32* %4
%15 = icmp sle i32 %14, 50
br i1 %15, label %16, label %38
16: ; preds = %13
%17 = load i32, i32* %4
%18 = load i32, i32* %3
%19 = sub nsw i32 %17, %18
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 (...) @clang_analyzer_warnIfReached()
br label %23
23: ; preds = %21, %16
%24 = load i32, i32* %3
%25 = load i32, i32* %4
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 (...) @clang_analyzer_warnIfReached()
br label %29
29: ; preds = %27, %23
%30 = load i32, i32* %3
%31 = load i32, i32* %4
%32 = icmp ne i32 %30, %31
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 (...) @clang_analyzer_warnIfReached()
br label %37
35: ; preds = %29
%36 = call i32 (...) @clang_analyzer_warnIfReached()
br label %37
37: ; preds = %35, %33
br label %38
38: ; preds = %37, %13, %10, %7, %2
ret void
}

LLVM IR (-O2):
define void @avoidInfeasibleConstraintsForClasses(i32 %0, i32 %1) {
%3 = icmp ult i32 %0, 11
%4 = add i32 %1, -20
%5 = icmp ult i32 %4, 31
%6 = and i1 %3, %5
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 (...) @clang_analyzer_warnIfReached()
br label %9
9: ; preds = %7, %2
ret void
}