#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*/ printf(char *, ...);
int main(void) {
  int x;
  printf("Garbage int x = [%d]\n", x);
  if ((x <= 2) || (x <= 4) || (x <= 8) || (x <= 16) || (x <= 32) || (x <= 64) ||
      (x <= 128) || (x < 256)) {
    printf("Garbage int x is less than 256.\n");
  } else if (x > 256) {
    printf("Garbage int x is more than 256.\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%esi
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jle    1186 <main+0x76>
cmpl   $0x4,-0x8(%rbp)
jle    1186 <main+0x76>
cmpl   $0x8,-0x8(%rbp)
jle    1186 <main+0x76>
cmpl   $0x10,-0x8(%rbp)
jle    1186 <main+0x76>
cmpl   $0x20,-0x8(%rbp)
jle    1186 <main+0x76>
cmpl   $0x40,-0x8(%rbp)
jle    1186 <main+0x76>
cmpl   $0x80,-0x8(%rbp)
jle    1186 <main+0x76>
cmpl   $0x100,-0x8(%rbp)
jge    1199 <main+0x89>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b9 <main+0xa9>
cmpl   $0x100,-0x8(%rbp)
jle    11b4 <main+0xa4>
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b9 <main+0xa9>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee0(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Garbage int x = [%d]\0A\00"
@.str.1 = [33 x i8] c"Garbage int x is less than 256.\0A\00"
@.str.2 = [33 x i8] c"Garbage int x is more than 256.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 2
br i1 %6, label %28, label %7
7: ; preds = %0
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 4
br i1 %9, label %28, label %10
10: ; preds = %7
%11 = load i32, i32* %2
%12 = icmp sle i32 %11, 8
br i1 %12, label %28, label %13
13: ; preds = %10
%14 = load i32, i32* %2
%15 = icmp sle i32 %14, 16
br i1 %15, label %28, label %16
16: ; preds = %13
%17 = load i32, i32* %2
%18 = icmp sle i32 %17, 32
br i1 %18, label %28, label %19
19: ; preds = %16
%20 = load i32, i32* %2
%21 = icmp sle i32 %20, 64
br i1 %21, label %28, label %22
22: ; preds = %19
%23 = load i32, i32* %2
%24 = icmp sle i32 %23, 128
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load i32, i32* %2
%27 = icmp slt i32 %26, 256
br i1 %27, label %28, label %30
28: ; preds = %25, %22, %19, %16, %13, %10, %7, %0
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %36
30: ; preds = %25
%31 = load i32, i32* %2
%32 = icmp sgt i32 %31, 256
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
br label %35
35: ; preds = %33, %30
br label %36
36: ; preds = %35, %28
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"Garbage int x = [%d]\0A\00"
@str = [32 x i8] c"Garbage int x is less than 256.\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 undef)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
ret i32 0
}