#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 EXIT_SUCCESS;
int /*<<< orphan*/ err(int, char *, ...);
int /*<<< orphan*/ free(double *);
int plus(double *, double *, double **, int);
int posix_memalign(void **, int, int);
int /*<<< orphan*/ printf(char *, int, double, double, double);
int main(int argc, char **argv) {
  int ierr = 0;
  int i = 0;
  int n = 32;
  double *a = NULL;
  double *b = NULL;
  double *c = NULL;
  ierr = posix_memalign((void **)&a, 16, n * sizeof(double));
  if (ierr) {
    err(ierr, "Unable to allocate: %ld", n * sizeof(double));
  }
  ierr = posix_memalign((void **)&b, 16, n * sizeof(double));
  if (ierr) {
    err(ierr, "Unable to allocate: %ld", n * sizeof(double));
  }
  ierr = posix_memalign((void **)&c, 16, n * sizeof(double));
  if (ierr) {
    err(ierr, "Unable to allocate: %ld", n * sizeof(double));
  }
  for (i = 0; i < n; ++i) {
    a[i] = 1;
    b[i] = 2;
    c[i] = 0;
  }
  ierr = plus(a, b, &c, n);
  if (ierr) {
    err(ierr, "Unable add vectors");
  }
  for (i = 0; i < n; ++i) {
    printf("%2d: a: %g\tb: %g\tc: %g\n", i, a[i], b[i], c[i]);
  }
  if (a) {
    free(a);
    a = NULL;
  }
  if (b) {
    free(b);
    b = NULL;
  }
  if (c) {
    free(c);
    c = NULL;
  }
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x20,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
lea    -0x28(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
mov    $0x10,%esi
call   1070 <posix_memalign@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     11d1 <main+0x81>
mov    -0x14(%rbp),%edi
movslq -0x1c(%rbp),%rdx
shl    $0x3,%rdx
lea    0xe46(%rip),%rsi
mov    $0x0,%al
call   1060 <err@plt>
lea    -0x30(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
mov    $0x10,%esi
call   1070 <posix_memalign@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     120f <main+0xbf>
mov    -0x14(%rbp),%edi
movslq -0x1c(%rbp),%rdx
shl    $0x3,%rdx
lea    0xe08(%rip),%rsi
mov    $0x0,%al
call   1060 <err@plt>
lea    -0x38(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
mov    $0x10,%esi
call   1070 <posix_memalign@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     124d <main+0xfd>
mov    -0x14(%rbp),%edi
movslq -0x1c(%rbp),%rdx
shl    $0x3,%rdx
lea    0xdca(%rip),%rsi
mov    $0x0,%al
call   1060 <err@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12a8 <main+0x158>
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  0xd98(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  0xd7b(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1254 <main+0x104>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    -0x38(%rbp),%rdx
call   1040 <plus@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     12da <main+0x18a>
mov    -0x14(%rbp),%edi
lea    0xd55(%rip),%rsi
mov    $0x0,%al
call   1060 <err@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1331 <main+0x1e1>
mov    -0x18(%rbp),%esi
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
lea    0xd1d(%rip),%rdi
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12e1 <main+0x191>
cmpq   $0x0,-0x28(%rbp)
je     134d <main+0x1fd>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x28(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1369 <main+0x219>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x30(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     1385 <main+0x235>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x38(%rbp)
mov    0x2c54(%rip),%rax
mov    (%rax),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
movq   $0x0,0x18(%rsp)
movq   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
lea    0x18(%rsp),%rdi
mov    $0x10,%esi
mov    $0x100,%edx
call   1070 <posix_memalign@plt>
test   %eax,%eax
je     11a0 <main+0x50>
lea    0xe8e(%rip),%rsi
mov    $0x100,%edx
mov    %eax,%edi
xor    %eax,%eax
call   1060 <err@plt>
lea    0x10(%rsp),%rdi
mov    $0x10,%esi
mov    $0x100,%edx
call   1070 <posix_memalign@plt>
test   %eax,%eax
je     11cd <main+0x7d>
lea    0xe61(%rip),%rsi
mov    $0x100,%edx
mov    %eax,%edi
xor    %eax,%eax
call   1060 <err@plt>
lea    0x8(%rsp),%rdi
mov    $0x10,%esi
mov    $0x100,%edx
call   1070 <posix_memalign@plt>
test   %eax,%eax
je     11fa <main+0xaa>
lea    0xe34(%rip),%rsi
mov    $0x100,%edx
mov    %eax,%edi
xor    %eax,%eax
call   1060 <err@plt>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rax
lea    0x100(%rdi),%rcx
lea    0x100(%rsi),%rbx
lea    0x100(%rax),%rdx
cmp    %rbx,%rdi
setb   %r11b
cmp    %rcx,%rsi
setb   %bpl
cmp    %rdx,%rdi
setb   %r10b
cmp    %rcx,%rax
setb   %r9b
cmp    %rdx,%rsi
setb   %cl
cmp    %rbx,%rax
setb   %r8b
test   %bpl,%r11b
jne    137a <main+0x22a>
and    %r9b,%r10b
jne    137a <main+0x22a>
and    %r8b,%cl
jne    137a <main+0x22a>
movaps 0xd97(%rip),%xmm0
movups %xmm0,(%rdi)
movaps 0xd9d(%rip),%xmm1
movups %xmm1,(%rsi)
xorps  %xmm2,%xmm2
movups %xmm2,(%rax)
movups %xmm0,0x10(%rdi)
movups %xmm1,0x10(%rsi)
movups %xmm2,0x10(%rax)
movups %xmm0,0x20(%rdi)
movups %xmm1,0x20(%rsi)
movups %xmm2,0x20(%rax)
movups %xmm0,0x30(%rdi)
movups %xmm1,0x30(%rsi)
movups %xmm2,0x30(%rax)
movups %xmm0,0x40(%rdi)
movups %xmm1,0x40(%rsi)
movups %xmm2,0x40(%rax)
movups %xmm0,0x50(%rdi)
movups %xmm1,0x50(%rsi)
movups %xmm2,0x50(%rax)
movups %xmm0,0x60(%rdi)
movups %xmm1,0x60(%rsi)
movups %xmm2,0x60(%rax)
movups %xmm0,0x70(%rdi)
movups %xmm1,0x70(%rsi)
movups %xmm2,0x70(%rax)
movups %xmm0,0x80(%rdi)
movups %xmm1,0x80(%rsi)
movups %xmm2,0x80(%rax)
movups %xmm0,0x90(%rdi)
movups %xmm1,0x90(%rsi)
movups %xmm2,0x90(%rax)
movups %xmm0,0xa0(%rdi)
movups %xmm1,0xa0(%rsi)
movups %xmm2,0xa0(%rax)
movups %xmm0,0xb0(%rdi)
movups %xmm1,0xb0(%rsi)
movups %xmm2,0xb0(%rax)
movups %xmm0,0xc0(%rdi)
movups %xmm1,0xc0(%rsi)
movups %xmm2,0xc0(%rax)
movups %xmm0,0xd0(%rdi)
movups %xmm1,0xd0(%rsi)
movups %xmm2,0xd0(%rax)
movups %xmm0,0xe0(%rdi)
movups %xmm1,0xe0(%rsi)
movups %xmm2,0xe0(%rax)
movups %xmm0,0xf0(%rdi)
movups %xmm1,0xf0(%rsi)
movups %xmm2,0xf0(%rax)
jmp    13bd <main+0x26d>
xor    %ecx,%ecx
movabs $0x3ff0000000000000,%rdx
movabs $0x4000000000000000,%rbx
mov    %rdx,(%rdi,%rcx,8)
mov    %rbx,(%rsi,%rcx,8)
movq   $0x0,(%rax,%rcx,8)
mov    %rdx,0x8(%rdi,%rcx,8)
mov    %rbx,0x8(%rsi,%rcx,8)
movq   $0x0,0x8(%rax,%rcx,8)
add    $0x2,%rcx
cmp    $0x20,%rcx
jne    1390 <main+0x240>
lea    0x8(%rsp),%rdx
mov    $0x20,%ecx
call   1040 <plus@plt>
test   %eax,%eax
je     13e0 <main+0x290>
lea    0xc61(%rip),%rsi
mov    %eax,%edi
xor    %eax,%eax
call   1060 <err@plt>
xor    %ebx,%ebx
lea    0xc62(%rip),%r14
nopl   0x0(%rax)
mov    0x18(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm0
mov    0x10(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm1
mov    0x8(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm2
mov    %r14,%rdi
mov    %ebx,%esi
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    $0x20,%rbx
jne    13f0 <main+0x2a0>
mov    0x18(%rsp),%rdi
test   %rdi,%rdi
je     143a <main+0x2ea>
call   1030 <free@plt>
movq   $0x0,0x18(%rsp)
mov    0x10(%rsp),%rdi
test   %rdi,%rdi
je     1452 <main+0x302>
call   1030 <free@plt>
movq   $0x0,0x10(%rsp)
mov    0x8(%rsp),%rdi
test   %rdi,%rdi
je     1461 <main+0x311>
call   1030 <free@plt>
mov    0x2b78(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Unable to allocate: %ld\00"
@.str.1 = [19 x i8] c"Unable add vectors\00"
@.str.2 = [24 x i8] c"%2d: a: %g\09b: %g\09c: %g\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 32, i32* %8
store double* null, double** %9
store double* null, double** %10
store double* null, double** %11
%12 = bitcast double** %9 to i8**
%13 = load i32, i32* %8
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 8
%16 = trunc i64 %15 to i32
%17 = call i32 @posix_memalign(i8** %12, i32 16, i32 %16)
store i32 %17, i32* %6
%18 = load i32, i32* %6
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %2
%21 = load i32, i32* %6
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 8
%25 = call i32 (i32, i8*, ...) @err(i32 %21, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 %24)
br label %26
26: ; preds = %20, %2
%27 = bitcast double** %10 to i8**
%28 = load i32, i32* %8
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 8
%31 = trunc i64 %30 to i32
%32 = call i32 @posix_memalign(i8** %27, i32 16, i32 %31)
store i32 %32, i32* %6
%33 = load i32, i32* %6
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %26
%36 = load i32, i32* %6
%37 = load i32, i32* %8
%38 = sext i32 %37 to i64
%39 = mul i64 %38, 8
%40 = call i32 (i32, i8*, ...) @err(i32 %36, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 %39)
br label %41
41: ; preds = %35, %26
%42 = bitcast double** %11 to i8**
%43 = load i32, i32* %8
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 8
%46 = trunc i64 %45 to i32
%47 = call i32 @posix_memalign(i8** %42, i32 16, i32 %46)
store i32 %47, i32* %6
%48 = load i32, i32* %6
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %41
%51 = load i32, i32* %6
%52 = load i32, i32* %8
%53 = sext i32 %52 to i64
%54 = mul i64 %53, 8
%55 = call i32 (i32, i8*, ...) @err(i32 %51, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 %54)
br label %56
56: ; preds = %50, %41
store i32 0, i32* %7
br label %57
57: ; preds = %74, %56
%58 = load i32, i32* %7
%59 = load i32, i32* %8
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %77
61: ; preds = %57
%62 = load double*, double** %9
%63 = load i32, i32* %7
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %62, i64 %64
store double 1.000000e+00, double* %65
%66 = load double*, double** %10
%67 = load i32, i32* %7
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
store double 2.000000e+00, double* %69
%70 = load double*, double** %11
%71 = load i32, i32* %7
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %70, i64 %72
store double 0.000000e+00, double* %73
br label %74
74: ; preds = %61
%75 = load i32, i32* %7
%76 = add nsw i32 %75, 1
store i32 %76, i32* %7
br label %57
77: ; preds = %57
%78 = load double*, double** %9
%79 = load double*, double** %10
%80 = load i32, i32* %8
%81 = call i32 @plus(double* %78, double* %79, double** %11, i32 %80)
store i32 %81, i32* %6
%82 = load i32, i32* %6
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %77
%85 = load i32, i32* %6
%86 = call i32 (i32, i8*, ...) @err(i32 %85, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %87
87: ; preds = %84, %77
store i32 0, i32* %7
br label %88
88: ; preds = %110, %87
%89 = load i32, i32* %7
%90 = load i32, i32* %8
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %113
92: ; preds = %88
%93 = load i32, i32* %7
%94 = load double*, double** %9
%95 = load i32, i32* %7
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, double* %94, i64 %96
%98 = load double, double* %97
%99 = load double*, double** %10
%100 = load i32, i32* %7
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, double* %99, i64 %101
%103 = load double, double* %102
%104 = load double*, double** %11
%105 = load i32, i32* %7
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %104, i64 %106
%108 = load double, double* %107
%109 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %93, double %98, double %103, double %108)
br label %110
110: ; preds = %92
%111 = load i32, i32* %7
%112 = add nsw i32 %111, 1
store i32 %112, i32* %7
br label %88
113: ; preds = %88
%114 = load double*, double** %9
%115 = icmp ne double* %114, null
br i1 %115, label %116, label %119
116: ; preds = %113
%117 = load double*, double** %9
%118 = call i32 @free(double* %117)
store double* null, double** %9
br label %119
119: ; preds = %116, %113
%120 = load double*, double** %10
%121 = icmp ne double* %120, null
br i1 %121, label %122, label %125
122: ; preds = %119
%123 = load double*, double** %10
%124 = call i32 @free(double* %123)
store double* null, double** %10
br label %125
125: ; preds = %122, %119
%126 = load double*, double** %11
%127 = icmp ne double* %126, null
br i1 %127, label %128, label %131
128: ; preds = %125
%129 = load double*, double** %11
%130 = call i32 @free(double* %129)
store double* null, double** %11
br label %131
131: ; preds = %128, %125
%132 = load i32, i32* @EXIT_SUCCESS
ret i32 %132
}

LLVM IR (-O2):
@.str = [24 x i8] c"Unable to allocate: %ld\00"
@.str.1 = [19 x i8] c"Unable add vectors\00"
@.str.2 = [24 x i8] c"%2d: a: %g\09b: %g\09c: %g\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca double*
%6 = bitcast double** %3 to i8*
store double* null, double** %3
%7 = bitcast double** %4 to i8*
store double* null, double** %4
%8 = bitcast double** %5 to i8*
store double* null, double** %5
%9 = bitcast double** %3 to i8**
%10 = call i32 @posix_memalign(i8** %9, i32 16, i32 256)
%11 = icmp eq i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %2
%13 = call i32 (i32, i8*, ...) @err(i32 %10, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 256)
br label %14
14: ; preds = %12, %2
%15 = bitcast double** %4 to i8**
%16 = call i32 @posix_memalign(i8** %15, i32 16, i32 256)
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %14
%19 = call i32 (i32, i8*, ...) @err(i32 %16, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 256)
br label %20
20: ; preds = %18, %14
%21 = bitcast double** %5 to i8**
%22 = call i32 @posix_memalign(i8** %21, i32 16, i32 256)
%23 = icmp eq i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %20
%25 = call i32 (i32, i8*, ...) @err(i32 %22, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 256)
br label %26
26: ; preds = %24, %20
%27 = load double*, double** %3
%28 = load double*, double** %4
%29 = load double*, double** %5
%30 = getelementptr double, double* %27, i64 32
%31 = getelementptr double, double* %28, i64 32
%32 = getelementptr double, double* %29, i64 32
%33 = icmp ult double* %27, %31
%34 = icmp ult double* %28, %30
%35 = and i1 %33, %34
%36 = icmp ult double* %27, %32
%37 = icmp ult double* %29, %30
%38 = and i1 %36, %37
%39 = or i1 %35, %38
%40 = icmp ult double* %28, %32
%41 = icmp ult double* %29, %31
%42 = and i1 %40, %41
%43 = or i1 %39, %42
br i1 %43, label %138, label %44
44: ; preds = %26
%45 = bitcast double* %27 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %45
%46 = bitcast double* %28 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %46
%47 = bitcast double* %29 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %47
%48 = getelementptr inbounds double, double* %27, i64 2
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %49
%50 = getelementptr inbounds double, double* %28, i64 2
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %51
%52 = getelementptr inbounds double, double* %29, i64 2
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %53
%54 = getelementptr inbounds double, double* %27, i64 4
%55 = bitcast double* %54 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %55
%56 = getelementptr inbounds double, double* %28, i64 4
%57 = bitcast double* %56 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %57
%58 = getelementptr inbounds double, double* %29, i64 4
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %59
%60 = getelementptr inbounds double, double* %27, i64 6
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %61
%62 = getelementptr inbounds double, double* %28, i64 6
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %63
%64 = getelementptr inbounds double, double* %29, i64 6
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %65
%66 = getelementptr inbounds double, double* %27, i64 8
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %67
%68 = getelementptr inbounds double, double* %28, i64 8
%69 = bitcast double* %68 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %69
%70 = getelementptr inbounds double, double* %29, i64 8
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %71
%72 = getelementptr inbounds double, double* %27, i64 10
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %73
%74 = getelementptr inbounds double, double* %28, i64 10
%75 = bitcast double* %74 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %75
%76 = getelementptr inbounds double, double* %29, i64 10
%77 = bitcast double* %76 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %77
%78 = getelementptr inbounds double, double* %27, i64 12
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %79
%80 = getelementptr inbounds double, double* %28, i64 12
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %81
%82 = getelementptr inbounds double, double* %29, i64 12
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %83
%84 = getelementptr inbounds double, double* %27, i64 14
%85 = bitcast double* %84 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %85
%86 = getelementptr inbounds double, double* %28, i64 14
%87 = bitcast double* %86 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %87
%88 = getelementptr inbounds double, double* %29, i64 14
%89 = bitcast double* %88 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %89
%90 = getelementptr inbounds double, double* %27, i64 16
%91 = bitcast double* %90 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %91
%92 = getelementptr inbounds double, double* %28, i64 16
%93 = bitcast double* %92 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %93
%94 = getelementptr inbounds double, double* %29, i64 16
%95 = bitcast double* %94 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %95
%96 = getelementptr inbounds double, double* %27, i64 18
%97 = bitcast double* %96 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %97
%98 = getelementptr inbounds double, double* %28, i64 18
%99 = bitcast double* %98 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %99
%100 = getelementptr inbounds double, double* %29, i64 18
%101 = bitcast double* %100 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %101
%102 = getelementptr inbounds double, double* %27, i64 20
%103 = bitcast double* %102 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %103
%104 = getelementptr inbounds double, double* %28, i64 20
%105 = bitcast double* %104 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %105
%106 = getelementptr inbounds double, double* %29, i64 20
%107 = bitcast double* %106 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %107
%108 = getelementptr inbounds double, double* %27, i64 22
%109 = bitcast double* %108 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %109
%110 = getelementptr inbounds double, double* %28, i64 22
%111 = bitcast double* %110 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %111
%112 = getelementptr inbounds double, double* %29, i64 22
%113 = bitcast double* %112 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %113
%114 = getelementptr inbounds double, double* %27, i64 24
%115 = bitcast double* %114 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %115
%116 = getelementptr inbounds double, double* %28, i64 24
%117 = bitcast double* %116 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %117
%118 = getelementptr inbounds double, double* %29, i64 24
%119 = bitcast double* %118 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %119
%120 = getelementptr inbounds double, double* %27, i64 26
%121 = bitcast double* %120 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %121
%122 = getelementptr inbounds double, double* %28, i64 26
%123 = bitcast double* %122 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %123
%124 = getelementptr inbounds double, double* %29, i64 26
%125 = bitcast double* %124 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %125
%126 = getelementptr inbounds double, double* %27, i64 28
%127 = bitcast double* %126 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %127
%128 = getelementptr inbounds double, double* %28, i64 28
%129 = bitcast double* %128 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %129
%130 = getelementptr inbounds double, double* %29, i64 28
%131 = bitcast double* %130 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %131
%132 = getelementptr inbounds double, double* %27, i64 30
%133 = bitcast double* %132 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %133
%134 = getelementptr inbounds double, double* %28, i64 30
%135 = bitcast double* %134 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %135
%136 = getelementptr inbounds double, double* %29, i64 30
%137 = bitcast double* %136 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %137
br label %149
138: ; preds = %26, %138
%139 = phi i64 [ %147, %138 ], [ 0, %26 ]
%140 = getelementptr inbounds double, double* %27, i64 %139
store double 1.000000e+00, double* %140
%141 = getelementptr inbounds double, double* %28, i64 %139
store double 2.000000e+00, double* %141
%142 = getelementptr inbounds double, double* %29, i64 %139
store double 0.000000e+00, double* %142
%143 = or i64 %139, 1
%144 = getelementptr inbounds double, double* %27, i64 %143
store double 1.000000e+00, double* %144
%145 = getelementptr inbounds double, double* %28, i64 %143
store double 2.000000e+00, double* %145
%146 = getelementptr inbounds double, double* %29, i64 %143
store double 0.000000e+00, double* %146
%147 = add nuw nsw i64 %139, 2
%148 = icmp eq i64 %147, 32
br i1 %148, label %149, label %138
149: ; preds = %138, %44
%150 = call i32 @plus(double* %27, double* %28, double** %5, i32 32)
%151 = icmp eq i32 %150, 0
br i1 %151, label %154, label %152
152: ; preds = %149
%153 = call i32 (i32, i8*, ...) @err(i32 %150, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %154
154: ; preds = %152, %149
br label %155
155: ; preds = %154, %155
%156 = phi i64 [ %168, %155 ], [ 0, %154 ]
%157 = load double*, double** %3
%158 = getelementptr inbounds double, double* %157, i64 %156
%159 = load double, double* %158
%160 = load double*, double** %4
%161 = getelementptr inbounds double, double* %160, i64 %156
%162 = load double, double* %161
%163 = load double*, double** %5
%164 = getelementptr inbounds double, double* %163, i64 %156
%165 = load double, double* %164
%166 = trunc i64 %156 to i32
%167 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %166, double %159, double %162, double %165)
%168 = add nuw nsw i64 %156, 1
%169 = icmp eq i64 %168, 32
br i1 %169, label %170, label %155
170: ; preds = %155
%171 = load double*, double** %3
%172 = icmp eq double* %171, null
br i1 %172, label %175, label %173
173: ; preds = %170
%174 = call i32 @free(double* %171)
store double* null, double** %3
br label %175
175: ; preds = %173, %170
%176 = load double*, double** %4
%177 = icmp eq double* %176, null
br i1 %177, label %180, label %178
178: ; preds = %175
%179 = call i32 @free(double* %176)
store double* null, double** %4
br label %180
180: ; preds = %178, %175
%181 = load double*, double** %5
%182 = icmp eq double* %181, null
br i1 %182, label %185, label %183
183: ; preds = %180
%184 = call i32 @free(double* %181)
br label %185
185: ; preds = %183, %180
%186 = load i32, i32* @EXIT_SUCCESS
ret i32 %186
}