#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*/ histograma(int *);
int main() {
  int A, AR[27];
  for (A = 0; A < 25; A++) {
    AR[A] = 750;
  }
  histograma(AR);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x19,-0x8(%rbp)
jge    114d <main+0x3d>
movslq -0x8(%rbp),%rax
movl   $0x2ee,-0x80(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1129 <main+0x19>
lea    -0x80(%rbp),%rdi
call   1030 <histograma@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x78,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movl   $0x2ee,0x60(%rsp)
mov    %rsp,%rdi
call   1030 <histograma@plt>
xor    %eax,%eax
add    $0x78,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [27 x i32]
store i32 0, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %11, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 25
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = load i32, i32* %2
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [27 x i32], [27 x i32]* %3, i64 0, i64 %9
store i32 750, i32* %10
br label %11
11: ; preds = %7
%12 = load i32, i32* %2
%13 = add nsw i32 %12, 1
store i32 %13, i32* %2
br label %4
14: ; preds = %4
%15 = getelementptr inbounds [27 x i32], [27 x i32]* %3, i64 0, i64 0
%16 = call i32 @histograma(i32* %15)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [27 x i32]
%2 = bitcast [27 x i32]* %1 to i8*
%3 = getelementptr inbounds [27 x i32], [27 x i32]* %1, i64 0, i64 0
%4 = bitcast [27 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 750, i32 750, i32 750, i32 750>, <4 x i32>* %4
%5 = getelementptr inbounds [27 x i32], [27 x i32]* %1, i64 0, i64 4
%6 = bitcast i32* %5 to <4 x i32>*
store <4 x i32> <i32 750, i32 750, i32 750, i32 750>, <4 x i32>* %6
%7 = getelementptr inbounds [27 x i32], [27 x i32]* %1, i64 0, i64 8
%8 = bitcast i32* %7 to <4 x i32>*
store <4 x i32> <i32 750, i32 750, i32 750, i32 750>, <4 x i32>* %8
%9 = getelementptr inbounds [27 x i32], [27 x i32]* %1, i64 0, i64 12
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 750, i32 750, i32 750, i32 750>, <4 x i32>* %10
%11 = getelementptr inbounds [27 x i32], [27 x i32]* %1, i64 0, i64 16
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 750, i32 750, i32 750, i32 750>, <4 x i32>* %12
%13 = getelementptr inbounds [27 x i32], [27 x i32]* %1, i64 0, i64 20
%14 = bitcast i32* %13 to <4 x i32>*
store <4 x i32> <i32 750, i32 750, i32 750, i32 750>, <4 x i32>* %14
%15 = getelementptr inbounds [27 x i32], [27 x i32]* %1, i64 0, i64 24
store i32 750, i32* %15
%16 = call i32 @histograma(i32* %3)
ret i32 0
}