#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 */
char *malloc(int);
int main(void) {
  char *buf = malloc(sizeof(char) * 6);
  char *nz = (char *)((long)buf ^ (long)buf);
  char *unz;
  ((char *)&unz)[0] = '\0';
  ((char *)&unz)[1] = '\0';
  ((char *)&unz)[2] = '\0';
  ((char *)&unz)[3] = '\0';
  if (buf == nz)
    return 1;
  if (nz == buf)
    return 1;
  if (buf == unz)
    return 1;
  if (unz == buf)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x6,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
xor    %rcx,%rax
mov    %rax,-0x18(%rbp)
movb   $0x0,-0x20(%rbp)
movb   $0x0,-0x1f(%rbp)
movb   $0x0,-0x1e(%rbp)
movb   $0x0,-0x1d(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jne    1166 <main+0x56>
movl   $0x1,-0x4(%rbp)
jmp    11bb <main+0xab>
mov    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    1180 <main+0x70>
movl   $0x1,-0x4(%rbp)
jmp    11bb <main+0xab>
mov    -0x10(%rbp),%rax
cmp    -0x20(%rbp),%rax
jne    119a <main+0x8a>
movl   $0x1,-0x4(%rbp)
jmp    11bb <main+0xab>
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    11b4 <main+0xa4>
movl   $0x1,-0x4(%rbp)
jmp    11bb <main+0xab>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i32 0, i32* %1
%5 = call i8* @malloc(i32 6)
store i8* %5, i8** %2
%6 = load i8*, i8** %2
%7 = ptrtoint i8* %6 to i64
%8 = load i8*, i8** %2
%9 = ptrtoint i8* %8 to i64
%10 = xor i64 %7, %9
%11 = inttoptr i64 %10 to i8*
store i8* %11, i8** %3
%12 = bitcast i8** %4 to i8*
%13 = getelementptr inbounds i8, i8* %12, i64 0
store i8 0, i8* %13
%14 = bitcast i8** %4 to i8*
%15 = getelementptr inbounds i8, i8* %14, i64 1
store i8 0, i8* %15
%16 = bitcast i8** %4 to i8*
%17 = getelementptr inbounds i8, i8* %16, i64 2
store i8 0, i8* %17
%18 = bitcast i8** %4 to i8*
%19 = getelementptr inbounds i8, i8* %18, i64 3
store i8 0, i8* %19
%20 = load i8*, i8** %2
%21 = load i8*, i8** %3
%22 = icmp eq i8* %20, %21
br i1 %22, label %23, label %24
23: ; preds = %0
store i32 1, i32* %1
br label %40
24: ; preds = %0
%25 = load i8*, i8** %3
%26 = load i8*, i8** %2
%27 = icmp eq i8* %25, %26
br i1 %27, label %28, label %29
28: ; preds = %24
store i32 1, i32* %1
br label %40
29: ; preds = %24
%30 = load i8*, i8** %2
%31 = load i8*, i8** %4
%32 = icmp eq i8* %30, %31
br i1 %32, label %33, label %34
33: ; preds = %29
store i32 1, i32* %1
br label %40
34: ; preds = %29
%35 = load i8*, i8** %4
%36 = load i8*, i8** %2
%37 = icmp eq i8* %35, %36
br i1 %37, label %38, label %39
38: ; preds = %34
store i32 1, i32* %1
br label %40
39: ; preds = %34
store i32 0, i32* %1
br label %40
40: ; preds = %39, %38, %33, %28, %23
%41 = load i32, i32* %1
ret i32 %41
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}