#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();
__attribute__((no)) int main1(void) {
  int i;
  float a[16];
  float b[16] = {0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45};
  for (i = 16; i > 0; i--) {
    a[16 - i] = b[i - 1];
  }
  for (i = 0; i < 16; i++) {
    if (a[i] != b[16 - 1 - i])
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
lea    -0x90(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x40,%edx
call   1040 <memcpy@plt>
movl   $0x10,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1183 <main1+0x63>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
cltq
movss  -0x90(%rbp,%rax,4),%xmm0
ff ff
mov    $0x10,%eax
sub    -0x4(%rbp),%eax
cltq
movss  %xmm0,-0x50(%rbp,%rax,4)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    114a <main1+0x2a>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    11db <main1+0xbb>
movslq -0x4(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
mov    $0xf,%eax
sub    -0x4(%rbp),%eax
cltq
ucomiss -0x90(%rbp,%rax,4),%xmm0
ff
jne    11c1 <main1+0xa1>
jp     11c1 <main1+0xa1>
jmp    11c8 <main1+0xa8>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11cd <main1+0xad>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    118a <main1+0x6a>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.main1.b = [16 x float] [float 0.000000e+00, float 3.000000e+00, float 6.000000e+00, float 9.000000e+00, float 1.200000e+01, float 1.500000e+01, float 1.800000e+01, float 2.100000e+01, float 2.400000e+01, float 2.700000e+01, float 3.000000e+01, float 3.300000e+01, float 3.600000e+01, float 3.900000e+01, float 4.200000e+01, float 4.500000e+01]
define i32 @main1() {
%1 = alloca i32
%2 = alloca [16 x float]
%3 = alloca [16 x float]
%4 = bitcast [16 x float]* %3 to i8*
store i32 16, i32* %1
br label %5
5: ; preds = %18, %0
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %21
8: ; preds = %5
%9 = load i32, i32* %1
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 %11
%13 = load float, float* %12
%14 = load i32, i32* %1
%15 = sub nsw i32 16, %14
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [16 x float], [16 x float]* %2, i64 0, i64 %16
store float %13, float* %17
br label %18
18: ; preds = %8
%19 = load i32, i32* %1
%20 = add nsw i32 %19, -1
store i32 %20, i32* %1
br label %5
21: ; preds = %5
store i32 0, i32* %1
br label %22
22: ; preds = %39, %21
%23 = load i32, i32* %1
%24 = icmp slt i32 %23, 16
br i1 %24, label %25, label %42
25: ; preds = %22
%26 = load i32, i32* %1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [16 x float], [16 x float]* %2, i64 0, i64 %27
%29 = load float, float* %28
%30 = load i32, i32* %1
%31 = sub nsw i32 15, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [16 x float], [16 x float]* %3, i64 0, i64 %32
%34 = load float, float* %33
%35 = fcmp une float %29, %34
br i1 %35, label %36, label %38
36: ; preds = %25
%37 = call i32 (...) @abort()
unreachable
38: ; preds = %25
br label %39
39: ; preds = %38
%40 = load i32, i32* %1
%41 = add nsw i32 %40, 1
store i32 %41, i32* %1
br label %22
42: ; preds = %22
ret i32 0
}

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