#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_21(void) {
  int i, j, zero;
  int *pi = &i;
  int *pj = &j;
  int *pzero = &zero;
  *pi = 5;
  *pj = 3;
  *pzero = 0;
  __analyzer_eval(i + j == 8);
  __analyzer_eval(i - j == 2);
  __analyzer_eval(i * j == 15);
  __analyzer_eval(i / j == 1);
  __analyzer_eval(i % j == 2);
  __analyzer_eval(i / zero);
  __analyzer_eval(i % zero);
  __analyzer_eval((i & 1) == (5 & 1));
  __analyzer_eval((i & j) == (5 & 3));
  __analyzer_eval((i | 1) == (5 | 1));
  __analyzer_eval((i | j) == (5 | 3));
  __analyzer_eval((i ^ 1) == (5 ^ 1));
  __analyzer_eval((i ^ j) == (5 ^ 3));
  __analyzer_eval((i >> 1) == (5 >> 1));
  __analyzer_eval((i >> j) == (5 >> 3));
  __analyzer_eval((i << 1) == (5 << 1));
  __analyzer_eval((i << j) == (5 << 3));
  __analyzer_eval(i && 0);
  __analyzer_eval(i && 1);
  __analyzer_eval(i && j);
  __analyzer_eval(i || 0);
  __analyzer_eval(i || 1);
  __analyzer_eval(i || j);
  __analyzer_eval(~i == ~5);
  __analyzer_eval(-i == -5);
  __analyzer_eval(+i == +5);
}


x86 assembly (clang, -O0):
<test_21>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    -0x4(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0xc(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
movl   $0x5,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x3,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
cmp    $0x8,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
cmp    $0x2,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
imul   -0x8(%rbp),%eax
cmp    $0xf,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cltd
idivl  -0x8(%rbp)
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cltd
idivl  -0x8(%rbp)
cmp    $0x2,%edx
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %eax,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
and    -0x8(%rbp),%eax
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
or     $0x1,%eax
cmp    $0x5,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
or     -0x8(%rbp),%eax
cmp    $0x7,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
xor    $0x1,%eax
cmp    $0x4,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
xor    -0x8(%rbp),%eax
cmp    $0x6,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
cmp    $0x2,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
sar    %cl,%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
cmp    $0xa,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    %cl,%eax
cmp    $0x28,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x29(%rbp)
je     12d4 <test_21+0x1c4>
xor    %eax,%eax
mov    %al,-0x29(%rbp)
jmp    12d4 <test_21+0x1c4>
mov    -0x29(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x2a(%rbp)
je     12fa <test_21+0x1ea>
mov    $0x1,%al
mov    %al,-0x2a(%rbp)
jmp    12fa <test_21+0x1ea>
mov    -0x2a(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x2b(%rbp)
je     1320 <test_21+0x210>
cmpl   $0x0,-0x8(%rbp)
setne  %al
mov    %al,-0x2b(%rbp)
mov    -0x2b(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%al
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x2c(%rbp)
jne    1346 <test_21+0x236>
xor    %eax,%eax
mov    %al,-0x2c(%rbp)
jmp    1346 <test_21+0x236>
mov    -0x2c(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%al
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x2d(%rbp)
jne    136c <test_21+0x25c>
mov    $0x1,%al
mov    %al,-0x2d(%rbp)
jmp    136c <test_21+0x25c>
mov    -0x2d(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%al
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x2e(%rbp)
jne    1392 <test_21+0x282>
cmpl   $0x0,-0x8(%rbp)
setne  %al
mov    %al,-0x2e(%rbp)
mov    -0x2e(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x4(%rbp),%eax
xor    $0xffffffff,%eax
cmp    $0xfffffffa,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
cmp    $0xfffffffb,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
cmpl   $0x5,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_21>:
push   %rax
mov    $0x1,%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>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
call   1030 <__analyzer_eval@plt>
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>
mov    $0x1,%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>
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>
mov    $0x1,%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>
mov    $0x1,%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
pop    %rax
jmp    1030 <__analyzer_eval@plt>

LLVM IR (-O0):
define void @test_21() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
store i32* %1, i32** %4
store i32* %2, i32** %5
store i32* %3, i32** %6
%7 = load i32*, i32** %4
store i32 5, i32* %7
%8 = load i32*, i32** %5
store i32 3, i32* %8
%9 = load i32*, i32** %6
store i32 0, i32* %9
%10 = load i32, i32* %1
%11 = load i32, i32* %2
%12 = add nsw i32 %10, %11
%13 = icmp eq i32 %12, 8
%14 = zext i1 %13 to i32
%15 = call i32 @__analyzer_eval(i32 %14)
%16 = load i32, i32* %1
%17 = load i32, i32* %2
%18 = sub nsw i32 %16, %17
%19 = icmp eq i32 %18, 2
%20 = zext i1 %19 to i32
%21 = call i32 @__analyzer_eval(i32 %20)
%22 = load i32, i32* %1
%23 = load i32, i32* %2
%24 = mul nsw i32 %22, %23
%25 = icmp eq i32 %24, 15
%26 = zext i1 %25 to i32
%27 = call i32 @__analyzer_eval(i32 %26)
%28 = load i32, i32* %1
%29 = load i32, i32* %2
%30 = sdiv i32 %28, %29
%31 = icmp eq i32 %30, 1
%32 = zext i1 %31 to i32
%33 = call i32 @__analyzer_eval(i32 %32)
%34 = load i32, i32* %1
%35 = load i32, i32* %2
%36 = srem i32 %34, %35
%37 = icmp eq i32 %36, 2
%38 = zext i1 %37 to i32
%39 = call i32 @__analyzer_eval(i32 %38)
%40 = load i32, i32* %1
%41 = load i32, i32* %3
%42 = sdiv i32 %40, %41
%43 = call i32 @__analyzer_eval(i32 %42)
%44 = load i32, i32* %1
%45 = load i32, i32* %3
%46 = srem i32 %44, %45
%47 = call i32 @__analyzer_eval(i32 %46)
%48 = load i32, i32* %1
%49 = and i32 %48, 1
%50 = icmp eq i32 %49, 1
%51 = zext i1 %50 to i32
%52 = call i32 @__analyzer_eval(i32 %51)
%53 = load i32, i32* %1
%54 = load i32, i32* %2
%55 = and i32 %53, %54
%56 = icmp eq i32 %55, 1
%57 = zext i1 %56 to i32
%58 = call i32 @__analyzer_eval(i32 %57)
%59 = load i32, i32* %1
%60 = or i32 %59, 1
%61 = icmp eq i32 %60, 5
%62 = zext i1 %61 to i32
%63 = call i32 @__analyzer_eval(i32 %62)
%64 = load i32, i32* %1
%65 = load i32, i32* %2
%66 = or i32 %64, %65
%67 = icmp eq i32 %66, 7
%68 = zext i1 %67 to i32
%69 = call i32 @__analyzer_eval(i32 %68)
%70 = load i32, i32* %1
%71 = xor i32 %70, 1
%72 = icmp eq i32 %71, 4
%73 = zext i1 %72 to i32
%74 = call i32 @__analyzer_eval(i32 %73)
%75 = load i32, i32* %1
%76 = load i32, i32* %2
%77 = xor i32 %75, %76
%78 = icmp eq i32 %77, 6
%79 = zext i1 %78 to i32
%80 = call i32 @__analyzer_eval(i32 %79)
%81 = load i32, i32* %1
%82 = ashr i32 %81, 1
%83 = icmp eq i32 %82, 2
%84 = zext i1 %83 to i32
%85 = call i32 @__analyzer_eval(i32 %84)
%86 = load i32, i32* %1
%87 = load i32, i32* %2
%88 = ashr i32 %86, %87
%89 = icmp eq i32 %88, 0
%90 = zext i1 %89 to i32
%91 = call i32 @__analyzer_eval(i32 %90)
%92 = load i32, i32* %1
%93 = shl i32 %92, 1
%94 = icmp eq i32 %93, 10
%95 = zext i1 %94 to i32
%96 = call i32 @__analyzer_eval(i32 %95)
%97 = load i32, i32* %1
%98 = load i32, i32* %2
%99 = shl i32 %97, %98
%100 = icmp eq i32 %99, 40
%101 = zext i1 %100 to i32
%102 = call i32 @__analyzer_eval(i32 %101)
%103 = load i32, i32* %1
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %106
105: ; preds = %0
br label %106
106: ; preds = %105, %0
%107 = phi i1 [ false, %0 ], [ false, %105 ]
%108 = zext i1 %107 to i32
%109 = call i32 @__analyzer_eval(i32 %108)
%110 = load i32, i32* %1
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %113
112: ; preds = %106
br label %113
113: ; preds = %112, %106
%114 = phi i1 [ false, %106 ], [ true, %112 ]
%115 = zext i1 %114 to i32
%116 = call i32 @__analyzer_eval(i32 %115)
%117 = load i32, i32* %1
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %113
%120 = load i32, i32* %2
%121 = icmp ne i32 %120, 0
br label %122
122: ; preds = %119, %113
%123 = phi i1 [ false, %113 ], [ %121, %119 ]
%124 = zext i1 %123 to i32
%125 = call i32 @__analyzer_eval(i32 %124)
%126 = load i32, i32* %1
%127 = icmp ne i32 %126, 0
br i1 %127, label %129, label %128
128: ; preds = %122
br label %129
129: ; preds = %128, %122
%130 = phi i1 [ true, %122 ], [ false, %128 ]
%131 = zext i1 %130 to i32
%132 = call i32 @__analyzer_eval(i32 %131)
%133 = load i32, i32* %1
%134 = icmp ne i32 %133, 0
br i1 %134, label %136, label %135
135: ; preds = %129
br label %136
136: ; preds = %135, %129
%137 = phi i1 [ true, %129 ], [ true, %135 ]
%138 = zext i1 %137 to i32
%139 = call i32 @__analyzer_eval(i32 %138)
%140 = load i32, i32* %1
%141 = icmp ne i32 %140, 0
br i1 %141, label %145, label %142
142: ; preds = %136
%143 = load i32, i32* %2
%144 = icmp ne i32 %143, 0
br label %145
145: ; preds = %142, %136
%146 = phi i1 [ true, %136 ], [ %144, %142 ]
%147 = zext i1 %146 to i32
%148 = call i32 @__analyzer_eval(i32 %147)
%149 = load i32, i32* %1
%150 = xor i32 %149, -1
%151 = icmp eq i32 %150, -6
%152 = zext i1 %151 to i32
%153 = call i32 @__analyzer_eval(i32 %152)
%154 = load i32, i32* %1
%155 = sub nsw i32 0, %154
%156 = icmp eq i32 %155, -5
%157 = zext i1 %156 to i32
%158 = call i32 @__analyzer_eval(i32 %157)
%159 = load i32, i32* %1
%160 = icmp eq i32 %159, 5
%161 = zext i1 %160 to i32
%162 = call i32 @__analyzer_eval(i32 %161)
ret void
}

LLVM IR (-O2):
define void @test_21() {
%1 = tail call i32 @__analyzer_eval(i32 1)
%2 = tail call i32 @__analyzer_eval(i32 1)
%3 = tail call i32 @__analyzer_eval(i32 1)
%4 = tail call i32 @__analyzer_eval(i32 1)
%5 = tail call i32 @__analyzer_eval(i32 1)
%6 = tail call i32 @__analyzer_eval(i32 poison)
%7 = tail call i32 @__analyzer_eval(i32 poison)
%8 = tail call i32 @__analyzer_eval(i32 1)
%9 = tail call i32 @__analyzer_eval(i32 1)
%10 = tail call i32 @__analyzer_eval(i32 1)
%11 = tail call i32 @__analyzer_eval(i32 1)
%12 = tail call i32 @__analyzer_eval(i32 1)
%13 = tail call i32 @__analyzer_eval(i32 1)
%14 = tail call i32 @__analyzer_eval(i32 1)
%15 = tail call i32 @__analyzer_eval(i32 1)
%16 = tail call i32 @__analyzer_eval(i32 1)
%17 = tail call i32 @__analyzer_eval(i32 1)
%18 = tail call i32 @__analyzer_eval(i32 0)
%19 = tail call i32 @__analyzer_eval(i32 1)
%20 = tail call i32 @__analyzer_eval(i32 1)
%21 = tail call i32 @__analyzer_eval(i32 1)
%22 = tail call i32 @__analyzer_eval(i32 1)
%23 = tail call i32 @__analyzer_eval(i32 1)
%24 = tail call i32 @__analyzer_eval(i32 1)
%25 = tail call i32 @__analyzer_eval(i32 1)
%26 = tail call i32 @__analyzer_eval(i32 1)
ret void
}