#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*/ foo(double *, int);
int /*<<< orphan*/ foo2(double *, int);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int i;
  int n = 10;
  double *f;
  double g[10];
  f = (double *)malloc(n * sizeof *f);
  printf("Allocate array\n");
  printf("Pointer array\n");
  for (i = 0; i < n; i++) {
    *(f + i) = 1.0 / (i + 1.0);
    printf("%lf ", *(f + i));
  }
  printf("\nArray\n");
  for (i = 0; i < n; i++) {
    g[i] = *(f + i);
    printf("%lf ", g[i]);
  }
  printf("\n");
  foo(f, n);
  printf("Point array after foo\n");
  for (i = 0; i < n; i++) {
    printf("%lf ", *(f + i));
  }
  foo2(g, n);
  printf("\nArray after foo2\n");
  for (i = 0; i < n; i++) {
    printf("%lf ", g[i]);
  }
  foo(g, n);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0xc(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11eb <main+0xab>
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xe5b(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xe4f(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xe51(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118c <main+0x4c>
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1249 <main+0x109>
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
movslq -0x8(%rbp),%rax
movsd  -0x70(%rbp,%rax,8),%xmm0
lea    0xdf3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1200 <main+0xc0>
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1060 <foo@plt>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12ad <main+0x16d>
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xd8f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1278 <main+0x138>
lea    -0x70(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1040 <foo2@plt>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1300 <main+0x1c0>
movslq -0x8(%rbp),%rax
movsd  -0x70(%rbp,%rax,8),%xmm0
lea    0xd3c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12ce <main+0x18e>
lea    -0x70(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1060 <foo@plt>
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    $0x50,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
lea    0xeda(%rip),%rdi
call   1040 <puts@plt>
lea    0xedd(%rip),%rdi
call   1040 <puts@plt>
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rbx)
lea    0xeb0(%rip),%r14
movsd  0xe58(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fe0000000000000,%rax
mov    %rax,0x8(%rbx)
movsd  0xe40(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fd5555555555555,%rax
55 d5 3f
mov    %rax,0x10(%rbx)
movsd  0xe28(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fd0000000000000,%rax
mov    %rax,0x18(%rbx)
movsd  0xe10(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fc999999999999a,%rax
99 c9 3f
mov    %rax,0x20(%rbx)
movsd  0xdf8(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fc5555555555555,%rax
55 c5 3f
mov    %rax,0x28(%rbx)
movsd  0xde0(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fc2492492492492,%rax
49 c2 3f
mov    %rax,0x30(%rbx)
movsd  0xdc8(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fc0000000000000,%rax
mov    %rax,0x38(%rbx)
movsd  0xdb0(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fbc71c71c71c71c,%rax
71 bc 3f
mov    %rax,0x40(%rbx)
movsd  0xd98(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movabs $0x3fb999999999999a,%rax
99 b9 3f
mov    %rax,0x48(%rbx)
movsd  0xd80(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd99(%rip),%rdi
call   1040 <puts@plt>
movsd  (%rbx),%xmm0
movsd  %xmm0,(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x8(%rbx),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x10(%rbx),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x18(%rbx),%xmm0
movsd  %xmm0,0x18(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x20(%rbx),%xmm0
movsd  %xmm0,0x20(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x28(%rbx),%xmm0
movsd  %xmm0,0x28(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x30(%rbx),%xmm0
movsd  %xmm0,0x30(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x38(%rbx),%xmm0
movsd  %xmm0,0x38(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x40(%rbx),%xmm0
movsd  %xmm0,0x40(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x48(%rbx),%xmm0
movsd  %xmm0,0x48(%rsp)
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1080 <foo@plt>
lea    0xcad(%rip),%rdi
call   1040 <puts@plt>
movsd  (%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x8(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x10(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x18(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x20(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x28(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x30(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x38(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x40(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x48(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1060 <foo2@plt>
lea    0xc12(%rip),%rdi
call   1040 <puts@plt>
movsd  (%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x8(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x10(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x18(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x20(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x28(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x30(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x38(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x40(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x48(%rsp),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1080 <foo@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [16 x i8] c"Allocate array\0A\00"
@.str.1 = [15 x i8] c"Pointer array\0A\00"
@.str.2 = [5 x i8] c"%lf \00"
@.str.3 = [8 x i8] c"\0AArray\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [23 x i8] c"Point array after foo\0A\00"
@.str.6 = [19 x i8] c"\0AArray after foo2\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double*
%5 = alloca [10 x double]
store i32 0, i32* %1
store i32 10, i32* %3
%6 = load i32, i32* %3
%7 = sext i32 %6 to i64
%8 = mul i64 %7, 8
%9 = trunc i64 %8 to i32
%10 = call i64 @malloc(i32 %9)
%11 = inttoptr i64 %10 to double*
store double* %11, double** %4
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %14
14: ; preds = %33, %0
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %36
18: ; preds = %14
%19 = load i32, i32* %2
%20 = sitofp i32 %19 to double
%21 = fadd double %20, 1.000000e+00
%22 = fdiv double 1.000000e+00, %21
%23 = load double*, double** %4
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, double* %23, i64 %25
store double %22, double* %26
%27 = load double*, double** %4
%28 = load i32, i32* %2
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, double* %27, i64 %29
%31 = load double, double* %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %31)
br label %33
33: ; preds = %18
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %14
36: ; preds = %14
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %38
38: ; preds = %56, %36
%39 = load i32, i32* %2
%40 = load i32, i32* %3
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %59
42: ; preds = %38
%43 = load double*, double** %4
%44 = load i32, i32* %2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
%47 = load double, double* %46
%48 = load i32, i32* %2
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %49
store double %47, double* %50
%51 = load i32, i32* %2
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %52
%54 = load double, double* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %54)
br label %56
56: ; preds = %42
%57 = load i32, i32* %2
%58 = add nsw i32 %57, 1
store i32 %58, i32* %2
br label %38
59: ; preds = %38
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%61 = load double*, double** %4
%62 = load i32, i32* %3
%63 = call i32 @foo(double* %61, i32 %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %65
65: ; preds = %76, %59
%66 = load i32, i32* %2
%67 = load i32, i32* %3
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %79
69: ; preds = %65
%70 = load double*, double** %4
%71 = load i32, i32* %2
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %70, i64 %72
%74 = load double, double* %73
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %74)
br label %76
76: ; preds = %69
%77 = load i32, i32* %2
%78 = add nsw i32 %77, 1
store i32 %78, i32* %2
br label %65
79: ; preds = %65
%80 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 0
%81 = load i32, i32* %3
%82 = call i32 @foo2(double* %80, i32 %81)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %2
br label %84
84: ; preds = %94, %79
%85 = load i32, i32* %2
%86 = load i32, i32* %3
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %97
88: ; preds = %84
%89 = load i32, i32* %2
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %90
%92 = load double, double* %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %92)
br label %94
94: ; preds = %88
%95 = load i32, i32* %2
%96 = add nsw i32 %95, 1
store i32 %96, i32* %2
br label %84
97: ; preds = %84
%98 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 0
%99 = load i32, i32* %3
%100 = call i32 @foo(double* %98, i32 %99)
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [5 x i8] c"%lf \00"
@str = [15 x i8] c"Allocate array\00"
@str.7 = [14 x i8] c"Pointer array\00"
@str.8 = [7 x i8] c"\0AArray\00"
@str.9 = [22 x i8] c"Point array after foo\00"
@str.10 = [18 x i8] c"\0AArray after foo2\00"
define i32 @main() {
%1 = alloca [10 x double]
%2 = bitcast [10 x double]* %1 to i8*
%3 = tail call i64 @malloc(i32 80)
%4 = inttoptr i64 %3 to double*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.7, i64 0, i64 0))
store double 1.000000e+00, double* %4
%7 = 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)
%8 = getelementptr inbounds double, double* %4, i64 1
store double 5.000000e-01, double* %8
%9 = 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-01)
%10 = getelementptr inbounds double, double* %4, i64 2
store double 0x3FD5555555555555, double* %10
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 0x3FD5555555555555)
%12 = getelementptr inbounds double, double* %4, i64 3
store double 2.500000e-01, double* %12
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 2.500000e-01)
%14 = getelementptr inbounds double, double* %4, i64 4
store double 2.000000e-01, double* %14
%15 = 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-01)
%16 = getelementptr inbounds double, double* %4, i64 5
store double 0x3FC5555555555555, double* %16
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 0x3FC5555555555555)
%18 = getelementptr inbounds double, double* %4, i64 6
store double 0x3FC2492492492492, double* %18
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 0x3FC2492492492492)
%20 = getelementptr inbounds double, double* %4, i64 7
store double 1.250000e-01, double* %20
%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.250000e-01)
%22 = getelementptr inbounds double, double* %4, i64 8
store double 0x3FBC71C71C71C71C, double* %22
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double 0x3FBC71C71C71C71C)
%24 = getelementptr inbounds double, double* %4, i64 9
store double 1.000000e-01, double* %24
%25 = 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-01)
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.8, i64 0, i64 0))
%27 = load double, double* %4
%28 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 0
store double %27, double* %28
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %27)
%30 = load double, double* %8
%31 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 1
store double %30, double* %31
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %30)
%33 = load double, double* %10
%34 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 2
store double %33, double* %34
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %33)
%36 = load double, double* %12
%37 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 3
store double %36, double* %37
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %36)
%39 = load double, double* %14
%40 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 4
store double %39, double* %40
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %39)
%42 = load double, double* %16
%43 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 5
store double %42, double* %43
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %42)
%45 = load double, double* %18
%46 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 6
store double %45, double* %46
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %45)
%48 = load double, double* %20
%49 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 7
store double %48, double* %49
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %48)
%51 = load double, double* %22
%52 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 8
store double %51, double* %52
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %51)
%54 = load double, double* %24
%55 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 9
store double %54, double* %55
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %54)
%57 = tail call i32 @putchar(i32 10)
%58 = tail call i32 @foo(double* %4, i32 10)
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.9, i64 0, i64 0))
%60 = load double, double* %4
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %60)
%62 = load double, double* %8
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %62)
%64 = load double, double* %10
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %64)
%66 = load double, double* %12
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %66)
%68 = load double, double* %14
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %68)
%70 = load double, double* %16
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %70)
%72 = load double, double* %18
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %72)
%74 = load double, double* %20
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %74)
%76 = load double, double* %22
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %76)
%78 = load double, double* %24
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %78)
%80 = call i32 @foo2(double* %28, i32 10)
%81 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.10, i64 0, i64 0))
%82 = load double, double* %28
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %82)
%84 = load double, double* %31
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %84)
%86 = load double, double* %34
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %86)
%88 = load double, double* %37
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %88)
%90 = load double, double* %40
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %90)
%92 = load double, double* %43
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %92)
%94 = load double, double* %46
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %94)
%96 = load double, double* %49
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %96)
%98 = load double, double* %52
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %98)
%100 = load double, double* %55
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %100)
%102 = call i32 @foo(double* %28, i32 10)
%103 = call i32 @putchar(i32 10)
ret i32 0
}