#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_logscale(double *, int, int, int);
double CSPL_Array_max(double *, int);
double CSPL_Array_min(double *, int);
double CSPL_Array_range(double *, int);
int /*<<< orphan*/ CSPL_Array_scale(double *, int, int, 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 dtmp[5];
  double v1, v2;
  long i;
  printf("\nArray1\tArray2\n");
  for (i = 0; i < 5; i++) {
    printf("%lf\t", dat1[i]);
    printf("%lf\n", dat2[i]);
  }
  printf("Min\n");
  v1 = CSPL_Array_min(dat1, 5);
  v2 = CSPL_Array_min(dat2, 5);
  printf("%lf\t%lf\n", v1, v2);
  printf("Max\n");
  v1 = CSPL_Array_max(dat1, 5);
  v2 = CSPL_Array_max(dat2, 5);
  printf("%lf\t%lf\n", v1, v2);
  printf("Range\n");
  v1 = CSPL_Array_range(dat1, 5);
  v2 = CSPL_Array_range(dat2, 5);
  printf("%lf\t%lf\n", v1, v2);
  {
    long i;
    for (i = 0; i < 5; i++) {
      dtmp[i] = dat1[i] + dat2[i];
    }
  };
  printf("\nSum is:\n");
  for (i = 0; i < 5; i++)
    printf("dtmp[%ld]=%lf\n", i, dtmp[i]);
  {
    long i;
    for (i = 0; i < 5; i++) {
      dtmp[i] = dat1[i] - dat2[i];
    }
  };
  printf("\nDifference is:\n");
  for (i = 0; i < 5; i++)
    printf("dtmp[%ld]=%lf\n", i, dtmp[i]);
  {
    long i;
    for (i = 0; i < 5; i++) {
      dtmp[i] = dat1[i] * dat2[i];
    }
  };
  printf("\nProduct is:\n");
  for (i = 0; i < 5; i++)
    printf("dtmp[%ld]=%lf\n", i, dtmp[i]);
  {
    long i;
    for (i = 0; i < 5; i++) {
      dtmp[i] = dat1[i] / dat2[i];
    }
  };
  printf("\nQuotient is:\n");
  for (i = 0; i < 5; i++)
    printf("dtmp[%ld]=%lf\n", i, dtmp[i]);
  CSPL_Array_scale(dat1, 1, 10, 5);
  printf("\nScaled to [1,10] gives:\n");
  for (i = 0; i < 5; i++)
    printf("dat1[%ld]=%lf\n", i, dat1[i]);
  CSPL_Array_logscale(dat2, 1, 10, 5);
  printf("\nLog Scaled to [1,10] gives:\n");
  for (i = 0; i < 5; i++)
    printf("dat2[%ld]=%lf\n", i, dat2[i]);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%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),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0xa8(%rbp)
cmpq   $0x5,-0xa8(%rbp)
05
jge    1298 <main+0x128>
mov    -0xa8(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
lea    0xdf1(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xa8(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm0
lea    0xde4(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    123d <main+0xcd>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x5,%esi
call   1080 <CSPL_Array_min@plt>
movsd  %xmm0,-0x98(%rbp)
ff
lea    -0x60(%rbp),%rdi
mov    $0x5,%esi
call   1080 <CSPL_Array_min@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
lea    0xd71(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
lea    0xd6c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x5,%esi
call   1090 <CSPL_Array_max@plt>
movsd  %xmm0,-0x98(%rbp)
ff
lea    -0x60(%rbp),%rdi
mov    $0x5,%esi
call   1090 <CSPL_Array_max@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
lea    0xd19(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
lea    0xd19(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x5,%esi
call   1040 <CSPL_Array_range@plt>
movsd  %xmm0,-0x98(%rbp)
ff
lea    -0x60(%rbp),%rdi
mov    $0x5,%esi
call   1040 <CSPL_Array_range@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
lea    0xcc1(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movq   $0x0,-0xb0(%rbp)
cmpq   $0x5,-0xb0(%rbp)
05
jge    13fa <main+0x28a>
mov    -0xb0(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
mov    -0xb0(%rbp),%rax
addsd  -0x60(%rbp,%rax,8),%xmm0
mov    -0xb0(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0xb0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xb0(%rbp)
jmp    13ab <main+0x23b>
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0xa8(%rbp)
cmpq   $0x5,-0xa8(%rbp)
05
jge    145d <main+0x2ed>
mov    -0xa8(%rbp),%rsi
mov    -0xa8(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
lea    0xc3a(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    1413 <main+0x2a3>
movq   $0x0,-0xb8(%rbp)
cmpq   $0x5,-0xb8(%rbp)
05
jge    14b7 <main+0x347>
mov    -0xb8(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
mov    -0xb8(%rbp),%rax
subsd  -0x60(%rbp,%rax,8),%xmm0
mov    -0xb8(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0xb8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xb8(%rbp)
jmp    1468 <main+0x2f8>
lea    0xbca(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0xa8(%rbp)
cmpq   $0x5,-0xa8(%rbp)
05
jge    151a <main+0x3aa>
mov    -0xa8(%rbp),%rsi
mov    -0xa8(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
lea    0xb7d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    14d0 <main+0x360>
movq   $0x0,-0xc0(%rbp)
cmpq   $0x5,-0xc0(%rbp)
05
jge    1574 <main+0x404>
mov    -0xc0(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
mov    -0xc0(%rbp),%rax
mulsd  -0x60(%rbp,%rax,8),%xmm0
mov    -0xc0(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0xc0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xc0(%rbp)
jmp    1525 <main+0x3b5>
lea    0xb1e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0xa8(%rbp)
cmpq   $0x5,-0xa8(%rbp)
05
jge    15d7 <main+0x467>
mov    -0xa8(%rbp),%rsi
mov    -0xa8(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
lea    0xac0(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    158d <main+0x41d>
movq   $0x0,-0xc8(%rbp)
cmpq   $0x5,-0xc8(%rbp)
05
jge    1631 <main+0x4c1>
mov    -0xc8(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
mov    -0xc8(%rbp),%rax
divsd  -0x60(%rbp,%rax,8),%xmm0
mov    -0xc8(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0xc8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xc8(%rbp)
jmp    15e2 <main+0x472>
lea    0xa6f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0xa8(%rbp)
cmpq   $0x5,-0xa8(%rbp)
05
jge    1694 <main+0x524>
mov    -0xa8(%rbp),%rsi
mov    -0xa8(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
lea    0xa03(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    164a <main+0x4da>
lea    -0x30(%rbp),%rdi
mov    $0x1,%esi
mov    $0xa,%edx
mov    $0x5,%ecx
call   1030 <CSPL_Array_scale@plt>
lea    0xa03(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0xa8(%rbp)
cmpq   $0x5,-0xa8(%rbp)
05
jge    170c <main+0x59c>
mov    -0xa8(%rbp),%rsi
mov    -0xa8(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm0
lea    0x9e2(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    16c5 <main+0x555>
lea    -0x60(%rbp),%rdi
mov    $0x1,%esi
mov    $0xa,%edx
mov    $0x5,%ecx
call   1070 <CSPL_Array_logscale@plt>
lea    0x9b4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0xa8(%rbp)
cmpq   $0x5,-0xa8(%rbp)
05
jge    1784 <main+0x614>
mov    -0xa8(%rbp),%rsi
mov    -0xa8(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm0
lea    0x997(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    173d <main+0x5cd>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x90,%rsp
movaps 0xe7d(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe81(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movabs $0x4020000000000000,%rax
mov    %rax,0x80(%rsp)
movaps 0xe73(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe77(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movabs $0x4014000000000000,%rax
mov    %rax,0x50(%rsp)
lea    0xee7(%rip),%rdi
call   1050 <puts@plt>
lea    0xea0(%rip),%r14
movsd  0xe58(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xe90(%rip),%rbx
movsd  0xe47(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r14,%rdi
movsd  0xe32(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe2b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe21(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe17(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe0d(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe03(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xdf9(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbx,%rdi
movsd  0xdc4(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xe28(%rip),%rdi
call   1050 <puts@plt>
lea    0x60(%rsp),%r15
mov    %r15,%rdi
mov    $0x5,%esi
call   1080 <CSPL_Array_min@plt>
movsd  %xmm0,0x8(%rsp)
lea    0x30(%rsp),%r14
mov    %r14,%rdi
mov    $0x5,%esi
call   1080 <CSPL_Array_min@plt>
movaps %xmm0,%xmm1
lea    0xdaa(%rip),%rbx
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
lea    0xddc(%rip),%rdi
call   1050 <puts@plt>
mov    %r15,%rdi
mov    $0x5,%esi
call   1090 <CSPL_Array_max@plt>
movsd  %xmm0,0x8(%rsp)
mov    %r14,%rdi
mov    $0x5,%esi
call   1090 <CSPL_Array_max@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
lea    0xda1(%rip),%rdi
call   1050 <puts@plt>
mov    %r15,%rdi
mov    $0x5,%esi
call   1040 <CSPL_Array_range@plt>
movsd  %xmm0,0x8(%rsp)
mov    %r14,%rdi
mov    $0x5,%esi
call   1040 <CSPL_Array_range@plt>
movaps %xmm0,%xmm1
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x60(%rsp),%xmm1
movsd  0x68(%rsp),%xmm0
addsd  0x30(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
addsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x70(%rsp),%xmm0
addsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x78(%rsp),%xmm0
addsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x80(%rsp),%xmm0
addsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xd0b(%rip),%rdi
call   1050 <puts@plt>
lea    0xcb5(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x1,%esi
mov    %rbx,%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x2,%esi
mov    %rbx,%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x3,%esi
mov    %rbx,%rdi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x4,%esi
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x60(%rsp),%xmm1
movsd  0x68(%rsp),%xmm0
subsd  0x30(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
subsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x70(%rsp),%xmm0
subsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x78(%rsp),%xmm0
subsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x80(%rsp),%xmm0
subsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xc3e(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
xor    %esi,%esi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x1,%esi
mov    %rbx,%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x2,%esi
mov    %rbx,%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x3,%esi
mov    %rbx,%rdi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x4,%esi
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x60(%rsp),%xmm1
movsd  0x68(%rsp),%xmm0
mulsd  0x30(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
mulsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x70(%rsp),%xmm0
mulsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x78(%rsp),%xmm0
mulsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x80(%rsp),%xmm0
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xb7f(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
xor    %esi,%esi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x1,%esi
mov    %rbx,%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x2,%esi
mov    %rbx,%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x3,%esi
mov    %rbx,%rdi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x4,%esi
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x60(%rsp),%xmm1
movsd  0x68(%rsp),%xmm0
divsd  0x30(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
divsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x70(%rsp),%xmm0
divsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x78(%rsp),%xmm0
divsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x80(%rsp),%xmm0
divsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xabd(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
xor    %esi,%esi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x1,%esi
mov    %rbx,%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x2,%esi
mov    %rbx,%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x3,%esi
mov    %rbx,%rdi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x4,%esi
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0xa,%edx
mov    $0x5,%ecx
call   1030 <CSPL_Array_scale@plt>
lea    0xa42(%rip),%rdi
call   1050 <puts@plt>
movsd  0x60(%rsp),%xmm0
lea    0x9c1(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x68(%rsp),%xmm0
mov    $0x1,%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x70(%rsp),%xmm0
mov    $0x2,%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x78(%rsp),%xmm0
mov    $0x3,%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x80(%rsp),%xmm0
mov    $0x4,%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0xa,%edx
mov    $0x5,%ecx
call   1070 <CSPL_Array_logscale@plt>
lea    0x9c8(%rip),%rdi
call   1050 <puts@plt>
movsd  0x30(%rsp),%xmm0
lea    0x93d(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x38(%rsp),%xmm0
mov    $0x1,%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x40(%rsp),%xmm0
mov    $0x2,%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x48(%rsp),%xmm0
mov    $0x3,%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x50(%rsp),%xmm0
mov    $0x4,%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [16 x i8] c"\0AArray1\09Array2\0A\00"
@.str.1 = [5 x i8] c"%lf\09\00"
@.str.2 = [5 x i8] c"%lf\0A\00"
@.str.3 = [5 x i8] c"Min\0A\00"
@.str.4 = [9 x i8] c"%lf\09%lf\0A\00"
@.str.5 = [5 x i8] c"Max\0A\00"
@.str.6 = [7 x i8] c"Range\0A\00"
@.str.7 = [10 x i8] c"\0ASum is:\0A\00"
@.str.8 = [15 x i8] c"dtmp[%ld]=%lf\0A\00"
@.str.9 = [17 x i8] c"\0ADifference is:\0A\00"
@.str.10 = [14 x i8] c"\0AProduct is:\0A\00"
@.str.11 = [15 x i8] c"\0AQuotient is:\0A\00"
@.str.12 = [26 x i8] c"\0AScaled to [1,10] gives:\0A\00"
@.str.13 = [15 x i8] c"dat1[%ld]=%lf\0A\00"
@.str.14 = [30 x i8] c"\0ALog Scaled to [1,10] gives:\0A\00"
@.str.15 = [15 x i8] c"dat2[%ld]=%lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x double]
%3 = alloca [5 x double]
%4 = alloca [5 x double]
%5 = alloca double
%6 = alloca double
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
store i32 0, i32* %1
%12 = bitcast [5 x double]* %2 to i8*
%13 = bitcast i8* %12 to [5 x double]*
%14 = getelementptr inbounds [5 x double], [5 x double]* %13, i32 0, i32 0
store double 1.000000e+00, double* %14
%15 = getelementptr inbounds [5 x double], [5 x double]* %13, i32 0, i32 1
store double 2.000000e+00, double* %15
%16 = getelementptr inbounds [5 x double], [5 x double]* %13, i32 0, i32 2
store double 5.000000e+00, double* %16
%17 = getelementptr inbounds [5 x double], [5 x double]* %13, i32 0, i32 3
store double 7.000000e+00, double* %17
%18 = getelementptr inbounds [5 x double], [5 x double]* %13, i32 0, i32 4
store double 8.000000e+00, double* %18
%19 = bitcast [5 x double]* %3 to i8*
%20 = bitcast i8* %19 to [5 x double]*
%21 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 0
store double 2.000000e+00, double* %21
%22 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 1
store double 3.000000e+00, double* %22
%23 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 2
store double 4.000000e+00, double* %23
%24 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 3
store double 6.000000e+00, double* %24
%25 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 4
store double 5.000000e+00, double* %25
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
store i64 0, i64* %7
br label %27
27: ; preds = %39, %0
%28 = load i64, i64* %7
%29 = icmp slt i64 %28, 5
br i1 %29, label %30, label %42
30: ; preds = %27
%31 = load i64, i64* %7
%32 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 %31
%33 = load double, double* %32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %33)
%35 = load i64, i64* %7
%36 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 %35
%37 = load double, double* %36
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %37)
br label %39
39: ; preds = %30
%40 = load i64, i64* %7
%41 = add nsw i64 %40, 1
store i64 %41, i64* %7
br label %27
42: ; preds = %27
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%44 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%45 = call double @CSPL_Array_min(double* %44, i32 5)
store double %45, double* %5
%46 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 0
%47 = call double @CSPL_Array_min(double* %46, i32 5)
store double %47, double* %6
%48 = load double, double* %5
%49 = load double, double* %6
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double %48, double %49)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%52 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%53 = call double @CSPL_Array_max(double* %52, i32 5)
store double %53, double* %5
%54 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 0
%55 = call double @CSPL_Array_max(double* %54, i32 5)
store double %55, double* %6
%56 = load double, double* %5
%57 = load double, double* %6
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double %56, double %57)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%60 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%61 = call double @CSPL_Array_range(double* %60, i32 5)
store double %61, double* %5
%62 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 0
%63 = call double @CSPL_Array_range(double* %62, i32 5)
store double %63, double* %6
%64 = load double, double* %5
%65 = load double, double* %6
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double %64, double %65)
store i64 0, i64* %8
br label %67
67: ; preds = %80, %42
%68 = load i64, i64* %8
%69 = icmp slt i64 %68, 5
br i1 %69, label %70, label %83
70: ; preds = %67
%71 = load i64, i64* %8
%72 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 %71
%73 = load double, double* %72
%74 = load i64, i64* %8
%75 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 %74
%76 = load double, double* %75
%77 = fadd double %73, %76
%78 = load i64, i64* %8
%79 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 %78
store double %77, double* %79
br label %80
80: ; preds = %70
%81 = load i64, i64* %8
%82 = add nsw i64 %81, 1
store i64 %82, i64* %8
br label %67
83: ; preds = %67
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
store i64 0, i64* %7
br label %85
85: ; preds = %94, %83
%86 = load i64, i64* %7
%87 = icmp slt i64 %86, 5
br i1 %87, label %88, label %97
88: ; preds = %85
%89 = load i64, i64* %7
%90 = load i64, i64* %7
%91 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 %90
%92 = load double, double* %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 %89, double %92)
br label %94
94: ; preds = %88
%95 = load i64, i64* %7
%96 = add nsw i64 %95, 1
store i64 %96, i64* %7
br label %85
97: ; preds = %85
store i64 0, i64* %9
br label %98
98: ; preds = %111, %97
%99 = load i64, i64* %9
%100 = icmp slt i64 %99, 5
br i1 %100, label %101, label %114
101: ; preds = %98
%102 = load i64, i64* %9
%103 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 %102
%104 = load double, double* %103
%105 = load i64, i64* %9
%106 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 %105
%107 = load double, double* %106
%108 = fsub double %104, %107
%109 = load i64, i64* %9
%110 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 %109
store double %108, double* %110
br label %111
111: ; preds = %101
%112 = load i64, i64* %9
%113 = add nsw i64 %112, 1
store i64 %113, i64* %9
br label %98
114: ; preds = %98
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
store i64 0, i64* %7
br label %116
116: ; preds = %125, %114
%117 = load i64, i64* %7
%118 = icmp slt i64 %117, 5
br i1 %118, label %119, label %128
119: ; preds = %116
%120 = load i64, i64* %7
%121 = load i64, i64* %7
%122 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 %121
%123 = load double, double* %122
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 %120, double %123)
br label %125
125: ; preds = %119
%126 = load i64, i64* %7
%127 = add nsw i64 %126, 1
store i64 %127, i64* %7
br label %116
128: ; preds = %116
store i64 0, i64* %10
br label %129
129: ; preds = %142, %128
%130 = load i64, i64* %10
%131 = icmp slt i64 %130, 5
br i1 %131, label %132, label %145
132: ; preds = %129
%133 = load i64, i64* %10
%134 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 %133
%135 = load double, double* %134
%136 = load i64, i64* %10
%137 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 %136
%138 = load double, double* %137
%139 = fmul double %135, %138
%140 = load i64, i64* %10
%141 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 %140
store double %139, double* %141
br label %142
142: ; preds = %132
%143 = load i64, i64* %10
%144 = add nsw i64 %143, 1
store i64 %144, i64* %10
br label %129
145: ; preds = %129
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
store i64 0, i64* %7
br label %147
147: ; preds = %156, %145
%148 = load i64, i64* %7
%149 = icmp slt i64 %148, 5
br i1 %149, label %150, label %159
150: ; preds = %147
%151 = load i64, i64* %7
%152 = load i64, i64* %7
%153 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 %152
%154 = load double, double* %153
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 %151, double %154)
br label %156
156: ; preds = %150
%157 = load i64, i64* %7
%158 = add nsw i64 %157, 1
store i64 %158, i64* %7
br label %147
159: ; preds = %147
store i64 0, i64* %11
br label %160
160: ; preds = %173, %159
%161 = load i64, i64* %11
%162 = icmp slt i64 %161, 5
br i1 %162, label %163, label %176
163: ; preds = %160
%164 = load i64, i64* %11
%165 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 %164
%166 = load double, double* %165
%167 = load i64, i64* %11
%168 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 %167
%169 = load double, double* %168
%170 = fdiv double %166, %169
%171 = load i64, i64* %11
%172 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 %171
store double %170, double* %172
br label %173
173: ; preds = %163
%174 = load i64, i64* %11
%175 = add nsw i64 %174, 1
store i64 %175, i64* %11
br label %160
176: ; preds = %160
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
store i64 0, i64* %7
br label %178
178: ; preds = %187, %176
%179 = load i64, i64* %7
%180 = icmp slt i64 %179, 5
br i1 %180, label %181, label %190
181: ; preds = %178
%182 = load i64, i64* %7
%183 = load i64, i64* %7
%184 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 %183
%185 = load double, double* %184
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 %182, double %185)
br label %187
187: ; preds = %181
%188 = load i64, i64* %7
%189 = add nsw i64 %188, 1
store i64 %189, i64* %7
br label %178
190: ; preds = %178
%191 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%192 = call i32 @CSPL_Array_scale(double* %191, i32 1, i32 10, i32 5)
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
store i64 0, i64* %7
br label %194
194: ; preds = %203, %190
%195 = load i64, i64* %7
%196 = icmp slt i64 %195, 5
br i1 %196, label %197, label %206
197: ; preds = %194
%198 = load i64, i64* %7
%199 = load i64, i64* %7
%200 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 %199
%201 = load double, double* %200
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i64 %198, double %201)
br label %203
203: ; preds = %197
%204 = load i64, i64* %7
%205 = add nsw i64 %204, 1
store i64 %205, i64* %7
br label %194
206: ; preds = %194
%207 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 0
%208 = call i32 @CSPL_Array_logscale(double* %207, i32 1, i32 10, i32 5)
%209 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0))
store i64 0, i64* %7
br label %210
210: ; preds = %219, %206
%211 = load i64, i64* %7
%212 = icmp slt i64 %211, 5
br i1 %212, label %213, label %222
213: ; preds = %210
%214 = load i64, i64* %7
%215 = load i64, i64* %7
%216 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 %215
%217 = load double, double* %216
%218 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i64 %214, double %217)
br label %219
219: ; preds = %213
%220 = load i64, i64* %7
%221 = add nsw i64 %220, 1
store i64 %221, i64* %7
br label %210
222: ; preds = %210
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"%lf\09\00"
@.str.2 = [5 x i8] c"%lf\0A\00"
@.str.4 = [9 x i8] c"%lf\09%lf\0A\00"
@.str.8 = [15 x i8] c"dtmp[%ld]=%lf\0A\00"
@.str.13 = [15 x i8] c"dat1[%ld]=%lf\0A\00"
@.str.15 = [15 x i8] c"dat2[%ld]=%lf\0A\00"
@str = [15 x i8] c"\0AArray1\09Array2\00"
@str.16 = [4 x i8] c"Min\00"
@str.17 = [4 x i8] c"Max\00"
@str.18 = [6 x i8] c"Range\00"
@str.19 = [9 x i8] c"\0ASum is:\00"
@str.20 = [16 x i8] c"\0ADifference is:\00"
@str.21 = [13 x i8] c"\0AProduct is:\00"
@str.22 = [14 x i8] c"\0AQuotient is:\00"
@str.23 = [25 x i8] c"\0AScaled to [1,10] gives:\00"
@str.24 = [29 x i8] c"\0ALog Scaled to [1,10] gives:\00"
define i32 @main() {
%1 = alloca [5 x double]
%2 = alloca [5 x double]
%3 = bitcast [5 x double]* %1 to i8*
%4 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 0
%5 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 1
%6 = bitcast [5 x double]* %1 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 2.000000e+00>, <2 x double>* %6
%7 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 2
%8 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 3
%9 = bitcast double* %7 to <2 x double>*
store <2 x double> <double 5.000000e+00, double 7.000000e+00>, <2 x double>* %9
%10 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 4
store double 8.000000e+00, double* %10
%11 = bitcast [5 x double]* %2 to i8*
%12 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%13 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 1
%14 = bitcast [5 x double]* %2 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 3.000000e+00>, <2 x double>* %14
%15 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 2
%16 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 3
%17 = bitcast double* %15 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 6.000000e+00>, <2 x double>* %17
%18 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 4
store double 5.000000e+00, double* %18
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double 1.000000e+00)
%21 = 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)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, 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 3.000000e+00)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double 5.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 4.000000e+00)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double 7.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 6.000000e+00)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double 8.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 5.000000e+00)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.16, i64 0, i64 0))
%31 = call double @CSPL_Array_min(double* %4, i32 5)
%32 = call double @CSPL_Array_min(double* %12, i32 5)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double %31, double %32)
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.17, i64 0, i64 0))
%35 = call double @CSPL_Array_max(double* %4, i32 5)
%36 = call double @CSPL_Array_max(double* %12, i32 5)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double %35, double %36)
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.18, i64 0, i64 0))
%39 = call double @CSPL_Array_range(double* %4, i32 5)
%40 = call double @CSPL_Array_range(double* %12, i32 5)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double %39, double %40)
%42 = load double, double* %4
%43 = load double, double* %12
%44 = fadd double %42, %43
%45 = load double, double* %5
%46 = load double, double* %13
%47 = fadd double %45, %46
%48 = load double, double* %7
%49 = load double, double* %15
%50 = fadd double %48, %49
%51 = load double, double* %8
%52 = load double, double* %16
%53 = fadd double %51, %52
%54 = load double, double* %10
%55 = load double, double* %18
%56 = fadd double %54, %55
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.19, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 0, double %44)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 1, double %47)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 2, double %50)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 3, double %53)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 4, double %56)
%63 = load double, double* %4
%64 = load double, double* %12
%65 = fsub double %63, %64
%66 = load double, double* %5
%67 = load double, double* %13
%68 = fsub double %66, %67
%69 = load double, double* %7
%70 = load double, double* %15
%71 = fsub double %69, %70
%72 = load double, double* %8
%73 = load double, double* %16
%74 = fsub double %72, %73
%75 = load double, double* %10
%76 = load double, double* %18
%77 = fsub double %75, %76
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.20, i64 0, i64 0))
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 0, double %65)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 1, double %68)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 2, double %71)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 3, double %74)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 4, double %77)
%84 = load double, double* %4
%85 = load double, double* %12
%86 = fmul double %84, %85
%87 = load double, double* %5
%88 = load double, double* %13
%89 = fmul double %87, %88
%90 = load double, double* %7
%91 = load double, double* %15
%92 = fmul double %90, %91
%93 = load double, double* %8
%94 = load double, double* %16
%95 = fmul double %93, %94
%96 = load double, double* %10
%97 = load double, double* %18
%98 = fmul double %96, %97
%99 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.21, i64 0, i64 0))
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 0, double %86)
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 1, double %89)
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 2, double %92)
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 3, double %95)
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 4, double %98)
%105 = load double, double* %4
%106 = load double, double* %12
%107 = fdiv double %105, %106
%108 = load double, double* %5
%109 = load double, double* %13
%110 = fdiv double %108, %109
%111 = load double, double* %7
%112 = load double, double* %15
%113 = fdiv double %111, %112
%114 = load double, double* %8
%115 = load double, double* %16
%116 = fdiv double %114, %115
%117 = load double, double* %10
%118 = load double, double* %18
%119 = fdiv double %117, %118
%120 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.22, i64 0, i64 0))
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 0, double %107)
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 1, double %110)
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 2, double %113)
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 3, double %116)
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 4, double %119)
%126 = call i32 @CSPL_Array_scale(double* %4, i32 1, i32 10, i32 5)
%127 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.23, i64 0, i64 0))
%128 = load double, double* %4
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i64 0, double %128)
%130 = load double, double* %5
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i64 1, double %130)
%132 = load double, double* %7
%133 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i64 2, double %132)
%134 = load double, double* %8
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i64 3, double %134)
%136 = load double, double* %10
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i64 4, double %136)
%138 = call i32 @CSPL_Array_logscale(double* %12, i32 1, i32 10, i32 5)
%139 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.24, i64 0, i64 0))
%140 = load double, double* %12
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i64 0, double %140)
%142 = load double, double* %13
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i64 1, double %142)
%144 = load double, double* %15
%145 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i64 2, double %144)
%146 = load double, double* %16
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i64 3, double %146)
%148 = load double, double* %18
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i64 4, double %148)
ret i32 0
}