#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_dump_exploded_nodes(int /*<<< orphan*/);
int /*<<< orphan*/ __analyzer_eval(int);
void test(void) {
  int i;
  __analyzer_dump_exploded_nodes(0);
  for (i = 0; i < 256; i++) {
    __analyzer_eval(i < 256);
    __analyzer_eval(i == 0);
    __analyzer_eval(i >= 0);
    __analyzer_dump_exploded_nodes(0);
  }
  __analyzer_eval(i >= 256);
  __analyzer_eval(i == 256);
  __analyzer_dump_exploded_nodes(0);
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x100,-0x4(%rbp)
jge    118e <test+0x6e>
cmpl   $0x100,-0x4(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
cmpl   $0x0,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
cmpl   $0x0,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1136 <test+0x16>
cmpl   $0x100,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
cmpl   $0x100,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rbx
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
mov    $0x100,%ebx
nopl   (%rax)
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
cmp    $0x100,%ebx
sete   %dil
call   1030 <__analyzer_eval@plt>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
add    $0xffffffff,%ebx
jne    1130 <test+0x10>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
pop    %rbx
jmp    1040 <__analyzer_dump_exploded_nodes@plt>

LLVM IR (-O0):
define void @test() {
%1 = alloca i32
%2 = call i32 @__analyzer_dump_exploded_nodes(i32 0)
store i32 0, i32* %1
br label %3
3: ; preds = %20, %0
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 256
br i1 %5, label %6, label %23
6: ; preds = %3
%7 = load i32, i32* %1
%8 = icmp slt i32 %7, 256
%9 = zext i1 %8 to i32
%10 = call i32 @__analyzer_eval(i32 %9)
%11 = load i32, i32* %1
%12 = icmp eq i32 %11, 0
%13 = zext i1 %12 to i32
%14 = call i32 @__analyzer_eval(i32 %13)
%15 = load i32, i32* %1
%16 = icmp sge i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @__analyzer_eval(i32 %17)
%19 = call i32 @__analyzer_dump_exploded_nodes(i32 0)
br label %20
20: ; preds = %6
%21 = load i32, i32* %1
%22 = add nsw i32 %21, 1
store i32 %22, i32* %1
br label %3
23: ; preds = %3
%24 = load i32, i32* %1
%25 = icmp sge i32 %24, 256
%26 = zext i1 %25 to i32
%27 = call i32 @__analyzer_eval(i32 %26)
%28 = load i32, i32* %1
%29 = icmp eq i32 %28, 256
%30 = zext i1 %29 to i32
%31 = call i32 @__analyzer_eval(i32 %30)
%32 = call i32 @__analyzer_dump_exploded_nodes(i32 0)
ret void
}

LLVM IR (-O2):
define void @test() {
%1 = tail call i32 @__analyzer_dump_exploded_nodes(i32 0)
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %10, %2 ]
%4 = tail call i32 @__analyzer_eval(i32 1)
%5 = icmp eq i32 %3, 0
%6 = zext i1 %5 to i32
%7 = tail call i32 @__analyzer_eval(i32 %6)
%8 = tail call i32 @__analyzer_eval(i32 1)
%9 = tail call i32 @__analyzer_dump_exploded_nodes(i32 0)
%10 = add nuw nsw i32 %3, 1
%11 = icmp eq i32 %10, 256
br i1 %11, label %12, label %2
12: ; preds = %2
%13 = tail call i32 @__analyzer_eval(i32 1)
%14 = tail call i32 @__analyzer_eval(i32 1)
%15 = tail call i32 @__analyzer_dump_exploded_nodes(i32 0)
ret void
}