#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, j, k;
  __analyzer_dump_exploded_nodes(0);
  for (i = 0; i < 256; i++) {
    __analyzer_eval(i >= 0);
    __analyzer_eval(i < 256);
    for (j = 0; j < 256; j++) {
      __analyzer_eval(j >= 0);
      __analyzer_eval(j < 256);
      __analyzer_dump_exploded_nodes(0);
      for (k = 0; k < 256; k++) {
        __analyzer_eval(k >= 0);
        __analyzer_eval(k < 256);
        __analyzer_dump_exploded_nodes(0);
      }
    }
  }
  __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    121c <test+0xfc>
cmpl   $0x0,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
cmpl   $0x100,-0x4(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x100,-0x8(%rbp)
jge    1209 <test+0xe9>
cmpl   $0x0,-0x8(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
cmpl   $0x100,-0x8(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x100,-0xc(%rbp)
jge    11f6 <test+0xd6>
cmpl   $0x0,-0xc(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
cmpl   $0x100,-0xc(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11af <test+0x8f>
jmp    11fb <test+0xdb>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116f <test+0x4f>
jmp    120e <test+0xee>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1136 <test+0x16>
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rbp
push   %r14
push   %rbx
xor    %r14d,%r14d
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
xchg   %ax,%ax
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
mov    $0x1,%edi
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
call   1040 <__analyzer_dump_exploded_nodes@plt>
mov    $0x100,%ebx
mov    $0x1,%edi
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    1170 <test+0x50>
add    $0x1,%ebp
cmp    $0x100,%ebp
jne    1150 <test+0x30>
add    $0x1,%r14d
cmp    $0x100,%r14d
jne    1130 <test+0x10>
xor    %edi,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <__analyzer_dump_exploded_nodes@plt>

LLVM IR (-O0):
define void @test() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 @__analyzer_dump_exploded_nodes(i32 0)
store i32 0, i32* %1
br label %5
5: ; preds = %51, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 256
br i1 %7, label %8, label %54
8: ; preds = %5
%9 = load i32, i32* %1
%10 = icmp sge i32 %9, 0
%11 = zext i1 %10 to i32
%12 = call i32 @__analyzer_eval(i32 %11)
%13 = load i32, i32* %1
%14 = icmp slt i32 %13, 256
%15 = zext i1 %14 to i32
%16 = call i32 @__analyzer_eval(i32 %15)
store i32 0, i32* %2
br label %17
17: ; preds = %47, %8
%18 = load i32, i32* %2
%19 = icmp slt i32 %18, 256
br i1 %19, label %20, label %50
20: ; preds = %17
%21 = load i32, i32* %2
%22 = icmp sge i32 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @__analyzer_eval(i32 %23)
%25 = load i32, i32* %2
%26 = icmp slt i32 %25, 256
%27 = zext i1 %26 to i32
%28 = call i32 @__analyzer_eval(i32 %27)
%29 = call i32 @__analyzer_dump_exploded_nodes(i32 0)
store i32 0, i32* %3
br label %30
30: ; preds = %43, %20
%31 = load i32, i32* %3
%32 = icmp slt i32 %31, 256
br i1 %32, label %33, label %46
33: ; preds = %30
%34 = load i32, i32* %3
%35 = icmp sge i32 %34, 0
%36 = zext i1 %35 to i32
%37 = call i32 @__analyzer_eval(i32 %36)
%38 = load i32, i32* %3
%39 = icmp slt i32 %38, 256
%40 = zext i1 %39 to i32
%41 = call i32 @__analyzer_eval(i32 %40)
%42 = call i32 @__analyzer_dump_exploded_nodes(i32 0)
br label %43
43: ; preds = %33
%44 = load i32, i32* %3
%45 = add nsw i32 %44, 1
store i32 %45, i32* %3
br label %30
46: ; preds = %30
br label %47
47: ; preds = %46
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
store i32 %49, i32* %2
br label %17
50: ; preds = %17
br label %51
51: ; preds = %50
%52 = load i32, i32* %1
%53 = add nsw i32 %52, 1
store i32 %53, i32* %1
br label %5
54: ; preds = %5
%55 = 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, %21
%3 = phi i32 [ 0, %0 ], [ %22, %21 ]
%4 = tail call i32 @__analyzer_eval(i32 1)
%5 = tail call i32 @__analyzer_eval(i32 1)
br label %6
6: ; preds = %2, %18
%7 = phi i32 [ 0, %2 ], [ %19, %18 ]
%8 = tail call i32 @__analyzer_eval(i32 1)
%9 = tail call i32 @__analyzer_eval(i32 1)
%10 = tail call i32 @__analyzer_dump_exploded_nodes(i32 0)
br label %11
11: ; preds = %6, %11
%12 = phi i32 [ 0, %6 ], [ %16, %11 ]
%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)
%16 = add nuw nsw i32 %12, 1
%17 = icmp eq i32 %16, 256
br i1 %17, label %18, label %11
18: ; preds = %11
%19 = add nuw nsw i32 %7, 1
%20 = icmp eq i32 %19, 256
br i1 %20, label %21, label %6
21: ; preds = %18
%22 = add nuw nsw i32 %3, 1
%23 = icmp eq i32 %22, 256
br i1 %23, label %24, label %2
24: ; preds = %21
%25 = tail call i32 @__analyzer_dump_exploded_nodes(i32 0)
ret void
}