int main() {
  int unknown;
  int x, y;
  int *p, *q;
  p = anIntPlease();
  q = anIntPlease();
  assert(unknown);
  assert(unknown == 0);
  assert(x);
  assert(y);
  assert(x == y);
  assert(p);
  assert(q);
  assert(p == q);
  if (unknown)
    assert(1);
  else
    assert(1);
  if (x == y)
    assert(1);
  else
    assert(1);
  if (p == q)
    assert(1);
  else
    assert(1);
  p = &x;
  if (p == q)
    assert(1);
  else
    assert(1);
  assert(p == &x);
  if (q == p)
    assert(1);
  else
    assert(1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <anIntPlease@plt>
cltq
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1030 <anIntPlease@plt>
cltq
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1040 <assert@plt>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x10(%rbp),%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
cmpl   $0x0,-0x8(%rbp)
je     11d7 <main+0xb7>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
jmp    11e3 <main+0xc3>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1200 <main+0xe0>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
jmp    120c <main+0xec>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jne    122b <main+0x10b>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
jmp    1237 <main+0x117>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
lea    -0xc(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jne    125e <main+0x13e>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
jmp    126a <main+0x14a>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
lea    -0xc(%rbp),%rax
cmp    %rax,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x20(%rbp),%rax
cmp    -0x18(%rbp),%rax
jne    12a0 <main+0x180>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
jmp    12ac <main+0x18c>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <anIntPlease@plt>
movslq %eax,%r14
xor    %eax,%eax
call   1030 <anIntPlease@plt>
movslq %eax,%rbx
xor    %eax,%eax
call   1040 <assert@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1040 <assert@plt>
xor    %eax,%eax
call   1040 <assert@plt>
xor    %eax,%eax
call   1040 <assert@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1040 <assert@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <assert@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <assert@plt>
xor    %edi,%edi
cmp    %rbx,%r14
sete   %dil
xor    %eax,%eax
call   1040 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1040 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1040 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1040 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1040 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1040 <assert@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
store i32 0, i32* %1
%7 = call i32 (...) @anIntPlease()
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
store i32* %9, i32** %5
%10 = call i32 (...) @anIntPlease()
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i32*
store i32* %12, i32** %6
%13 = load i32, i32* %2
%14 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %13)
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %17)
%19 = load i32, i32* %3
%20 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %19)
%21 = load i32, i32* %4
%22 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %21)
%23 = load i32, i32* %3
%24 = load i32, i32* %4
%25 = icmp eq i32 %23, %24
%26 = zext i1 %25 to i32
%27 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %26)
%28 = load i32*, i32** %5
%29 = call i32 (i32*, ...) bitcast (i32 (...)* @assert to i32 (i32*, ...)*)(i32* %28)
%30 = load i32*, i32** %6
%31 = call i32 (i32*, ...) bitcast (i32 (...)* @assert to i32 (i32*, ...)*)(i32* %30)
%32 = load i32*, i32** %5
%33 = load i32*, i32** %6
%34 = icmp eq i32* %32, %33
%35 = zext i1 %34 to i32
%36 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %35)
%37 = load i32, i32* %2
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %0
%40 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %43
41: ; preds = %0
%42 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %43
43: ; preds = %41, %39
%44 = load i32, i32* %3
%45 = load i32, i32* %4
%46 = icmp eq i32 %44, %45
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %51
49: ; preds = %43
%50 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %51
51: ; preds = %49, %47
%52 = load i32*, i32** %5
%53 = load i32*, i32** %6
%54 = icmp eq i32* %52, %53
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %59
57: ; preds = %51
%58 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %59
59: ; preds = %57, %55
store i32* %3, i32** %5
%60 = load i32*, i32** %5
%61 = load i32*, i32** %6
%62 = icmp eq i32* %60, %61
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %67
65: ; preds = %59
%66 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %67
67: ; preds = %65, %63
%68 = load i32*, i32** %5
%69 = icmp eq i32* %68, %3
%70 = zext i1 %69 to i32
%71 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %70)
%72 = load i32*, i32** %6
%73 = load i32*, i32** %5
%74 = icmp eq i32* %72, %73
br i1 %74, label %75, label %77
75: ; preds = %67
%76 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %79
77: ; preds = %67
%78 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
br label %79
79: ; preds = %77, %75
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @anIntPlease()
%2 = sext i32 %1 to i64
%3 = inttoptr i64 %2 to i32*
%4 = tail call i32 (...) @anIntPlease()
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i32*
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 undef)
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 0)
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 undef)
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 undef)
%11 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 0)
%12 = tail call i32 (i32*, ...) bitcast (i32 (...)* @assert to i32 (i32*, ...)*)(i32* %3)
%13 = tail call i32 (i32*, ...) bitcast (i32 (...)* @assert to i32 (i32*, ...)*)(i32* %6)
%14 = icmp eq i32* %3, %6
%15 = zext i1 %14 to i32
%16 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %15)
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%18 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%19 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%20 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%21 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%22 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
ret i32 0
}