#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*/ bar(float *, float *, float *);
__attribute__((no)) int main1() {
  int i;
  float a[256] __attribute__((__aligned__(16)));
  float b[256] __attribute__((__aligned__(16))) = {0,  3,  6,  9,  12, 15, 18,
                                                   21, 24, 27, 30, 33, 36, 39,
                                                   42, 45, 48, 51, 54, 57};
  float c[256] __attribute__((__aligned__(16))) = {
      0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
  float *pa = a;
  float *pb = b;
  float *pc = c;
  for (i = 0; i < 256 / 2; i++) {
    pa[i + 1] = pb[i + 1] * pc[i + 1];
  }
  bar(a, b, c);
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc30,%rsp
lea    -0x810(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0xc10(%rbp),%rdi
lea    0x12af(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0x410(%rbp),%rax
mov    %rax,-0xc18(%rbp)
lea    -0x810(%rbp),%rax
mov    %rax,-0xc20(%rbp)
lea    -0xc10(%rbp),%rax
mov    %rax,-0xc28(%rbp)
movl   $0x0,-0x4(%rbp)
cmpl   $0x80,-0x4(%rbp)
jge    11e6 <main1+0xc6>
mov    -0xc20(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0xc28(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulss  (%rax,%rcx,4),%xmm0
mov    -0xc18(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    118c <main1+0x6c>
lea    -0x410(%rbp),%rdi
lea    -0x810(%rbp),%rsi
lea    -0xc10(%rbp),%rdx
call   1030 <bar@plt>
xor    %eax,%eax
add    $0xc30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main1>:
sub    $0xc08,%rsp
lea    0xed2(%rip),%rsi
lea    0x400(%rsp),%rdi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    0x12b9(%rip),%rsi
mov    %rsp,%rdi
mov    $0x400,%edx
call   1040 <memcpy@plt>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movups 0x404(%rsp,%rax,4),%xmm0
movups 0x414(%rsp,%rax,4),%xmm1
movups 0x424(%rsp,%rax,4),%xmm2
movups 0x434(%rsp,%rax,4),%xmm3
movups 0x4(%rsp,%rax,4),%xmm4
mulps  %xmm0,%xmm4
movups 0x14(%rsp,%rax,4),%xmm0
mulps  %xmm1,%xmm0
movups 0x24(%rsp,%rax,4),%xmm1
mulps  %xmm2,%xmm1
movups 0x34(%rsp,%rax,4),%xmm2
mulps  %xmm3,%xmm2
movups %xmm4,0x804(%rsp,%rax,4)
movups %xmm0,0x814(%rsp,%rax,4)
movups %xmm1,0x824(%rsp,%rax,4)
movups %xmm2,0x834(%rsp,%rax,4)
add    $0x10,%rax
cmp    $0x80,%rax
jne    1160 <main1+0x40>
lea    0x800(%rsp),%rdi
lea    0x400(%rsp),%rsi
mov    %rsp,%rdx
call   1030 <bar@plt>
xor    %eax,%eax
add    $0xc08,%rsp
ret

LLVM IR (-O0):
@__const.main1.b = <{ [20 x float], [236 x float] }> <{ [20 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, float 4.800000e+01, float 5.100000e+01, float 5.400000e+01, float 5.700000e+01], [236 x float] zeroinitializer }>
@__const.main1.c = <{ [20 x float], [236 x float] }> <{ [20 x float] [float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00, float 9.000000e+00, float 1.000000e+01, float 1.100000e+01, float 1.200000e+01, float 1.300000e+01, float 1.400000e+01, float 1.500000e+01, float 1.600000e+01, float 1.700000e+01, float 1.800000e+01, float 1.900000e+01], [236 x float] zeroinitializer }>
define i32 @main1() {
%1 = alloca i32
%2 = alloca [256 x float]
%3 = alloca [256 x float]
%4 = alloca [256 x float]
%5 = alloca float*
%6 = alloca float*
%7 = alloca float*
%8 = bitcast [256 x float]* %3 to i8*
%9 = bitcast [256 x float]* %4 to i8*
%10 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 0
store float* %10, float** %5
%11 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 0
store float* %11, float** %6
%12 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
store float* %12, float** %7
store i32 0, i32* %1
br label %13
13: ; preds = %35, %0
%14 = load i32, i32* %1
%15 = icmp slt i32 %14, 128
br i1 %15, label %16, label %38
16: ; preds = %13
%17 = load float*, float** %6
%18 = load i32, i32* %1
%19 = add nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds float, float* %17, i64 %20
%22 = load float, float* %21
%23 = load float*, float** %7
%24 = load i32, i32* %1
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, float* %23, i64 %26
%28 = load float, float* %27
%29 = fmul float %22, %28
%30 = load float*, float** %5
%31 = load i32, i32* %1
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds float, float* %30, i64 %33
store float %29, float* %34
br label %35
35: ; preds = %16
%36 = load i32, i32* %1
%37 = add nsw i32 %36, 1
store i32 %37, i32* %1
br label %13
38: ; preds = %13
%39 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 0
%40 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 0
%41 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
%42 = call i32 @bar(float* %39, float* %40, float* %41)
ret i32 0
}

LLVM IR (-O2):
@__const.main1.b = <{ [20 x float], [236 x float] }> <{ [20 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, float 4.800000e+01, float 5.100000e+01, float 5.400000e+01, float 5.700000e+01], [236 x float] zeroinitializer }>
@__const.main1.c = <{ [20 x float], [236 x float] }> <{ [20 x float] [float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00, float 9.000000e+00, float 1.000000e+01, float 1.100000e+01, float 1.200000e+01, float 1.300000e+01, float 1.400000e+01, float 1.500000e+01, float 1.600000e+01, float 1.700000e+01, float 1.800000e+01, float 1.900000e+01], [236 x float] zeroinitializer }>
define i32 @main1() {
%1 = alloca [256 x float]
%2 = alloca [256 x float]
%3 = alloca [256 x float]
%4 = bitcast [256 x float]* %1 to i8*
%5 = bitcast [256 x float]* %2 to i8*
%6 = bitcast [256 x float]* %3 to i8*
br label %7
7: ; preds = %7, %0
%8 = phi i64 [ 0, %0 ], [ %47, %7 ]
%9 = or i64 %8, 1
%10 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %9
%11 = bitcast float* %10 to <4 x float>*
%12 = load <4 x float>, <4 x float>* %11
%13 = getelementptr inbounds float, float* %10, i64 4
%14 = bitcast float* %13 to <4 x float>*
%15 = load <4 x float>, <4 x float>* %14
%16 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %9
%17 = bitcast float* %16 to <4 x float>*
%18 = load <4 x float>, <4 x float>* %17
%19 = getelementptr inbounds float, float* %16, i64 4
%20 = bitcast float* %19 to <4 x float>*
%21 = load <4 x float>, <4 x float>* %20
%22 = fmul <4 x float> %12, %18
%23 = fmul <4 x float> %15, %21
%24 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 %9
%25 = bitcast float* %24 to <4 x float>*
store <4 x float> %22, <4 x float>* %25
%26 = getelementptr inbounds float, float* %24, i64 4
%27 = bitcast float* %26 to <4 x float>*
store <4 x float> %23, <4 x float>* %27
%28 = or i64 %8, 9
%29 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %28
%30 = bitcast float* %29 to <4 x float>*
%31 = load <4 x float>, <4 x float>* %30
%32 = getelementptr inbounds float, float* %29, i64 4
%33 = bitcast float* %32 to <4 x float>*
%34 = load <4 x float>, <4 x float>* %33
%35 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %28
%36 = bitcast float* %35 to <4 x float>*
%37 = load <4 x float>, <4 x float>* %36
%38 = getelementptr inbounds float, float* %35, i64 4
%39 = bitcast float* %38 to <4 x float>*
%40 = load <4 x float>, <4 x float>* %39
%41 = fmul <4 x float> %31, %37
%42 = fmul <4 x float> %34, %40
%43 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 %28
%44 = bitcast float* %43 to <4 x float>*
store <4 x float> %41, <4 x float>* %44
%45 = getelementptr inbounds float, float* %43, i64 4
%46 = bitcast float* %45 to <4 x float>*
store <4 x float> %42, <4 x float>* %46
%47 = add nuw nsw i64 %8, 16
%48 = icmp eq i64 %47, 128
br i1 %48, label %49, label %7
49: ; preds = %7
%50 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 0
%51 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 0
%52 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 0
%53 = call i32 @bar(float* %50, float* %52, float* %51)
ret i32 0
}