int main() {
  int a = 0;
  int b = 1;
  if (b > a)
    b += 3;
  else
    b -= 2;
  int *pointer;
  pointer = 0x100;
  *pointer = 0x12345678;
  if (*pointer != 0x12345678)
    a++;
  if (*pointer == 0x12345678)
    a++;
  if (*pointer >= 0x12345678)
    a++;
  if (*pointer <= 0x12345678)
    a++;
  if (*pointer > 0x12345678)
    a++;
  if (*pointer < 0x12345678)
    a++;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1133 <main+0x33>
mov    -0xc(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0xc(%rbp)
jmp    113c <main+0x3c>
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0xc(%rbp)
mov    $0x100,%eax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movl   $0x12345678,(%rax)
mov    -0x18(%rbp),%rax
cmpl   $0x12345678,(%rax)
je     1168 <main+0x68>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x18(%rbp),%rax
cmpl   $0x12345678,(%rax)
jne    1181 <main+0x81>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x18(%rbp),%rax
cmpl   $0x12345678,(%rax)
jl     119a <main+0x9a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x18(%rbp),%rax
cmpl   $0x12345678,(%rax)
jg     11b3 <main+0xb3>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x18(%rbp),%rax
cmpl   $0x12345678,(%rax)
jle    11cc <main+0xcc>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x18(%rbp),%rax
cmpl   $0x12345678,(%rax)
jge    11e5 <main+0xe5>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
movl   $0x12345678,0x100
78 56 34 12
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %2
store i32 1, i32* %3
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, i32* %3
%10 = add nsw i32 %9, 3
store i32 %10, i32* %3
br label %14
11: ; preds = %0
%12 = load i32, i32* %3
%13 = sub nsw i32 %12, 2
store i32 %13, i32* %3
br label %14
14: ; preds = %11, %8
store i32* inttoptr (i64 256 to i32*), i32** %4
%15 = load i32*, i32** %4
store i32 305419896, i32* %15
%16 = load i32*, i32** %4
%17 = load i32, i32* %16
%18 = icmp ne i32 %17, 305419896
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 1
store i32 %21, i32* %2
br label %22
22: ; preds = %19, %14
%23 = load i32*, i32** %4
%24 = load i32, i32* %23
%25 = icmp eq i32 %24, 305419896
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %29
29: ; preds = %26, %22
%30 = load i32*, i32** %4
%31 = load i32, i32* %30
%32 = icmp sge i32 %31, 305419896
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %36
36: ; preds = %33, %29
%37 = load i32*, i32** %4
%38 = load i32, i32* %37
%39 = icmp sle i32 %38, 305419896
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, i32* %2
%42 = add nsw i32 %41, 1
store i32 %42, i32* %2
br label %43
43: ; preds = %40, %36
%44 = load i32*, i32** %4
%45 = load i32, i32* %44
%46 = icmp sgt i32 %45, 305419896
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
store i32 %49, i32* %2
br label %50
50: ; preds = %47, %43
%51 = load i32*, i32** %4
%52 = load i32, i32* %51
%53 = icmp slt i32 %52, 305419896
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = load i32, i32* %2
%56 = add nsw i32 %55, 1
store i32 %56, i32* %2
br label %57
57: ; preds = %54, %50
%58 = load i32, i32* %1
ret i32 %58
}

LLVM IR (-O2):
define i32 @main() {
store i32 305419896, i32* inttoptr (i64 256 to i32*)
ret i32 0
}