#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*/ abort();
int main() {
  unsigned int A[4] = {0x08000000, 0x08000001, 0xff0000ff, 0xf0000001};
  unsigned int Answer[4] = {0x01000000, 0x01000000, 0x01fe0001f, 0x1e000000};
  unsigned int B[4];
  int i, j;
  for (i = 0; i < 4; i++)
    B[i] = A[i] >> 3;
  for (i = 0; i < 4; i++)
    if (B[i] != Answer[i])
      abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed4(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed1(%rip),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x4,-0x44(%rbp)
jge    117d <main+0x6d>
movslq -0x44(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%ecx
shr    $0x3,%ecx
movslq -0x44(%rbp),%rax
mov    %ecx,-0x40(%rbp,%rax,4)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1152 <main+0x42>
movl   $0x0,-0x44(%rbp)
cmpl   $0x4,-0x44(%rbp)
jge    11be <main+0xae>
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
movslq -0x44(%rbp),%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
je     11ab <main+0x9b>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11b0 <main+0xa0>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1184 <main+0x74>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.main.A = [4 x i32] [i32 134217728, i32 134217729, i32 -16776961, i32 -268435455]
@__const.main.Answer = [4 x i32] [i32 16777216, i32 16777216, i32 534773791, i32 503316480]
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i32]
%3 = alloca [4 x i32]
%4 = alloca [4 x i32]
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = bitcast [4 x i32]* %2 to i8*
%8 = bitcast [4 x i32]* %3 to i8*
store i32 0, i32* %5
br label %9
9: ; preds = %21, %0
%10 = load i32, i32* %5
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %24
12: ; preds = %9
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 %14
%16 = load i32, i32* %15
%17 = lshr i32 %16, 3
%18 = load i32, i32* %5
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 %19
store i32 %17, i32* %20
br label %21
21: ; preds = %12
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 1
store i32 %23, i32* %5
br label %9
24: ; preds = %9
store i32 0, i32* %5
br label %25
25: ; preds = %41, %24
%26 = load i32, i32* %5
%27 = icmp slt i32 %26, 4
br i1 %27, label %28, label %44
28: ; preds = %25
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = load i32, i32* %5
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = icmp ne i32 %32, %36
br i1 %37, label %38, label %40
38: ; preds = %28
%39 = call i32 (...) @abort()
unreachable
40: ; preds = %28
br label %41
41: ; preds = %40
%42 = load i32, i32* %5
%43 = add nsw i32 %42, 1
store i32 %43, i32* %5
br label %25
44: ; preds = %25
ret i32 0
}

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