#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*/ __analyzer_eval(int);
void test_18(int i) {
  int j;
  __analyzer_eval(i == 42);
  j = i;
  __analyzer_eval(i == j);
  __analyzer_eval(i >= j);
  __analyzer_eval(i <= j);
  __analyzer_eval(i != j);
  __analyzer_eval(i > j);
  __analyzer_eval(i < j);
}


x86 assembly (clang, -O0):
<test_18>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x2a,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_18>:
push   %rax
xor    %eax,%eax
cmp    $0x2a,%edi
sete   %al
mov    %eax,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
pop    %rax
jmp    1030 <__analyzer_eval@plt>

LLVM IR (-O0):
define void @test_18(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 42
%6 = zext i1 %5 to i32
%7 = call i32 @__analyzer_eval(i32 %6)
%8 = load i32, i32* %2
store i32 %8, i32* %3
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i32
%13 = call i32 @__analyzer_eval(i32 %12)
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = icmp sge i32 %14, %15
%17 = zext i1 %16 to i32
%18 = call i32 @__analyzer_eval(i32 %17)
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = icmp sle i32 %19, %20
%22 = zext i1 %21 to i32
%23 = call i32 @__analyzer_eval(i32 %22)
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = icmp ne i32 %24, %25
%27 = zext i1 %26 to i32
%28 = call i32 @__analyzer_eval(i32 %27)
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = icmp sgt i32 %29, %30
%32 = zext i1 %31 to i32
%33 = call i32 @__analyzer_eval(i32 %32)
%34 = load i32, i32* %2
%35 = load i32, i32* %3
%36 = icmp slt i32 %34, %35
%37 = zext i1 %36 to i32
%38 = call i32 @__analyzer_eval(i32 %37)
ret void
}

LLVM IR (-O2):
define void @test_18(i32 %0) {
%2 = icmp eq i32 %0, 42
%3 = zext i1 %2 to i32
%4 = tail call i32 @__analyzer_eval(i32 %3)
%5 = tail call i32 @__analyzer_eval(i32 1)
%6 = tail call i32 @__analyzer_eval(i32 1)
%7 = tail call i32 @__analyzer_eval(i32 1)
%8 = tail call i32 @__analyzer_eval(i32 0)
%9 = tail call i32 @__analyzer_eval(i32 0)
%10 = tail call i32 @__analyzer_eval(i32 0)
ret void
}