#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; i++) {
    pa[i] = pb[i] * pc[i];
  }
  bar(pa, pb, pc);
  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   $0x100,-0x4(%rbp)
jge    11d7 <main1+0xb7>
mov    -0xc20(%rbp),%rax
movslq -0x4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0xc28(%rbp),%rax
movslq -0x4(%rbp),%rcx
mulss  (%rax,%rcx,4),%xmm0
mov    -0xc18(%rbp),%rax
movslq -0x4(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    118c <main1+0x6c>
mov    -0xc18(%rbp),%rdi
mov    -0xc20(%rbp),%rsi
mov    -0xc28(%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>
movl   $0x0,0x800(%rsp)
mov    $0xd,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
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,0x7d0(%rsp,%rax,4)
movups %xmm0,0x7e0(%rsp,%rax,4)
cmp    $0xfd,%rax
je     11dd <main1+0xbd>
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,0x7f0(%rsp,%rax,4)
movups %xmm0,0x800(%rsp,%rax,4)
add    $0x10,%rax
jmp    1170 <main1+0x50>
movss  0x7e4(%rsp),%xmm0
movss  0x7e8(%rsp),%xmm1
mulss  0x3e4(%rsp),%xmm0
movss  %xmm0,0xbe4(%rsp)
mulss  0x3e8(%rsp),%xmm1
movss  %xmm1,0xbe8(%rsp)
movss  0x7ec(%rsp),%xmm0
mulss  0x3ec(%rsp),%xmm0
movss  %xmm0,0xbec(%rsp)
movss  0x7f0(%rsp),%xmm0
mulss  0x3f0(%rsp),%xmm0
movss  %xmm0,0xbf0(%rsp)
movss  0x7f4(%rsp),%xmm0
mulss  0x3f4(%rsp),%xmm0
movss  %xmm0,0xbf4(%rsp)
movss  0x7f8(%rsp),%xmm0
mulss  0x3f8(%rsp),%xmm0
movss  %xmm0,0xbf8(%rsp)
movss  0x7fc(%rsp),%xmm0
mulss  0x3fc(%rsp),%xmm0
movss  %xmm0,0xbfc(%rsp)
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 = %32, %0
%14 = load i32, i32* %1
%15 = icmp slt i32 %14, 256
br i1 %15, label %16, label %35
16: ; preds = %13
%17 = load float*, float** %6
%18 = load i32, i32* %1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds float, float* %17, i64 %19
%21 = load float, float* %20
%22 = load float*, float** %7
%23 = load i32, i32* %1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds float, float* %22, i64 %24
%26 = load float, float* %25
%27 = fmul float %21, %26
%28 = load float*, float** %5
%29 = load i32, i32* %1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, float* %28, i64 %30
store float %27, float* %31
br label %32
32: ; preds = %16
%33 = load i32, i32* %1
%34 = add nsw i32 %33, 1
store i32 %34, i32* %1
br label %13
35: ; preds = %13
%36 = load float*, float** %5
%37 = load float*, float** %6
%38 = load float*, float** %7
%39 = call i32 @bar(float* %36, float* %37, float* %38)
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*
%7 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 0
store float 0.000000e+00, float* %7
br label %8
8: ; preds = %30, %0
%9 = phi i64 [ 0, %0 ], [ %50, %30 ]
%10 = or i64 %9, 1
%11 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %10
%12 = bitcast float* %11 to <4 x float>*
%13 = load <4 x float>, <4 x float>* %12
%14 = getelementptr inbounds float, float* %11, i64 4
%15 = bitcast float* %14 to <4 x float>*
%16 = load <4 x float>, <4 x float>* %15
%17 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %10
%18 = bitcast float* %17 to <4 x float>*
%19 = load <4 x float>, <4 x float>* %18
%20 = getelementptr inbounds float, float* %17, i64 4
%21 = bitcast float* %20 to <4 x float>*
%22 = load <4 x float>, <4 x float>* %21
%23 = fmul <4 x float> %13, %19
%24 = fmul <4 x float> %16, %22
%25 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 %10
%26 = bitcast float* %25 to <4 x float>*
store <4 x float> %23, <4 x float>* %26
%27 = getelementptr inbounds float, float* %25, i64 4
%28 = bitcast float* %27 to <4 x float>*
store <4 x float> %24, <4 x float>* %28
%29 = icmp eq i64 %9, 240
br i1 %29, label %51, label %30
30: ; preds = %8
%31 = or i64 %9, 9
%32 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %31
%33 = bitcast float* %32 to <4 x float>*
%34 = load <4 x float>, <4 x float>* %33
%35 = getelementptr inbounds float, float* %32, i64 4
%36 = bitcast float* %35 to <4 x float>*
%37 = load <4 x float>, <4 x float>* %36
%38 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %31
%39 = bitcast float* %38 to <4 x float>*
%40 = load <4 x float>, <4 x float>* %39
%41 = getelementptr inbounds float, float* %38, i64 4
%42 = bitcast float* %41 to <4 x float>*
%43 = load <4 x float>, <4 x float>* %42
%44 = fmul <4 x float> %34, %40
%45 = fmul <4 x float> %37, %43
%46 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 %31
%47 = bitcast float* %46 to <4 x float>*
store <4 x float> %44, <4 x float>* %47
%48 = getelementptr inbounds float, float* %46, i64 4
%49 = bitcast float* %48 to <4 x float>*
store <4 x float> %45, <4 x float>* %49
%50 = add nuw nsw i64 %9, 16
br label %8
51: ; preds = %8
%52 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 249
%53 = load float, float* %52
%54 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 249
%55 = load float, float* %54
%56 = fmul float %53, %55
%57 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 249
store float %56, float* %57
%58 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 250
%59 = load float, float* %58
%60 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 250
%61 = load float, float* %60
%62 = fmul float %59, %61
%63 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 250
store float %62, float* %63
%64 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 251
%65 = load float, float* %64
%66 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 251
%67 = load float, float* %66
%68 = fmul float %65, %67
%69 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 251
store float %68, float* %69
%70 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 252
%71 = load float, float* %70
%72 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 252
%73 = load float, float* %72
%74 = fmul float %71, %73
%75 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 252
store float %74, float* %75
%76 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 253
%77 = load float, float* %76
%78 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 253
%79 = load float, float* %78
%80 = fmul float %77, %79
%81 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 253
store float %80, float* %81
%82 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 254
%83 = load float, float* %82
%84 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 254
%85 = load float, float* %84
%86 = fmul float %83, %85
%87 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 254
store float %86, float* %87
%88 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 255
%89 = load float, float* %88
%90 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 255
%91 = load float, float* %90
%92 = fmul float %89, %91
%93 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 255
store float %92, float* %93
%94 = getelementptr inbounds [256 x float], [256 x float]* %1, i64 0, i64 0
%95 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 0
%96 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 0
%97 = call i32 @bar(float* %94, float* %96, float* %95)
ret i32 0
}