#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 use_symbols(int *lhs, int *rhs) {
  clang_analyzer_eval(lhs < rhs);
  if (lhs < rhs)
    return;
  clang_analyzer_eval(lhs < rhs);
  clang_analyzer_eval(lhs - rhs);
  if ((lhs - rhs) != 5)
    return;
  clang_analyzer_eval((lhs - rhs) == 5);
}


x86 assembly (clang, -O0):
<use_symbols>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1148 <use_symbols+0x38>
jmp    11b1 <use_symbols+0xa1>
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
sar    $0x2,%rax
mov    %eax,%edi
call   1030 <clang_analyzer_eval@plt>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
sar    $0x2,%rax
cmp    $0x5,%rax
je     1191 <use_symbols+0x81>
jmp    11b1 <use_symbols+0xa1>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
sar    $0x2,%rax
cmp    $0x5,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<use_symbols>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %edi,%edi
cmp    %rsi,%rbx
setb   %dil
call   1030 <clang_analyzer_eval@plt>
sub    %r14,%rbx
jb     1157 <use_symbols+0x47>
xor    %edi,%edi
call   1030 <clang_analyzer_eval@plt>
mov    %rbx,%rdi
shr    $0x2,%rdi
call   1030 <clang_analyzer_eval@plt>
cmp    $0x14,%rbx
jne    1157 <use_symbols+0x47>
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 @use_symbols(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 = load i32*, i32** %4
%7 = icmp ult i32* %5, %6
%8 = zext i1 %7 to i32
%9 = call i32 @clang_analyzer_eval(i32 %8)
%10 = load i32*, i32** %3
%11 = load i32*, i32** %4
%12 = icmp ult i32* %10, %11
br i1 %12, label %13, label %14
13: ; preds = %2
br label %46
14: ; preds = %2
%15 = load i32*, i32** %3
%16 = load i32*, i32** %4
%17 = icmp ult i32* %15, %16
%18 = zext i1 %17 to i32
%19 = call i32 @clang_analyzer_eval(i32 %18)
%20 = load i32*, i32** %3
%21 = load i32*, i32** %4
%22 = ptrtoint i32* %20 to i64
%23 = ptrtoint i32* %21 to i64
%24 = sub i64 %22, %23
%25 = sdiv exact i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call i32 @clang_analyzer_eval(i32 %26)
%28 = load i32*, i32** %3
%29 = load i32*, i32** %4
%30 = ptrtoint i32* %28 to i64
%31 = ptrtoint i32* %29 to i64
%32 = sub i64 %30, %31
%33 = sdiv exact i64 %32, 4
%34 = icmp ne i64 %33, 5
br i1 %34, label %35, label %36
35: ; preds = %14
br label %46
36: ; preds = %14
%37 = load i32*, i32** %3
%38 = load i32*, i32** %4
%39 = ptrtoint i32* %37 to i64
%40 = ptrtoint i32* %38 to i64
%41 = sub i64 %39, %40
%42 = sdiv exact i64 %41, 4
%43 = icmp eq i64 %42, 5
%44 = zext i1 %43 to i32
%45 = call i32 @clang_analyzer_eval(i32 %44)
br label %46
46: ; preds = %36, %35, %13
ret void
}

LLVM IR (-O2):
define void @use_symbols(i32* %0, i32* %1) {
%3 = icmp ult i32* %0, %1
%4 = zext i1 %3 to i32
%5 = tail call i32 @clang_analyzer_eval(i32 %4)
br i1 %3, label %17, label %6
6: ; preds = %2
%7 = tail call i32 @clang_analyzer_eval(i32 0)
%8 = ptrtoint i32* %0 to i64
%9 = ptrtoint i32* %1 to i64
%10 = sub i64 %8, %9
%11 = lshr exact i64 %10, 2
%12 = trunc i64 %11 to i32
%13 = tail call i32 @clang_analyzer_eval(i32 %12)
%14 = icmp eq i64 %10, 20
br i1 %14, label %15, label %17
15: ; preds = %6
%16 = tail call i32 @clang_analyzer_eval(i32 1)
br label %17
17: ; preds = %6, %2, %15
ret void
}