#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*/ CSPL_Array_clip(double *, int, int, int);
int /*<<< orphan*/ CSPL_Array_filedump1d(char const *, int, int, double *,
                                         double *);
scalar_t__ calloc(int, int);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ memcpy(double *, double *, int);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  double dat1[5] = {1, 2, 5, 7, 8};
  double dat2[5] = {2, 3, 4, 6, 5};
  double *cpyarray;
  long i;
  const char *filename = "test_dump.csv";
  printf("\nArray1\tArray2\n");
  for (i = 0; i < 5; i++) {
    printf("%lf\t", dat1[i]);
    printf("%lf\n", dat2[i]);
  }
  CSPL_Array_clip(dat1, 2, 7, 5);
  printf("Clipping Array1 to the range 2-7\n");
  for (i = 0; i < 5; i++)
    printf("%lf\n", dat1[i]);
  CSPL_Array_clip(dat2, 3, 20, 5);
  printf("Clipping Array2 to the range 3-20\n");
  for (i = 0; i < 5; i++)
    printf("%lf\n", dat2[i]);
  printf("\nDumping Array1 and Array2 into a csv file named %s\n", filename);
  CSPL_Array_filedump1d(filename, 5, 2, dat1, dat2);
  {
    double dat1[5] = {1, 2, 5, 7, 8};
    printf("\n\nCopying a subarray from original dat1\n");
    {
      cpyarray = (double *)calloc((4) - (1) + 1, sizeof(double));
      memcpy((cpyarray), &(dat1)[(1)], sizeof(double) * ((4) - (1) + 1));
    };
    for (i = 0; i < 3; i++)
      printf("cpyarray[%ld]=%lf\n", i, cpyarray[i]);
    free(cpyarray);
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
movsd  0xe9e(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe79(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe4c(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe6f(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe5a(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
movsd  0xe35(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe20(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe0b(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xdf6(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xde1(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xe15(%rip),%rax
mov    %rax,-0x78(%rbp)
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x70(%rbp)
cmpq   $0x5,-0x70(%rbp)
jge    1291 <main+0x121>
mov    -0x70(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
lea    0xdfd(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm0
lea    0xe9b(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    1245 <main+0xd5>
lea    -0x30(%rbp),%rdi
mov    $0x2,%esi
mov    $0x7,%edx
mov    $0x5,%ecx
call   1090 <CSPL_Array_clip@plt>
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x70(%rbp)
cmpq   $0x5,-0x70(%rbp)
jge    12f3 <main+0x183>
mov    -0x70(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
lea    0xe39(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    12bf <main+0x14f>
lea    -0x60(%rbp),%rdi
mov    $0x3,%esi
mov    $0x14,%edx
mov    $0x5,%ecx
call   1090 <CSPL_Array_clip@plt>
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x70(%rbp)
cmpq   $0x5,-0x70(%rbp)
jge    1355 <main+0x1e5>
mov    -0x70(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm0
lea    0xdd7(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    1321 <main+0x1b1>
mov    -0x78(%rbp),%rsi
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x78(%rbp),%rdi
lea    -0x30(%rbp),%rcx
lea    -0x60(%rbp),%r8
mov    $0x5,%esi
mov    $0x2,%edx
call   1040 <CSPL_Array_filedump1d@plt>
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
movsd  0xc9b(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xc73(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xc43(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xc63(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xc4b(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
lea    0xcf4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x4,%edi
mov    $0x8,%esi
call   1070 <calloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x8,%rsi
mov    $0x20,%edx
call   1080 <memcpy@plt>
movq   $0x0,-0x70(%rbp)
cmpq   $0x3,-0x70(%rbp)
jge    145f <main+0x2ef>
mov    -0x70(%rbp),%rsi
mov    -0x68(%rbp),%rax
mov    -0x70(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xcbf(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    1424 <main+0x2b4>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x88,%rsp
movaps 0xe7b(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe7f(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movabs $0x4020000000000000,%r12
mov    %r12,0x50(%rsp)
movaps 0xe74(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe79(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0x4014000000000000,%rax
mov    %rax,0x20(%rsp)
lea    0xf09(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb0(%rip),%r14
movsd  0xe5a(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xedf(%rip),%rbx
movsd  0xe49(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r14,%rdi
movsd  0xe34(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe2d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe23(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe19(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe0f(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe05(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xdfb(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbx,%rdi
movsd  0xdc6(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0x30(%rsp),%r14
mov    %r14,%rdi
mov    $0x2,%esi
mov    $0x7,%edx
mov    $0x5,%ecx
call   1090 <CSPL_Array_clip@plt>
lea    0xe2e(%rip),%rdi
call   1040 <puts@plt>
movsd  0x30(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x38(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x40(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x48(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x50(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rsp,%r15
mov    %r15,%rdi
mov    $0x3,%esi
mov    $0x14,%edx
mov    $0x5,%ecx
call   1090 <CSPL_Array_clip@plt>
lea    0xdd9(%rip),%rdi
call   1040 <puts@plt>
movsd  (%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x10(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x18(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x20(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd06(%rip),%rdi
lea    0xcec(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x2,%edx
mov    %r14,%rcx
mov    %r15,%r8
call   1050 <CSPL_Array_filedump1d@plt>
lea    0x68(%rsp),%r14
movaps 0xc3e(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xc42(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
mov    %r12,0x80(%rsp)
lea    0xd4b(%rip),%rdi
call   1040 <puts@plt>
mov    $0x4,%edi
mov    $0x8,%esi
call   1070 <calloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
mov    $0x20,%edx
call   1080 <memcpy@plt>
movsd  (%rbx),%xmm0
lea    0xcb4(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x8(%rbx),%xmm0
mov    $0x1,%esi
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x10(%rbx),%xmm0
mov    $0x2,%esi
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [14 x i8] c"test_dump.csv\00"
@.str.1 = [16 x i8] c"\0AArray1\09Array2\0A\00"
@.str.2 = [5 x i8] c"%lf\09\00"
@.str.3 = [5 x i8] c"%lf\0A\00"
@.str.4 = [34 x i8] c"Clipping Array1 to the range 2-7\0A\00"
@.str.5 = [35 x i8] c"Clipping Array2 to the range 3-20\0A\00"
@.str.6 = [53 x i8] c"\0ADumping Array1 and Array2 into a csv file named %s\0A\00"
@.str.7 = [41 x i8] c"\0A\0ACopying a subarray from original dat1\0A\00"
@.str.8 = [19 x i8] c"cpyarray[%ld]=%lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x double]
%3 = alloca [5 x double]
%4 = alloca double*
%5 = alloca i64
%6 = alloca i8*
%7 = alloca [5 x double]
store i32 0, i32* %1
%8 = bitcast [5 x double]* %2 to i8*
%9 = bitcast i8* %8 to [5 x double]*
%10 = getelementptr inbounds [5 x double], [5 x double]* %9, i32 0, i32 0
store double 1.000000e+00, double* %10
%11 = getelementptr inbounds [5 x double], [5 x double]* %9, i32 0, i32 1
store double 2.000000e+00, double* %11
%12 = getelementptr inbounds [5 x double], [5 x double]* %9, i32 0, i32 2
store double 5.000000e+00, double* %12
%13 = getelementptr inbounds [5 x double], [5 x double]* %9, i32 0, i32 3
store double 7.000000e+00, double* %13
%14 = getelementptr inbounds [5 x double], [5 x double]* %9, i32 0, i32 4
store double 8.000000e+00, double* %14
%15 = bitcast [5 x double]* %3 to i8*
%16 = bitcast i8* %15 to [5 x double]*
%17 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 0
store double 2.000000e+00, double* %17
%18 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 1
store double 3.000000e+00, double* %18
%19 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 2
store double 4.000000e+00, double* %19
%20 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 3
store double 6.000000e+00, double* %20
%21 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 4
store double 5.000000e+00, double* %21
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8** %6
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
store i64 0, i64* %5
br label %23
23: ; preds = %35, %0
%24 = load i64, i64* %5
%25 = icmp slt i64 %24, 5
br i1 %25, label %26, label %38
26: ; preds = %23
%27 = load i64, i64* %5
%28 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 %27
%29 = load double, double* %28
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %29)
%31 = load i64, i64* %5
%32 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 %31
%33 = load double, double* %32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %33)
br label %35
35: ; preds = %26
%36 = load i64, i64* %5
%37 = add nsw i64 %36, 1
store i64 %37, i64* %5
br label %23
38: ; preds = %23
%39 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%40 = call i32 @CSPL_Array_clip(double* %39, i32 2, i32 7, i32 5)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
store i64 0, i64* %5
br label %42
42: ; preds = %50, %38
%43 = load i64, i64* %5
%44 = icmp slt i64 %43, 5
br i1 %44, label %45, label %53
45: ; preds = %42
%46 = load i64, i64* %5
%47 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 %46
%48 = load double, double* %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %48)
br label %50
50: ; preds = %45
%51 = load i64, i64* %5
%52 = add nsw i64 %51, 1
store i64 %52, i64* %5
br label %42
53: ; preds = %42
%54 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 0
%55 = call i32 @CSPL_Array_clip(double* %54, i32 3, i32 20, i32 5)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
store i64 0, i64* %5
br label %57
57: ; preds = %65, %53
%58 = load i64, i64* %5
%59 = icmp slt i64 %58, 5
br i1 %59, label %60, label %68
60: ; preds = %57
%61 = load i64, i64* %5
%62 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 %61
%63 = load double, double* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %63)
br label %65
65: ; preds = %60
%66 = load i64, i64* %5
%67 = add nsw i64 %66, 1
store i64 %67, i64* %5
br label %57
68: ; preds = %57
%69 = load i8*, i8** %6
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0), i8* %69)
%71 = load i8*, i8** %6
%72 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%73 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 0
%74 = call i32 @CSPL_Array_filedump1d(i8* %71, i32 5, i32 2, double* %72, double* %73)
%75 = bitcast [5 x double]* %7 to i8*
%76 = bitcast i8* %75 to [5 x double]*
%77 = getelementptr inbounds [5 x double], [5 x double]* %76, i32 0, i32 0
store double 1.000000e+00, double* %77
%78 = getelementptr inbounds [5 x double], [5 x double]* %76, i32 0, i32 1
store double 2.000000e+00, double* %78
%79 = getelementptr inbounds [5 x double], [5 x double]* %76, i32 0, i32 2
store double 5.000000e+00, double* %79
%80 = getelementptr inbounds [5 x double], [5 x double]* %76, i32 0, i32 3
store double 7.000000e+00, double* %80
%81 = getelementptr inbounds [5 x double], [5 x double]* %76, i32 0, i32 4
store double 8.000000e+00, double* %81
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%83 = call i64 @calloc(i32 4, i32 8)
%84 = inttoptr i64 %83 to double*
store double* %84, double** %4
%85 = load double*, double** %4
%86 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 1
%87 = call i32 @memcpy(double* %85, double* %86, i32 32)
store i64 0, i64* %5
br label %88
88: ; preds = %98, %68
%89 = load i64, i64* %5
%90 = icmp slt i64 %89, 3
br i1 %90, label %91, label %101
91: ; preds = %88
%92 = load i64, i64* %5
%93 = load double*, double** %4
%94 = load i64, i64* %5
%95 = getelementptr inbounds double, double* %93, i64 %94
%96 = load double, double* %95
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i64 %92, double %96)
br label %98
98: ; preds = %91
%99 = load i64, i64* %5
%100 = add nsw i64 %99, 1
store i64 %100, i64* %5
br label %88
101: ; preds = %88
%102 = load double*, double** %4
%103 = call i32 @free(double* %102)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"test_dump.csv\00"
@.str.2 = [5 x i8] c"%lf\09\00"
@.str.3 = [5 x i8] c"%lf\0A\00"
@.str.6 = [53 x i8] c"\0ADumping Array1 and Array2 into a csv file named %s\0A\00"
@.str.8 = [19 x i8] c"cpyarray[%ld]=%lf\0A\00"
@str = [15 x i8] c"\0AArray1\09Array2\00"
@str.9 = [33 x i8] c"Clipping Array1 to the range 2-7\00"
@str.10 = [34 x i8] c"Clipping Array2 to the range 3-20\00"
@str.11 = [40 x i8] c"\0A\0ACopying a subarray from original dat1\00"
define i32 @main() {
%1 = alloca [5 x double]
%2 = alloca [5 x double]
%3 = alloca [5 x double]
%4 = bitcast [5 x double]* %1 to i8*
%5 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 0
%6 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 1
%7 = bitcast [5 x double]* %1 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 2.000000e+00>, <2 x double>* %7
%8 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 2
%9 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 3
%10 = bitcast double* %8 to <2 x double>*
store <2 x double> <double 5.000000e+00, double 7.000000e+00>, <2 x double>* %10
%11 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 4
store double 8.000000e+00, double* %11
%12 = bitcast [5 x double]* %2 to i8*
%13 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%14 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 1
%15 = bitcast [5 x double]* %2 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 3.000000e+00>, <2 x double>* %15
%16 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 2
%17 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 3
%18 = bitcast double* %16 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 6.000000e+00>, <2 x double>* %18
%19 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 4
store double 5.000000e+00, double* %19
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 1.000000e+00)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double 2.000000e+00)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 2.000000e+00)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double 3.000000e+00)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 5.000000e+00)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double 4.000000e+00)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 7.000000e+00)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double 6.000000e+00)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 8.000000e+00)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double 5.000000e+00)
%31 = call i32 @CSPL_Array_clip(double* %5, i32 2, i32 7, i32 5)
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.9, i64 0, i64 0))
%33 = load double, double* %5
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %33)
%35 = load double, double* %6
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %35)
%37 = load double, double* %8
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %37)
%39 = load double, double* %9
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %39)
%41 = load double, double* %11
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %41)
%43 = call i32 @CSPL_Array_clip(double* %13, i32 3, i32 20, i32 5)
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.10, i64 0, i64 0))
%45 = load double, double* %13
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %45)
%47 = load double, double* %14
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %47)
%49 = load double, double* %16
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %49)
%51 = load double, double* %17
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %51)
%53 = load double, double* %19
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %53)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%56 = call i32 @CSPL_Array_filedump1d(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 5, i32 2, double* %5, double* %13)
%57 = bitcast [5 x double]* %3 to i8*
%58 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 1
%59 = bitcast [5 x double]* %3 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 2.000000e+00>, <2 x double>* %59
%60 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> <double 5.000000e+00, double 7.000000e+00>, <2 x double>* %61
%62 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 4
store double 8.000000e+00, double* %62
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.11, i64 0, i64 0))
%64 = call i64 @calloc(i32 4, i32 8)
%65 = inttoptr i64 %64 to double*
%66 = call i32 @memcpy(double* %65, double* %58, i32 32)
%67 = load double, double* %65
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i64 0, double %67)
%69 = getelementptr inbounds double, double* %65, i64 1
%70 = load double, double* %69
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i64 1, double %70)
%72 = getelementptr inbounds double, double* %65, i64 2
%73 = load double, double* %72
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i64 2, double %73)
%75 = call i32 @free(double* %65)
ret i32 0
}