#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 uint64_t;

/* Variables and functions */
uint64_t hashable_wang_64(uint64_t key) {
  key = (~key) + (key << 21);
  key = key ^ ((key >> 24) | (key << 40));
  key = (key + (key << 3)) + (key << 8);
  key = key ^ ((key >> 14) | (key << 50));
  key = (key + (key << 2)) + (key << 4);
  key = key ^ ((key >> 28) | (key << 36));
  key = key + (key << 31);
  return key;
}


x86 assembly (clang, -O0):
<hashable_wang_64>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
xor    $0xffffffff,%eax
mov    -0x4(%rbp),%ecx
shl    $0x15,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
sar    $0x18,%ecx
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edx
mov    $0x28,%ecx
shl    %cl,%edx
mov    -0x10(%rbp),%ecx
or     %edx,%ecx
xor    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x3,%ecx
add    %ecx,%eax
mov    -0x4(%rbp),%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
sar    $0xe,%ecx
mov    %ecx,-0xc(%rbp)
mov    -0x4(%rbp),%edx
mov    $0x32,%ecx
shl    %cl,%edx
mov    -0xc(%rbp),%ecx
or     %edx,%ecx
xor    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x2,%ecx
add    %ecx,%eax
mov    -0x4(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
sar    $0x1c,%ecx
mov    %ecx,-0x8(%rbp)
mov    -0x4(%rbp),%edx
mov    $0x24,%ecx
shl    %cl,%edx
mov    -0x8(%rbp),%ecx
or     %edx,%ecx
xor    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x1f,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hashable_wang_64>:
ret

LLVM IR (-O0):
define i32 @hashable_wang_64(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = xor i32 %3, -1
%5 = load i32, i32* %2
%6 = shl i32 %5, 21
%7 = add nsw i32 %4, %6
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = load i32, i32* %2
%10 = ashr i32 %9, 24
%11 = load i32, i32* %2
%12 = shl i32 %11, 40
%13 = or i32 %10, %12
%14 = xor i32 %8, %13
store i32 %14, i32* %2
%15 = load i32, i32* %2
%16 = load i32, i32* %2
%17 = shl i32 %16, 3
%18 = add nsw i32 %15, %17
%19 = load i32, i32* %2
%20 = shl i32 %19, 8
%21 = add nsw i32 %18, %20
store i32 %21, i32* %2
%22 = load i32, i32* %2
%23 = load i32, i32* %2
%24 = ashr i32 %23, 14
%25 = load i32, i32* %2
%26 = shl i32 %25, 50
%27 = or i32 %24, %26
%28 = xor i32 %22, %27
store i32 %28, i32* %2
%29 = load i32, i32* %2
%30 = load i32, i32* %2
%31 = shl i32 %30, 2
%32 = add nsw i32 %29, %31
%33 = load i32, i32* %2
%34 = shl i32 %33, 4
%35 = add nsw i32 %32, %34
store i32 %35, i32* %2
%36 = load i32, i32* %2
%37 = load i32, i32* %2
%38 = ashr i32 %37, 28
%39 = load i32, i32* %2
%40 = shl i32 %39, 36
%41 = or i32 %38, %40
%42 = xor i32 %36, %41
store i32 %42, i32* %2
%43 = load i32, i32* %2
%44 = load i32, i32* %2
%45 = shl i32 %44, 31
%46 = add nsw i32 %43, %45
store i32 %46, i32* %2
%47 = load i32, i32* %2
ret i32 %47
}

LLVM IR (-O2):
define i32 @hashable_wang_64(i32 %0) {
ret i32 poison
}