#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*/ assert(int);
int four();
int /*<<< orphan*/ inc(int *);
int /*<<< orphan*/ test1(int *, int *);
int main() {
  int x, y, z, uk;
  x = y = z;
  assert(x == y);
  assert(z == y);
  assert(x == z);
  test1(&x, &x);
  assert(z == y);
  x = y = z;
  test1(&x, &y);
  assert(x == y);
  x = y = z;
  inc(&x);
  assert(x == y);
  assert(z == y);
  y = four();
  assert(z == y);
  assert(x == y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    -0x8(%rbp),%rsi
mov    %rsi,%rdi
call   1030 <test1@plt>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    %eax,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   1030 <test1@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    %eax,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
call   1060 <inc@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x0,%al
call   1050 <four@plt>
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1030 <test1@plt>
xor    %edi,%edi
call   1040 <assert@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <test1@plt>
mov    0xc(%rsp),%eax
xor    %edi,%edi
cmp    0x8(%rsp),%eax
sete   %dil
call   1040 <assert@plt>
mov    %rbx,%rdi
call   1060 <inc@plt>
mov    0xc(%rsp),%eax
xor    %edi,%edi
cmp    0x8(%rsp),%eax
sete   %dil
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
xor    %eax,%eax
call   1050 <four@plt>
mov    %eax,0x8(%rsp)
xor    %edi,%edi
call   1040 <assert@plt>
mov    0xc(%rsp),%eax
xor    %edi,%edi
cmp    0x8(%rsp),%eax
sete   %dil
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = load i32, i32* %4
store i32 %6, i32* %3
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = icmp eq i32 %7, %8
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 %10)
%12 = load i32, i32* %4
%13 = load i32, i32* %3
%14 = icmp eq i32 %12, %13
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = load i32, i32* %2
%18 = load i32, i32* %4
%19 = icmp eq i32 %17, %18
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i32 @test1(i32* %2, i32* %2)
%23 = load i32, i32* %4
%24 = load i32, i32* %3
%25 = icmp eq i32 %23, %24
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = load i32, i32* %4
store i32 %28, i32* %3
store i32 %28, i32* %2
%29 = call i32 @test1(i32* %2, i32* %3)
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = icmp eq i32 %30, %31
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = load i32, i32* %4
store i32 %35, i32* %3
store i32 %35, i32* %2
%36 = call i32 @inc(i32* %2)
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = icmp eq i32 %37, %38
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
%42 = load i32, i32* %4
%43 = load i32, i32* %3
%44 = icmp eq i32 %42, %43
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = call i32 (...) @four()
store i32 %47, i32* %3
%48 = load i32, i32* %4
%49 = load i32, i32* %3
%50 = icmp eq i32 %48, %49
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = load i32, i32* %2
%54 = load i32, i32* %3
%55 = icmp eq i32 %53, %54
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @assert(i32 0)
%6 = tail call i32 @assert(i32 0)
%7 = tail call i32 @assert(i32 0)
%8 = call i32 @test1(i32* %1, i32* %1)
%9 = call i32 @assert(i32 0)
%10 = call i32 @test1(i32* %1, i32* %2)
%11 = load i32, i32* %1
%12 = load i32, i32* %2
%13 = icmp eq i32 %11, %12
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 %14)
%16 = call i32 @inc(i32* %1)
%17 = load i32, i32* %1
%18 = load i32, i32* %2
%19 = icmp eq i32 %17, %18
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i32 @assert(i32 0)
%23 = call i32 (...) @four()
store i32 %23, i32* %2
%24 = call i32 @assert(i32 0)
%25 = load i32, i32* %1
%26 = load i32, i32* %2
%27 = icmp eq i32 %25, %26
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
ret i32 0
}