#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 */
typedef int /*<<< orphan*/ h;
typedef int /*<<< orphan*/ g;
typedef int /*<<< orphan*/ f;
typedef int /*<<< orphan*/ e;
typedef int /*<<< orphan*/ d;
typedef int /*<<< orphan*/ c;
typedef int /*<<< orphan*/ b;
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int /*<<< orphan*/ polyPrint(double *, int);
int main(void) {
  double a[] = {2.0, 3.0, 4.0};
  double b[] = {0.0, 3.0, 0.0};
  double c[] = {2.0, -2.0, 9.0, -1.0, 8.0, -7.0};
  double d[] = {2.0, 0.0, 0.0, 0.0, 0.0, 1.0};
  double e[] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
  double f[] = {2.0 / 3.0, 1.0 / 7.0, 9.0 / 13.0};
  double g[] = {1.0, 2.0, -1};
  double h[] = {-1.0, 2.0, 1};
  polyPrint(a, sizeof(a) / sizeof(a[0]));
  polyPrint(b, sizeof(b) / sizeof(b[0]));
  polyPrint(c, sizeof(c) / sizeof(c[0]));
  polyPrint(d, sizeof(d) / sizeof(d[0]));
  polyPrint(e, sizeof(e) / sizeof(e[0]));
  polyPrint(f, sizeof(f) / sizeof(f[0]));
  polyPrint(g, sizeof(g) / sizeof(g[0]));
  polyPrint(h, sizeof(h) / sizeof(h[0]));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xf07(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xf04(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xf01(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xf06(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xf03(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xf00(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
movsd  0xe7c(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xe97(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xe82(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe6d(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe58(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe43(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
movsd  0xe1b(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xe03(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <memset@plt>
mov    0xe64(%rip),%rax
mov    %rax,-0xf0(%rbp)
mov    0xe5e(%rip),%rax
mov    %rax,-0xe8(%rbp)
mov    0xe58(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0xe5a(%rip),%rax
mov    %rax,-0x110(%rbp)
mov    0xe54(%rip),%rax
mov    %rax,-0x108(%rbp)
mov    0xe4e(%rip),%rax
mov    %rax,-0x100(%rbp)
mov    0xe50(%rip),%rax
mov    %rax,-0x130(%rbp)
mov    0xe4a(%rip),%rax
mov    %rax,-0x128(%rbp)
mov    0xe44(%rip),%rax
mov    %rax,-0x120(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
lea    -0x40(%rbp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
lea    -0x70(%rbp),%rdi
mov    $0x6,%esi
call   1030 <polyPrint@plt>
lea    -0xa0(%rbp),%rdi
mov    $0x6,%esi
call   1030 <polyPrint@plt>
lea    -0xd0(%rbp),%rdi
mov    $0x6,%esi
call   1030 <polyPrint@plt>
lea    -0xf0(%rbp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
lea    -0x110(%rbp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
lea    -0x130(%rbp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x138,%rsp
mov    0xf22(%rip),%rax
mov    %rax,0xc0(%rsp)
movaps 0xf03(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
mov    0xf24(%rip),%rax
mov    %rax,0xa0(%rsp)
movaps 0xf05(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xea6(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xea7(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xea8(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movabs $0x4000000000000000,%rax
mov    %rax,0x60(%rsp)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x88(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
mov    0xeab(%rip),%rax
mov    %rax,0x50(%rsp)
movaps 0xe8f(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
mov    0xeb3(%rip),%rax
mov    %rax,0x30(%rsp)
movaps 0xe97(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    0xebb(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xe9f(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xb0(%rsp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
lea    0x90(%rsp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
lea    0x100(%rsp),%rdi
mov    $0x6,%esi
call   1030 <polyPrint@plt>
lea    0x60(%rsp),%rdi
mov    $0x6,%esi
call   1030 <polyPrint@plt>
lea    0xd0(%rsp),%rdi
mov    $0x6,%esi
call   1030 <polyPrint@plt>
lea    0x40(%rsp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
lea    0x20(%rsp),%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
mov    %rsp,%rdi
mov    $0x3,%esi
call   1030 <polyPrint@plt>
xor    %eax,%eax
add    $0x138,%rsp
ret

LLVM IR (-O0):
@__const.main.a = [3 x double] [double 2.000000e+00, double 3.000000e+00, double 4.000000e+00]
@__const.main.b = [3 x double] [double 0.000000e+00, double 3.000000e+00, double 0.000000e+00]
@__const.main.f = [3 x double] [double 0x3FE5555555555555, double 0x3FC2492492492492, double 0x3FE6276276276276]
@__const.main.g = [3 x double] [double 1.000000e+00, double 2.000000e+00, double -1.000000e+00]
@__const.main.h = [3 x double] [double -1.000000e+00, double 2.000000e+00, double 1.000000e+00]
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x double]
%3 = alloca [3 x double]
%4 = alloca [6 x double]
%5 = alloca [6 x double]
%6 = alloca [6 x double]
%7 = alloca [3 x double]
%8 = alloca [3 x double]
%9 = alloca [3 x double]
store i32 0, i32* %1
%10 = bitcast [3 x double]* %2 to i8*
%11 = bitcast [3 x double]* %3 to i8*
%12 = bitcast [6 x double]* %4 to i8*
%13 = bitcast i8* %12 to [6 x double]*
%14 = getelementptr inbounds [6 x double], [6 x double]* %13, i32 0, i32 0
store double 2.000000e+00, double* %14
%15 = getelementptr inbounds [6 x double], [6 x double]* %13, i32 0, i32 1
store double -2.000000e+00, double* %15
%16 = getelementptr inbounds [6 x double], [6 x double]* %13, i32 0, i32 2
store double 9.000000e+00, double* %16
%17 = getelementptr inbounds [6 x double], [6 x double]* %13, i32 0, i32 3
store double -1.000000e+00, double* %17
%18 = getelementptr inbounds [6 x double], [6 x double]* %13, i32 0, i32 4
store double 8.000000e+00, double* %18
%19 = getelementptr inbounds [6 x double], [6 x double]* %13, i32 0, i32 5
store double -7.000000e+00, double* %19
%20 = bitcast [6 x double]* %5 to i8*
%21 = bitcast i8* %20 to [6 x double]*
%22 = getelementptr inbounds [6 x double], [6 x double]* %21, i32 0, i32 0
store double 2.000000e+00, double* %22
%23 = getelementptr inbounds [6 x double], [6 x double]* %21, i32 0, i32 5
store double 1.000000e+00, double* %23
%24 = bitcast [6 x double]* %6 to i8*
%25 = bitcast [3 x double]* %7 to i8*
%26 = bitcast [3 x double]* %8 to i8*
%27 = bitcast [3 x double]* %9 to i8*
%28 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 0
%29 = call i32 @polyPrint(double* %28, i32 3)
%30 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%31 = call i32 @polyPrint(double* %30, i32 3)
%32 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 0
%33 = call i32 @polyPrint(double* %32, i32 6)
%34 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 0
%35 = call i32 @polyPrint(double* %34, i32 6)
%36 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 0, i64 0
%37 = call i32 @polyPrint(double* %36, i32 6)
%38 = getelementptr inbounds [3 x double], [3 x double]* %7, i64 0, i64 0
%39 = call i32 @polyPrint(double* %38, i32 3)
%40 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
%41 = call i32 @polyPrint(double* %40, i32 3)
%42 = getelementptr inbounds [3 x double], [3 x double]* %9, i64 0, i64 0
%43 = call i32 @polyPrint(double* %42, i32 3)
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [3 x double] [double 2.000000e+00, double 3.000000e+00, double 4.000000e+00]
@__const.main.b = [3 x double] [double 0.000000e+00, double 3.000000e+00, double 0.000000e+00]
@__const.main.f = [3 x double] [double 0x3FE5555555555555, double 0x3FC2492492492492, double 0x3FE6276276276276]
@__const.main.g = [3 x double] [double 1.000000e+00, double 2.000000e+00, double -1.000000e+00]
@__const.main.h = [3 x double] [double -1.000000e+00, double 2.000000e+00, double 1.000000e+00]
define i32 @main() {
%1 = alloca [3 x double]
%2 = alloca [3 x double]
%3 = alloca [6 x double]
%4 = alloca [6 x double]
%5 = alloca [6 x double]
%6 = alloca [3 x double]
%7 = alloca [3 x double]
%8 = alloca [3 x double]
%9 = bitcast [3 x double]* %1 to i8*
%10 = bitcast [3 x double]* %2 to i8*
%11 = bitcast [6 x double]* %3 to i8*
%12 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 0
%13 = bitcast [6 x double]* %3 to <2 x double>*
store <2 x double> <double 2.000000e+00, double -2.000000e+00>, <2 x double>* %13
%14 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 2
%15 = bitcast double* %14 to <2 x double>*
store <2 x double> <double 9.000000e+00, double -1.000000e+00>, <2 x double>* %15
%16 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 4
%17 = bitcast double* %16 to <2 x double>*
store <2 x double> <double 8.000000e+00, double -7.000000e+00>, <2 x double>* %17
%18 = bitcast [6 x double]* %4 to i8*
%19 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 0
store double 2.000000e+00, double* %19
%20 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 5
store double 1.000000e+00, double* %20
%21 = bitcast [6 x double]* %5 to i8*
%22 = bitcast [3 x double]* %6 to i8*
%23 = bitcast [3 x double]* %7 to i8*
%24 = bitcast [3 x double]* %8 to i8*
%25 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%26 = call i32 @polyPrint(double* %25, i32 3)
%27 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 0
%28 = call i32 @polyPrint(double* %27, i32 3)
%29 = call i32 @polyPrint(double* %12, i32 6)
%30 = call i32 @polyPrint(double* %19, i32 6)
%31 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 0
%32 = call i32 @polyPrint(double* %31, i32 6)
%33 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%34 = call i32 @polyPrint(double* %33, i32 3)
%35 = getelementptr inbounds [3 x double], [3 x double]* %7, i64 0, i64 0
%36 = call i32 @polyPrint(double* %35, i32 3)
%37 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
%38 = call i32 @polyPrint(double* %37, i32 3)
ret i32 0
}