#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(float *pa) {
  int i;
  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 *pb = b;
  float *pc = c;
  for (i = 0; i < 256 / 2; i++) {
    pa[i] = pb[i + 1] * pc[i + 1];
  }
  bar(pa, pb, pc);
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x820,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x410(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0x810(%rbp),%rdi
lea    0x12ab(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0x410(%rbp),%rax
mov    %rax,-0x818(%rbp)
lea    -0x810(%rbp),%rax
mov    %rax,-0x820(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x80,-0xc(%rbp)
jge    11d4 <main1+0xb4>
mov    -0x818(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x820(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulss  (%rax,%rcx,4),%xmm0
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1182 <main1+0x62>
mov    -0x8(%rbp),%rdi
mov    -0x818(%rbp),%rsi
mov    -0x820(%rbp),%rdx
call   1030 <bar@plt>
xor    %eax,%eax
add    $0x820,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main1>:
push   %rbx
sub    $0x800,%rsp
mov    %rdi,%rbx
lea    0xece(%rip),%rsi
lea    0x400(%rsp),%rdi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    0x12b5(%rip),%rsi
mov    %rsp,%rdi
mov    $0x400,%edx
call   1040 <memcpy@plt>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movups 0x404(%rsp,%rax,4),%xmm0
movups 0x414(%rsp,%rax,4),%xmm1
movups 0x4(%rsp,%rax,4),%xmm2
mulps  %xmm0,%xmm2
movups 0x14(%rsp,%rax,4),%xmm0
mulps  %xmm1,%xmm0
movups %xmm2,(%rbx,%rax,4)
movups %xmm0,0x10(%rbx,%rax,4)
movups 0x424(%rsp,%rax,4),%xmm0
movups 0x434(%rsp,%rax,4),%xmm1
movups 0x24(%rsp,%rax,4),%xmm2
mulps  %xmm0,%xmm2
movups 0x34(%rsp,%rax,4),%xmm0
mulps  %xmm1,%xmm0
movups %xmm2,0x20(%rbx,%rax,4)
movups %xmm0,0x30(%rbx,%rax,4)
add    $0x10,%rax
cmp    $0x80,%rax
jne    1160 <main1+0x40>
lea    0x400(%rsp),%rsi
mov    %rsp,%rdx
mov    %rbx,%rdi
call   1030 <bar@plt>
xor    %eax,%eax
add    $0x800,%rsp
pop    %rbx
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(float* %0) {
%2 = alloca float*
%3 = alloca i32
%4 = alloca [256 x float]
%5 = alloca [256 x float]
%6 = alloca float*
%7 = alloca float*
store float* %0, float** %2
%8 = bitcast [256 x float]* %4 to i8*
%9 = bitcast [256 x float]* %5 to i8*
%10 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
store float* %10, float** %6
%11 = getelementptr inbounds [256 x float], [256 x float]* %5, i64 0, i64 0
store float* %11, float** %7
store i32 0, i32* %3
br label %12
12: ; preds = %33, %1
%13 = load i32, i32* %3
%14 = icmp slt i32 %13, 128
br i1 %14, label %15, label %36
15: ; preds = %12
%16 = load float*, float** %6
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds float, float* %16, i64 %19
%21 = load float, float* %20
%22 = load float*, float** %7
%23 = load i32, i32* %3
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds float, float* %22, i64 %25
%27 = load float, float* %26
%28 = fmul float %21, %27
%29 = load float*, float** %2
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds float, float* %29, i64 %31
store float %28, float* %32
br label %33
33: ; preds = %15
%34 = load i32, i32* %3
%35 = add nsw i32 %34, 1
store i32 %35, i32* %3
br label %12
36: ; preds = %12
%37 = load float*, float** %2
%38 = load float*, float** %6
%39 = load float*, float** %7
%40 = call i32 @bar(float* %37, float* %38, float* %39)
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(float* %0) {
%2 = alloca [256 x float]
%3 = alloca [256 x float]
%4 = bitcast [256 x float]* %2 to i8*
%5 = bitcast [256 x float]* %3 to i8*
br label %6
6: ; preds = %6, %1
%7 = phi i64 [ 0, %1 ], [ %47, %6 ]
%8 = or i64 %7, 1
%9 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %8
%10 = bitcast float* %9 to <4 x float>*
%11 = load <4 x float>, <4 x float>* %10
%12 = getelementptr inbounds float, float* %9, i64 4
%13 = bitcast float* %12 to <4 x float>*
%14 = load <4 x float>, <4 x float>* %13
%15 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %8
%16 = bitcast float* %15 to <4 x float>*
%17 = load <4 x float>, <4 x float>* %16
%18 = getelementptr inbounds float, float* %15, i64 4
%19 = bitcast float* %18 to <4 x float>*
%20 = load <4 x float>, <4 x float>* %19
%21 = fmul <4 x float> %11, %17
%22 = fmul <4 x float> %14, %20
%23 = getelementptr inbounds float, float* %0, i64 %7
%24 = bitcast float* %23 to <4 x float>*
store <4 x float> %21, <4 x float>* %24
%25 = getelementptr inbounds float, float* %23, i64 4
%26 = bitcast float* %25 to <4 x float>*
store <4 x float> %22, <4 x float>* %26
%27 = or i64 %7, 8
%28 = or i64 %7, 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 float, float* %0, i64 %27
%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 %7, 16
%48 = icmp eq i64 %47, 128
br i1 %48, label %49, label %6
49: ; preds = %6
%50 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 0
%51 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 0
%52 = call i32 @bar(float* %0, float* %51, float* %50)
ret i32 0
}