#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_eval(int);
void testIntersection(int a, int b, int c) {
  if (a < 42 && b > 15 && c >= 25 && c <= 30) {
    if (a != b)
      return;
    clang_analyzer_eval(a > 15);
    clang_analyzer_eval(b < 42);
    clang_analyzer_eval(a <= 30);
    if (c == b) {
      clang_analyzer_eval(a >= 25 && a <= 30);
      clang_analyzer_eval(b >= 25 && b <= 30);
    }
  }
}


x86 assembly (clang, -O0):
<testIntersection>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x2a,-0x4(%rbp)
jge    11ea <testIntersection+0xda>
cmpl   $0xf,-0x8(%rbp)
jle    11ea <testIntersection+0xda>
cmpl   $0x19,-0xc(%rbp)
jl     11ea <testIntersection+0xda>
cmpl   $0x1e,-0xc(%rbp)
jg     11ea <testIntersection+0xda>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     115a <testIntersection+0x4a>
jmp    11ea <testIntersection+0xda>
cmpl   $0xf,-0x4(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
cmpl   $0x2a,-0x8(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
cmpl   $0x1e,-0x4(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    11e5 <testIntersection+0xd5>
xor    %eax,%eax
cmpl   $0x19,-0x4(%rbp)
mov    %al,-0xd(%rbp)
jl     11b2 <testIntersection+0xa2>
cmpl   $0x1e,-0x4(%rbp)
setle  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
xor    %eax,%eax
cmpl   $0x19,-0x8(%rbp)
mov    %al,-0xe(%rbp)
jl     11d8 <testIntersection+0xc8>
cmpl   $0x1e,-0x8(%rbp)
setle  %al
mov    %al,-0xe(%rbp)
mov    -0xe(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
jmp    11ea <testIntersection+0xda>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testIntersection>:
push   %r14
push   %rbx
push   %rax
cmp    %esi,%edi
jne    1179 <testIntersection+0x69>
mov    %edi,%ebx
cmp    $0x29,%edi
jg     1179 <testIntersection+0x69>
cmp    $0x10,%esi
jl     1179 <testIntersection+0x69>
mov    %edx,%r14d
lea    -0x19(%r14),%eax
cmp    $0x5,%eax
ja     1179 <testIntersection+0x69>
mov    $0x1,%edi
call   1030 <clang_analyzer_eval@plt>
mov    $0x1,%edi
call   1030 <clang_analyzer_eval@plt>
xor    %edi,%edi
cmp    $0x1f,%ebx
setl   %dil
call   1030 <clang_analyzer_eval@plt>
cmp    %ebx,%r14d
jne    1179 <testIntersection+0x69>
add    $0xffffffe7,%ebx
xor    %edi,%edi
cmp    $0x6,%ebx
setb   %dil
call   1030 <clang_analyzer_eval@plt>
mov    $0x1,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <clang_analyzer_eval@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @testIntersection(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 42
br i1 %8, label %9, label %59
9: ; preds = %3
%10 = load i32, i32* %5
%11 = icmp sgt i32 %10, 15
br i1 %11, label %12, label %59
12: ; preds = %9
%13 = load i32, i32* %6
%14 = icmp sge i32 %13, 25
br i1 %14, label %15, label %59
15: ; preds = %12
%16 = load i32, i32* %6
%17 = icmp sle i32 %16, 30
br i1 %17, label %18, label %59
18: ; preds = %15
%19 = load i32, i32* %4
%20 = load i32, i32* %5
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
br label %59
23: ; preds = %18
%24 = load i32, i32* %4
%25 = icmp sgt i32 %24, 15
%26 = zext i1 %25 to i32
%27 = call i32 @clang_analyzer_eval(i32 %26)
%28 = load i32, i32* %5
%29 = icmp slt i32 %28, 42
%30 = zext i1 %29 to i32
%31 = call i32 @clang_analyzer_eval(i32 %30)
%32 = load i32, i32* %4
%33 = icmp sle i32 %32, 30
%34 = zext i1 %33 to i32
%35 = call i32 @clang_analyzer_eval(i32 %34)
%36 = load i32, i32* %6
%37 = load i32, i32* %5
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %58
39: ; preds = %23
%40 = load i32, i32* %4
%41 = icmp sge i32 %40, 25
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = load i32, i32* %4
%44 = icmp sle i32 %43, 30
br label %45
45: ; preds = %42, %39
%46 = phi i1 [ false, %39 ], [ %44, %42 ]
%47 = zext i1 %46 to i32
%48 = call i32 @clang_analyzer_eval(i32 %47)
%49 = load i32, i32* %5
%50 = icmp sge i32 %49, 25
br i1 %50, label %51, label %54
51: ; preds = %45
%52 = load i32, i32* %5
%53 = icmp sle i32 %52, 30
br label %54
54: ; preds = %51, %45
%55 = phi i1 [ false, %45 ], [ %53, %51 ]
%56 = zext i1 %55 to i32
%57 = call i32 @clang_analyzer_eval(i32 %56)
br label %58
58: ; preds = %54, %23
br label %59
59: ; preds = %22, %58, %15, %12, %9, %3
ret void
}

LLVM IR (-O2):
define void @testIntersection(i32 %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %0, 42
%5 = icmp sgt i32 %1, 15
%6 = and i1 %4, %5
%7 = add i32 %2, -25
%8 = icmp ult i32 %7, 6
%9 = and i1 %6, %8
%10 = icmp eq i32 %0, %1
%11 = and i1 %10, %9
br i1 %11, label %12, label %25
12: ; preds = %3
%13 = tail call i32 @clang_analyzer_eval(i32 1)
%14 = tail call i32 @clang_analyzer_eval(i32 1)
%15 = icmp slt i32 %0, 31
%16 = zext i1 %15 to i32
%17 = tail call i32 @clang_analyzer_eval(i32 %16)
%18 = icmp eq i32 %2, %0
br i1 %18, label %19, label %25
19: ; preds = %12
%20 = add i32 %0, -25
%21 = icmp ult i32 %20, 6
%22 = zext i1 %21 to i32
%23 = tail call i32 @clang_analyzer_eval(i32 %22)
%24 = tail call i32 @clang_analyzer_eval(i32 1)
br label %25
25: ; preds = %12, %19, %3
ret void
}