#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*/ abort();
__attribute__((no)) int main2(float *pa) {
  int i;
  float pb[256] = {0,  3,  6,  9,  12, 15, 18, 21, 24, 27,
                   30, 33, 36, 39, 42, 45, 48, 51, 54, 57};
  float pc[256] = {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];
  }
  for (i = 0; i < 256; i++) {
    if (pa[i] != (pb[i] * pc[i]))
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main2>:
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 <main2+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 <main2+0x46>
movl   $0x0,-0xc(%rbp)
cmpl   $0x100,-0xc(%rbp)
jge    1211 <main2+0xf1>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0xc(%rbp),%rax
movss  -0x410(%rbp,%rax,4),%xmm1
ff ff
movslq -0xc(%rbp),%rax
mulss  -0x810(%rbp,%rax,4),%xmm1
ff ff
ucomiss %xmm1,%xmm0
jne    11f7 <main2+0xd7>
jp     11f7 <main2+0xd7>
jmp    11fe <main2+0xde>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    1203 <main2+0xe3>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11af <main2+0x8f>
xor    %eax,%eax
add    $0x810,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main2>:
push   %rax
xor    %edx,%edx
lea    0xee6(%rip),%rax
lea    0x12df(%rip),%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movaps (%rax,%rdx,4),%xmm0
movaps 0x10(%rax,%rdx,4),%xmm1
movaps 0x20(%rax,%rdx,4),%xmm2
movaps 0x30(%rax,%rdx,4),%xmm3
mulps  (%rcx,%rdx,4),%xmm0
mulps  0x10(%rcx,%rdx,4),%xmm1
movups %xmm0,(%rdi,%rdx,4)
movups %xmm1,0x10(%rdi,%rdx,4)
mulps  0x20(%rcx,%rdx,4),%xmm2
mulps  0x30(%rcx,%rdx,4),%xmm3
movups %xmm2,0x20(%rdi,%rdx,4)
movups %xmm3,0x30(%rdi,%rdx,4)
add    $0x10,%rdx
cmp    $0x100,%rdx
jne    1130 <main2+0x20>
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movss  (%rdi,%rdx,4),%xmm0
movss  (%rax,%rdx,4),%xmm1
mulss  (%rcx,%rdx,4),%xmm1
ucomiss %xmm1,%xmm0
jne    11c0 <main2+0xb0>
jp     11c0 <main2+0xb0>
movss  0x4(%rdi,%rdx,4),%xmm0
movss  0x4(%rax,%rdx,4),%xmm1
mulss  0x4(%rcx,%rdx,4),%xmm1
ucomiss %xmm1,%xmm0
jne    11c0 <main2+0xb0>
jp     11c0 <main2+0xb0>
add    $0x2,%rdx
cmp    $0x100,%rdx
jne    1180 <main2+0x70>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@__const.main2.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.main2.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 @main2(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
store i32 0, i32* %3
br label %29
29: ; preds = %51, %28
%30 = load i32, i32* %3
%31 = icmp slt i32 %30, 256
br i1 %31, label %32, label %54
32: ; preds = %29
%33 = load float*, float** %2
%34 = load i32, i32* %3
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds float, float* %33, i64 %35
%37 = load float, float* %36
%38 = load i32, i32* %3
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %39
%41 = load float, float* %40
%42 = load i32, i32* %3
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [256 x float], [256 x float]* %5, i64 0, i64 %43
%45 = load float, float* %44
%46 = fmul float %41, %45
%47 = fcmp une float %37, %46
br i1 %47, label %48, label %50
48: ; preds = %32
%49 = call i32 (...) @abort()
unreachable
50: ; preds = %32
br label %51
51: ; preds = %50
%52 = load i32, i32* %3
%53 = add nsw i32 %52, 1
store i32 %53, i32* %3
br label %29
54: ; preds = %29
ret i32 0
}

LLVM IR (-O2):
@__const.main2.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.main2.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 @main2(float* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ 0, %1 ], [ %41, %2 ]
%4 = getelementptr inbounds [256 x float], [256 x float]* bitcast (<{ [20 x float], [236 x float] }>* @__const.main2.pb to [256 x float]*), i64 0, i64 %3
%5 = bitcast float* %4 to <4 x float>*
%6 = load <4 x float>, <4 x float>* %5
%7 = getelementptr inbounds float, float* %4, i64 4
%8 = bitcast float* %7 to <4 x float>*
%9 = load <4 x float>, <4 x float>* %8
%10 = getelementptr inbounds [256 x float], [256 x float]* bitcast (<{ [20 x float], [236 x float] }>* @__const.main2.pc to [256 x float]*), i64 0, i64 %3
%11 = bitcast float* %10 to <4 x float>*
%12 = load <4 x float>, <4 x float>* %11
%13 = getelementptr inbounds float, float* %10, i64 4
%14 = bitcast float* %13 to <4 x float>*
%15 = load <4 x float>, <4 x float>* %14
%16 = fmul <4 x float> %6, %12
%17 = fmul <4 x float> %9, %15
%18 = getelementptr inbounds float, float* %0, i64 %3
%19 = bitcast float* %18 to <4 x float>*
store <4 x float> %16, <4 x float>* %19
%20 = getelementptr inbounds float, float* %18, i64 4
%21 = bitcast float* %20 to <4 x float>*
store <4 x float> %17, <4 x float>* %21
%22 = or i64 %3, 8
%23 = getelementptr inbounds [256 x float], [256 x float]* bitcast (<{ [20 x float], [236 x float] }>* @__const.main2.pb to [256 x float]*), i64 0, i64 %22
%24 = bitcast float* %23 to <4 x float>*
%25 = load <4 x float>, <4 x float>* %24
%26 = getelementptr inbounds float, float* %23, i64 4
%27 = bitcast float* %26 to <4 x float>*
%28 = load <4 x float>, <4 x float>* %27
%29 = getelementptr inbounds [256 x float], [256 x float]* bitcast (<{ [20 x float], [236 x float] }>* @__const.main2.pc to [256 x float]*), i64 0, i64 %22
%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 = fmul <4 x float> %25, %31
%36 = fmul <4 x float> %28, %34
%37 = getelementptr inbounds float, float* %0, i64 %22
%38 = bitcast float* %37 to <4 x float>*
store <4 x float> %35, <4 x float>* %38
%39 = getelementptr inbounds float, float* %37, i64 4
%40 = bitcast float* %39 to <4 x float>*
store <4 x float> %36, <4 x float>* %40
%41 = add nuw nsw i64 %3, 16
%42 = icmp eq i64 %41, 256
br i1 %42, label %56, label %2
43: ; preds = %56
%44 = or i64 %57, 1
%45 = getelementptr inbounds float, float* %0, i64 %44
%46 = load float, float* %45
%47 = getelementptr inbounds [256 x float], [256 x float]* bitcast (<{ [20 x float], [236 x float] }>* @__const.main2.pb to [256 x float]*), i64 0, i64 %44
%48 = load float, float* %47
%49 = getelementptr inbounds [256 x float], [256 x float]* bitcast (<{ [20 x float], [236 x float] }>* @__const.main2.pc to [256 x float]*), i64 0, i64 %44
%50 = load float, float* %49
%51 = fmul float %48, %50
%52 = fcmp une float %46, %51
br i1 %52, label %66, label %53
53: ; preds = %43
%54 = add nuw nsw i64 %57, 2
%55 = icmp eq i64 %54, 256
br i1 %55, label %68, label %56
56: ; preds = %2, %53
%57 = phi i64 [ %54, %53 ], [ 0, %2 ]
%58 = getelementptr inbounds float, float* %0, i64 %57
%59 = load float, float* %58
%60 = getelementptr inbounds [256 x float], [256 x float]* bitcast (<{ [20 x float], [236 x float] }>* @__const.main2.pb to [256 x float]*), i64 0, i64 %57
%61 = load float, float* %60
%62 = getelementptr inbounds [256 x float], [256 x float]* bitcast (<{ [20 x float], [236 x float] }>* @__const.main2.pc to [256 x float]*), i64 0, i64 %57
%63 = load float, float* %62
%64 = fmul float %61, %63
%65 = fcmp une float %59, %64
br i1 %65, label %66, label %43
66: ; preds = %43, %56
%67 = tail call i32 (...) @abort()
unreachable
68: ; preds = %53
ret i32 0
}