#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, 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 < n / 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    $0x840,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x420(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0x820(%rbp),%rdi
lea    0x12a8(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0x420(%rbp),%rax
mov    %rax,-0x828(%rbp)
lea    -0x820(%rbp),%rax
mov    %rax,-0x830(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x834(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x834(%rbp),%eax
cmp    %ecx,%eax
jge    11ee <main1+0xce>
mov    -0x828(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x830(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulss  (%rax,%rcx,4),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1185 <main1+0x65>
mov    -0x10(%rbp),%rdi
mov    -0x828(%rbp),%rsi
mov    -0x830(%rbp),%rdx
call   1030 <bar@plt>
xor    %eax,%eax
add    $0x840,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main1>:
push   %rbp
push   %rbx
sub    $0x808,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xecb(%rip),%rsi
lea    0x400(%rsp),%rdi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    0x12b2(%rip),%rsi
mov    %rsp,%rdi
mov    $0x400,%edx
call   1040 <memcpy@plt>
cmp    $0x2,%ebp
jl     1260 <main1+0x140>
mov    %ebp,%eax
shr    %eax
cmp    $0x10,%ebp
jae    1174 <main1+0x54>
xor    %ecx,%ecx
jmp    1240 <main1+0x120>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     127f <main1+0x15f>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movups 0x404(%rsp,%rdx,4),%xmm0
movups 0x414(%rsp,%rdx,4),%xmm1
movups 0x4(%rsp,%rdx,4),%xmm2
mulps  %xmm0,%xmm2
movups 0x14(%rsp,%rdx,4),%xmm0
mulps  %xmm1,%xmm0
movups %xmm2,(%rbx,%rdx,4)
movups %xmm0,0x10(%rbx,%rdx,4)
movups 0x424(%rsp,%rdx,4),%xmm0
movups 0x434(%rsp,%rdx,4),%xmm1
movups 0x24(%rsp,%rdx,4),%xmm2
mulps  %xmm0,%xmm2
movups 0x34(%rsp,%rdx,4),%xmm0
mulps  %xmm1,%xmm0
movups %xmm2,0x20(%rbx,%rdx,4)
movups %xmm0,0x30(%rbx,%rdx,4)
add    $0x10,%rdx
add    $0xfffffffffffffffe,%rdi
jne    11a0 <main1+0x80>
test   $0x1,%sil
je     1237 <main1+0x117>
lea    0x0(,%rdx,4),%rsi
or     $0x4,%rsi
movups 0x400(%rsp,%rsi,1),%xmm0
movups 0x410(%rsp,%rsi,1),%xmm1
movups (%rsp,%rsi,1),%xmm2
mulps  %xmm0,%xmm2
movups 0x10(%rsp,%rsi,1),%xmm0
mulps  %xmm1,%xmm0
movups %xmm2,(%rbx,%rdx,4)
movups %xmm0,0x10(%rbx,%rdx,4)
cmp    %rax,%rcx
je     1260 <main1+0x140>
nopl   0x0(%rax)
movss  0x404(%rsp,%rcx,4),%xmm0
mulss  0x4(%rsp,%rcx,4),%xmm0
movss  %xmm0,(%rbx,%rcx,4)
lea    0x1(%rcx),%rdx
mov    %rdx,%rcx
cmp    %rdx,%rax
jne    1240 <main1+0x120>
lea    0x400(%rsp),%rsi
mov    %rsp,%rdx
mov    %rbx,%rdi
call   1030 <bar@plt>
xor    %eax,%eax
add    $0x808,%rsp
pop    %rbx
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%sil
jne    1203 <main1+0xe3>
jmp    1237 <main1+0x117>

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