#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*/ testcenter();
int /*<<< orphan*/ testcov(int, int, int, int, double **, double **);
int main(void) {
  double X1[5][3] = {
      {4.0, 2.0, 0.6},  {4.2, 2.1, 0.59}, {3.9, 2.0, 0.58},
      {4.3, 2.1, 0.62}, {4.1, 2.2, 0.63},
  };
  double X2[5][3] = {
      {64.0, 580.0, 29.0}, {66.0, 570.0, 33.0}, {68.0, 590.0, 37.0},
      {69.0, 660.0, 46.0}, {73.0, 600.0, 55.0},
  };
  double X3[2][2] = {
      {3.0, 7.0},
      {2.0, 4.0},
  };
  double X4[3][3] = {
      {2, 5, 9},
      {3, 8, 7},
      {4, 1, 5},
  };
  double X5[5][3] = {
      {1, 8, 1}, {-4, 9, 3}, {5, 10, 4}, {7, 3, 5}, {8, 7, 6},
  };
  testcenter();
  testcov(5, 3, 5, 3, X1, X1);
  testcov(5, 3, 5, 3, X2, X2);
  testcov(2, 2, 2, 2, X3, X3);
  testcov(3, 3, 3, 3, X4, X4);
  testcov(5, 3, 5, 3, X5, X5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x80(%rbp),%rdi
lea    0xeb3(%rip),%rsi
mov    $0x78,%edx
call   1040 <memcpy@plt>
lea    -0x100(%rbp),%rdi
lea    0xf1b(%rip),%rsi
mov    $0x78,%edx
call   1040 <memcpy@plt>
mov    0x105a(%rip),%rax
mov    %rax,-0x120(%rbp)
mov    0x1054(%rip),%rax
mov    %rax,-0x118(%rbp)
mov    0x104e(%rip),%rax
mov    %rax,-0x110(%rbp)
mov    0x1048(%rip),%rax
mov    %rax,-0x108(%rbp)
lea    -0x170(%rbp),%rdi
lea    0xf4b(%rip),%rsi
mov    $0x48,%edx
call   1040 <memcpy@plt>
lea    -0x1f0(%rbp),%rdi
lea    0xf83(%rip),%rsi
mov    $0x78,%edx
call   1040 <memcpy@plt>
mov    $0x0,%al
call   1050 <testcenter@plt>
lea    -0x80(%rbp),%r8
lea    -0x80(%rbp),%r9
mov    $0x5,%edx
mov    $0x3,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1030 <testcov@plt>
lea    -0x100(%rbp),%r8
lea    -0x100(%rbp),%r9
mov    $0x5,%edx
mov    $0x3,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1030 <testcov@plt>
lea    -0x120(%rbp),%r8
lea    -0x120(%rbp),%r9
mov    $0x2,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
call   1030 <testcov@plt>
lea    -0x170(%rbp),%r8
lea    -0x170(%rbp),%r9
mov    $0x3,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
call   1030 <testcov@plt>
lea    -0x1f0(%rbp),%r8
lea    -0x1f0(%rbp),%r9
mov    $0x5,%edx
mov    $0x3,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1030 <testcov@plt>
xor    %eax,%eax
add    $0x1f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x1e8,%rsp
mov    0xf42(%rip),%rax
mov    %rax,0x1e0(%rsp)
movaps 0xf23(%rip),%xmm0
movaps %xmm0,0x1d0(%rsp)
movaps 0xf04(%rip),%xmm0
movaps %xmm0,0x1c0(%rsp)
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x1b0(%rsp)
movaps 0xec6(%rip),%xmm0
movaps %xmm0,0x1a0(%rsp)
movaps 0xea7(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
movaps 0xe88(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
movaps 0xe69(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
mov    0xf4a(%rip),%rax
mov    %rax,0x160(%rsp)
movaps 0xf2b(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xf0c(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xeed(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xece(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xeaf(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xe90(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xe71(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xfc2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xfa6(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0xf0b(%rip),%rax
mov    %rax,0x60(%rsp)
movaps 0xeef(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xed3(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xeb7(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe9b(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    0xf4f(%rip),%rax
mov    %rax,0xe0(%rsp)
movaps 0xf30(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xf11(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xef2(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xed3(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xeb4(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe95(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe76(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
xor    %eax,%eax
call   1040 <testcenter@plt>
lea    0x170(%rsp),%r8
mov    $0x5,%edi
mov    $0x3,%esi
mov    $0x5,%edx
mov    $0x3,%ecx
mov    %r8,%r9
call   1030 <testcov@plt>
lea    0xf0(%rsp),%r8
mov    $0x5,%edi
mov    $0x3,%esi
mov    $0x5,%edx
mov    $0x3,%ecx
mov    %r8,%r9
call   1030 <testcov@plt>
mov    %rsp,%r8
mov    $0x2,%edi
mov    $0x2,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
mov    %r8,%r9
call   1030 <testcov@plt>
lea    0x20(%rsp),%r8
mov    $0x3,%edi
mov    $0x3,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
mov    %r8,%r9
call   1030 <testcov@plt>
lea    0x70(%rsp),%r8
mov    $0x5,%edi
mov    $0x3,%esi
mov    $0x5,%edx
mov    $0x3,%ecx
mov    %r8,%r9
call   1030 <testcov@plt>
xor    %eax,%eax
add    $0x1e8,%rsp
ret

LLVM IR (-O0):
@__const.main.X1 = [5 x [3 x double]] [[3 x double] [double 4.000000e+00, double 2.000000e+00, double 6.000000e-01], [3 x double] [double 4.200000e+00, double 2.100000e+00, double 5.900000e-01], [3 x double] [double 3.900000e+00, double 2.000000e+00, double 5.800000e-01], [3 x double] [double 4.300000e+00, double 2.100000e+00, double 6.200000e-01], [3 x double] [double 4.100000e+00, double 2.200000e+00, double 6.300000e-01]]
@__const.main.X2 = [5 x [3 x double]] [[3 x double] [double 6.400000e+01, double 5.800000e+02, double 2.900000e+01], [3 x double] [double 6.600000e+01, double 5.700000e+02, double 3.300000e+01], [3 x double] [double 6.800000e+01, double 5.900000e+02, double 3.700000e+01], [3 x double] [double 6.900000e+01, double 6.600000e+02, double 4.600000e+01], [3 x double] [double 7.300000e+01, double 6.000000e+02, double 5.500000e+01]]
@__const.main.X3 = [2 x [2 x double]] [[2 x double] [double 3.000000e+00, double 7.000000e+00], [2 x double] [double 2.000000e+00, double 4.000000e+00]]
@__const.main.X4 = [3 x [3 x double]] [[3 x double] [double 2.000000e+00, double 5.000000e+00, double 9.000000e+00], [3 x double] [double 3.000000e+00, double 8.000000e+00, double 7.000000e+00], [3 x double] [double 4.000000e+00, double 1.000000e+00, double 5.000000e+00]]
@__const.main.X5 = [5 x [3 x double]] [[3 x double] [double 1.000000e+00, double 8.000000e+00, double 1.000000e+00], [3 x double] [double -4.000000e+00, double 9.000000e+00, double 3.000000e+00], [3 x double] [double 5.000000e+00, double 1.000000e+01, double 4.000000e+00], [3 x double] [double 7.000000e+00, double 3.000000e+00, double 5.000000e+00], [3 x double] [double 8.000000e+00, double 7.000000e+00, double 6.000000e+00]]
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [3 x double]]
%3 = alloca [5 x [3 x double]]
%4 = alloca [2 x [2 x double]]
%5 = alloca [3 x [3 x double]]
%6 = alloca [5 x [3 x double]]
store i32 0, i32* %1
%7 = bitcast [5 x [3 x double]]* %2 to i8*
%8 = bitcast [5 x [3 x double]]* %3 to i8*
%9 = bitcast [2 x [2 x double]]* %4 to i8*
%10 = bitcast [3 x [3 x double]]* %5 to i8*
%11 = bitcast [5 x [3 x double]]* %6 to i8*
%12 = call i32 (...) @testcenter()
%13 = getelementptr inbounds [5 x [3 x double]], [5 x [3 x double]]* %2, i64 0, i64 0
%14 = bitcast [3 x double]* %13 to double**
%15 = getelementptr inbounds [5 x [3 x double]], [5 x [3 x double]]* %2, i64 0, i64 0
%16 = bitcast [3 x double]* %15 to double**
%17 = call i32 @testcov(i32 5, i32 3, i32 5, i32 3, double** %14, double** %16)
%18 = getelementptr inbounds [5 x [3 x double]], [5 x [3 x double]]* %3, i64 0, i64 0
%19 = bitcast [3 x double]* %18 to double**
%20 = getelementptr inbounds [5 x [3 x double]], [5 x [3 x double]]* %3, i64 0, i64 0
%21 = bitcast [3 x double]* %20 to double**
%22 = call i32 @testcov(i32 5, i32 3, i32 5, i32 3, double** %19, double** %21)
%23 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %4, i64 0, i64 0
%24 = bitcast [2 x double]* %23 to double**
%25 = getelementptr inbounds [2 x [2 x double]], [2 x [2 x double]]* %4, i64 0, i64 0
%26 = bitcast [2 x double]* %25 to double**
%27 = call i32 @testcov(i32 2, i32 2, i32 2, i32 2, double** %24, double** %26)
%28 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 0
%29 = bitcast [3 x double]* %28 to double**
%30 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %5, i64 0, i64 0
%31 = bitcast [3 x double]* %30 to double**
%32 = call i32 @testcov(i32 3, i32 3, i32 3, i32 3, double** %29, double** %31)
%33 = getelementptr inbounds [5 x [3 x double]], [5 x [3 x double]]* %6, i64 0, i64 0
%34 = bitcast [3 x double]* %33 to double**
%35 = getelementptr inbounds [5 x [3 x double]], [5 x [3 x double]]* %6, i64 0, i64 0
%36 = bitcast [3 x double]* %35 to double**
%37 = call i32 @testcov(i32 5, i32 3, i32 5, i32 3, double** %34, double** %36)
ret i32 0
}

LLVM IR (-O2):
@__const.main.X1 = [5 x [3 x double]] [[3 x double] [double 4.000000e+00, double 2.000000e+00, double 6.000000e-01], [3 x double] [double 4.200000e+00, double 2.100000e+00, double 5.900000e-01], [3 x double] [double 3.900000e+00, double 2.000000e+00, double 5.800000e-01], [3 x double] [double 4.300000e+00, double 2.100000e+00, double 6.200000e-01], [3 x double] [double 4.100000e+00, double 2.200000e+00, double 6.300000e-01]]
@__const.main.X2 = [5 x [3 x double]] [[3 x double] [double 6.400000e+01, double 5.800000e+02, double 2.900000e+01], [3 x double] [double 6.600000e+01, double 5.700000e+02, double 3.300000e+01], [3 x double] [double 6.800000e+01, double 5.900000e+02, double 3.700000e+01], [3 x double] [double 6.900000e+01, double 6.600000e+02, double 4.600000e+01], [3 x double] [double 7.300000e+01, double 6.000000e+02, double 5.500000e+01]]
@__const.main.X3 = [2 x [2 x double]] [[2 x double] [double 3.000000e+00, double 7.000000e+00], [2 x double] [double 2.000000e+00, double 4.000000e+00]]
@__const.main.X4 = [3 x [3 x double]] [[3 x double] [double 2.000000e+00, double 5.000000e+00, double 9.000000e+00], [3 x double] [double 3.000000e+00, double 8.000000e+00, double 7.000000e+00], [3 x double] [double 4.000000e+00, double 1.000000e+00, double 5.000000e+00]]
@__const.main.X5 = [5 x [3 x double]] [[3 x double] [double 1.000000e+00, double 8.000000e+00, double 1.000000e+00], [3 x double] [double -4.000000e+00, double 9.000000e+00, double 3.000000e+00], [3 x double] [double 5.000000e+00, double 1.000000e+01, double 4.000000e+00], [3 x double] [double 7.000000e+00, double 3.000000e+00, double 5.000000e+00], [3 x double] [double 8.000000e+00, double 7.000000e+00, double 6.000000e+00]]
define i32 @main() {
%1 = alloca [5 x [3 x double]]
%2 = alloca [5 x [3 x double]]
%3 = alloca [2 x [2 x double]]
%4 = alloca [3 x [3 x double]]
%5 = alloca [5 x [3 x double]]
%6 = bitcast [5 x [3 x double]]* %1 to i8*
%7 = bitcast [5 x [3 x double]]* %2 to i8*
%8 = bitcast [2 x [2 x double]]* %3 to i8*
%9 = bitcast [3 x [3 x double]]* %4 to i8*
%10 = bitcast [5 x [3 x double]]* %5 to i8*
%11 = tail call i32 (...) @testcenter()
%12 = bitcast [5 x [3 x double]]* %1 to double**
%13 = call i32 @testcov(i32 5, i32 3, i32 5, i32 3, double** %12, double** %12)
%14 = bitcast [5 x [3 x double]]* %2 to double**
%15 = call i32 @testcov(i32 5, i32 3, i32 5, i32 3, double** %14, double** %14)
%16 = bitcast [2 x [2 x double]]* %3 to double**
%17 = call i32 @testcov(i32 2, i32 2, i32 2, i32 2, double** %16, double** %16)
%18 = bitcast [3 x [3 x double]]* %4 to double**
%19 = call i32 @testcov(i32 3, i32 3, i32 3, i32 3, double** %18, double** %18)
%20 = bitcast [5 x [3 x double]]* %5 to double**
%21 = call i32 @testcov(i32 5, i32 3, i32 5, i32 3, double** %20, double** %20)
ret i32 0
}