#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*/ printf(char *, float);
int main(void) {
  int vector[3];
  float vector_float[100];
  vector_float[56] = 3.145123131;
  vector[0] = 124;
  vector[1] = 256;
  vector[2] = 314;
  vector[3] = 41;
  printf("Vector en la posicion 0: %d\n", vector[0]);
  printf("Vector en la posicion 1: %d\n", vector[1]);
  printf("Vector en la posicion 2: %d\n", vector[2]);
  printf("Vector en la posicion 3: %d\n", vector[3]);
  printf("Vector float  en la posicion 56: %f\n", vector_float[56]);
  printf("Vector float  en la posicion 1: %f\n", vector_float[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed6(%rip),%xmm0
movss  %xmm0,-0xc0(%rbp)
ff
movl   $0x7c,-0x10(%rbp)
movl   $0x100,-0xc(%rbp)
movl   $0x13a,-0x8(%rbp)
movl   $0x29,-0x4(%rbp)
cvtsi2ssl -0x10(%rbp),%xmm0
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0xc(%rbp),%xmm0
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0x8(%rbp),%xmm0
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
movss  -0xc0(%rbp),%xmm0
ff
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
movss  -0x19c(%rbp),%xmm0
ff
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
movss  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
movss  0xed0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
movss  0xec0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
movss  0xea4(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"Vector en la posicion 0: %d\0A\00"
@.str.1 = [29 x i8] c"Vector en la posicion 1: %d\0A\00"
@.str.2 = [29 x i8] c"Vector en la posicion 2: %d\0A\00"
@.str.3 = [29 x i8] c"Vector en la posicion 3: %d\0A\00"
@.str.4 = [37 x i8] c"Vector float en la posicion 56: %f\0A\00"
@.str.5 = [36 x i8] c"Vector float en la posicion 1: %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i32]
%3 = alloca [100 x float]
store i32 0, i32* %1
%4 = getelementptr inbounds [100 x float], [100 x float]* %3, i64 0, i64 56
store float 0x4009293660000000, float* %4
%5 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
store i32 124, i32* %5
%6 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 1
store i32 256, i32* %6
%7 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
store i32 314, i32* %7
%8 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 3
store i32 41, i32* %8
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%10 = load i32, i32* %9
%11 = sitofp i32 %10 to float
%12 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), float %11)
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 1
%14 = load i32, i32* %13
%15 = sitofp i32 %14 to float
%16 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), float %15)
%17 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
%18 = load i32, i32* %17
%19 = sitofp i32 %18 to float
%20 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), float %19)
%21 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 3
%22 = load i32, i32* %21
%23 = sitofp i32 %22 to float
%24 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), float %23)
%25 = getelementptr inbounds [100 x float], [100 x float]* %3, i64 0, i64 56
%26 = load float, float* %25
%27 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), float %26)
%28 = getelementptr inbounds [100 x float], [100 x float]* %3, i64 0, i64 1
%29 = load float, float* %28
%30 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), float %29)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"Vector en la posicion 0: %d\0A\00"
@.str.1 = [29 x i8] c"Vector en la posicion 1: %d\0A\00"
@.str.2 = [29 x i8] c"Vector en la posicion 2: %d\0A\00"
@.str.3 = [29 x i8] c"Vector en la posicion 3: %d\0A\00"
@.str.4 = [37 x i8] c"Vector float en la posicion 56: %f\0A\00"
@.str.5 = [36 x i8] c"Vector float en la posicion 1: %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), float 1.240000e+02)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), float 2.560000e+02)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), float 3.140000e+02)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), float poison)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), float 0x4009293660000000)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), float undef)
ret i32 0
}