#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 */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  volatile uint32_t a = 0xffffffff, c = 0xffffffef, d = 0xfeffffef,
                    e = 0xffffffe7, f = 0xffffffef, g = 0xfeffffff;
  uint32_t b = a ^ 0xffffffff ^ c ^ d ^ e ^ f;
  uint32_t tmp = c ^ g;
  uint32_t tmp2 = b ^ tmp;
  printf("%u\n", tmp2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
movl   $0xffffffef,-0xc(%rbp)
movl   $0xfeffffef,-0x10(%rbp)
movl   $0xffffffe7,-0x14(%rbp)
movl   $0xffffffef,-0x18(%rbp)
movl   $0xfeffffff,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
xor    $0xffffffff,%eax
mov    -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%ecx
xor    %ecx,%eax
mov    -0x14(%rbp),%ecx
xor    %ecx,%eax
mov    -0x18(%rbp),%ecx
xor    %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x1c(%rbp),%ecx
xor    %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
xor    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movl   $0xffffffff,0x14(%rsp)
ff
movl   $0xffffffef,(%rsp)
movl   $0xfeffffef,0x10(%rsp)
fe
movl   $0xffffffe7,0xc(%rsp)
ff
movl   $0xffffffef,0x8(%rsp)
ff
movl   $0xfeffffff,0x4(%rsp)
fe
mov    0x14(%rsp),%esi
xor    (%rsp),%esi
xor    0x10(%rsp),%esi
xor    0xc(%rsp),%esi
xor    0x8(%rsp),%esi
xor    (%rsp),%esi
xor    0x4(%rsp),%esi
not    %esi
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
store volatile i32 -1, i32* %2
store volatile i32 -17, i32* %3
store volatile i32 -16777233, i32* %4
store volatile i32 -25, i32* %5
store volatile i32 -17, i32* %6
store volatile i32 -16777217, i32* %7
%11 = load volatile i32, i32* %2
%12 = xor i32 %11, -1
%13 = load volatile i32, i32* %3
%14 = xor i32 %12, %13
%15 = load volatile i32, i32* %4
%16 = xor i32 %14, %15
%17 = load volatile i32, i32* %5
%18 = xor i32 %16, %17
%19 = load volatile i32, i32* %6
%20 = xor i32 %18, %19
store i32 %20, i32* %8
%21 = load volatile i32, i32* %3
%22 = load volatile i32, i32* %7
%23 = xor i32 %21, %22
store i32 %23, i32* %9
%24 = load i32, i32* %8
%25 = load i32, i32* %9
%26 = xor i32 %24, %25
store i32 %26, i32* %10
%27 = load i32, i32* %10
%28 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %27)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
store volatile i32 -1, i32* %1
%8 = bitcast i32* %2 to i8*
store volatile i32 -17, i32* %2
%9 = bitcast i32* %3 to i8*
store volatile i32 -16777233, i32* %3
%10 = bitcast i32* %4 to i8*
store volatile i32 -25, i32* %4
%11 = bitcast i32* %5 to i8*
store volatile i32 -17, i32* %5
%12 = bitcast i32* %6 to i8*
store volatile i32 -16777217, i32* %6
%13 = load volatile i32, i32* %1
%14 = load volatile i32, i32* %2
%15 = load volatile i32, i32* %3
%16 = load volatile i32, i32* %4
%17 = load volatile i32, i32* %5
%18 = load volatile i32, i32* %2
%19 = load volatile i32, i32* %6
%20 = xor i32 %13, %14
%21 = xor i32 %20, %15
%22 = xor i32 %21, %16
%23 = xor i32 %22, %17
%24 = xor i32 %23, %18
%25 = xor i32 %24, %19
%26 = xor i32 %25, -1
%27 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %26)
ret i32 0
}