#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 pb[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 pc[256] __attribute__((__aligned__(16))) = {
      0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
  for (i = 0; i < 256; i++) {
    pa[i] = pb[i] * pc[i];
  }
  bar(pa, pb, pc);
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x810,%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>
movl   $0x0,-0xc(%rbp)
cmpl   $0x100,-0xc(%rbp)
jge    11a8 <main1+0x88>
movslq -0xc(%rbp),%rax
movss  -0x410(%rbp,%rax,4),%xmm0
ff ff
movslq -0xc(%rbp),%rax
mulss  -0x810(%rbp,%rax,4),%xmm0
ff ff
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    1166 <main1+0x46>
mov    -0x8(%rbp),%rdi
lea    -0x410(%rbp),%rsi
lea    -0x810(%rbp),%rdx
call   1030 <bar@plt>
xor    %eax,%eax
add    $0x810,%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>
movl   $0x0,(%rbx)
mov    $0xd,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups 0x3d0(%rsp,%rax,4),%xmm0
movups 0x3e0(%rsp,%rax,4),%xmm1
movups -0x30(%rsp,%rax,4),%xmm2
mulps  %xmm0,%xmm2
movups -0x20(%rsp,%rax,4),%xmm0
mulps  %xmm1,%xmm0
movups %xmm2,-0x30(%rbx,%rax,4)
movups %xmm0,-0x20(%rbx,%rax,4)
cmp    $0xfd,%rax
je     11d0 <main1+0xb0>
movups 0x3f0(%rsp,%rax,4),%xmm0
movups 0x400(%rsp,%rax,4),%xmm1
movups -0x10(%rsp,%rax,4),%xmm2
mulps  %xmm0,%xmm2
movups (%rsp,%rax,4),%xmm0
mulps  %xmm1,%xmm0
movups %xmm2,-0x10(%rbx,%rax,4)
movups %xmm0,(%rbx,%rax,4)
add    $0x10,%rax
jmp    1170 <main1+0x50>
movss  0x7e4(%rsp),%xmm0
mulss  0x3e4(%rsp),%xmm0
movss  %xmm0,0x3e4(%rbx)
movss  0x7e8(%rsp),%xmm0
mulss  0x3e8(%rsp),%xmm0
movss  %xmm0,0x3e8(%rbx)
movss  0x7ec(%rsp),%xmm0
mulss  0x3ec(%rsp),%xmm0
movss  %xmm0,0x3ec(%rbx)
movss  0x7f0(%rsp),%xmm0
mulss  0x3f0(%rsp),%xmm0
movss  %xmm0,0x3f0(%rbx)
movss  0x7f4(%rsp),%xmm0
mulss  0x3f4(%rsp),%xmm0
movss  %xmm0,0x3f4(%rbx)
movss  0x7f8(%rsp),%xmm0
mulss  0x3f8(%rsp),%xmm0
movss  %xmm0,0x3f8(%rbx)
movss  0x7fc(%rsp),%xmm0
mulss  0x3fc(%rsp),%xmm0
movss  %xmm0,0x3fc(%rbx)
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.pb = <{ [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.pc = <{ [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]
store float* %0, float** %2
%6 = bitcast [256 x float]* %4 to i8*
%7 = bitcast [256 x float]* %5 to i8*
store i32 0, i32* %3
br label %8
8: ; preds = %25, %1
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 256
br i1 %10, label %11, label %28
11: ; preds = %8
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %13
%15 = load float, float* %14
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [256 x float], [256 x float]* %5, i64 0, i64 %17
%19 = load float, float* %18
%20 = fmul float %15, %19
%21 = load float*, float** %2
%22 = load i32, i32* %3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds float, float* %21, i64 %23
store float %20, float* %24
br label %25
25: ; preds = %11
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %8
28: ; preds = %8
%29 = load float*, float** %2
%30 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
%31 = getelementptr inbounds [256 x float], [256 x float]* %5, i64 0, i64 0
%32 = call i32 @bar(float* %29, float* %30, float* %31)
ret i32 0
}

LLVM IR (-O2):
@__const.main1.pb = <{ [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.pc = <{ [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*
store float 0.000000e+00, float* %0
br label %6
6: ; preds = %28, %1
%7 = phi i64 [ 0, %1 ], [ %48, %28 ]
%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 %8
%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 = icmp eq i64 %7, 240
br i1 %27, label %49, label %28
28: ; preds = %6
%29 = or i64 %7, 9
%30 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %29
%31 = bitcast float* %30 to <4 x float>*
%32 = load <4 x float>, <4 x float>* %31
%33 = getelementptr inbounds float, float* %30, i64 4
%34 = bitcast float* %33 to <4 x float>*
%35 = load <4 x float>, <4 x float>* %34
%36 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %29
%37 = bitcast float* %36 to <4 x float>*
%38 = load <4 x float>, <4 x float>* %37
%39 = getelementptr inbounds float, float* %36, i64 4
%40 = bitcast float* %39 to <4 x float>*
%41 = load <4 x float>, <4 x float>* %40
%42 = fmul <4 x float> %32, %38
%43 = fmul <4 x float> %35, %41
%44 = getelementptr inbounds float, float* %0, i64 %29
%45 = bitcast float* %44 to <4 x float>*
store <4 x float> %42, <4 x float>* %45
%46 = getelementptr inbounds float, float* %44, i64 4
%47 = bitcast float* %46 to <4 x float>*
store <4 x float> %43, <4 x float>* %47
%48 = add nuw nsw i64 %7, 16
br label %6
49: ; preds = %6
%50 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 249
%51 = load float, float* %50
%52 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 249
%53 = load float, float* %52
%54 = fmul float %51, %53
%55 = getelementptr inbounds float, float* %0, i64 249
store float %54, float* %55
%56 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 250
%57 = load float, float* %56
%58 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 250
%59 = load float, float* %58
%60 = fmul float %57, %59
%61 = getelementptr inbounds float, float* %0, i64 250
store float %60, float* %61
%62 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 251
%63 = load float, float* %62
%64 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 251
%65 = load float, float* %64
%66 = fmul float %63, %65
%67 = getelementptr inbounds float, float* %0, i64 251
store float %66, float* %67
%68 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 252
%69 = load float, float* %68
%70 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 252
%71 = load float, float* %70
%72 = fmul float %69, %71
%73 = getelementptr inbounds float, float* %0, i64 252
store float %72, float* %73
%74 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 253
%75 = load float, float* %74
%76 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 253
%77 = load float, float* %76
%78 = fmul float %75, %77
%79 = getelementptr inbounds float, float* %0, i64 253
store float %78, float* %79
%80 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 254
%81 = load float, float* %80
%82 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 254
%83 = load float, float* %82
%84 = fmul float %81, %83
%85 = getelementptr inbounds float, float* %0, i64 254
store float %84, float* %85
%86 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 255
%87 = load float, float* %86
%88 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 255
%89 = load float, float* %88
%90 = fmul float %87, %89
%91 = getelementptr inbounds float, float* %0, i64 255
store float %90, float* %91
%92 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 0
%93 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 0
%94 = call i32 @bar(float* %0, float* %92, float* %93)
ret i32 0
}