#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 n) {
  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 < n / 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
mov    %edi,-0x4(%rbp)
lea    -0x810(%rbp),%rdi
lea    0xec4(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0xc10(%rbp),%rdi
lea    0x12ac(%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,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc2c(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc2c(%rbp),%eax
cmp    %ecx,%eax
jge    1200 <main1+0xe0>
mov    -0xc20(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0xc28(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulss  (%rax,%rcx,4),%xmm0
mov    -0xc18(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118f <main1+0x6f>
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>:
push   %rbx
sub    $0xc00,%rsp
mov    %edi,%ebx
lea    0xecf(%rip),%rsi
lea    0x400(%rsp),%rdi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    0x12b6(%rip),%rsi
mov    %rsp,%rdi
mov    $0x400,%edx
call   1040 <memcpy@plt>
cmp    $0x2,%ebx
jl     1274 <main1+0x154>
mov    %ebx,%eax
shr    %eax
cmp    $0x10,%ebx
jae    1170 <main1+0x50>
xor    %ecx,%ecx
jmp    1250 <main1+0x130>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1297 <main1+0x177>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
mov    $0x1,%edx
nopl   0x0(%rax)
movups 0x400(%rsp,%rdx,4),%xmm0
movups 0x410(%rsp,%rdx,4),%xmm1
movups 0x420(%rsp,%rdx,4),%xmm2
movups 0x430(%rsp,%rdx,4),%xmm3
movups (%rsp,%rdx,4),%xmm4
mulps  %xmm0,%xmm4
movups 0x10(%rsp,%rdx,4),%xmm0
mulps  %xmm1,%xmm0
movups 0x20(%rsp,%rdx,4),%xmm1
mulps  %xmm2,%xmm1
movups 0x30(%rsp,%rdx,4),%xmm2
mulps  %xmm3,%xmm2
movups %xmm4,0x800(%rsp,%rdx,4)
movups %xmm0,0x810(%rsp,%rdx,4)
movups %xmm1,0x820(%rsp,%rdx,4)
movups %xmm2,0x830(%rsp,%rdx,4)
add    $0x10,%rdx
add    $0xfffffffffffffffe,%rdi
jne    11a0 <main1+0x80>
test   $0x1,%sil
je     123e <main1+0x11e>
movups 0x400(%rsp,%rdx,4),%xmm0
movups 0x410(%rsp,%rdx,4),%xmm1
movups (%rsp,%rdx,4),%xmm2
mulps  %xmm0,%xmm2
movups 0x10(%rsp,%rdx,4),%xmm0
mulps  %xmm1,%xmm0
movups %xmm2,0x800(%rsp,%rdx,4)
movups %xmm0,0x810(%rsp,%rdx,4)
cmp    %rax,%rcx
je     1274 <main1+0x154>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  0x404(%rsp,%rcx,4),%xmm0
mulss  0x4(%rsp,%rcx,4),%xmm0
movss  %xmm0,0x804(%rsp,%rcx,4)
lea    0x1(%rcx),%rdx
mov    %rdx,%rcx
cmp    %rdx,%rax
jne    1250 <main1+0x130>
lea    0x800(%rsp),%rdi
lea    0x400(%rsp),%rsi
mov    %rsp,%rdx
call   1030 <bar@plt>
xor    %eax,%eax
add    $0xc00,%rsp
pop    %rbx
ret
mov    $0x1,%edx
test   $0x1,%sil
jne    120f <main1+0xef>
jmp    123e <main1+0x11e>

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(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca [256 x float]
%5 = alloca [256 x float]
%6 = alloca [256 x float]
%7 = alloca float*
%8 = alloca float*
%9 = alloca float*
store i32 %0, i32* %2
%10 = bitcast [256 x float]* %5 to i8*
%11 = bitcast [256 x float]* %6 to i8*
%12 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
store float* %12, float** %7
%13 = getelementptr inbounds [256 x float], [256 x float]* %5, i64 0, i64 0
store float* %13, float** %8
%14 = getelementptr inbounds [256 x float], [256 x float]* %6, i64 0, i64 0
store float* %14, float** %9
store i32 0, i32* %3
br label %15
15: ; preds = %39, %1
%16 = load i32, i32* %3
%17 = load i32, i32* %2
%18 = sdiv i32 %17, 2
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %42
20: ; preds = %15
%21 = load float*, float** %8
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds float, float* %21, i64 %24
%26 = load float, float* %25
%27 = load float*, float** %9
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, float* %27, i64 %30
%32 = load float, float* %31
%33 = fmul float %26, %32
%34 = load float*, float** %7
%35 = load i32, i32* %3
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds float, float* %34, i64 %37
store float %33, float* %38
br label %39
39: ; preds = %20
%40 = load i32, i32* %3
%41 = add nsw i32 %40, 1
store i32 %41, i32* %3
br label %15
42: ; preds = %15
%43 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
%44 = getelementptr inbounds [256 x float], [256 x float]* %5, i64 0, i64 0
%45 = getelementptr inbounds [256 x float], [256 x float]* %6, i64 0, i64 0
%46 = call i32 @bar(float* %43, float* %44, float* %45)
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(i32 %0) {
%2 = alloca [256 x float]
%3 = alloca [256 x float]
%4 = alloca [256 x float]
%5 = bitcast [256 x float]* %2 to i8*
%6 = bitcast [256 x float]* %3 to i8*
%7 = bitcast [256 x float]* %4 to i8*
%8 = icmp sgt i32 %0, 1
br i1 %8, label %9, label %104
9: ; preds = %1
%10 = lshr i32 %0, 1
%11 = zext i32 %10 to i64
%12 = icmp ult i32 %0, 16
br i1 %12, label %92, label %13
13: ; preds = %9
%14 = and i64 %11, 2147483640
%15 = add nsw i64 %14, -8
%16 = lshr exact i64 %15, 3
%17 = add nuw nsw i64 %16, 1
%18 = and i64 %17, 1
%19 = icmp eq i64 %15, 0
br i1 %19, label %68, label %20
20: ; preds = %13
%21 = and i64 %17, 4611686018427387902
br label %22
22: ; preds = %22, %20
%23 = phi i64 [ 0, %20 ], [ %63, %22 ]
%24 = phi i64 [ 0, %20 ], [ %64, %22 ]
%25 = or i64 %23, 1
%26 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %25
%27 = bitcast float* %26 to <4 x float>*
%28 = load <4 x float>, <4 x float>* %27
%29 = getelementptr inbounds float, float* %26, i64 4
%30 = bitcast float* %29 to <4 x float>*
%31 = load <4 x float>, <4 x float>* %30
%32 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %25
%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 = fmul <4 x float> %28, %34
%39 = fmul <4 x float> %31, %37
%40 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %25
%41 = bitcast float* %40 to <4 x float>*
store <4 x float> %38, <4 x float>* %41
%42 = getelementptr inbounds float, float* %40, i64 4
%43 = bitcast float* %42 to <4 x float>*
store <4 x float> %39, <4 x float>* %43
%44 = or i64 %23, 9
%45 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %44
%46 = bitcast float* %45 to <4 x float>*
%47 = load <4 x float>, <4 x float>* %46
%48 = getelementptr inbounds float, float* %45, i64 4
%49 = bitcast float* %48 to <4 x float>*
%50 = load <4 x float>, <4 x float>* %49
%51 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %44
%52 = bitcast float* %51 to <4 x float>*
%53 = load <4 x float>, <4 x float>* %52
%54 = getelementptr inbounds float, float* %51, i64 4
%55 = bitcast float* %54 to <4 x float>*
%56 = load <4 x float>, <4 x float>* %55
%57 = fmul <4 x float> %47, %53
%58 = fmul <4 x float> %50, %56
%59 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %44
%60 = bitcast float* %59 to <4 x float>*
store <4 x float> %57, <4 x float>* %60
%61 = getelementptr inbounds float, float* %59, i64 4
%62 = bitcast float* %61 to <4 x float>*
store <4 x float> %58, <4 x float>* %62
%63 = add nuw i64 %23, 16
%64 = add i64 %24, 2
%65 = icmp eq i64 %64, %21
br i1 %65, label %66, label %22
66: ; preds = %22
%67 = or i64 %63, 1
br label %68
68: ; preds = %66, %13
%69 = phi i64 [ 1, %13 ], [ %67, %66 ]
%70 = icmp eq i64 %18, 0
br i1 %70, label %90, label %71
71: ; preds = %68
%72 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %69
%73 = bitcast float* %72 to <4 x float>*
%74 = load <4 x float>, <4 x float>* %73
%75 = getelementptr inbounds float, float* %72, i64 4
%76 = bitcast float* %75 to <4 x float>*
%77 = load <4 x float>, <4 x float>* %76
%78 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %69
%79 = bitcast float* %78 to <4 x float>*
%80 = load <4 x float>, <4 x float>* %79
%81 = getelementptr inbounds float, float* %78, i64 4
%82 = bitcast float* %81 to <4 x float>*
%83 = load <4 x float>, <4 x float>* %82
%84 = fmul <4 x float> %74, %80
%85 = fmul <4 x float> %77, %83
%86 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %69
%87 = bitcast float* %86 to <4 x float>*
store <4 x float> %84, <4 x float>* %87
%88 = getelementptr inbounds float, float* %86, i64 4
%89 = bitcast float* %88 to <4 x float>*
store <4 x float> %85, <4 x float>* %89
br label %90
90: ; preds = %68, %71
%91 = icmp eq i64 %14, %11
br i1 %91, label %104, label %92
92: ; preds = %9, %90
%93 = phi i64 [ 0, %9 ], [ %14, %90 ]
br label %94
94: ; preds = %92, %94
%95 = phi i64 [ %96, %94 ], [ %93, %92 ]
%96 = add nuw nsw i64 %95, 1
%97 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 %96
%98 = load float, float* %97
%99 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %96
%100 = load float, float* %99
%101 = fmul float %98, %100
%102 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 %96
store float %101, float* %102
%103 = icmp eq i64 %96, %11
br i1 %103, label %104, label %94
104: ; preds = %94, %90, %1
%105 = getelementptr inbounds [256 x float], [256 x float]* %2, i64 0, i64 0
%106 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
%107 = getelementptr inbounds [256 x float], [256 x float]* %3, i64 0, i64 0
%108 = call i32 @bar(float* %105, float* %107, float* %106)
ret i32 0
}