#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*/ fprintf(int /*<<< orphan*/, char *, int, int, int, int);
int /*<<< orphan*/ stdout;
main() {
  int handle = 445466625;
  int index, addr, cluster, sign;
  index = handle & 0x7f;
  addr = (handle >> 7) & 0x3fffff;
  cluster = (handle >> 29) & 0x3;
  sign = (handle >> 31);
  fprintf(stdout, "[SEQ]\t sign=%d \t cluster=%d \t addr=%d \t index=%d\n",
          sign, cluster, addr, index);
  addr = (handle >> 7) & 0x3fffff;
  cluster = (handle >> 29) & 0x3;
  fprintf(stdout, "[RND]\t sign=%d \t cluster=%d \t addr=%d \t index=%d\n",
          sign, cluster, addr, index);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x1a8d4801,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x7f,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x7,%eax
and    $0x3fffff,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1d,%eax
and    $0x3,%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1f,%eax
mov    %eax,-0x14(%rbp)
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    -0x8(%rbp),%r9d
lea    0xe97(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
sar    $0x7,%eax
and    $0x3fffff,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1d,%eax
and    $0x3,%eax
mov    %eax,-0x10(%rbp)
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    -0x8(%rbp),%r9d
lea    0xe8c(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x351a90,%r8d
mov    $0x1,%r9d
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef3(%rip),%rsi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x351a90,%r8d
mov    $0x1,%r9d
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [50 x i8] c"[SEQ]\09 sign=%d \09 cluster=%d \09 addr=%d \09 index=%d\0A\00"
@.str.1 = [50 x i8] c"[RND]\09 sign=%d \09 cluster=%d \09 addr=%d \09 index=%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 445466625, i32* %1
%6 = load i32, i32* %1
%7 = and i32 %6, 127
store i32 %7, i32* %2
%8 = load i32, i32* %1
%9 = ashr i32 %8, 7
%10 = and i32 %9, 4194303
store i32 %10, i32* %3
%11 = load i32, i32* %1
%12 = ashr i32 %11, 29
%13 = and i32 %12, 3
store i32 %13, i32* %4
%14 = load i32, i32* %1
%15 = ashr i32 %14, 31
store i32 %15, i32* %5
%16 = load i32, i32* @stdout
%17 = load i32, i32* %5
%18 = load i32, i32* %4
%19 = load i32, i32* %3
%20 = load i32, i32* %2
%21 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i32 %17, i32 %18, i32 %19, i32 %20)
%22 = load i32, i32* %1
%23 = ashr i32 %22, 7
%24 = and i32 %23, 4194303
store i32 %24, i32* %3
%25 = load i32, i32* %1
%26 = ashr i32 %25, 29
%27 = and i32 %26, 3
store i32 %27, i32* %4
%28 = load i32, i32* @stdout
%29 = load i32, i32* %5
%30 = load i32, i32* %4
%31 = load i32, i32* %3
%32 = load i32, i32* %2
%33 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0), i32 %29, i32 %30, i32 %31, i32 %32)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [50 x i8] c"[SEQ]\09 sign=%d \09 cluster=%d \09 addr=%d \09 index=%d\0A\00"
@.str.1 = [50 x i8] c"[RND]\09 sign=%d \09 cluster=%d \09 addr=%d \09 index=%d\0A\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i32 0, i32 0, i32 3480208, i32 1)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 0, i32 3480208, i32 1)
ret i32 0
}